mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared components
This commit is contained in:
parent
7919964805
commit
bb00365b5d
12 changed files with 92 additions and 32 deletions
|
@ -14,12 +14,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.4.209",
|
||||
"_release": "1.4.209",
|
||||
"version": "1.4.210",
|
||||
"_release": "1.4.210",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.4.209",
|
||||
"commit": "e83ed420a7c59b3d413329b046103e001ed784e5"
|
||||
"tag": "1.4.210",
|
||||
"commit": "e096c60a4e7ca21e5e3d1ded47bd843bb2c3dda5"
|
||||
},
|
||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "^1.2.1",
|
||||
|
|
|
@ -42,13 +42,17 @@
|
|||
}
|
||||
|
||||
.actionSheetItemText {
|
||||
padding: .8em 0;
|
||||
padding: .7em 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.actionSheetItemText-extraspacing {
|
||||
padding: .8em 0;
|
||||
}
|
||||
|
||||
.emby-button-noflex .actionSheetItemText {
|
||||
display: inline-block;
|
||||
}
|
||||
|
|
|
@ -121,7 +121,8 @@
|
|||
dlg.classList.add('actionsheet-fullscreen');
|
||||
}
|
||||
|
||||
if (!layoutManager.tv) {
|
||||
var extraSpacing = !layoutManager.tv;
|
||||
if (extraSpacing) {
|
||||
dlg.classList.add('actionsheet-extraSpacing');
|
||||
}
|
||||
|
||||
|
@ -189,6 +190,12 @@
|
|||
menuItemClass += ' ' + options.menuItemClass;
|
||||
}
|
||||
|
||||
var actionSheetItemTextClass = 'actionSheetItemText';
|
||||
|
||||
if (extraSpacing) {
|
||||
actionSheetItemTextClass += ' actionSheetItemText-extraspacing';
|
||||
}
|
||||
|
||||
for (i = 0, length = options.items.length; i < length; i++) {
|
||||
|
||||
option = options.items[i];
|
||||
|
@ -202,7 +209,7 @@
|
|||
else if (renderIcon && !center) {
|
||||
html += '<i class="actionSheetItemIcon md-icon" style="visibility:hidden;">check</i>';
|
||||
}
|
||||
html += '<div class="actionSheetItemText">' + (option.name || option.textContent || option.innerText) + '</div>';
|
||||
html += '<div class="' + actionSheetItemTextClass + '">' + (option.name || option.textContent || option.innerText) + '</div>';
|
||||
html += '</button>';
|
||||
}
|
||||
|
||||
|
|
|
@ -144,10 +144,6 @@
|
|||
browser[matched.platform] = true;
|
||||
}
|
||||
|
||||
if (!browser.chrome && !browser.msie && !browser.edge && !browser.opera && userAgent.toLowerCase().indexOf("webkit") != -1) {
|
||||
browser.safari = true;
|
||||
}
|
||||
|
||||
if (userAgent.toLowerCase().indexOf("playstation 4") != -1) {
|
||||
browser.ps4 = true;
|
||||
browser.tv = true;
|
||||
|
|
|
@ -261,9 +261,8 @@ define(['browser'], function (browser) {
|
|||
|
||||
// Only put mp3 first if mkv support is there
|
||||
// Otherwise with HLS and mp3 audio we're seeing some browsers
|
||||
if (videoTestElement.canPlayType('audio/mp4; codecs="ac-3"').replace(/no/, '') || isEdgeUniversal() || browser.tizen) {
|
||||
// safari is lying
|
||||
if (!browser.safari) {
|
||||
if ((videoTestElement.canPlayType('audio/mp4; codecs="ac-3"').replace(/no/, '') && !browser.safari) || isEdgeUniversal() || browser.tizen) {
|
||||
videoAudioCodecs.push('ac3');
|
||||
|
||||
// This works in edge desktop, but not mobile
|
||||
|
@ -272,7 +271,6 @@ define(['browser'], function (browser) {
|
|||
hlsVideoAudioCodecs.push('ac3');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var mp3Added = false;
|
||||
if (canPlayMkv || canPlayTs) {
|
||||
|
|
14
dashboard-ui/bower_components/emby-webcomponents/fullscreen/fullscreen-doubleclick.js
vendored
Normal file
14
dashboard-ui/bower_components/emby-webcomponents/fullscreen/fullscreen-doubleclick.js
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
define(['dom', 'fullscreenManager'], function (dom, fullscreenManager) {
|
||||
|
||||
dom.addEventListener(window, 'dblclick', function () {
|
||||
|
||||
if (fullscreenManager.isFullScreen()) {
|
||||
fullscreenManager.exitFullscreen();
|
||||
} else {
|
||||
fullscreenManager.requestFullscreen();
|
||||
}
|
||||
|
||||
}, {
|
||||
passive: true
|
||||
});
|
||||
});
|
41
dashboard-ui/bower_components/emby-webcomponents/fullscreen/fullscreenmanager.js
vendored
Normal file
41
dashboard-ui/bower_components/emby-webcomponents/fullscreen/fullscreenmanager.js
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
define([], function () {
|
||||
|
||||
function fullscreenManager() {
|
||||
|
||||
}
|
||||
|
||||
fullscreenManager.prototype.requestFullscreen = function (element) {
|
||||
|
||||
element = element || document.documentElement;
|
||||
|
||||
if (element.requestFullscreen) {
|
||||
element.requestFullscreen();
|
||||
} else if (element.mozRequestFullScreen) {
|
||||
element.mozRequestFullScreen();
|
||||
} else if (element.webkitRequestFullscreen) {
|
||||
element.webkitRequestFullscreen();
|
||||
} else if (element.msRequestFullscreen) {
|
||||
element.msRequestFullscreen();
|
||||
}
|
||||
};
|
||||
|
||||
fullscreenManager.prototype.exitFullscreen = function () {
|
||||
|
||||
if (document.exitFullscreen) {
|
||||
document.exitFullscreen();
|
||||
} else if (document.mozCancelFullScreen) {
|
||||
document.mozCancelFullScreen();
|
||||
} else if (document.webkitExitFullscreen) {
|
||||
document.webkitExitFullscreen();
|
||||
} else if (document.webkitCancelFullscreen) {
|
||||
document.webkitCancelFullscreen();
|
||||
}
|
||||
};
|
||||
|
||||
fullscreenManager.prototype.isFullScreen = function () {
|
||||
|
||||
return document.fullscreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement ? true : false;
|
||||
};
|
||||
|
||||
return new fullscreenManager();
|
||||
});
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-a11y-keys-behavior",
|
||||
"version": "1.1.7",
|
||||
"version": "1.1.8",
|
||||
"description": "A behavior that enables keybindings for greater a11y.",
|
||||
"keywords": [
|
||||
"web-components",
|
||||
|
@ -31,11 +31,11 @@
|
|||
},
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior",
|
||||
"_release": "1.1.7",
|
||||
"_release": "1.1.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.7",
|
||||
"commit": "cde403dee704a1d3ea5f7cb49067f0eab31a8afa"
|
||||
"tag": "v1.1.8",
|
||||
"commit": "078d64750538735c27e1c68ade907a6b58aceb43"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "iron-a11y-keys-behavior",
|
||||
"version": "1.1.7",
|
||||
"version": "1.1.8",
|
||||
"description": "A behavior that enables keybindings for greater a11y.",
|
||||
"keywords": [
|
||||
"web-components",
|
||||
|
|
|
@ -313,7 +313,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
/**
|
||||
* To be used to express what combination of keys will trigger the relative
|
||||
* callback. e.g. `keyBindings: { 'esc': '_onEscPressed'}`
|
||||
* @type {Object}
|
||||
* @type {!Object}
|
||||
*/
|
||||
keyBindings: {},
|
||||
|
||||
|
|
|
@ -32,14 +32,14 @@
|
|||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
||||
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||
"_release": "1.0.10",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.10",
|
||||
"commit": "f4e146da4982ff96bb25db85290c09e8de4ec734"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
||||
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/iron-icon"
|
||||
"_originalSource": "PolymerElements/iron-icon"
|
||||
}
|
|
@ -27,14 +27,14 @@
|
|||
},
|
||||
"main": "iron-meta.html",
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/polymerelements/iron-meta",
|
||||
"homepage": "https://github.com/PolymerElements/iron-meta",
|
||||
"_release": "1.1.2",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.2",
|
||||
"commit": "bae96531b63ea6d4ce982f5592248aea849c0f5a"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-meta.git",
|
||||
"_source": "git://github.com/PolymerElements/iron-meta.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/iron-meta"
|
||||
"_originalSource": "PolymerElements/iron-meta"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue