1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2015-08-03 20:09:54 -04:00
parent 231cb007b1
commit 0b450116a5
22 changed files with 141 additions and 108 deletions

View file

@ -2995,6 +2995,11 @@
}); });
}; };
self.getChannels = function (query) {
return self.getJSON(self.getUrl("Channels", query || {}));
};
self.getUserViews = function (options, userId) { self.getUserViews = function (options, userId) {
options = options || {}; options = options || {};

View file

@ -27,14 +27,14 @@
"web-component-tester": "*", "web-component-tester": "*",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"homepage": "https://github.com/PolymerElements/iron-resizable-behavior", "homepage": "https://github.com/polymerelements/iron-resizable-behavior",
"_release": "1.0.2", "_release": "1.0.2",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.0.2", "tag": "v1.0.2",
"commit": "85de8ba28be2bf17c81d6436ef1119022b003674" "commit": "85de8ba28be2bf17c81d6436ef1119022b003674"
}, },
"_source": "git://github.com/PolymerElements/iron-resizable-behavior.git", "_source": "git://github.com/polymerelements/iron-resizable-behavior.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "PolymerElements/iron-resizable-behavior" "_originalSource": "polymerelements/iron-resizable-behavior"
} }

View file

@ -34,7 +34,7 @@
"tag": "v1.0.11", "tag": "v1.0.11",
"commit": "347542e9ebe3e6e5f0830ee10e1c20c12956ff2c" "commit": "347542e9ebe3e6e5f0830ee10e1c20c12956ff2c"
}, },
"_source": "git://github.com/PolymerElements/paper-styles.git", "_source": "git://github.com/PolymerLabs/paper-styles.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "PolymerElements/paper-styles" "_originalSource": "PolymerLabs/paper-styles"
} }

View file

@ -1,7 +1,7 @@
{ {
"name": "webcomponentsjs", "name": "webcomponentsjs",
"main": "webcomponents.js", "main": "webcomponents.js",
"version": "0.7.7", "version": "0.7.8",
"homepage": "http://webcomponents.org", "homepage": "http://webcomponents.org",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"
@ -15,11 +15,11 @@
], ],
"license": "BSD", "license": "BSD",
"ignore": [], "ignore": [],
"_release": "0.7.7", "_release": "0.7.8",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v0.7.7", "tag": "v0.7.8",
"commit": "274327b631eeb8b48d49702e1f1570d5ce7fb93d" "commit": "efaefb6584770f596f75f4e3ed3fda3ffc4bd780"
}, },
"_source": "git://github.com/Polymer/webcomponentsjs.git", "_source": "git://github.com/Polymer/webcomponentsjs.git",
"_target": "^0.7.2", "_target": "^0.7.2",

View file

@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also * 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 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
// @version 0.7.7 // @version 0.7.8
if (typeof WeakMap === "undefined") { if (typeof WeakMap === "undefined") {
(function() { (function() {
var defineProperty = Object.defineProperty; var defineProperty = Object.defineProperty;
@ -601,6 +601,7 @@ window.CustomElements.addModule(function(scope) {
} }
scope.watchShadow = watchShadow; scope.watchShadow = watchShadow;
scope.upgradeDocumentTree = upgradeDocumentTree; scope.upgradeDocumentTree = upgradeDocumentTree;
scope.upgradeDocument = upgradeDocument;
scope.upgradeSubtree = addedSubtree; scope.upgradeSubtree = addedSubtree;
scope.upgradeAll = addedNode; scope.upgradeAll = addedNode;
scope.attached = attached; scope.attached = attached;
@ -612,11 +613,9 @@ window.CustomElements.addModule(function(scope) {
function upgrade(node, isAttached) { function upgrade(node, isAttached) {
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) { if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
var is = node.getAttribute("is"); var is = node.getAttribute("is");
var definition = scope.getRegisteredDefinition(is || node.localName); var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);
if (definition) { if (definition) {
if (is && definition.tag == node.localName) { if (is && definition.tag == node.localName || !is && !definition.extends) {
return upgradeWithDefinition(node, definition, isAttached);
} else if (!is && !definition.extends) {
return upgradeWithDefinition(node, definition, isAttached); return upgradeWithDefinition(node, definition, isAttached);
} }
} }
@ -910,6 +909,7 @@ window.CustomElements.addModule(function(scope) {
initializeModules(); initializeModules();
} }
var upgradeDocumentTree = scope.upgradeDocumentTree; var upgradeDocumentTree = scope.upgradeDocumentTree;
var upgradeDocument = scope.upgradeDocument;
if (!window.wrap) { if (!window.wrap) {
if (window.ShadowDOMPolyfill) { if (window.ShadowDOMPolyfill) {
window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded; window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded;
@ -920,13 +920,15 @@ window.CustomElements.addModule(function(scope) {
}; };
} }
} }
if (window.HTMLImports) {
window.HTMLImports.__importsParsingHook = function(elt) {
if (elt.import) {
upgradeDocument(wrap(elt.import));
}
};
}
function bootstrap() { function bootstrap() {
upgradeDocumentTree(window.wrap(document)); upgradeDocumentTree(window.wrap(document));
if (window.HTMLImports) {
window.HTMLImports.__importsParsingHook = function(elt) {
upgradeDocumentTree(window.wrap(elt.import));
};
}
window.CustomElements.ready = true; window.CustomElements.ready = true;
setTimeout(function() { setTimeout(function() {
window.CustomElements.readyTime = Date.now(); window.CustomElements.readyTime = Date.now();

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also * 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 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
// @version 0.7.7 // @version 0.7.8
if (typeof WeakMap === "undefined") { if (typeof WeakMap === "undefined") {
(function() { (function() {
var defineProperty = Object.defineProperty; var defineProperty = Object.defineProperty;
@ -692,12 +692,12 @@ window.HTMLImports.addModule(function(scope) {
var path = scope.path; var path = scope.path;
var rootDocument = scope.rootDocument; var rootDocument = scope.rootDocument;
var flags = scope.flags; var flags = scope.flags;
var isIE = scope.isIE; var isIE11OrOlder = scope.isIE11OrOlder;
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE; var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]"; var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]";
var importParser = { var importParser = {
documentSelectors: IMPORT_SELECTOR, documentSelectors: IMPORT_SELECTOR,
importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]", "style", "script:not([type])", 'script[type="application/javascript"]', 'script[type="text/javascript"]' ].join(","), importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]:not([type])", "style:not([type])", "script:not([type])", 'script[type="application/javascript"]', 'script[type="text/javascript"]' ].join(","),
map: { map: {
link: "parseLink", link: "parseLink",
script: "parseScript", script: "parseScript",
@ -748,6 +748,7 @@ window.HTMLImports.addModule(function(scope) {
} }
}, },
parseImport: function(elt) { parseImport: function(elt) {
elt.import = elt.__doc;
if (window.HTMLImports.__importsParsingHook) { if (window.HTMLImports.__importsParsingHook) {
window.HTMLImports.__importsParsingHook(elt); window.HTMLImports.__importsParsingHook(elt);
} }
@ -810,6 +811,8 @@ window.HTMLImports.addModule(function(scope) {
trackElement: function(elt, callback) { trackElement: function(elt, callback) {
var self = this; var self = this;
var done = function(e) { var done = function(e) {
elt.removeEventListener("load", done);
elt.removeEventListener("error", done);
if (callback) { if (callback) {
callback(e); callback(e);
} }
@ -818,7 +821,7 @@ window.HTMLImports.addModule(function(scope) {
}; };
elt.addEventListener("load", done); elt.addEventListener("load", done);
elt.addEventListener("error", done); elt.addEventListener("error", done);
if (isIE && elt.localName === "style") { if (isIE11OrOlder && elt.localName === "style") {
var fakeLoad = false; var fakeLoad = false;
if (elt.textContent.indexOf("@import") == -1) { if (elt.textContent.indexOf("@import") == -1) {
fakeLoad = true; fakeLoad = true;
@ -865,7 +868,7 @@ window.HTMLImports.addModule(function(scope) {
for (var i = 0, l = nodes.length, p = 0, n; i < l && (n = nodes[i]); i++) { for (var i = 0, l = nodes.length, p = 0, n; i < l && (n = nodes[i]); i++) {
if (!this.isParsed(n)) { if (!this.isParsed(n)) {
if (this.hasResource(n)) { if (this.hasResource(n)) {
return nodeIsImport(n) ? this.nextToParseInDoc(n.import, n) : n; return nodeIsImport(n) ? this.nextToParseInDoc(n.__doc, n) : n;
} else { } else {
return; return;
} }
@ -888,7 +891,7 @@ window.HTMLImports.addModule(function(scope) {
return this.dynamicElements.indexOf(elt) >= 0; return this.dynamicElements.indexOf(elt) >= 0;
}, },
hasResource: function(node) { hasResource: function(node) {
if (nodeIsImport(node) && node.import === undefined) { if (nodeIsImport(node) && node.__doc === undefined) {
return false; return false;
} }
return true; return true;
@ -962,7 +965,7 @@ window.HTMLImports.addModule(function(scope) {
} }
this.documents[url] = doc; this.documents[url] = doc;
} }
elt.import = doc; elt.__doc = doc;
} }
parser.parseNext(); parser.parseNext();
}, },

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also * 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 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
// @version 0.7.7 // @version 0.7.8
if (typeof WeakMap === "undefined") { if (typeof WeakMap === "undefined") {
(function() { (function() {
var defineProperty = Object.defineProperty; var defineProperty = Object.defineProperty;

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also * 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 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
// @version 0.7.7 // @version 0.7.8
if (typeof WeakMap === "undefined") { if (typeof WeakMap === "undefined") {
(function() { (function() {
var defineProperty = Object.defineProperty; var defineProperty = Object.defineProperty;

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
{ {
"name": "webcomponentsjs", "name": "webcomponentsjs",
"main": "webcomponents.js", "main": "webcomponents.js",
"version": "0.7.7", "version": "0.7.8",
"homepage": "http://webcomponents.org", "homepage": "http://webcomponents.org",
"authors": [ "authors": [
"The Polymer Authors" "The Polymer Authors"

View file

@ -1,6 +1,6 @@
{ {
"name": "webcomponents.js", "name": "webcomponents.js",
"version": "0.7.7", "version": "0.7.8",
"description": "webcomponents.js", "description": "webcomponents.js",
"main": "webcomponents.js", "main": "webcomponents.js",
"directories": { "directories": {

View file

@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also * 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 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
// @version 0.7.7 // @version 0.7.8
window.WebComponents = window.WebComponents || {}; window.WebComponents = window.WebComponents || {};
(function(scope) { (function(scope) {
@ -1260,12 +1260,12 @@ window.HTMLImports.addModule(function(scope) {
var path = scope.path; var path = scope.path;
var rootDocument = scope.rootDocument; var rootDocument = scope.rootDocument;
var flags = scope.flags; var flags = scope.flags;
var isIE = scope.isIE; var isIE11OrOlder = scope.isIE11OrOlder;
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE; var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]"; var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]";
var importParser = { var importParser = {
documentSelectors: IMPORT_SELECTOR, documentSelectors: IMPORT_SELECTOR,
importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]", "style", "script:not([type])", 'script[type="application/javascript"]', 'script[type="text/javascript"]' ].join(","), importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]:not([type])", "style:not([type])", "script:not([type])", 'script[type="application/javascript"]', 'script[type="text/javascript"]' ].join(","),
map: { map: {
link: "parseLink", link: "parseLink",
script: "parseScript", script: "parseScript",
@ -1316,6 +1316,7 @@ window.HTMLImports.addModule(function(scope) {
} }
}, },
parseImport: function(elt) { parseImport: function(elt) {
elt.import = elt.__doc;
if (window.HTMLImports.__importsParsingHook) { if (window.HTMLImports.__importsParsingHook) {
window.HTMLImports.__importsParsingHook(elt); window.HTMLImports.__importsParsingHook(elt);
} }
@ -1378,6 +1379,8 @@ window.HTMLImports.addModule(function(scope) {
trackElement: function(elt, callback) { trackElement: function(elt, callback) {
var self = this; var self = this;
var done = function(e) { var done = function(e) {
elt.removeEventListener("load", done);
elt.removeEventListener("error", done);
if (callback) { if (callback) {
callback(e); callback(e);
} }
@ -1386,7 +1389,7 @@ window.HTMLImports.addModule(function(scope) {
}; };
elt.addEventListener("load", done); elt.addEventListener("load", done);
elt.addEventListener("error", done); elt.addEventListener("error", done);
if (isIE && elt.localName === "style") { if (isIE11OrOlder && elt.localName === "style") {
var fakeLoad = false; var fakeLoad = false;
if (elt.textContent.indexOf("@import") == -1) { if (elt.textContent.indexOf("@import") == -1) {
fakeLoad = true; fakeLoad = true;
@ -1433,7 +1436,7 @@ window.HTMLImports.addModule(function(scope) {
for (var i = 0, l = nodes.length, p = 0, n; i < l && (n = nodes[i]); i++) { for (var i = 0, l = nodes.length, p = 0, n; i < l && (n = nodes[i]); i++) {
if (!this.isParsed(n)) { if (!this.isParsed(n)) {
if (this.hasResource(n)) { if (this.hasResource(n)) {
return nodeIsImport(n) ? this.nextToParseInDoc(n.import, n) : n; return nodeIsImport(n) ? this.nextToParseInDoc(n.__doc, n) : n;
} else { } else {
return; return;
} }
@ -1456,7 +1459,7 @@ window.HTMLImports.addModule(function(scope) {
return this.dynamicElements.indexOf(elt) >= 0; return this.dynamicElements.indexOf(elt) >= 0;
}, },
hasResource: function(node) { hasResource: function(node) {
if (nodeIsImport(node) && node.import === undefined) { if (nodeIsImport(node) && node.__doc === undefined) {
return false; return false;
} }
return true; return true;
@ -1530,7 +1533,7 @@ window.HTMLImports.addModule(function(scope) {
} }
this.documents[url] = doc; this.documents[url] = doc;
} }
elt.import = doc; elt.__doc = doc;
} }
parser.parseNext(); parser.parseNext();
}, },
@ -1912,6 +1915,7 @@ window.CustomElements.addModule(function(scope) {
} }
scope.watchShadow = watchShadow; scope.watchShadow = watchShadow;
scope.upgradeDocumentTree = upgradeDocumentTree; scope.upgradeDocumentTree = upgradeDocumentTree;
scope.upgradeDocument = upgradeDocument;
scope.upgradeSubtree = addedSubtree; scope.upgradeSubtree = addedSubtree;
scope.upgradeAll = addedNode; scope.upgradeAll = addedNode;
scope.attached = attached; scope.attached = attached;
@ -1923,11 +1927,9 @@ window.CustomElements.addModule(function(scope) {
function upgrade(node, isAttached) { function upgrade(node, isAttached) {
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) { if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
var is = node.getAttribute("is"); var is = node.getAttribute("is");
var definition = scope.getRegisteredDefinition(is || node.localName); var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);
if (definition) { if (definition) {
if (is && definition.tag == node.localName) { if (is && definition.tag == node.localName || !is && !definition.extends) {
return upgradeWithDefinition(node, definition, isAttached);
} else if (!is && !definition.extends) {
return upgradeWithDefinition(node, definition, isAttached); return upgradeWithDefinition(node, definition, isAttached);
} }
} }
@ -2221,6 +2223,7 @@ window.CustomElements.addModule(function(scope) {
initializeModules(); initializeModules();
} }
var upgradeDocumentTree = scope.upgradeDocumentTree; var upgradeDocumentTree = scope.upgradeDocumentTree;
var upgradeDocument = scope.upgradeDocument;
if (!window.wrap) { if (!window.wrap) {
if (window.ShadowDOMPolyfill) { if (window.ShadowDOMPolyfill) {
window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded; window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded;
@ -2231,13 +2234,15 @@ window.CustomElements.addModule(function(scope) {
}; };
} }
} }
if (window.HTMLImports) {
window.HTMLImports.__importsParsingHook = function(elt) {
if (elt.import) {
upgradeDocument(wrap(elt.import));
}
};
}
function bootstrap() { function bootstrap() {
upgradeDocumentTree(window.wrap(document)); upgradeDocumentTree(window.wrap(document));
if (window.HTMLImports) {
window.HTMLImports.__importsParsingHook = function(elt) {
upgradeDocumentTree(window.wrap(elt.import));
};
}
window.CustomElements.ready = true; window.CustomElements.ready = true;
setTimeout(function() { setTimeout(function() {
window.CustomElements.readyTime = Date.now(); window.CustomElements.readyTime = Date.now();
@ -2279,6 +2284,7 @@ window.CustomElements.addModule(function(scope) {
if (typeof HTMLTemplateElement === "undefined") { if (typeof HTMLTemplateElement === "undefined") {
(function() { (function() {
var TEMPLATE_TAG = "template"; var TEMPLATE_TAG = "template";
var contentDoc = document.implementation.createHTMLDocument("template");
HTMLTemplateElement = function() {}; HTMLTemplateElement = function() {};
HTMLTemplateElement.prototype = Object.create(HTMLElement.prototype); HTMLTemplateElement.prototype = Object.create(HTMLElement.prototype);
HTMLTemplateElement.decorate = function(template) { HTMLTemplateElement.decorate = function(template) {
@ -2289,6 +2295,25 @@ if (typeof HTMLTemplateElement === "undefined") {
while (child = template.firstChild) { while (child = template.firstChild) {
template.content.appendChild(child); template.content.appendChild(child);
} }
Object.defineProperty(template, "innerHTML", {
get: function() {
var o = "";
for (var e = this.content.firstChild; e; e = e.nextSibling) {
o += e.outerHTML || escapeData(e.data);
}
return o;
},
set: function(text) {
contentDoc.body.innerHTML = text;
while (this.content.firstChild) {
this.content.removeChild(this.content.firstChild);
}
while (contentDoc.body.firstChild) {
this.content.appendChild(contentDoc.body.firstChild);
}
},
configurable: true
});
}; };
HTMLTemplateElement.bootstrap = function(doc) { HTMLTemplateElement.bootstrap = function(doc) {
var templates = doc.querySelectorAll(TEMPLATE_TAG); var templates = doc.querySelectorAll(TEMPLATE_TAG);
@ -2308,6 +2333,25 @@ if (typeof HTMLTemplateElement === "undefined") {
} }
return el; return el;
}; };
var escapeDataRegExp = /[&\u00A0<>]/g;
function escapeReplace(c) {
switch (c) {
case "&":
return "&amp;";
case "<":
return "&lt;";
case ">":
return "&gt;";
case " ":
return "&nbsp;";
}
}
function escapeData(s) {
return s.replace(escapeDataRegExp, escapeReplace);
}
})(); })();
} }

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@
* Code distributed by Google as part of the polymer project is also * 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 * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/ */
// @version 0.7.7 // @version 0.7.8
window.WebComponents = window.WebComponents || {}; window.WebComponents = window.WebComponents || {};
(function(scope) { (function(scope) {
@ -6029,12 +6029,12 @@ window.HTMLImports.addModule(function(scope) {
var path = scope.path; var path = scope.path;
var rootDocument = scope.rootDocument; var rootDocument = scope.rootDocument;
var flags = scope.flags; var flags = scope.flags;
var isIE = scope.isIE; var isIE11OrOlder = scope.isIE11OrOlder;
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE; var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]"; var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]";
var importParser = { var importParser = {
documentSelectors: IMPORT_SELECTOR, documentSelectors: IMPORT_SELECTOR,
importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]", "style", "script:not([type])", 'script[type="application/javascript"]', 'script[type="text/javascript"]' ].join(","), importsSelectors: [ IMPORT_SELECTOR, "link[rel=stylesheet]:not([type])", "style:not([type])", "script:not([type])", 'script[type="application/javascript"]', 'script[type="text/javascript"]' ].join(","),
map: { map: {
link: "parseLink", link: "parseLink",
script: "parseScript", script: "parseScript",
@ -6085,6 +6085,7 @@ window.HTMLImports.addModule(function(scope) {
} }
}, },
parseImport: function(elt) { parseImport: function(elt) {
elt.import = elt.__doc;
if (window.HTMLImports.__importsParsingHook) { if (window.HTMLImports.__importsParsingHook) {
window.HTMLImports.__importsParsingHook(elt); window.HTMLImports.__importsParsingHook(elt);
} }
@ -6147,6 +6148,8 @@ window.HTMLImports.addModule(function(scope) {
trackElement: function(elt, callback) { trackElement: function(elt, callback) {
var self = this; var self = this;
var done = function(e) { var done = function(e) {
elt.removeEventListener("load", done);
elt.removeEventListener("error", done);
if (callback) { if (callback) {
callback(e); callback(e);
} }
@ -6155,7 +6158,7 @@ window.HTMLImports.addModule(function(scope) {
}; };
elt.addEventListener("load", done); elt.addEventListener("load", done);
elt.addEventListener("error", done); elt.addEventListener("error", done);
if (isIE && elt.localName === "style") { if (isIE11OrOlder && elt.localName === "style") {
var fakeLoad = false; var fakeLoad = false;
if (elt.textContent.indexOf("@import") == -1) { if (elt.textContent.indexOf("@import") == -1) {
fakeLoad = true; fakeLoad = true;
@ -6202,7 +6205,7 @@ window.HTMLImports.addModule(function(scope) {
for (var i = 0, l = nodes.length, p = 0, n; i < l && (n = nodes[i]); i++) { for (var i = 0, l = nodes.length, p = 0, n; i < l && (n = nodes[i]); i++) {
if (!this.isParsed(n)) { if (!this.isParsed(n)) {
if (this.hasResource(n)) { if (this.hasResource(n)) {
return nodeIsImport(n) ? this.nextToParseInDoc(n.import, n) : n; return nodeIsImport(n) ? this.nextToParseInDoc(n.__doc, n) : n;
} else { } else {
return; return;
} }
@ -6225,7 +6228,7 @@ window.HTMLImports.addModule(function(scope) {
return this.dynamicElements.indexOf(elt) >= 0; return this.dynamicElements.indexOf(elt) >= 0;
}, },
hasResource: function(node) { hasResource: function(node) {
if (nodeIsImport(node) && node.import === undefined) { if (nodeIsImport(node) && node.__doc === undefined) {
return false; return false;
} }
return true; return true;
@ -6299,7 +6302,7 @@ window.HTMLImports.addModule(function(scope) {
} }
this.documents[url] = doc; this.documents[url] = doc;
} }
elt.import = doc; elt.__doc = doc;
} }
parser.parseNext(); parser.parseNext();
}, },
@ -6681,6 +6684,7 @@ window.CustomElements.addModule(function(scope) {
} }
scope.watchShadow = watchShadow; scope.watchShadow = watchShadow;
scope.upgradeDocumentTree = upgradeDocumentTree; scope.upgradeDocumentTree = upgradeDocumentTree;
scope.upgradeDocument = upgradeDocument;
scope.upgradeSubtree = addedSubtree; scope.upgradeSubtree = addedSubtree;
scope.upgradeAll = addedNode; scope.upgradeAll = addedNode;
scope.attached = attached; scope.attached = attached;
@ -6692,11 +6696,9 @@ window.CustomElements.addModule(function(scope) {
function upgrade(node, isAttached) { function upgrade(node, isAttached) {
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) { if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
var is = node.getAttribute("is"); var is = node.getAttribute("is");
var definition = scope.getRegisteredDefinition(is || node.localName); var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);
if (definition) { if (definition) {
if (is && definition.tag == node.localName) { if (is && definition.tag == node.localName || !is && !definition.extends) {
return upgradeWithDefinition(node, definition, isAttached);
} else if (!is && !definition.extends) {
return upgradeWithDefinition(node, definition, isAttached); return upgradeWithDefinition(node, definition, isAttached);
} }
} }
@ -6990,6 +6992,7 @@ window.CustomElements.addModule(function(scope) {
initializeModules(); initializeModules();
} }
var upgradeDocumentTree = scope.upgradeDocumentTree; var upgradeDocumentTree = scope.upgradeDocumentTree;
var upgradeDocument = scope.upgradeDocument;
if (!window.wrap) { if (!window.wrap) {
if (window.ShadowDOMPolyfill) { if (window.ShadowDOMPolyfill) {
window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded; window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded;
@ -7000,13 +7003,15 @@ window.CustomElements.addModule(function(scope) {
}; };
} }
} }
if (window.HTMLImports) {
window.HTMLImports.__importsParsingHook = function(elt) {
if (elt.import) {
upgradeDocument(wrap(elt.import));
}
};
}
function bootstrap() { function bootstrap() {
upgradeDocumentTree(window.wrap(document)); upgradeDocumentTree(window.wrap(document));
if (window.HTMLImports) {
window.HTMLImports.__importsParsingHook = function(elt) {
upgradeDocumentTree(window.wrap(elt.import));
};
}
window.CustomElements.ready = true; window.CustomElements.ready = true;
setTimeout(function() { setTimeout(function() {
window.CustomElements.readyTime = Date.now(); window.CustomElements.readyTime = Date.now();
@ -7088,35 +7093,6 @@ window.CustomElements.addModule(function(scope) {
}; };
}(); }();
} }
var elementDeclarations = [];
var polymerStub = function(name, dictionary) {
if (typeof name !== "string" && arguments.length === 1) {
Array.prototype.push.call(arguments, document._currentScript);
}
elementDeclarations.push(arguments);
};
window.Polymer = polymerStub;
scope.consumeDeclarations = function(callback) {
scope.consumeDeclarations = function() {
throw "Possible attempt to load Polymer twice";
};
if (callback) {
callback(elementDeclarations);
}
elementDeclarations = null;
};
function installPolymerWarning() {
if (window.Polymer === polymerStub) {
window.Polymer = function() {
throw new Error("You tried to use polymer without loading it first. To " + 'load polymer, <link rel="import" href="' + 'components/polymer/polymer.html">');
};
}
}
if (HTMLImports.useNative) {
installPolymerWarning();
} else {
window.addEventListener("DOMContentLoaded", installPolymerWarning);
}
})(window.WebComponents); })(window.WebComponents);
(function(scope) { (function(scope) {

File diff suppressed because one or more lines are too long

View file

@ -84,7 +84,7 @@
getEndpointInfo().done(function (endpoint) { getEndpointInfo().done(function (endpoint) {
if (endpoint.IsLocal || endpoint.IsInNetwork) { if (endpoint.IsInNetwork) {
ApiClient.getPublicSystemInfo().done(function (info) { ApiClient.getPublicSystemInfo().done(function (info) {
message.serverAddress = info.LocalAddress; message.serverAddress = info.LocalAddress;

View file

@ -350,7 +350,7 @@
getEndpointInfo().done(function (endpoint) { getEndpointInfo().done(function (endpoint) {
if (endpoint.IsLocal || endpoint.IsInNetwork) { if (endpoint.IsInNetwork) {
ApiClient.getPublicSystemInfo().done(function (info) { ApiClient.getPublicSystemInfo().done(function (info) {
message.serverAddress = info.LocalAddress; message.serverAddress = info.LocalAddress;

View file

@ -62,7 +62,9 @@
MinEndDate: date.toISOString(), MinEndDate: date.toISOString(),
channelIds: channelsResult.Items.map(function (c) { channelIds: channelsResult.Items.map(function (c) {
return c.Id; return c.Id;
}).join(',') }).join(','),
ImageTypeLimit: 1,
EnableImageTypes: "Primary"
}).done(function (programsResult) { }).done(function (programsResult) {

View file

@ -8,7 +8,9 @@
userId: Dashboard.getCurrentUserId(), userId: Dashboard.getCurrentUserId(),
IsAiring: true, IsAiring: true,
limit: 16 limit: 16,
ImageTypeLimit: 1,
EnableImageTypes: "Primary"
}).done(function (result) { }).done(function (result) {