Skip to content

Commit be25a89

Browse files
author
Arthur Evans
authored
Merge pull request Polymer#10 from Polymer/fix-samples
Fix 3.x , 2.x live samples
2 parents faf2517 + a1ddefb commit be25a89

File tree

19 files changed

+42
-36
lines changed

19 files changed

+42
-36
lines changed

app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ handlers:
5959
static_dir: 3.0/samples/
6060
secure: always
6161

62-
- url: /3.0/start/samples
63-
static_dir: 3.0/start/samples
62+
- url: /3.0/docs/samples
63+
static_dir: 3.0/docs/samples
6464
secure: always
6565

6666
- url: .*

app/2.0/docs/quick-tour.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ an element name with a class, so you can add properties and methods to your cust
5050
element. The custom element's name **must start with an ASCII letter and
5151
contain a dash (-)**.
5252

53-
<demo-tabs selected="0" name="qt-1-register" src="http://plnkr.co/edit/Q4E8zO?p=preview">
53+
<demo-tabs selected="0" name="qt-1-register" src="https://plnkr.co/edit/uiJ8nA?p=preview">
5454
<paper-tab slot="tabs">custom-element.html</paper-tab>
5555
<div>
5656

@@ -94,7 +94,7 @@ You can use the `ready` callback for one-time initialization work after the elem
9494
Many elements include some internal DOM nodes to implement the element's UI and behavior.
9595
You can use Polymer's DOM templating to create a shadow DOM tree for your element.
9696

97-
<demo-tabs selected="0" name="qt-2-shadow-dom" src="http://plnkr.co/edit/buPxSJ?p=preview">
97+
<demo-tabs selected="0" name="qt-2-shadow-dom" src="http://plnkr.co/edit/GBt0dZn1WeS2lpBK6b8q?p=preview">
9898
<paper-tab slot="tabs">dom-element.html</paper-tab>
9999
<div>
100100

@@ -129,7 +129,7 @@ so they render as if they were inserted into the shadow DOM tree.
129129
This example creates a simple tag that decorates an image by wrapping it
130130
with a styled `<div>` tag.
131131

132-
<demo-tabs selected="0" name="qt-3-compose" src="http://plnkr.co/edit/KvBnmE?p=preview">
132+
<demo-tabs selected="0" name="qt-3-compose" src="http://plnkr.co/edit/VZ5Gfk?p=preview">
133133
<paper-tab slot="tabs">picture-frame.html</paper-tab>
134134
<div>
135135

@@ -169,7 +169,7 @@ Data binding is a great way to quickly propagate changes in your element and red
169169
You can bind properties in your component using the "double-mustache" syntax (`{%raw%}{{}}{%endraw%}`).
170170
The `{%raw%}{{}}{%endraw%}` is replaced by the value of the property referenced between the brackets.
171171

172-
<demo-tabs selected="0" name="qt-4-data-binding" src="http://plnkr.co/edit/8mZK8S?p=preview">
172+
<demo-tabs selected="0" name="qt-4-data-binding" src="http://plnkr.co/edit/c8kQ7DdDMtU8yj7pMl7Z?p=preview">
173173
<paper-tab slot="tabs">name-tag.html</paper-tab>
174174
<div>
175175

@@ -207,7 +207,7 @@ values, configuring properties from markup, observing property changes, and more
207207
The following example declares the `owner` property from the last example.
208208
It also shows configuring the owner property from markup in `index.html`.
209209

210-
<demo-tabs selected="0" name="qt-5-declare-property" src="http://plnkr.co/edit/3Nz8GL?p=preview">
210+
<demo-tabs selected="0" name="qt-5-declare-property" src="http://plnkr.co/edit/sxfvyCPbTMVFdXSEWfte?p=preview">
211211
<paper-tab slot="tabs">configurable-name-tag.html</paper-tab>
212212
<div>
213213

@@ -242,7 +242,7 @@ can optionally support two-way binding, using curly braces (`property-name="{{bi
242242
This example uses two-way binding: binding the value of a custom input element (`iron-input`)
243243
to the element's `owner` property, so it's updated as the user types.
244244

245-
<demo-tabs selected="0" name="qt-6-bind-property" src="http://plnkr.co/edit/03HGzn98uIN5I1WgkDwu?p=preview">
245+
<demo-tabs selected="0" name="qt-6-bind-property" src="http://plnkr.co/edit/elrWeyQl9webeewXlrR6?p=preview">
246246
<paper-tab slot="tabs">editable-name-tag.html</paper-tab>
247247
<div>
248248

@@ -269,11 +269,11 @@ Try it out in **Plunker**:
269269
data binding and input validation.
270270
{: .alert .alert-info }
271271

272-
### Using `<dom-repeat>` for template repeating
272+
### Render a list with dom-repeat
273273

274274
The template repeater (`dom-repeat`) is a specialized template that binds to an array. It creates one instance of the template's contents for each item in the array.
275275

276-
<demo-tabs selected="0" name="qt-7-dom-repeat" src="http://plnkr.co/edit/FdgkAtcLFHX5TpTsYtZn?p=preview">
276+
<demo-tabs selected="0" name="qt-7-dom-repeat" src="https://plnkr.co/edit/oPNQvzyxLZzPSrUhcOwP?p=preview">
277277
<paper-tab slot="tabs">employee-list.html</paper-tab>
278278
<div>
279279

app/2.0/docs/samples/configurable-name-tag/configurable-name-tag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<link rel="import" href="https://polygit.org/components/polymer/polymer-element.html">
1+
<link rel="import" href="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/components/polymer/polymer-element.html">
22

33
<dom-module id="configurable-name-tag">
44

app/2.0/docs/samples/configurable-name-tag/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script src="https://polygit.org/components/webcomponentsjs/webcomponents-loader.js"></script>
4+
<script src="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/components/webcomponentsjs/webcomponents-loader.js"></script>
55
<link rel="import" href="configurable-name-tag.html">
66
</head>
77
<body>

app/2.0/docs/samples/custom-element/custom-element.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<link rel="import" href="https://polygit.org/components/polymer/polymer-element.html">
1+
<link rel="import" href="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/components/polymer/polymer-element.html">
22

33
<script>
44
// Define the class for a new element called custom-element

app/2.0/docs/samples/custom-element/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script src="https://polygit.org/components/webcomponentsjs/webcomponents-loader.js"></script>
4+
<script src="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/components/webcomponentsjs/webcomponents-loader.js"></script>
55
<link rel="import" href="custom-element.html">
66
</head>
77
<body>

app/2.0/docs/samples/dom-element/dom-element.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<link rel="import" href="https://polygit.org/components/polymer/polymer-element.html">
1+
<link rel="import" href="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/components/polymer/polymer-element.html">
22

33
<dom-module id="dom-element">
44

app/2.0/docs/samples/dom-element/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script src="https://polygit.org/components/webcomponentsjs/webcomponents-loader.js"></script>
4+
<script src="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/components/webcomponentsjs/webcomponents-loader.js"></script>
55
<link rel="import" href="dom-element.html">
66
</head>
77
<body>

app/2.0/docs/samples/editable-name-tag/editable-name-tag.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<link rel="import" href="https://polygit.org/components/polymer/polymer-element.html">
1+
<link rel="import" href="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/iron-*+polymerelements+^v2.0.0/components/polymer/polymer-element.html">
22
<!-- import the iron-input element -->
3-
<link rel="import" href="https://polygit.org/components/iron-input/iron-input.html">
3+
<link rel="import" href="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/iron-*+polymerelements+^v2.0.0/components/iron-input/iron-input.html">
44

55
<dom-module id="editable-name-tag">
66

app/2.0/docs/samples/editable-name-tag/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<script src="https://polygit.org/components/webcomponentsjs/webcomponents-loader.js"></script>
4+
<script src="https://polygit.org/polymer+^v2.6.0/webcomponentsjs+^v1.3.0/components/webcomponentsjs/webcomponents-loader.js"></script>
55
<link rel="import" href="editable-name-tag.html">
66
</head>
77
<body>

0 commit comments

Comments
 (0)