mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
231cb007b1
commit
0b450116a5
22 changed files with 141 additions and 108 deletions
|
@ -2995,6 +2995,11 @@
|
|||
});
|
||||
};
|
||||
|
||||
self.getChannels = function (query) {
|
||||
|
||||
return self.getJSON(self.getUrl("Channels", query || {}));
|
||||
};
|
||||
|
||||
self.getUserViews = function (options, userId) {
|
||||
|
||||
options = options || {};
|
||||
|
|
|
@ -27,14 +27,14 @@
|
|||
"web-component-tester": "*",
|
||||
"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",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.2",
|
||||
"commit": "85de8ba28be2bf17c81d6436ef1119022b003674"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-resizable-behavior.git",
|
||||
"_source": "git://github.com/polymerelements/iron-resizable-behavior.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-resizable-behavior"
|
||||
"_originalSource": "polymerelements/iron-resizable-behavior"
|
||||
}
|
|
@ -34,7 +34,7 @@
|
|||
"tag": "v1.0.11",
|
||||
"commit": "347542e9ebe3e6e5f0830ee10e1c20c12956ff2c"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-styles.git",
|
||||
"_source": "git://github.com/PolymerLabs/paper-styles.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/paper-styles"
|
||||
"_originalSource": "PolymerLabs/paper-styles"
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.7.7",
|
||||
"version": "0.7.8",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
@ -15,11 +15,11 @@
|
|||
],
|
||||
"license": "BSD",
|
||||
"ignore": [],
|
||||
"_release": "0.7.7",
|
||||
"_release": "0.7.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.7.7",
|
||||
"commit": "274327b631eeb8b48d49702e1f1570d5ce7fb93d"
|
||||
"tag": "v0.7.8",
|
||||
"commit": "efaefb6584770f596f75f4e3ed3fda3ffc4bd780"
|
||||
},
|
||||
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
||||
"_target": "^0.7.2",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* 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
|
||||
*/
|
||||
// @version 0.7.7
|
||||
// @version 0.7.8
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -601,6 +601,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
}
|
||||
scope.watchShadow = watchShadow;
|
||||
scope.upgradeDocumentTree = upgradeDocumentTree;
|
||||
scope.upgradeDocument = upgradeDocument;
|
||||
scope.upgradeSubtree = addedSubtree;
|
||||
scope.upgradeAll = addedNode;
|
||||
scope.attached = attached;
|
||||
|
@ -612,11 +613,9 @@ window.CustomElements.addModule(function(scope) {
|
|||
function upgrade(node, isAttached) {
|
||||
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
|
||||
var is = node.getAttribute("is");
|
||||
var definition = scope.getRegisteredDefinition(is || node.localName);
|
||||
var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);
|
||||
if (definition) {
|
||||
if (is && definition.tag == node.localName) {
|
||||
return upgradeWithDefinition(node, definition, isAttached);
|
||||
} else if (!is && !definition.extends) {
|
||||
if (is && definition.tag == node.localName || !is && !definition.extends) {
|
||||
return upgradeWithDefinition(node, definition, isAttached);
|
||||
}
|
||||
}
|
||||
|
@ -910,6 +909,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
initializeModules();
|
||||
}
|
||||
var upgradeDocumentTree = scope.upgradeDocumentTree;
|
||||
var upgradeDocument = scope.upgradeDocument;
|
||||
if (!window.wrap) {
|
||||
if (window.ShadowDOMPolyfill) {
|
||||
window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded;
|
||||
|
@ -920,13 +920,15 @@ window.CustomElements.addModule(function(scope) {
|
|||
};
|
||||
}
|
||||
}
|
||||
function bootstrap() {
|
||||
upgradeDocumentTree(window.wrap(document));
|
||||
if (window.HTMLImports) {
|
||||
window.HTMLImports.__importsParsingHook = function(elt) {
|
||||
upgradeDocumentTree(window.wrap(elt.import));
|
||||
if (elt.import) {
|
||||
upgradeDocument(wrap(elt.import));
|
||||
}
|
||||
};
|
||||
}
|
||||
function bootstrap() {
|
||||
upgradeDocumentTree(window.wrap(document));
|
||||
window.CustomElements.ready = true;
|
||||
setTimeout(function() {
|
||||
window.CustomElements.readyTime = Date.now();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* 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
|
||||
*/
|
||||
// @version 0.7.7
|
||||
// @version 0.7.8
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
@ -692,12 +692,12 @@ window.HTMLImports.addModule(function(scope) {
|
|||
var path = scope.path;
|
||||
var rootDocument = scope.rootDocument;
|
||||
var flags = scope.flags;
|
||||
var isIE = scope.isIE;
|
||||
var isIE11OrOlder = scope.isIE11OrOlder;
|
||||
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
|
||||
var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]";
|
||||
var importParser = {
|
||||
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: {
|
||||
link: "parseLink",
|
||||
script: "parseScript",
|
||||
|
@ -748,6 +748,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
}
|
||||
},
|
||||
parseImport: function(elt) {
|
||||
elt.import = elt.__doc;
|
||||
if (window.HTMLImports.__importsParsingHook) {
|
||||
window.HTMLImports.__importsParsingHook(elt);
|
||||
}
|
||||
|
@ -810,6 +811,8 @@ window.HTMLImports.addModule(function(scope) {
|
|||
trackElement: function(elt, callback) {
|
||||
var self = this;
|
||||
var done = function(e) {
|
||||
elt.removeEventListener("load", done);
|
||||
elt.removeEventListener("error", done);
|
||||
if (callback) {
|
||||
callback(e);
|
||||
}
|
||||
|
@ -818,7 +821,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
};
|
||||
elt.addEventListener("load", done);
|
||||
elt.addEventListener("error", done);
|
||||
if (isIE && elt.localName === "style") {
|
||||
if (isIE11OrOlder && elt.localName === "style") {
|
||||
var fakeLoad = false;
|
||||
if (elt.textContent.indexOf("@import") == -1) {
|
||||
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++) {
|
||||
if (!this.isParsed(n)) {
|
||||
if (this.hasResource(n)) {
|
||||
return nodeIsImport(n) ? this.nextToParseInDoc(n.import, n) : n;
|
||||
return nodeIsImport(n) ? this.nextToParseInDoc(n.__doc, n) : n;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
@ -888,7 +891,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
return this.dynamicElements.indexOf(elt) >= 0;
|
||||
},
|
||||
hasResource: function(node) {
|
||||
if (nodeIsImport(node) && node.import === undefined) {
|
||||
if (nodeIsImport(node) && node.__doc === undefined) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -962,7 +965,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
}
|
||||
this.documents[url] = doc;
|
||||
}
|
||||
elt.import = doc;
|
||||
elt.__doc = doc;
|
||||
}
|
||||
parser.parseNext();
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* 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
|
||||
*/
|
||||
// @version 0.7.7
|
||||
// @version 0.7.8
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* 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
|
||||
*/
|
||||
// @version 0.7.7
|
||||
// @version 0.7.8
|
||||
if (typeof WeakMap === "undefined") {
|
||||
(function() {
|
||||
var defineProperty = Object.defineProperty;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "webcomponentsjs",
|
||||
"main": "webcomponents.js",
|
||||
"version": "0.7.7",
|
||||
"version": "0.7.8",
|
||||
"homepage": "http://webcomponents.org",
|
||||
"authors": [
|
||||
"The Polymer Authors"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "webcomponents.js",
|
||||
"version": "0.7.7",
|
||||
"version": "0.7.8",
|
||||
"description": "webcomponents.js",
|
||||
"main": "webcomponents.js",
|
||||
"directories": {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* 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
|
||||
*/
|
||||
// @version 0.7.7
|
||||
// @version 0.7.8
|
||||
window.WebComponents = window.WebComponents || {};
|
||||
|
||||
(function(scope) {
|
||||
|
@ -1260,12 +1260,12 @@ window.HTMLImports.addModule(function(scope) {
|
|||
var path = scope.path;
|
||||
var rootDocument = scope.rootDocument;
|
||||
var flags = scope.flags;
|
||||
var isIE = scope.isIE;
|
||||
var isIE11OrOlder = scope.isIE11OrOlder;
|
||||
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
|
||||
var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]";
|
||||
var importParser = {
|
||||
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: {
|
||||
link: "parseLink",
|
||||
script: "parseScript",
|
||||
|
@ -1316,6 +1316,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
}
|
||||
},
|
||||
parseImport: function(elt) {
|
||||
elt.import = elt.__doc;
|
||||
if (window.HTMLImports.__importsParsingHook) {
|
||||
window.HTMLImports.__importsParsingHook(elt);
|
||||
}
|
||||
|
@ -1378,6 +1379,8 @@ window.HTMLImports.addModule(function(scope) {
|
|||
trackElement: function(elt, callback) {
|
||||
var self = this;
|
||||
var done = function(e) {
|
||||
elt.removeEventListener("load", done);
|
||||
elt.removeEventListener("error", done);
|
||||
if (callback) {
|
||||
callback(e);
|
||||
}
|
||||
|
@ -1386,7 +1389,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
};
|
||||
elt.addEventListener("load", done);
|
||||
elt.addEventListener("error", done);
|
||||
if (isIE && elt.localName === "style") {
|
||||
if (isIE11OrOlder && elt.localName === "style") {
|
||||
var fakeLoad = false;
|
||||
if (elt.textContent.indexOf("@import") == -1) {
|
||||
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++) {
|
||||
if (!this.isParsed(n)) {
|
||||
if (this.hasResource(n)) {
|
||||
return nodeIsImport(n) ? this.nextToParseInDoc(n.import, n) : n;
|
||||
return nodeIsImport(n) ? this.nextToParseInDoc(n.__doc, n) : n;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
@ -1456,7 +1459,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
return this.dynamicElements.indexOf(elt) >= 0;
|
||||
},
|
||||
hasResource: function(node) {
|
||||
if (nodeIsImport(node) && node.import === undefined) {
|
||||
if (nodeIsImport(node) && node.__doc === undefined) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -1530,7 +1533,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
}
|
||||
this.documents[url] = doc;
|
||||
}
|
||||
elt.import = doc;
|
||||
elt.__doc = doc;
|
||||
}
|
||||
parser.parseNext();
|
||||
},
|
||||
|
@ -1912,6 +1915,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
}
|
||||
scope.watchShadow = watchShadow;
|
||||
scope.upgradeDocumentTree = upgradeDocumentTree;
|
||||
scope.upgradeDocument = upgradeDocument;
|
||||
scope.upgradeSubtree = addedSubtree;
|
||||
scope.upgradeAll = addedNode;
|
||||
scope.attached = attached;
|
||||
|
@ -1923,11 +1927,9 @@ window.CustomElements.addModule(function(scope) {
|
|||
function upgrade(node, isAttached) {
|
||||
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
|
||||
var is = node.getAttribute("is");
|
||||
var definition = scope.getRegisteredDefinition(is || node.localName);
|
||||
var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);
|
||||
if (definition) {
|
||||
if (is && definition.tag == node.localName) {
|
||||
return upgradeWithDefinition(node, definition, isAttached);
|
||||
} else if (!is && !definition.extends) {
|
||||
if (is && definition.tag == node.localName || !is && !definition.extends) {
|
||||
return upgradeWithDefinition(node, definition, isAttached);
|
||||
}
|
||||
}
|
||||
|
@ -2221,6 +2223,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
initializeModules();
|
||||
}
|
||||
var upgradeDocumentTree = scope.upgradeDocumentTree;
|
||||
var upgradeDocument = scope.upgradeDocument;
|
||||
if (!window.wrap) {
|
||||
if (window.ShadowDOMPolyfill) {
|
||||
window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded;
|
||||
|
@ -2231,13 +2234,15 @@ window.CustomElements.addModule(function(scope) {
|
|||
};
|
||||
}
|
||||
}
|
||||
function bootstrap() {
|
||||
upgradeDocumentTree(window.wrap(document));
|
||||
if (window.HTMLImports) {
|
||||
window.HTMLImports.__importsParsingHook = function(elt) {
|
||||
upgradeDocumentTree(window.wrap(elt.import));
|
||||
if (elt.import) {
|
||||
upgradeDocument(wrap(elt.import));
|
||||
}
|
||||
};
|
||||
}
|
||||
function bootstrap() {
|
||||
upgradeDocumentTree(window.wrap(document));
|
||||
window.CustomElements.ready = true;
|
||||
setTimeout(function() {
|
||||
window.CustomElements.readyTime = Date.now();
|
||||
|
@ -2279,6 +2284,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
if (typeof HTMLTemplateElement === "undefined") {
|
||||
(function() {
|
||||
var TEMPLATE_TAG = "template";
|
||||
var contentDoc = document.implementation.createHTMLDocument("template");
|
||||
HTMLTemplateElement = function() {};
|
||||
HTMLTemplateElement.prototype = Object.create(HTMLElement.prototype);
|
||||
HTMLTemplateElement.decorate = function(template) {
|
||||
|
@ -2289,6 +2295,25 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|||
while (child = template.firstChild) {
|
||||
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) {
|
||||
var templates = doc.querySelectorAll(TEMPLATE_TAG);
|
||||
|
@ -2308,6 +2333,25 @@ if (typeof HTMLTemplateElement === "undefined") {
|
|||
}
|
||||
return el;
|
||||
};
|
||||
var escapeDataRegExp = /[&\u00A0<>]/g;
|
||||
function escapeReplace(c) {
|
||||
switch (c) {
|
||||
case "&":
|
||||
return "&";
|
||||
|
||||
case "<":
|
||||
return "<";
|
||||
|
||||
case ">":
|
||||
return ">";
|
||||
|
||||
case " ":
|
||||
return " ";
|
||||
}
|
||||
}
|
||||
function escapeData(s) {
|
||||
return s.replace(escapeDataRegExp, escapeReplace);
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
|||
* 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
|
||||
*/
|
||||
// @version 0.7.7
|
||||
// @version 0.7.8
|
||||
window.WebComponents = window.WebComponents || {};
|
||||
|
||||
(function(scope) {
|
||||
|
@ -6029,12 +6029,12 @@ window.HTMLImports.addModule(function(scope) {
|
|||
var path = scope.path;
|
||||
var rootDocument = scope.rootDocument;
|
||||
var flags = scope.flags;
|
||||
var isIE = scope.isIE;
|
||||
var isIE11OrOlder = scope.isIE11OrOlder;
|
||||
var IMPORT_LINK_TYPE = scope.IMPORT_LINK_TYPE;
|
||||
var IMPORT_SELECTOR = "link[rel=" + IMPORT_LINK_TYPE + "]";
|
||||
var importParser = {
|
||||
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: {
|
||||
link: "parseLink",
|
||||
script: "parseScript",
|
||||
|
@ -6085,6 +6085,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
}
|
||||
},
|
||||
parseImport: function(elt) {
|
||||
elt.import = elt.__doc;
|
||||
if (window.HTMLImports.__importsParsingHook) {
|
||||
window.HTMLImports.__importsParsingHook(elt);
|
||||
}
|
||||
|
@ -6147,6 +6148,8 @@ window.HTMLImports.addModule(function(scope) {
|
|||
trackElement: function(elt, callback) {
|
||||
var self = this;
|
||||
var done = function(e) {
|
||||
elt.removeEventListener("load", done);
|
||||
elt.removeEventListener("error", done);
|
||||
if (callback) {
|
||||
callback(e);
|
||||
}
|
||||
|
@ -6155,7 +6158,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
};
|
||||
elt.addEventListener("load", done);
|
||||
elt.addEventListener("error", done);
|
||||
if (isIE && elt.localName === "style") {
|
||||
if (isIE11OrOlder && elt.localName === "style") {
|
||||
var fakeLoad = false;
|
||||
if (elt.textContent.indexOf("@import") == -1) {
|
||||
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++) {
|
||||
if (!this.isParsed(n)) {
|
||||
if (this.hasResource(n)) {
|
||||
return nodeIsImport(n) ? this.nextToParseInDoc(n.import, n) : n;
|
||||
return nodeIsImport(n) ? this.nextToParseInDoc(n.__doc, n) : n;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
@ -6225,7 +6228,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
return this.dynamicElements.indexOf(elt) >= 0;
|
||||
},
|
||||
hasResource: function(node) {
|
||||
if (nodeIsImport(node) && node.import === undefined) {
|
||||
if (nodeIsImport(node) && node.__doc === undefined) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -6299,7 +6302,7 @@ window.HTMLImports.addModule(function(scope) {
|
|||
}
|
||||
this.documents[url] = doc;
|
||||
}
|
||||
elt.import = doc;
|
||||
elt.__doc = doc;
|
||||
}
|
||||
parser.parseNext();
|
||||
},
|
||||
|
@ -6681,6 +6684,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
}
|
||||
scope.watchShadow = watchShadow;
|
||||
scope.upgradeDocumentTree = upgradeDocumentTree;
|
||||
scope.upgradeDocument = upgradeDocument;
|
||||
scope.upgradeSubtree = addedSubtree;
|
||||
scope.upgradeAll = addedNode;
|
||||
scope.attached = attached;
|
||||
|
@ -6692,11 +6696,9 @@ window.CustomElements.addModule(function(scope) {
|
|||
function upgrade(node, isAttached) {
|
||||
if (!node.__upgraded__ && node.nodeType === Node.ELEMENT_NODE) {
|
||||
var is = node.getAttribute("is");
|
||||
var definition = scope.getRegisteredDefinition(is || node.localName);
|
||||
var definition = scope.getRegisteredDefinition(node.localName) || scope.getRegisteredDefinition(is);
|
||||
if (definition) {
|
||||
if (is && definition.tag == node.localName) {
|
||||
return upgradeWithDefinition(node, definition, isAttached);
|
||||
} else if (!is && !definition.extends) {
|
||||
if (is && definition.tag == node.localName || !is && !definition.extends) {
|
||||
return upgradeWithDefinition(node, definition, isAttached);
|
||||
}
|
||||
}
|
||||
|
@ -6990,6 +6992,7 @@ window.CustomElements.addModule(function(scope) {
|
|||
initializeModules();
|
||||
}
|
||||
var upgradeDocumentTree = scope.upgradeDocumentTree;
|
||||
var upgradeDocument = scope.upgradeDocument;
|
||||
if (!window.wrap) {
|
||||
if (window.ShadowDOMPolyfill) {
|
||||
window.wrap = window.ShadowDOMPolyfill.wrapIfNeeded;
|
||||
|
@ -7000,13 +7003,15 @@ window.CustomElements.addModule(function(scope) {
|
|||
};
|
||||
}
|
||||
}
|
||||
function bootstrap() {
|
||||
upgradeDocumentTree(window.wrap(document));
|
||||
if (window.HTMLImports) {
|
||||
window.HTMLImports.__importsParsingHook = function(elt) {
|
||||
upgradeDocumentTree(window.wrap(elt.import));
|
||||
if (elt.import) {
|
||||
upgradeDocument(wrap(elt.import));
|
||||
}
|
||||
};
|
||||
}
|
||||
function bootstrap() {
|
||||
upgradeDocumentTree(window.wrap(document));
|
||||
window.CustomElements.ready = true;
|
||||
setTimeout(function() {
|
||||
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);
|
||||
|
||||
(function(scope) {
|
||||
|
|
File diff suppressed because one or more lines are too long
2
dashboard-ui/cordova/chromecast.js
vendored
2
dashboard-ui/cordova/chromecast.js
vendored
|
@ -84,7 +84,7 @@
|
|||
|
||||
getEndpointInfo().done(function (endpoint) {
|
||||
|
||||
if (endpoint.IsLocal || endpoint.IsInNetwork) {
|
||||
if (endpoint.IsInNetwork) {
|
||||
ApiClient.getPublicSystemInfo().done(function (info) {
|
||||
|
||||
message.serverAddress = info.LocalAddress;
|
||||
|
|
|
@ -350,7 +350,7 @@
|
|||
|
||||
getEndpointInfo().done(function (endpoint) {
|
||||
|
||||
if (endpoint.IsLocal || endpoint.IsInNetwork) {
|
||||
if (endpoint.IsInNetwork) {
|
||||
ApiClient.getPublicSystemInfo().done(function (info) {
|
||||
|
||||
message.serverAddress = info.LocalAddress;
|
||||
|
|
|
@ -62,7 +62,9 @@
|
|||
MinEndDate: date.toISOString(),
|
||||
channelIds: channelsResult.Items.map(function (c) {
|
||||
return c.Id;
|
||||
}).join(',')
|
||||
}).join(','),
|
||||
ImageTypeLimit: 1,
|
||||
EnableImageTypes: "Primary"
|
||||
|
||||
}).done(function (programsResult) {
|
||||
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
|
||||
userId: Dashboard.getCurrentUserId(),
|
||||
IsAiring: true,
|
||||
limit: 16
|
||||
limit: 16,
|
||||
ImageTypeLimit: 1,
|
||||
EnableImageTypes: "Primary"
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue