This repository has been archived by the owner on Oct 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,550 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
dist | ||
bower_components | ||
.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"preset": "google", | ||
"disallowSpacesInAnonymousFunctionExpression": null, | ||
"excludeFiles": ["node_modules/**"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"node": true, | ||
"browser": true, | ||
"esnext": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"indent": 2, | ||
"latedef": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"undef": true, | ||
"unused": true, | ||
"globals": { | ||
"wrap": true, | ||
"unwrap": true, | ||
"Polymer": true, | ||
"Platform": true, | ||
"page": true, | ||
"app": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# License | ||
|
||
Everything in this repo is BSD style license unless otherwise specified. | ||
|
||
Copyright (c) 2015 The Polymer Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
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. |
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
ep19-go-offline/polymer-starter-kit/app/elements/elements.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
--> | ||
|
||
<!-- Iron elements --> | ||
<link rel="import" href="../bower_components/iron-flex-layout/classes/iron-flex-layout.html"> | ||
<link rel="import" href="../bower_components/iron-icons/iron-icons.html"> | ||
<link rel="import" href="../bower_components/iron-pages/iron-pages.html"> | ||
<link rel="import" href="../bower_components/iron-selector/iron-selector.html"> | ||
|
||
<!-- Paper elements --> | ||
<link rel="import" href="../bower_components/paper-drawer-panel/paper-drawer-panel.html"> | ||
<link rel="import" href="../bower_components/paper-header-panel/paper-header-panel.html"> | ||
<link rel="import" href="../bower_components/paper-icon-button/paper-icon-button.html"> | ||
<link rel="import" href="../bower_components/paper-item/paper-item.html"> | ||
<link rel="import" href="../bower_components/paper-material/paper-material.html"> | ||
<link rel="import" href="../bower_components/paper-menu/paper-menu.html"> | ||
<link rel="import" href="../bower_components/paper-styles/paper-styles-classes.html"> | ||
<link rel="import" href="../bower_components/paper-toast/paper-toast.html"> | ||
<link rel="import" href="../bower_components/paper-toolbar/paper-toolbar.html"> | ||
|
||
<!-- Uncomment next block to enable Service Worker Support (2/2) --> | ||
|
||
<link rel="import" href="../bower_components/platinum-sw/platinum-sw-cache.html"> | ||
<link rel="import" href="../bower_components/platinum-sw/platinum-sw-register.html"> | ||
|
||
|
||
<!-- Configure your routes here --> | ||
<link rel="import" href="routing.html"> | ||
|
||
<!-- Add your elements here --> | ||
<link rel="import" href="../styles/app-theme.html"> | ||
<link rel="import" href="my-greeting/my-greeting.html"> | ||
<link rel="import" href="my-list/my-list.html"> |
46 changes: 46 additions & 0 deletions
46
ep19-go-offline/polymer-starter-kit/app/elements/my-greeting/my-greeting.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
--> | ||
|
||
<dom-module id="my-greeting"> | ||
<style> | ||
:host { | ||
display: block; | ||
} | ||
|
||
@media (max-width: 600px) { | ||
h1.paper-font-display1 { | ||
font-size: 24px; | ||
} | ||
} | ||
</style> | ||
<template> | ||
<h1 class="paper-font-display1"><span>{{greeting}}</span></h1> | ||
<span class="paper-font-body2">Update text to change the greeting.</span> | ||
<!-- Listens for "input" event and sets greeting to <input>.value --> | ||
<input class="paper-font-body2" value="{{greeting::input}}"> | ||
</template> | ||
|
||
<script> | ||
(function() { | ||
Polymer({ | ||
is: 'my-greeting', | ||
|
||
properties: { | ||
greeting: { | ||
type: String, | ||
value: 'Welcome!', | ||
notify: true | ||
} | ||
} | ||
}); | ||
})(); | ||
</script> | ||
|
||
</dom-module> |
49 changes: 49 additions & 0 deletions
49
ep19-go-offline/polymer-starter-kit/app/elements/my-list/my-list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
--> | ||
|
||
<dom-module id="my-list"> | ||
<style> | ||
:host { | ||
display: block; | ||
} | ||
</style> | ||
<template> | ||
<ul> | ||
<template is="dom-repeat" items="{{items}}"> | ||
<li><span class="paper-font-body1">{{item}}</span></li> | ||
</template> | ||
</ul> | ||
</template> | ||
|
||
<script> | ||
(function () { | ||
Polymer({ | ||
is: 'my-list', | ||
properties: { | ||
items: { | ||
type: Array, | ||
notify: true, | ||
} | ||
}, | ||
ready: function() { | ||
this.items = [ | ||
'Responsive Web App boilerplate', | ||
'Iron Elements and Paper Elements', | ||
'End-to-end Build Tooling (including Vulcanize)', | ||
'Unit testing with Web Component Tester', | ||
'Routing with Page.js', | ||
'Offline support with the Platinum Service Worker Elements' | ||
]; | ||
} | ||
}); | ||
})(); | ||
</script> | ||
|
||
</dom-module> |
41 changes: 41 additions & 0 deletions
41
ep19-go-offline/polymer-starter-kit/app/elements/routing.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | ||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | ||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | ||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | ||
Code distributed by Google as part of the polymer project is also | ||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | ||
--> | ||
|
||
<script src="../../bower_components/page/page.js"></script> | ||
<script> | ||
window.addEventListener('WebComponentsReady', function() { | ||
|
||
// We use Page.js for routing. This is a Micro | ||
// client-side router inspired by the Express router | ||
// More info: https://visionmedia.github.io/page.js/ | ||
page('/', function () { | ||
app.route = 'home'; | ||
}); | ||
|
||
page('/users', function () { | ||
app.route = 'users'; | ||
}); | ||
|
||
page('/users/:name', function (data) { | ||
app.route = 'user-info'; | ||
app.params = data.params; | ||
}); | ||
|
||
page('/contact', function () { | ||
app.route = 'contact'; | ||
}); | ||
|
||
// add #! before urls | ||
page({ | ||
hashbang: true | ||
}); | ||
|
||
}); | ||
</script> |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.79 KB
ep19-go-offline/polymer-starter-kit/app/images/touch/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.97 KB
ep19-go-offline/polymer-starter-kit/app/images/touch/chrome-touch-icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.02 KB
ep19-go-offline/polymer-starter-kit/app/images/touch/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.36 KB
ep19-go-offline/polymer-starter-kit/app/images/touch/ms-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.36 KB
...line/polymer-starter-kit/app/images/touch/ms-touch-icon-144x144-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.