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
556b64e92c
commit
a8a609a04d
39 changed files with 121 additions and 1198 deletions
|
@ -997,9 +997,9 @@
|
|||
|
||||
self.playVideo = function (item, mediaSource, startPosition, callback) {
|
||||
|
||||
if (browserInfo.msie && !browserInfo.mobile) {
|
||||
if (browserInfo.msie) {
|
||||
|
||||
if (navigator.userAgent.indexOf('Windows NT 6.1;') != -1 || !mediaSource.RunTimeTicks) {
|
||||
if (!window.MediaSource || !mediaSource.RunTimeTicks) {
|
||||
alert('Playback of this content is not supported in Internet Explorer. For a better experience, please try a modern browser such as Google Chrome, Firefox, Opera, or Microsoft Edge.');
|
||||
}
|
||||
}
|
||||
|
@ -1077,7 +1077,7 @@
|
|||
|
||||
elem.classList.remove('hide');
|
||||
|
||||
if (!browserInfo.animate || browserInfo.mobile) {
|
||||
if (!browserInfo.animate || browserInfo.slow) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
elem.classList.add('hide');
|
||||
};
|
||||
|
||||
if (!browser.animate || browser.mobile) {
|
||||
if (!browser.animate || browser.slow) {
|
||||
onfinish();
|
||||
return;
|
||||
}
|
||||
|
@ -108,7 +108,7 @@
|
|||
|
||||
elem.classList.remove('hide');
|
||||
|
||||
if (!browser.animate || browser.mobile) {
|
||||
if (!browser.animate || browser.slow) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,7 @@
|
|||
|
||||
elem.classList.remove('hide');
|
||||
|
||||
if (!browser.animate || browser.mobile) {
|
||||
if (!browser.animate || browser.slow) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -320,7 +320,7 @@
|
|||
document.body.insertAdjacentHTML('beforeend', getNowPlayingBarHtml());
|
||||
nowPlayingBarElement = document.querySelector('.nowPlayingBar');
|
||||
|
||||
if (browser.safari && browser.mobile) {
|
||||
if (browser.safari && browser.slow) {
|
||||
// Not handled well here. The wrong elements receive events, bar doesn't update quickly enough, etc.
|
||||
nowPlayingBarElement.classList.add('noMediaProgress');
|
||||
}
|
||||
|
|
|
@ -834,7 +834,7 @@ var Dashboard = {
|
|||
quality -= 10;
|
||||
}
|
||||
|
||||
if (browserInfo.mobile || browserInfo.tv) {
|
||||
if (browserInfo.slow) {
|
||||
quality -= 40;
|
||||
}
|
||||
|
||||
|
@ -1092,14 +1092,13 @@ var AppInfo = {};
|
|||
AppInfo.enableHomeFavorites = true;
|
||||
AppInfo.enableHomeTabs = true;
|
||||
AppInfo.enableNowPlayingPageBottomTabs = true;
|
||||
AppInfo.enableAutoSave = browserInfo.mobile;
|
||||
AppInfo.enableAutoSave = browserInfo.touch;
|
||||
AppInfo.enableHashBang = Dashboard.isRunningInCordova();
|
||||
|
||||
AppInfo.enableAppStorePolicy = isCordova;
|
||||
|
||||
var isIOS = browserInfo.ipad || browserInfo.iphone;
|
||||
var isAndroid = browserInfo.android;
|
||||
var isMobile = browserInfo.mobile;
|
||||
|
||||
if (isIOS) {
|
||||
|
||||
|
@ -1135,7 +1134,7 @@ var AppInfo = {};
|
|||
// This currently isn't working on android, unfortunately
|
||||
AppInfo.supportsFileInput = !(AppInfo.isNativeApp && isAndroid);
|
||||
|
||||
AppInfo.hasPhysicalVolumeButtons = isCordova || isMobile;
|
||||
AppInfo.hasPhysicalVolumeButtons = isCordova || browserInfo.mobile;
|
||||
|
||||
AppInfo.enableBackButton = isIOS && (window.navigator.standalone || AppInfo.isNativeApp);
|
||||
|
||||
|
@ -1511,12 +1510,9 @@ var AppInfo = {};
|
|||
define("paper-icon-button", ["html!" + bowerPath + "/paper-icon-button/paper-icon-button.html"]);
|
||||
|
||||
define("paper-textarea", ['webcomponentsjs', "html!" + bowerPath + "/paper-input/paper-textarea.html"]);
|
||||
define("paper-item", ["html!" + bowerPath + "/paper-item/paper-item.html"]);
|
||||
define("paper-checkbox", ["html!" + bowerPath + "/paper-checkbox/paper-checkbox.html"]);
|
||||
define("paper-progress", ["html!" + bowerPath + "/paper-progress/paper-progress.html"]);
|
||||
define("paper-input", ['webcomponentsjs', "html!" + bowerPath + "/paper-input/paper-input.html"]);
|
||||
define("paper-icon-item", ['webcomponentsjs', "html!" + bowerPath + "/paper-item/paper-icon-item.html"]);
|
||||
define("paper-item-body", ["html!" + bowerPath + "/paper-item/paper-item-body.html"]);
|
||||
|
||||
define("paper-collapse-item", ["html!" + bowerPath + "/paper-collapse-item/paper-collapse-item.html"]);
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@
|
|||
|
||||
if (dialogOptions.Options.indexOf('UnwatchedOnly') != -1) {
|
||||
html += '<br/>';
|
||||
html += '<div class="checkboxContainer">';
|
||||
html += '<div class="checkboxContainer checkboxContainer-withDescription">';
|
||||
html += '<label>';
|
||||
html += '<input is="emby-checkbox" type="checkbox" id="chkUnwatchedOnly"/>';
|
||||
html += '<span>' + Globalize.translate('OptionSyncUnwatchedVideosOnly') + '</span>';
|
||||
|
@ -172,7 +172,7 @@
|
|||
html += '<div class="collapseContent">';
|
||||
if (dialogOptions.Options.indexOf('SyncNewContent') != -1) {
|
||||
html += '<br/>';
|
||||
html += '<div class="checkboxContainer">';
|
||||
html += '<div class="checkboxContainer checkboxContainer-withDescription">';
|
||||
html += '<label>';
|
||||
html += '<input is="emby-checkbox" type="checkbox" id="chkSyncNewContent"/>';
|
||||
html += '<span>' + Globalize.translate('OptionAutomaticallySyncNewContent') + '</span>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue