Skip to content

Commit

Permalink
Merge pull request #17 from Download/2.0.1
Browse files Browse the repository at this point in the history
Upgrade to Polymer 2
  • Loading branch information
Download authored Jun 15, 2017
2 parents 24b44b5 + 640f4e8 commit 486b290
Show file tree
Hide file tree
Showing 527 changed files with 67,795 additions and 119,109 deletions.
2,652 changes: 1,442 additions & 1,210 deletions README.md

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polymer-cdn",
"version": "1.8.0",
"version": "2.0.1",
"main": "polymer.js",
"homepage": "https://github.com/Download/polymer-cdn",
"authors": [
Expand Down Expand Up @@ -31,5 +31,10 @@
"google-web-components": "GoogleWebComponents/google-web-components#latest",
"molecules": "polymerelements/molecules#latest",
"polymerfire": "firebase/polymerfire#latest"
},
"resolutions": {
"app-storage": "1 - 2",
"firebase": "^4.1.1",
"webcomponentsjs": "^v1.0.0"
}
}
18 changes: 9 additions & 9 deletions lib/app-elements/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-elements",
"version": "0.10.1",
"version": "1.0.0",
"homepage": "https://github.com/PolymerElements/app-elements",
"authors": [
"The Polymer Authors"
Expand All @@ -24,17 +24,17 @@
"tests"
],
"dependencies": {
"app-layout": "PolymerElements/app-layout#^0.10.0",
"app-localize-behavior": "PolymerElements/app-localize-behavior#^0.10.0",
"app-pouchdb": "PolymerElements/app-pouchdb#^0.9.0",
"app-route": "PolymerElements/app-route#^0.9.0",
"app-storage": "PolymerElements/app-storage#^0.9.0"
"app-layout": "PolymerElements/app-layout#^1.0.0",
"app-localize-behavior": "PolymerElements/app-localize-behavior#^1.0.0",
"app-pouchdb": "PolymerElements/app-pouchdb#^1.0.0",
"app-route": "PolymerElements/app-route#^1.0.0",
"app-storage": "PolymerElements/app-storage#^1.0.0"
},
"_release": "0.10.1",
"_release": "1.0.0",
"_resolution": {
"type": "version",
"tag": "v0.10.1",
"commit": "e06b2f179425b8b2c4361d9f54186c16d9024251"
"tag": "v1.0.0",
"commit": "fd14669feff7d176683cb0eba1b350d4159816b4"
},
"_source": "git://github.com/polymerelements/app-elements.git",
"_target": "*",
Expand Down
12 changes: 6 additions & 6 deletions lib/app-elements/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-elements",
"version": "0.10.1",
"version": "1.0.0",
"homepage": "https://github.com/PolymerElements/app-elements",
"authors": [
"The Polymer Authors"
Expand All @@ -24,10 +24,10 @@
"tests"
],
"dependencies": {
"app-layout": "PolymerElements/app-layout#^0.10.0",
"app-localize-behavior": "PolymerElements/app-localize-behavior#^0.10.0",
"app-pouchdb": "PolymerElements/app-pouchdb#^0.9.0",
"app-route": "PolymerElements/app-route#^0.9.0",
"app-storage": "PolymerElements/app-storage#^0.9.0"
"app-layout": "PolymerElements/app-layout#^1.0.0",
"app-localize-behavior": "PolymerElements/app-localize-behavior#^1.0.0",
"app-pouchdb": "PolymerElements/app-pouchdb#^1.0.0",
"app-route": "PolymerElements/app-route#^1.0.0",
"app-storage": "PolymerElements/app-storage#^1.0.0"
}
}
13 changes: 6 additions & 7 deletions lib/app-layout/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-layout",
"version": "0.10.7",
"version": "1.0.1",
"description": "A set of layout elements for your app",
"authors": [
"The Polymer Authors"
Expand Down Expand Up @@ -37,18 +37,17 @@
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"paper-tabs": "PolymerElements/paper-tabs#^1.0.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
"web-component-tester": "^4.0.0"
},
"ignore": [],
"private": true,
"_release": "0.10.7",
"_release": "1.0.1",
"_resolution": {
"type": "version",
"tag": "v0.10.7",
"commit": "a28a9ac9e5937ac1bab83939f00256d232c91b65"
"tag": "v1.0.1",
"commit": "c0385171bf9c0b0fe2946d4761c305be71a811d0"
},
"_source": "git://github.com/PolymerElements/app-layout.git",
"_target": "^0.10.0",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/app-layout"
}
4 changes: 4 additions & 0 deletions lib/app-layout/app-drawer/app-drawer.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@
@apply(--app-drawer-content-container);
}

:host([persistent]) > #contentContainer {
width: 100%;
}

:host([position=right]) > #contentContainer {
right: 0;
left: auto;
Expand Down
5 changes: 2 additions & 3 deletions lib/app-layout/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-layout",
"version": "0.10.7",
"version": "1.0.1",
"description": "A set of layout elements for your app",
"authors": [
"The Polymer Authors"
Expand Down Expand Up @@ -37,8 +37,7 @@
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
"paper-tabs": "PolymerElements/paper-tabs#^1.0.0",
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
"web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
"web-component-tester": "^4.0.0"
},
"ignore": [],
"private": true
Expand Down
4 changes: 2 additions & 2 deletions lib/app-layout/patterns/transform-navigation/x-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<!-- Nav on mobile: side nav menu -->
<paper-menu selected="{{selected}}" attr-for-selected="name">
<template is="dom-repeat" items="{{items}}">
<paper-item name="{{item}}">{{item}}</paper-item>
<paper-item name$="{{item}}">{{item}}</paper-item>
</template>
</paper-menu>

Expand All @@ -78,7 +78,7 @@
<!-- Nav on desktop: tabs -->
<paper-tabs selected="{{selected}}" attr-for-selected="name">
<template is="dom-repeat" items="{{items}}">
<paper-tab name="{{item}}">{{item}}</paper-tab>
<paper-tab name$="{{item}}">{{item}}</paper-tab>
</template>
</paper-tabs>
</app-toolbar>
Expand Down
2 changes: 1 addition & 1 deletion lib/app-layout/templates/publishing/src/blog-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@

<template is="dom-repeat" items="[[articles]]" as="category">
<!-- category page (lazy-loaded) -->
<template is="dom-if" if="[[_equal(category, [[categoryData.category.name]])]]">
<template is="dom-if" if="[[_equal(category, categoryData.category.name)]]">
<section class="category-page" name="[[category.name]]">

<!-- 2-columns grid -->
Expand Down
2 changes: 1 addition & 1 deletion lib/app-layout/templates/shrine/src/shrine-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@

<app-drawer-layout drawer-width="288px" force-narrow>
<!-- navigation drawer for small screen sizes -->
<app-drawer id="drawer" swipe-open>
<app-drawer id="drawer" swipe-open="[[smallScreen]]">
<template is="dom-if" if="[[smallScreen]]">
<app-toolbar class="profileBar">
<img class="profilePic" src="//app-layout-assets.appspot.com/assets/shrine/profile_pic.jpg" width="30" height="30">
Expand Down
10 changes: 5 additions & 5 deletions lib/app-localize-behavior/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-localize-behavior",
"version": "0.10.1",
"version": "1.0.2",
"description": "A behavior to help with internationalizating apps",
"authors": [
"The Polymer Authors"
Expand Down Expand Up @@ -35,13 +35,13 @@
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"main": "app-localize-behavior.html",
"_release": "0.10.1",
"_release": "1.0.2",
"_resolution": {
"type": "version",
"tag": "v0.10.1",
"commit": "b76ae4e288c515bf753ad027a69492a3e1a9b9ac"
"tag": "v1.0.2",
"commit": "e44c6eec7aedab95c3f8ba2b5c16630c0d1757f0"
},
"_source": "git://github.com/PolymerElements/app-localize-behavior.git",
"_target": "^0.10.0",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/app-localize-behavior"
}
22 changes: 22 additions & 0 deletions lib/app-localize-behavior/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: node_js
sudo: required
dist: trusty
node_js: stable
addons:
firefox: latest
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_script:
- npm install -g bower polylint web-component-tester
- bower install
- polylint
script:
- xvfb-run wct
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then wct -s default; fi
env:
global:
- secure: DitCRBZSh4YLwnI3LjD1ukbftNDIx6RrUjEYwHi+RMt+OCAkKiY4N0FI9PujlGEnt7tNdaD0CTzLSu+R2vpNeMaqsrjyFKzLfWH8rFRQ1dHCvaqZ1upV92yadzqLW6dhFMMre1OzhMoU0r/4b7hUV93UYAxUZU70WYzJTSjKvv+1ul97UVLMThmulvMBDrOx8cA06SF3oRfZwdxRj7zc8knUZvRmub41exfVonEVYjXdhOstHGLvXBXxmUBOjaTdNNaIT4KvvwMMmMqyQpnoB1uZimTLAy4y4ogpnf9HttPHTSZSTdWI2avk75nlqQCFFCcBier0NWT3phgkQt0CKrKs62w2RwjAIij2/ZVhsUiGLezIuOilG3k3+UYzXHb86KtLMie573XfAsX6cC/DYozJB7NfPA79MOwa/BuzTlyDJdZfKKm8+6FCmh7xQj0OcXHdqqxzTZu40bXwjz32TLDNnkHBdJNjTQrBm//TTQsxZ8BiXiw2tg4r7vXMIr3NjiRLQSLuAiHHQ2MnryhJuvAeBf1cqgjZXxy4mG6ctdus7Fc8nl9GSkY/5VmT4BMGwxbUcdd5/EDf750jwgE/sXzYABABYXd1cwvYPwT5oPsIMOs3hUC5mls+DlTk6Y57EtezsGuvA+EWeyg0rRzuv/u3rfJtOvYV7I7kA9xe/ZU=
- secure: hSCnfwhOhq23wOyRk3vBz4Gz+KBYRaCsekoW9leSQ5LRt7QYF6gESoaiqQaqQ6aL0FX4tW6DCxGStFhwvOcR8EU9J1dz04Xku21bf3haLEFGTpOyDtQwisxw2TKp6ki95FIaBsx6435UvLXn77M3c4X5YW+1N+GKfZ62A/RqP12u6q8c2Sooe70V5E4J7oQS+CW20CvdcfrlEoHgJ89hF7hyu1A5GEj0Y4TJMsNfgqBC7t3k0YMIZ8yEgXRyzxsamKVFaa69U8435Wokol4zcgyVtirXZyKyqVLGk5j5dcUlzlwx4+dpoETrtTsUcIvLyxQ/SxsqBKr3j4u8CMAmKSRkMrDI/Pf6c4Q4H9N+CVOv+VW/TAqD/CnncI9eGaTJ3Ba2HZUMmHImPgBD1a6DqHvaFLbU5J9MHWvwCRBcOwQTAVqaOppgOvmu/mpwNnq9+NJFrwR6aTDgovYzi4TMA9DdoB7O3L6fvwYjqMYRahfukBPSYX5da4DHiQV0P6wEr/Sdub/ERQSgWqXLE6e/jpl4sXBY2rII4Ao3Tc/Xg9suwHjUKvmi8axOyfm0LjE9fmGj1bkFFPKU1JIAbGOaDInbpE6fMjbgpoOeqe6hxRxdrjDn5+/odQhhhUoGNk3YIKuLSeK82lW/ZMgH0/z/NubIQjchIuKDbLqmyX7ZZ2w=
2 changes: 2 additions & 0 deletions lib/app-localize-behavior/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ thing! https://github.com/PolymerLabs/tedium/issues
-->

[![Build status](https://travis-ci.org/PolymerElements/app-localize-behavior.svg?branch=master)](https://travis-ci.org/PolymerElements/app-localize-behavior)


##Polymer.AppLocalizeBehavior

Expand Down
42 changes: 27 additions & 15 deletions lib/app-localize-behavior/app-localize-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,13 @@
},

/**
* If the element is using `pathToResources` to load an external resources
* file, fired when the file has been loaded.
* Fired after the resources have been loaded.
*
* @event app-localize-resources-loaded
*/

/**
* If the element is using `pathToResources` to load an external resources
* file, fired when the file cannot be loaded due to an error.
* Fired when the resources cannot be loaded due to an error.
*
* @event app-localize-resources-error
*/
Expand All @@ -132,16 +130,6 @@
type: Object
},

/**
* The path to the dictionary of localized messages. The format is the
* same as the `resources` array, only saved as an external json file.
* Note that using a path will populate the `resources` property, and override
* the previous data.
*/
pathToResources: {
type: String
},

/**
* Optional dictionary of user defined formats, as explained here:
* http://formatjs.io/guides/message-syntax/#custom-formats
Expand Down Expand Up @@ -173,12 +161,23 @@
localize: {
type: Function,
computed: '__computeLocalize(language, resources, formats)'
},

/**
* If true, will bubble up the event to the parents
*/
bubbleEvent: {
type: Boolean,
value: false
}
},

loadResources: function(path) {
var proto = this.constructor.prototype;

// Check if localCache exist just in case.
this.__checkLocalizationCache(proto);

// If the global ajax object has not been initialized, initialize and cache it.
var ajax = proto.__localizationCache.ajax;
if (!ajax) {
Expand Down Expand Up @@ -209,6 +208,9 @@
__computeLocalize: function(language, resources, formats) {
var proto = this.constructor.prototype;

// Check if localCache exist just in case.
this.__checkLocalizationCache(proto);

// Everytime any of the parameters change, invalidate the strings cache.
proto.__localizationCache.messages = {};

Expand Down Expand Up @@ -244,11 +246,21 @@

__onRequestResponse: function(event) {
this.resources = event.response;
this.fire('app-localize-resources-loaded');
this.fire('app-localize-resources-loaded', event, { bubbles: this.bubbleEvent});
},

__onRequestError: function(event) {
this.fire('app-localize-resources-error');
},

__checkLocalizationCache: function(proto) {
// do nothing if proto is undefined.
if(proto === undefined) return;

// In the event proto not have __localizationCache object, create it.
if(proto['__localizationCache'] === undefined) {
proto['__localizationCache'] = {requests: {}, messages: {}, ajax: null};
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/app-localize-behavior/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-localize-behavior",
"version": "0.10.1",
"version": "1.0.2",
"description": "A behavior to help with internationalizating apps",
"authors": [
"The Polymer Authors"
Expand Down
12 changes: 6 additions & 6 deletions lib/app-pouchdb/.bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-pouchdb",
"version": "0.9.5",
"version": "1.0.0",
"authors": [
"The Polymer Authors"
],
Expand All @@ -21,7 +21,7 @@
"pouchdb": "^6.1.1",
"pouchdb-find": "^0.10.0",
"promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0",
"app-storage": "polymerelements/app-storage#~0.9.0"
"app-storage": "polymerelements/app-storage#~1.0.0"
},
"devDependencies": {
"web-component-tester": "^4.0.0",
Expand All @@ -37,13 +37,13 @@
"platinum-sw": "polymerelements/platinum-sw#^1.3.0",
"note-app-elements": "polymerlabs/note-app-elements"
},
"_release": "0.9.5",
"_release": "1.0.0",
"_resolution": {
"type": "version",
"tag": "v0.9.5",
"commit": "2eaaec6b372ec3b6cb01812d772226b7dd15293a"
"tag": "v1.0.0",
"commit": "4d345603aa7ffc54acd6422fdecbb98567dc88d9"
},
"_source": "git://github.com/PolymerElements/app-pouchdb.git",
"_target": "^0.9.0",
"_target": "^1.0.0",
"_originalSource": "PolymerElements/app-pouchdb"
}
4 changes: 2 additions & 2 deletions lib/app-pouchdb/bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app-pouchdb",
"version": "0.9.5",
"version": "1.0.0",
"authors": [
"The Polymer Authors"
],
Expand All @@ -21,7 +21,7 @@
"pouchdb": "^6.1.1",
"pouchdb-find": "^0.10.0",
"promise-polyfill": "polymerlabs/promise-polyfill#^1.0.0",
"app-storage": "polymerelements/app-storage#~0.9.0"
"app-storage": "polymerelements/app-storage#~1.0.0"
},
"devDependencies": {
"web-component-tester": "^4.0.0",
Expand Down
Loading

0 comments on commit 486b290

Please sign in to comment.