mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
resolve safari load issues
This commit is contained in:
parent
c3fd6c022f
commit
d6865b769d
8 changed files with 54 additions and 15 deletions
|
@ -16,12 +16,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.1.94",
|
"version": "1.1.96",
|
||||||
"_release": "1.1.94",
|
"_release": "1.1.96",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.1.94",
|
"tag": "1.1.96",
|
||||||
"commit": "7e52c39c2c6a43b00b845509e8b227420042ce6f"
|
"commit": "81f0ec7b5bca701668dd1e643d0a4381b414d771"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "~1.1.5",
|
"_target": "~1.1.5",
|
||||||
|
|
|
@ -94,8 +94,39 @@ define([], function () {
|
||||||
return parts.join(':');
|
return parts.join(':');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getDisplayTime(date) {
|
||||||
|
var time = date.toLocaleTimeString().toLowerCase();
|
||||||
|
|
||||||
|
if (time.indexOf('am') != -1 || time.indexOf('pm') != -1) {
|
||||||
|
|
||||||
|
var hour = date.getHours() % 12;
|
||||||
|
var suffix = date.getHours() > 11 ? 'pm' : 'am';
|
||||||
|
if (!hour) {
|
||||||
|
hour = 12;
|
||||||
|
}
|
||||||
|
var minutes = date.getMinutes();
|
||||||
|
|
||||||
|
if (minutes < 10) {
|
||||||
|
minutes = '0' + minutes;
|
||||||
|
}
|
||||||
|
time = hour + ':' + minutes + suffix;
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var timeParts = time.split(':');
|
||||||
|
|
||||||
|
// Trim off seconds
|
||||||
|
if (timeParts.length > 2) {
|
||||||
|
timeParts.length -= 1;
|
||||||
|
time = timeParts.join(':');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return time;
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
parseISO8601Date: parseISO8601Date,
|
parseISO8601Date: parseISO8601Date,
|
||||||
getDisplayRunningTime: getDisplayRunningTime
|
getDisplayRunningTime: getDisplayRunningTime,
|
||||||
|
getDisplayTime: getDisplayTime
|
||||||
};
|
};
|
||||||
});
|
});
|
|
@ -47,7 +47,13 @@ define(function () {
|
||||||
link.setAttribute('rel', 'stylesheet');
|
link.setAttribute('rel', 'stylesheet');
|
||||||
link.setAttribute('type', 'text/css');
|
link.setAttribute('type', 'text/css');
|
||||||
link.onload = load;
|
link.onload = load;
|
||||||
link.setAttribute('href', url + "?" + config.urlArgs);
|
|
||||||
|
var linkUrl = url;
|
||||||
|
|
||||||
|
if (config.urlArgs) {
|
||||||
|
linkUrl += config.urlArgs(cssId, url);
|
||||||
|
}
|
||||||
|
link.setAttribute('href', linkUrl);
|
||||||
document.head.appendChild(link);
|
document.head.appendChild(link);
|
||||||
} else {
|
} else {
|
||||||
load();
|
load();
|
||||||
|
|
|
@ -29,14 +29,14 @@
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/PolymerElements/iron-behaviors",
|
"homepage": "https://github.com/polymerelements/iron-behaviors",
|
||||||
"_release": "1.0.13",
|
"_release": "1.0.13",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.13",
|
"tag": "v1.0.13",
|
||||||
"commit": "a7bc3428a6da2beed21987b3a8028206826a12bc"
|
"commit": "a7bc3428a6da2beed21987b3a8028206826a12bc"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
|
"_source": "git://github.com/polymerelements/iron-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/iron-behaviors"
|
"_originalSource": "polymerelements/iron-behaviors"
|
||||||
}
|
}
|
|
@ -36,6 +36,6 @@
|
||||||
"commit": "6d88f29f3a7181daa2a5c7f678de44f0a0e6a717"
|
"commit": "6d88f29f3a7181daa2a5c7f678de44f0a0e6a717"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-flex-layout.git",
|
"_source": "git://github.com/PolymerElements/iron-flex-layout.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.3.1",
|
||||||
"_originalSource": "PolymerElements/iron-flex-layout"
|
"_originalSource": "PolymerElements/iron-flex-layout"
|
||||||
}
|
}
|
|
@ -32,14 +32,14 @@
|
||||||
"web-component-tester": "^4.0.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/PolymerElements/iron-icon",
|
"homepage": "https://github.com/polymerelements/iron-icon",
|
||||||
"_release": "1.0.8",
|
"_release": "1.0.8",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.8",
|
||||||
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
"_source": "git://github.com/polymerelements/iron-icon.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/iron-icon"
|
"_originalSource": "polymerelements/iron-icon"
|
||||||
}
|
}
|
|
@ -36,7 +36,7 @@
|
||||||
"tag": "v1.3.0",
|
"tag": "v1.3.0",
|
||||||
"commit": "1662093611cda3fd29125cdab94a61d3d88093da"
|
"commit": "1662093611cda3fd29125cdab94a61d3d88093da"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-selector.git",
|
"_source": "git://github.com/PolymerElements/iron-selector.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-selector"
|
"_originalSource": "PolymerElements/iron-selector"
|
||||||
}
|
}
|
|
@ -3094,6 +3094,8 @@ var AppInfo = {};
|
||||||
|
|
||||||
require(deps, function (imageLoader, pageObjects) {
|
require(deps, function (imageLoader, pageObjects) {
|
||||||
|
|
||||||
|
console.log('Loaded dependencies in onAppReady');
|
||||||
|
|
||||||
imageLoader.enableFade = browserInfo.animate && !browserInfo.mobile;
|
imageLoader.enableFade = browserInfo.animate && !browserInfo.mobile;
|
||||||
window.ImageLoader = imageLoader;
|
window.ImageLoader = imageLoader;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue