Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit d0d95c7

Browse files
author
Rob Dodson
committed
add ep19
1 parent e3002c4 commit d0d95c7

33 files changed

Lines changed: 1550 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
10+
# Change these settings to your own preference
11+
indent_style = space
12+
indent_size = 2
13+
14+
# We recommend you to keep these unchanged
15+
end_of_line = lf
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.md]
21+
trim_trailing_whitespace = false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
bower_components
4+
.tmp
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"preset": "google",
3+
"disallowSpacesInAnonymousFunctionExpression": null,
4+
"excludeFiles": ["node_modules/**"]
5+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"node": true,
3+
"browser": true,
4+
"esnext": true,
5+
"bitwise": true,
6+
"camelcase": true,
7+
"curly": true,
8+
"eqeqeq": true,
9+
"immed": true,
10+
"indent": 2,
11+
"latedef": true,
12+
"noarg": true,
13+
"quotmark": "single",
14+
"undef": true,
15+
"unused": true,
16+
"globals": {
17+
"wrap": true,
18+
"unwrap": true,
19+
"Polymer": true,
20+
"Platform": true,
21+
"page": true,
22+
"app": true
23+
}
24+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# License
2+
3+
Everything in this repo is BSD style license unless otherwise specified.
4+
5+
Copyright (c) 2015 The Polymer Authors. All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright
10+
notice, this list of conditions and the following disclaimer.
11+
* Redistributions in binary form must reproduce the above
12+
copyright notice, this list of conditions and the following disclaimer
13+
in the documentation and/or other materials provided with the
14+
distribution.
15+
* Neither the name of Google Inc. nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ep19-go-offline/polymer-starter-kit/README.md

Lines changed: 311 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!--
2+
@license
3+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7+
Code distributed by Google as part of the polymer project is also
8+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9+
-->
10+
11+
<!-- Iron elements -->
12+
<link rel="import" href="../bower_components/iron-flex-layout/classes/iron-flex-layout.html">
13+
<link rel="import" href="../bower_components/iron-icons/iron-icons.html">
14+
<link rel="import" href="../bower_components/iron-pages/iron-pages.html">
15+
<link rel="import" href="../bower_components/iron-selector/iron-selector.html">
16+
17+
<!-- Paper elements -->
18+
<link rel="import" href="../bower_components/paper-drawer-panel/paper-drawer-panel.html">
19+
<link rel="import" href="../bower_components/paper-header-panel/paper-header-panel.html">
20+
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html">
21+
<link rel="import" href="../bower_components/paper-item/paper-item.html">
22+
<link rel="import" href="../bower_components/paper-material/paper-material.html">
23+
<link rel="import" href="../bower_components/paper-menu/paper-menu.html">
24+
<link rel="import" href="../bower_components/paper-styles/paper-styles-classes.html">
25+
<link rel="import" href="../bower_components/paper-toast/paper-toast.html">
26+
<link rel="import" href="../bower_components/paper-toolbar/paper-toolbar.html">
27+
28+
<!-- Uncomment next block to enable Service Worker Support (2/2) -->
29+
30+
<link rel="import" href="../bower_components/platinum-sw/platinum-sw-cache.html">
31+
<link rel="import" href="../bower_components/platinum-sw/platinum-sw-register.html">
32+
33+
34+
<!-- Configure your routes here -->
35+
<link rel="import" href="routing.html">
36+
37+
<!-- Add your elements here -->
38+
<link rel="import" href="../styles/app-theme.html">
39+
<link rel="import" href="my-greeting/my-greeting.html">
40+
<link rel="import" href="my-list/my-list.html">
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!--
2+
@license
3+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7+
Code distributed by Google as part of the polymer project is also
8+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9+
-->
10+
11+
<dom-module id="my-greeting">
12+
<style>
13+
:host {
14+
display: block;
15+
}
16+
17+
@media (max-width: 600px) {
18+
h1.paper-font-display1 {
19+
font-size: 24px;
20+
}
21+
}
22+
</style>
23+
<template>
24+
<h1 class="paper-font-display1"><span>{{greeting}}</span></h1>
25+
<span class="paper-font-body2">Update text to change the greeting.</span>
26+
<!-- Listens for "input" event and sets greeting to <input>.value -->
27+
<input class="paper-font-body2" value="{{greeting::input}}">
28+
</template>
29+
30+
<script>
31+
(function() {
32+
Polymer({
33+
is: 'my-greeting',
34+
35+
properties: {
36+
greeting: {
37+
type: String,
38+
value: 'Welcome!',
39+
notify: true
40+
}
41+
}
42+
});
43+
})();
44+
</script>
45+
46+
</dom-module>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!--
2+
@license
3+
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4+
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5+
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6+
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7+
Code distributed by Google as part of the polymer project is also
8+
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9+
-->
10+
11+
<dom-module id="my-list">
12+
<style>
13+
:host {
14+
display: block;
15+
}
16+
</style>
17+
<template>
18+
<ul>
19+
<template is="dom-repeat" items="{{items}}">
20+
<li><span class="paper-font-body1">{{item}}</span></li>
21+
</template>
22+
</ul>
23+
</template>
24+
25+
<script>
26+
(function () {
27+
Polymer({
28+
is: 'my-list',
29+
properties: {
30+
items: {
31+
type: Array,
32+
notify: true,
33+
}
34+
},
35+
ready: function() {
36+
this.items = [
37+
'Responsive Web App boilerplate',
38+
'Iron Elements and Paper Elements',
39+
'End-to-end Build Tooling (including Vulcanize)',
40+
'Unit testing with Web Component Tester',
41+
'Routing with Page.js',
42+
'Offline support with the Platinum Service Worker Elements'
43+
];
44+
}
45+
});
46+
})();
47+
</script>
48+
49+
</dom-module>

0 commit comments

Comments
 (0)