This file contains hidden or 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
1) A single shared module between pages, manually specified | |
2) N shared modules between pages, manually specified | |
3) Automatically generate iframes to prime the cache | |
4) http2/spdy support | |
5) No need to specify modules, we figure out a layout for your app automatically based on endpoints. | |
6) Generate a pure-HTML5(No webcomponents) index.html w/ styles from polymer elements for an extremely fast time to first paint. This page should have custom element tags so as to progressively enhance when polymer loads. |
This file contains hidden or 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
<paper-tabs scrollable id="active" attr-for-selected="value" selectable selected="{{active}}"> | |
<template is="dom-repeat" items="[[docElements]]"> | |
<paper-tab value="[[item.is]]">[[item.is]]</paper-tab> | |
</template> | |
<template is="dom-repeat" items="[[docBehaviors]]"> | |
<paper-tab value="[[item.is]]">[[item.is]]</paper-tab> | |
</template> | |
</paper-tabs> |
This file contains hidden or 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
(function(){ | |
var SocketConnection = function() { | |
this.connection = instanceConnection(); | |
}; | |
// This is a globally shared connection. | |
var singletonConnection = null; | |
window.SocketConnectionBehavior = { |
This file contains hidden or 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
npm install -g git+ssh://[email protected]:PolymerLabs/web-component-shards.git | |
git clone https://github.com/PolymerElements/paper-button.git | |
cd paper-button | |
git checkout sampleShards | |
bower install | |
web-component-shards -e index.html -e paper-button.html | |
cd dist | |
http-server | |
# Open up a browser and check out the functional iron-component-page. |
This file contains hidden or 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
function ErrorSwallowingFSResolver(config) { | |
FSResolver.call(this, config); | |
} | |
ErrorSwallowingFSResolver.prototype = Object.create(FSResolver.prototype); | |
ErrorSwallowingFSResolver.prototype.accept = function(uri, deferred) { | |
var reject = deferred.reject; | |
deferred.reject = function(arg) { | |
deferred.resolve(""); |
This file contains hidden or 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
Polymer.Pd = { | |
properties: { | |
pressed: { | |
type: Boolean, | |
readOnly: !0, | |
value: !1, | |
reflectToAttribute: !0, | |
observer: "_pressedChanged" | |
}, | |
toggles: { |
This file contains hidden or 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
Polymer.fc = { | |
properties: { | |
_elevation: { | |
type: Number | |
} | |
}, | |
observers: ["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)"], | |
hostAttributes: { | |
role: "button", | |
tabindex: "0" |
This file contains hidden or 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
// BowerJSON represents a bower.json file | |
type BowerJSON struct { | |
Dependencies *map[string]string `json:"dependencies, omitempty"` | |
DevDependencies *map[string]string `json:"devDependencies, omitempty"` | |
} |
This file contains hidden or 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
// findBodyElements returns a document fragment containing | |
// all elements that should be moved into body from a document-order | |
// array of elements in head, searching from startIndex to endIndex | |
function findBodyElements(flatHead, startIndex, endIndex) { | |
if (endIndex === -1) { | |
endIndex = flatHead.length; | |
} | |
var container = dom5.constructors.fragment(); | |
for (var headidx = start, el; headidx < endIndex; headidx++) { | |
el = flatHead[headidx]; |