1
0
Fork 0
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:
Luke Pulverenti 2016-09-03 13:58:23 -04:00
parent 7919964805
commit bb00365b5d
12 changed files with 92 additions and 32 deletions

View file

@ -14,12 +14,12 @@
}, },
"devDependencies": {}, "devDependencies": {},
"ignore": [], "ignore": [],
"version": "1.4.209", "version": "1.4.210",
"_release": "1.4.209", "_release": "1.4.210",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "1.4.209", "tag": "1.4.210",
"commit": "e83ed420a7c59b3d413329b046103e001ed784e5" "commit": "e096c60a4e7ca21e5e3d1ded47bd843bb2c3dda5"
}, },
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.1", "_target": "^1.2.1",

View file

@ -42,13 +42,17 @@
} }
.actionSheetItemText { .actionSheetItemText {
padding: .8em 0; padding: .7em 0;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
vertical-align: middle; vertical-align: middle;
} }
.actionSheetItemText-extraspacing {
padding: .8em 0;
}
.emby-button-noflex .actionSheetItemText { .emby-button-noflex .actionSheetItemText {
display: inline-block; display: inline-block;
} }

View file

@ -121,7 +121,8 @@
dlg.classList.add('actionsheet-fullscreen'); dlg.classList.add('actionsheet-fullscreen');
} }
if (!layoutManager.tv) { var extraSpacing = !layoutManager.tv;
if (extraSpacing) {
dlg.classList.add('actionsheet-extraSpacing'); dlg.classList.add('actionsheet-extraSpacing');
} }
@ -189,6 +190,12 @@
menuItemClass += ' ' + options.menuItemClass; menuItemClass += ' ' + options.menuItemClass;
} }
var actionSheetItemTextClass = 'actionSheetItemText';
if (extraSpacing) {
actionSheetItemTextClass += ' actionSheetItemText-extraspacing';
}
for (i = 0, length = options.items.length; i < length; i++) { for (i = 0, length = options.items.length; i < length; i++) {
option = options.items[i]; option = options.items[i];
@ -202,7 +209,7 @@
else if (renderIcon && !center) { else if (renderIcon && !center) {
html += '<i class="actionSheetItemIcon md-icon" style="visibility:hidden;">check</i>'; 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>'; html += '</button>';
} }

View file

@ -144,10 +144,6 @@
browser[matched.platform] = true; 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) { if (userAgent.toLowerCase().indexOf("playstation 4") != -1) {
browser.ps4 = true; browser.ps4 = true;
browser.tv = true; browser.tv = true;

View file

@ -261,16 +261,14 @@ define(['browser'], function (browser) {
// Only put mp3 first if mkv support is there // Only put mp3 first if mkv support is there
// Otherwise with HLS and mp3 audio we're seeing some browsers // 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
// safari is lying if ((videoTestElement.canPlayType('audio/mp4; codecs="ac-3"').replace(/no/, '') && !browser.safari) || isEdgeUniversal() || browser.tizen) {
if (!browser.safari) { videoAudioCodecs.push('ac3');
videoAudioCodecs.push('ac3');
// This works in edge desktop, but not mobile // This works in edge desktop, but not mobile
// TODO: Retest this on mobile // TODO: Retest this on mobile
if (!browser.edge || !browser.touch) { if (!browser.edge || !browser.touch) {
hlsVideoAudioCodecs.push('ac3'); hlsVideoAudioCodecs.push('ac3');
}
} }
} }

View 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
});
});

View 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();
});

View file

@ -1,6 +1,6 @@
{ {
"name": "iron-a11y-keys-behavior", "name": "iron-a11y-keys-behavior",
"version": "1.1.7", "version": "1.1.8",
"description": "A behavior that enables keybindings for greater a11y.", "description": "A behavior that enables keybindings for greater a11y.",
"keywords": [ "keywords": [
"web-components", "web-components",
@ -31,11 +31,11 @@
}, },
"ignore": [], "ignore": [],
"homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior", "homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior",
"_release": "1.1.7", "_release": "1.1.8",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.1.7", "tag": "v1.1.8",
"commit": "cde403dee704a1d3ea5f7cb49067f0eab31a8afa" "commit": "078d64750538735c27e1c68ade907a6b58aceb43"
}, },
"_source": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git", "_source": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git",
"_target": "^1.0.0", "_target": "^1.0.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "iron-a11y-keys-behavior", "name": "iron-a11y-keys-behavior",
"version": "1.1.7", "version": "1.1.8",
"description": "A behavior that enables keybindings for greater a11y.", "description": "A behavior that enables keybindings for greater a11y.",
"keywords": [ "keywords": [
"web-components", "web-components",

View file

@ -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 * To be used to express what combination of keys will trigger the relative
* callback. e.g. `keyBindings: { 'esc': '_onEscPressed'}` * callback. e.g. `keyBindings: { 'esc': '_onEscPressed'}`
* @type {Object} * @type {!Object}
*/ */
keyBindings: {}, keyBindings: {},

View file

@ -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.10", "_release": "1.0.10",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.0.10", "tag": "v1.0.10",
"commit": "f4e146da4982ff96bb25db85290c09e8de4ec734" "commit": "f4e146da4982ff96bb25db85290c09e8de4ec734"
}, },
"_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"
} }

View file

@ -27,14 +27,14 @@
}, },
"main": "iron-meta.html", "main": "iron-meta.html",
"ignore": [], "ignore": [],
"homepage": "https://github.com/polymerelements/iron-meta", "homepage": "https://github.com/PolymerElements/iron-meta",
"_release": "1.1.2", "_release": "1.1.2",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.1.2", "tag": "v1.1.2",
"commit": "bae96531b63ea6d4ce982f5592248aea849c0f5a" "commit": "bae96531b63ea6d4ce982f5592248aea849c0f5a"
}, },
"_source": "git://github.com/polymerelements/iron-meta.git", "_source": "git://github.com/PolymerElements/iron-meta.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "polymerelements/iron-meta" "_originalSource": "PolymerElements/iron-meta"
} }