mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add subtitle fix for tizen
This commit is contained in:
parent
220c6197b6
commit
374a543064
14 changed files with 44 additions and 129 deletions
|
@ -14,12 +14,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.4.338",
|
"version": "1.4.339",
|
||||||
"_release": "1.4.338",
|
"_release": "1.4.339",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.4.338",
|
"tag": "1.4.339",
|
||||||
"commit": "89d5917a0c6425e6f07868b92c9cabb04dcd0139"
|
"commit": "57c814e242079d68032820513d52174cc1051e32"
|
||||||
},
|
},
|
||||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "^1.2.1",
|
"_target": "^1.2.1",
|
||||||
|
|
|
@ -133,7 +133,6 @@ button {
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
display: -ms-flex;
|
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
.indicator {
|
.indicator {
|
||||||
border-radius: 500px;
|
border-radius: 500px;
|
||||||
display: -ms-flex;
|
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -45,7 +44,6 @@
|
||||||
.countIndicator {
|
.countIndicator {
|
||||||
background: rgba(82,181,75,1);
|
background: rgba(82,181,75,1);
|
||||||
border-radius: 500px;
|
border-radius: 500px;
|
||||||
display: -ms-flex;
|
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -57,7 +55,6 @@
|
||||||
.playedIndicator {
|
.playedIndicator {
|
||||||
background: rgba(82,181,75,1);
|
background: rgba(82,181,75,1);
|
||||||
border-radius: 500px;
|
border-radius: 500px;
|
||||||
display: -ms-flex;
|
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
(function UMD(name,context,definition){
|
(function UMD(name,context,definition){
|
||||||
// special form of UMD for polyfilling across evironments
|
// special form of UMD for polyfilling across evironments
|
||||||
context[name] = context[name] || definition();
|
context[name] = definition();
|
||||||
if (typeof module != "undefined" && module.exports) { module.exports = context[name]; }
|
if (typeof module != "undefined" && module.exports) { module.exports = context[name]; }
|
||||||
else if (typeof define == "function" && define.amd) { define(function $AMD$(){ return context[name]; }); }
|
else if (typeof define == "function" && define.amd) { define(function $AMD$(){ return context[name]; }); }
|
||||||
})("Promise",typeof global != "undefined" ? global : this,function DEF(){
|
})("Promise",typeof global != "undefined" ? global : this,function DEF(){
|
|
@ -11,12 +11,12 @@
|
||||||
"test/"
|
"test/"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/github/fetch",
|
"homepage": "https://github.com/github/fetch",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"_release": "1.1.0",
|
"_release": "1.1.1",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.1.0",
|
"tag": "v1.1.1",
|
||||||
"commit": "76f6a09cbfc1c955479dd9da2a333f7404c79de2"
|
"commit": "f7a514829820fc77c0f884c74cf2d36356a781c0"
|
||||||
},
|
},
|
||||||
"_source": "https://github.com/github/fetch.git",
|
"_source": "https://github.com/github/fetch.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
|
|
32
dashboard-ui/bower_components/fetch/fetch.js
vendored
32
dashboard-ui/bower_components/fetch/fetch.js
vendored
|
@ -186,6 +186,16 @@
|
||||||
return promise
|
return promise
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function readArrayBufferAsText(buf) {
|
||||||
|
var view = new Uint8Array(buf)
|
||||||
|
var chars = new Array(view.length)
|
||||||
|
|
||||||
|
for (var i = 0; i < view.length; i++) {
|
||||||
|
chars[i] = String.fromCharCode(view[i])
|
||||||
|
}
|
||||||
|
return chars.join('')
|
||||||
|
}
|
||||||
|
|
||||||
function bufferClone(buf) {
|
function bufferClone(buf) {
|
||||||
if (buf.slice) {
|
if (buf.slice) {
|
||||||
return buf.slice(0)
|
return buf.slice(0)
|
||||||
|
@ -249,6 +259,14 @@
|
||||||
return Promise.resolve(new Blob([this._bodyText]))
|
return Promise.resolve(new Blob([this._bodyText]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.arrayBuffer = function() {
|
||||||
|
if (this._bodyArrayBuffer) {
|
||||||
|
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
||||||
|
} else {
|
||||||
|
return this.blob().then(readBlobAsArrayBuffer)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.text = function() {
|
this.text = function() {
|
||||||
|
@ -260,9 +278,7 @@
|
||||||
if (this._bodyBlob) {
|
if (this._bodyBlob) {
|
||||||
return readBlobAsText(this._bodyBlob)
|
return readBlobAsText(this._bodyBlob)
|
||||||
} else if (this._bodyArrayBuffer) {
|
} else if (this._bodyArrayBuffer) {
|
||||||
var view = new Uint8Array(this._bodyArrayBuffer)
|
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))
|
||||||
var str = String.fromCharCode.apply(null, view)
|
|
||||||
return Promise.resolve(str)
|
|
||||||
} else if (this._bodyFormData) {
|
} else if (this._bodyFormData) {
|
||||||
throw new Error('could not read FormData body as text')
|
throw new Error('could not read FormData body as text')
|
||||||
} else {
|
} else {
|
||||||
|
@ -270,16 +286,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (support.arrayBuffer) {
|
|
||||||
this.arrayBuffer = function() {
|
|
||||||
if (this._bodyArrayBuffer) {
|
|
||||||
return consumed(this) || Promise.resolve(this._bodyArrayBuffer)
|
|
||||||
} else {
|
|
||||||
return this.blob().then(readBlobAsArrayBuffer)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (support.formData) {
|
if (support.formData) {
|
||||||
this.formData = function() {
|
this.formData = function() {
|
||||||
return this.text().then(decode)
|
return this.text().then(decode)
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"name": "native-promise-only",
|
|
||||||
"homepage": "https://github.com/getify/native-promise-only",
|
|
||||||
"version": "0.8.0-a",
|
|
||||||
"_release": "0.8.0-a",
|
|
||||||
"_resolution": {
|
|
||||||
"type": "version",
|
|
||||||
"tag": "0.8.0-a",
|
|
||||||
"commit": "d40a2d0197feea4f9b0bf5f8bf3079465ced3758"
|
|
||||||
},
|
|
||||||
"_source": "git://github.com/getify/native-promise-only.git",
|
|
||||||
"_target": "~0.8.0-a",
|
|
||||||
"_originalSource": "native-promise-only",
|
|
||||||
"_direct": true
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
node_modules
|
|
||||||
npo.js
|
|
|
@ -1,2 +0,0 @@
|
||||||
node_modules
|
|
||||||
.gitignore
|
|
|
@ -1,34 +0,0 @@
|
||||||
#!/usr/bin/env node
|
|
||||||
|
|
||||||
var fs = require("fs"),
|
|
||||||
path = require("path"),
|
|
||||||
exec = require("child_process").exec,
|
|
||||||
ugly = require("uglify-js"),
|
|
||||||
|
|
||||||
result
|
|
||||||
;
|
|
||||||
|
|
||||||
console.log("*** Building ***");
|
|
||||||
console.log("Minifying to npo.js.");
|
|
||||||
|
|
||||||
try {
|
|
||||||
result = ugly.minify(path.join(__dirname,"lib","npo.src.js"),{
|
|
||||||
mangle: true,
|
|
||||||
compress: true,
|
|
||||||
output: {
|
|
||||||
comments: /^!/
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
fs.writeFileSync(
|
|
||||||
path.join(__dirname,"npo.js"),
|
|
||||||
result.code + "\n",
|
|
||||||
{ encoding: "utf8" }
|
|
||||||
);
|
|
||||||
|
|
||||||
console.log("Complete.");
|
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
console.error(err);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
{
|
|
||||||
"name": "native-promise-only",
|
|
||||||
"version": "0.8.0-a",
|
|
||||||
"description": "Native Promise Only: A polyfill for native ES6 Promises **only**, nothing else.",
|
|
||||||
"main": "./npo.js",
|
|
||||||
"scripts": {
|
|
||||||
"test": "promises-aplus-tests test_adapter.js",
|
|
||||||
"build": "./build.js"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"promises-aplus-tests": "*",
|
|
||||||
"uglify-js": "~2.4.8"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git://github.com/getify/native-promise-only.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"ES6",
|
|
||||||
"Promise",
|
|
||||||
"async",
|
|
||||||
"promises-aplus"
|
|
||||||
],
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/getify/native-promise-only/issues",
|
|
||||||
"email": "getify@gmail.com"
|
|
||||||
},
|
|
||||||
"homepage": "http://github.com/getify/native-promise-only",
|
|
||||||
"author": "Kyle Simpson <getify@gmail.com>",
|
|
||||||
"license": "MIT"
|
|
||||||
}
|
|
|
@ -295,7 +295,7 @@
|
||||||
getThumbShape();
|
getThumbShape();
|
||||||
|
|
||||||
var supportsImageAnalysis = appHost.supports('imageanalysis');
|
var supportsImageAnalysis = appHost.supports('imageanalysis');
|
||||||
var cardLayout = supportsImageAnalysis && (viewType === 'music' || !viewType);
|
var cardLayout = supportsImageAnalysis && (viewType === 'music' || viewType === 'movies' || viewType === 'tvshows' || !viewType);
|
||||||
|
|
||||||
html += cardBuilder.getCardsHtml({
|
html += cardBuilder.getCardsHtml({
|
||||||
items: items,
|
items: items,
|
||||||
|
@ -309,9 +309,12 @@
|
||||||
overlayPlayButton: viewType !== 'photos',
|
overlayPlayButton: viewType !== 'photos',
|
||||||
allowBottomPadding: !enableScrollX() && !cardLayout,
|
allowBottomPadding: !enableScrollX() && !cardLayout,
|
||||||
cardLayout: cardLayout,
|
cardLayout: cardLayout,
|
||||||
showTitle: viewType === 'music' || !viewType,
|
showTitle: viewType === 'music' || !viewType || (cardLayout && (viewType === 'movies' || viewType === 'tvshows')),
|
||||||
showParentTitle: viewType === 'music' || !viewType,
|
showYear: cardLayout && viewType === 'movies',
|
||||||
vibrant: supportsImageAnalysis && cardLayout
|
showSeriesYear: cardLayout && viewType === 'tvshows',
|
||||||
|
showParentTitle: viewType === 'music' || !viewType || (cardLayout && (viewType === 'tvshows')),
|
||||||
|
vibrant: supportsImageAnalysis && cardLayout,
|
||||||
|
lines: 2
|
||||||
});
|
});
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1368,7 +1368,6 @@ var AppInfo = {};
|
||||||
define('arraypolyfills', [embyWebComponentsBowerPath + '/polyfills/array']);
|
define('arraypolyfills', [embyWebComponentsBowerPath + '/polyfills/array']);
|
||||||
define('objectassign', [embyWebComponentsBowerPath + '/polyfills/objectassign']);
|
define('objectassign', [embyWebComponentsBowerPath + '/polyfills/objectassign']);
|
||||||
|
|
||||||
define('native-promise-only', [bowerPath + '/native-promise-only/lib/npo.src']);
|
|
||||||
define("clearButtonStyle", ['css!' + embyWebComponentsBowerPath + '/clearbutton']);
|
define("clearButtonStyle", ['css!' + embyWebComponentsBowerPath + '/clearbutton']);
|
||||||
define("userdataButtons", [embyWebComponentsBowerPath + "/userdatabuttons/userdatabuttons"], returnFirstDependency);
|
define("userdataButtons", [embyWebComponentsBowerPath + "/userdatabuttons/userdatabuttons"], returnFirstDependency);
|
||||||
define("listView", [embyWebComponentsBowerPath + "/listview/listview"], returnFirstDependency);
|
define("listView", [embyWebComponentsBowerPath + "/listview/listview"], returnFirstDependency);
|
||||||
|
@ -2792,29 +2791,24 @@ var AppInfo = {};
|
||||||
|
|
||||||
initRequire();
|
initRequire();
|
||||||
|
|
||||||
function onWebComponentsReady() {
|
function onWebComponentsReady(browser) {
|
||||||
|
|
||||||
var initialDependencies = [];
|
var initialDependencies = [];
|
||||||
|
|
||||||
initialDependencies.push('browser');
|
if (!window.Promise || browser.web0s) {
|
||||||
|
initialDependencies.push('bower_components/emby-webcomponents/native-promise-only/lib/npo.src');
|
||||||
if (!window.Promise) {
|
|
||||||
initialDependencies.push('native-promise-only');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require(initialDependencies, function (browser) {
|
|
||||||
|
|
||||||
initRequireWithBrowser(browser);
|
initRequireWithBrowser(browser);
|
||||||
|
|
||||||
window.browserInfo = browser;
|
window.browserInfo = browser;
|
||||||
setAppInfo();
|
setAppInfo();
|
||||||
setDocumentClasses(browser);
|
setDocumentClasses(browser);
|
||||||
|
|
||||||
init();
|
require(initialDependencies, init);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onWebComponentsReady();
|
require(['browser'], onWebComponentsReady);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
function pageClassOn(eventName, className, fn) {
|
function pageClassOn(eventName, className, fn) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue