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
da25a9cc2a
commit
866ecf78b4
16 changed files with 65 additions and 49 deletions
|
@ -14,12 +14,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.4.157",
|
||||
"_release": "1.4.157",
|
||||
"version": "1.4.158",
|
||||
"_release": "1.4.158",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.4.157",
|
||||
"commit": "7ec475515f1b5a785c764864221b53d9b63d8151"
|
||||
"tag": "1.4.158",
|
||||
"commit": "ffda5994565e3f458e9da09c168cfce699237a0f"
|
||||
},
|
||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "^1.2.1",
|
||||
|
|
|
@ -347,7 +347,7 @@
|
|||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return browser.touch;
|
||||
}
|
||||
|
||||
function centerDialog(dlg) {
|
||||
|
|
|
@ -136,7 +136,7 @@ define(['apphost', 'globalize', 'connectionManager', 'itemHelper', 'embyRouter',
|
|||
});
|
||||
}
|
||||
|
||||
if (playbackManager.canQueueMediaType(item.MediaType)) {
|
||||
if (playbackManager.canQueue(item)) {
|
||||
if (options.queue !== false) {
|
||||
commands.push({
|
||||
name: globalize.translate('sharedcomponents#Queue'),
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
padding: .5em;
|
||||
color: #fff;
|
||||
text-align: left;
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.cardOverlayMediaInfo {
|
||||
|
|
|
@ -58,17 +58,17 @@ button.listItem {
|
|||
flex-direction: column;
|
||||
vertical-align: middle;
|
||||
justify-content: center;
|
||||
min-height: 48px;
|
||||
min-height: 3.44em;
|
||||
}
|
||||
|
||||
.two-line {
|
||||
min-height: 72px;
|
||||
min-height: 5.15em;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.three-line {
|
||||
min-height: 88px;
|
||||
min-height: 6.3em;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
|
|
@ -28,10 +28,15 @@ define(['serverNotifications', 'playbackManager', 'events', 'globalize', 'requir
|
|||
}
|
||||
|
||||
function resetRegistration() {
|
||||
navigator.serviceWorker.ready.then(function (registration) {
|
||||
|
||||
var serviceWorker = navigator.serviceWorker;
|
||||
|
||||
if (serviceWorker) {
|
||||
serviceWorker.ready.then(function (registration) {
|
||||
serviceWorkerRegistration = registration;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
resetRegistration();
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ define(['actionsheet', 'datetime', 'playbackManager', 'globalize', 'appSettings'
|
|||
});
|
||||
}
|
||||
|
||||
if (playbackManager.canQueueMediaType(mediaType)) {
|
||||
if (playbackManager.canQueue(item)) {
|
||||
menuItems.push({
|
||||
name: globalize.translate('sharedcomponents#Queue'),
|
||||
id: 'queue'
|
||||
|
|
|
@ -170,12 +170,7 @@ define(['browser', 'layoutManager', 'scrollStyles'], function (browser, layoutMa
|
|||
// transform is the only way to guarantee animation
|
||||
options.enableNativeScroll = false;
|
||||
}
|
||||
else if (browser.edge && (!browser.xboxOne && !browser.touch)) {
|
||||
// no scrolling supported
|
||||
options.enableNativeScroll = false;
|
||||
}
|
||||
else if (layoutManager.desktop ||
|
||||
!browser.animate) {
|
||||
else if (layoutManager.desktop || !browser.animate) {
|
||||
|
||||
options.enableNativeScroll = true;
|
||||
}
|
||||
|
@ -899,19 +894,24 @@ define(['browser', 'layoutManager', 'scrollStyles'], function (browser, layoutMa
|
|||
return;
|
||||
}
|
||||
var delta = normalizeWheelDelta(event);
|
||||
|
||||
if (transform) {
|
||||
// Trap scrolling only when necessary and/or requested
|
||||
if (delta > 0 && pos.dest < pos.end || delta < 0 && pos.dest > pos.start) {
|
||||
//stopDefault(event, 1);
|
||||
}
|
||||
|
||||
if (transform) {
|
||||
self.slideBy(o.scrollBy * delta);
|
||||
} else {
|
||||
|
||||
if (isSmoothScrollSupported) {
|
||||
delta *= 12;
|
||||
}
|
||||
|
||||
if (o.horizontal) {
|
||||
slideeElement.scrollLeft += 12 * delta;
|
||||
slideeElement.scrollLeft += delta;
|
||||
} else {
|
||||
slideeElement.scrollTop += 12 * delta;
|
||||
slideeElement.scrollTop += delta;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.9",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.9",
|
||||
"commit": "f6fb241901377e30e2c9c6cd47e3e8e8beb6574d"
|
||||
},
|
||||
"_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"
|
||||
}
|
|
@ -26,14 +26,14 @@
|
|||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"main": "iron-meta.html",
|
||||
"homepage": "https://github.com/PolymerElements/iron-meta",
|
||||
"homepage": "https://github.com/polymerelements/iron-meta",
|
||||
"_release": "1.1.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.1.1",
|
||||
"commit": "e171ee234b482219c9514e6f9551df48ef48bd9f"
|
||||
},
|
||||
"_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"
|
||||
}
|
|
@ -32,14 +32,14 @@
|
|||
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
||||
},
|
||||
"private": true,
|
||||
"homepage": "https://github.com/Polymer/polymer",
|
||||
"homepage": "https://github.com/polymer/polymer",
|
||||
"_release": "1.6.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.6.1",
|
||||
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
||||
},
|
||||
"_source": "git://github.com/Polymer/polymer.git",
|
||||
"_source": "git://github.com/polymer/polymer.git",
|
||||
"_target": "^1.1.0",
|
||||
"_originalSource": "Polymer/polymer"
|
||||
"_originalSource": "polymer/polymer"
|
||||
}
|
|
@ -78,7 +78,7 @@ paper-input + .fieldDescription {
|
|||
|
||||
.dashboardDocument .mainDrawer {
|
||||
z-index: 998 !important;
|
||||
top: 65px !important;
|
||||
top: 58px !important;
|
||||
left: 0 !important;
|
||||
transform: none !important;
|
||||
}
|
||||
|
|
|
@ -220,22 +220,26 @@
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.dashboardDocument .viewMenuBar {
|
||||
.dashboardDocument {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.dashboardDocument .viewMenuBar {
|
||||
background-color: #333;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboardDocument .viewMenuBar .primaryIcons {
|
||||
padding: .7em 0;
|
||||
}
|
||||
|
||||
.dashboardDocument.withTallToolbar .primaryIcons {
|
||||
.dashboardDocument.withTallToolbar .primaryIcons {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboardDocument .viewMenuBar #selectionBar {
|
||||
.dashboardDocument .viewMenuBar #selectionBar {
|
||||
height: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
.viewMenuBarTabs {
|
||||
width: 100%;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
@media all and (min-width: 300px) {
|
||||
|
||||
.libraryViewNav {
|
||||
.libraryViewNav, .libraryViewNav > .contentScrollSlider {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.libraryViewNav .pageTabButton {
|
||||
|
|
|
@ -272,7 +272,9 @@
|
|||
clickBar: 1,
|
||||
//centerOffset: window.innerWidth * .05,
|
||||
hiddenScroll: true,
|
||||
requireAnimation: true
|
||||
|
||||
// In safari the transform is causing the headers to occasionally disappear or flicker
|
||||
requireAnimation: !browserInfo.safari
|
||||
});
|
||||
tabs.scroller.init();
|
||||
} else {
|
||||
|
|
|
@ -1344,7 +1344,7 @@ var AppInfo = {};
|
|||
howler: bowerPath + '/howler.js/howler.min',
|
||||
sortable: bowerPath + '/Sortable/Sortable.min',
|
||||
isMobile: bowerPath + '/isMobile/isMobile.min',
|
||||
headroom: bowerPath + '/headroom.js/dist/headroom.min',
|
||||
headroom: bowerPath + '/headroom.js/dist/headroom',
|
||||
masonry: bowerPath + '/masonry/dist/masonry.pkgd.min',
|
||||
humanedate: 'components/humanedate',
|
||||
libraryBrowser: 'scripts/librarybrowser',
|
||||
|
@ -1647,6 +1647,9 @@ var AppInfo = {};
|
|||
canPlay: function (item) {
|
||||
return MediaController.canPlay(item);
|
||||
},
|
||||
canQueue: function (item) {
|
||||
return MediaController.canQueueMediaType(item.MediaType, item.Type);
|
||||
},
|
||||
instantMix: function (item) {
|
||||
return MediaController.instantMix(item);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue