mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add loopback handler
This commit is contained in:
parent
5df126af54
commit
7919964805
12 changed files with 16 additions and 51 deletions
|
@ -220,7 +220,7 @@
|
||||||
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button docked-tab-livetv hide' + liveTVButtonClass + '" data-index="2">\
|
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button docked-tab-livetv hide' + liveTVButtonClass + '" data-index="2">\
|
||||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">live_tv</i><div>' + globalize.translate('HeaderLiveTV') + '</div></div>\
|
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">live_tv</i><div>' + globalize.translate('HeaderLiveTV') + '</div></div>\
|
||||||
</button>\
|
</button>\
|
||||||
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button homeFavoritesTab" data-index="3">\
|
<button is="emby-button" class="dockedtabs-tab-button emby-tab-button" data-index="3">\
|
||||||
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">favorite</i><div>' + globalize.translate('TabFavorites') + '</div></div>\
|
<div class="dockedtabs-tab-button-foreground emby-button-foreground"><i class="dockedtabs-tab-button-icon md-icon">favorite</i><div>' + globalize.translate('TabFavorites') + '</div></div>\
|
||||||
</button>\
|
</button>\
|
||||||
';
|
';
|
||||||
|
|
|
@ -957,10 +957,6 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.homeFavoritesDisabled .homeFavoritesTab {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
#criticReviewsContent.hiddenScrollX {
|
#criticReviewsContent.hiddenScrollX {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,9 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-left: .75em;
|
margin-left: .75em;
|
||||||
font-size: 108%;
|
font-size: 108%;
|
||||||
|
|
||||||
|
/* Avoid pushing right header off the screen */
|
||||||
|
flex-shrink: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.viewMenuBar {
|
.viewMenuBar {
|
||||||
|
|
|
@ -102,12 +102,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.nowPlayingImage img {
|
.nowPlayingImage img {
|
||||||
height: 56px;
|
height: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nowPlayingBar .nowPlayingImage {
|
.nowPlayingBar .nowPlayingImage {
|
||||||
width: 56px;
|
width: 64px;
|
||||||
height: 56px;
|
height: 64px;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
|
@ -161,7 +161,7 @@
|
||||||
.nowPlayingBarCenter {
|
.nowPlayingBarCenter {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 3px;
|
margin-top: 6px;
|
||||||
/* Need this to make sure it's on top of nowPlayingBarPositionContainer so that buttons are fully clickable */
|
/* Need this to make sure it's on top of nowPlayingBarPositionContainer so that buttons are fully clickable */
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -172,7 +172,7 @@
|
||||||
|
|
||||||
.nowPlayingBarPositionContainer {
|
.nowPlayingBarPositionContainer {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
left: 56px;
|
left: 64px;
|
||||||
top: -8px;
|
top: -8px;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
|
@ -23,24 +23,11 @@ body:not(.dashboardDocument) .mainDrawerButton {
|
||||||
background-attachment: initial;
|
background-attachment: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
.background-theme-b .backgroundContainer:not(.withBackdrop), .dialog.background-theme-b {
|
|
||||||
background: #181818;
|
|
||||||
}
|
|
||||||
|
|
||||||
.viewMenuBar {
|
.viewMenuBar {
|
||||||
/* It needs this in order to retain height since we're positioning the contents absolutely */
|
/* It needs this in order to retain height since we're positioning the contents absolutely */
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.libraryDocument .viewMenuBar, .libraryViewNav {
|
|
||||||
background-color: #000 !important;
|
|
||||||
box-shadow: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.viewMenuBar.semiTransparent {
|
|
||||||
background-color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.emby-tab-button {
|
.emby-tab-button {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-transform: none !important;
|
text-transform: none !important;
|
||||||
|
@ -56,14 +43,6 @@ body:not(.dashboardDocument) .mainDrawerButton {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (max-width: 600px) {
|
|
||||||
|
|
||||||
.libraryViewNav a {
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.libraryViewNav {
|
.libraryViewNav {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
@ -92,10 +71,6 @@ h1, h1 a {
|
||||||
font-weight: 400 !important;
|
font-weight: 400 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nowPlayingPageBackButton {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nowPlayingPage .libraryViewNav {
|
.nowPlayingPage .libraryViewNav {
|
||||||
top: 0 !important;
|
top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="1">
|
<button is="emby-button" class="emby-tab-button" data-index="1">
|
||||||
<div class="emby-button-foreground">${TabNextUp}</div>
|
<div class="emby-button-foreground">${TabNextUp}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button homeFavoritesTab" data-index="2">
|
<button is="emby-button" class="emby-tab-button" data-index="2">
|
||||||
<div class="emby-button-foreground">${TabFavorites}</div>
|
<div class="emby-button-foreground">${TabFavorites}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="3">
|
<button is="emby-button" class="emby-tab-button" data-index="3">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="1">
|
<button is="emby-button" class="emby-tab-button" data-index="1">
|
||||||
<div class="emby-button-foreground">${TabGuide}</div>
|
<div class="emby-button-foreground">${TabGuide}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button homeFavoritesTab" data-index="2">
|
<button is="emby-button" class="emby-tab-button" data-index="2">
|
||||||
<div class="emby-button-foreground">${TabChannels}</div>
|
<div class="emby-button-foreground">${TabChannels}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="3">
|
<button is="emby-button" class="emby-tab-button" data-index="3">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="1">
|
<button is="emby-button" class="emby-tab-button" data-index="1">
|
||||||
<div class="emby-button-foreground">${TabMovies}</div>
|
<div class="emby-button-foreground">${TabMovies}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button homeFavoritesTab" data-index="2">
|
<button is="emby-button" class="emby-tab-button" data-index="2">
|
||||||
<div class="emby-button-foreground">${TabTrailers}</div>
|
<div class="emby-button-foreground">${TabTrailers}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="3">
|
<button is="emby-button" class="emby-tab-button" data-index="3">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="1">
|
<button is="emby-button" class="emby-tab-button" data-index="1">
|
||||||
<div class="emby-button-foreground">${TabAlbums}</div>
|
<div class="emby-button-foreground">${TabAlbums}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button homeFavoritesTab" data-index="2">
|
<button is="emby-button" class="emby-tab-button" data-index="2">
|
||||||
<div class="emby-button-foreground">${TabAlbumArtists}</div>
|
<div class="emby-button-foreground">${TabAlbumArtists}</div>
|
||||||
</button>
|
</button>
|
||||||
<button is="emby-button" class="emby-tab-button" data-index="3">
|
<button is="emby-button" class="emby-tab-button" data-index="3">
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
|
|
||||||
LibraryBrowser.renderName(item, page.querySelector('.itemName'), false, context);
|
LibraryBrowser.renderName(item, page.querySelector('.itemName'), false, context);
|
||||||
LibraryBrowser.renderParentName(item, page.querySelector('.parentName'), context);
|
LibraryBrowser.renderParentName(item, page.querySelector('.parentName'), context);
|
||||||
LibraryMenu.setTitle(item.SeriesName || item.Name);
|
LibraryMenu.setTitle('');
|
||||||
|
|
||||||
Dashboard.getCurrentUser().then(function (user) {
|
Dashboard.getCurrentUser().then(function (user) {
|
||||||
|
|
||||||
|
|
|
@ -366,9 +366,7 @@
|
||||||
var secondaryTitle = (link.innerText || link.textContent).trim();
|
var secondaryTitle = (link.innerText || link.textContent).trim();
|
||||||
title += secondaryTitle;
|
title += secondaryTitle;
|
||||||
|
|
||||||
var documentTitle = secondaryTitle;
|
LibraryMenu.setTitle(title);
|
||||||
|
|
||||||
LibraryMenu.setTitle(title, documentTitle);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
link.classList.remove('selectedSidebarLink');
|
link.classList.remove('selectedSidebarLink');
|
||||||
|
@ -698,7 +696,7 @@
|
||||||
libraryMenuButtonText.innerHTML = html;
|
libraryMenuButtonText.innerHTML = html;
|
||||||
}
|
}
|
||||||
|
|
||||||
document.title = title;
|
document.title = title || 'Emby';
|
||||||
},
|
},
|
||||||
|
|
||||||
setTransparentMenu: function (transparent) {
|
setTransparentMenu: function (transparent) {
|
||||||
|
|
|
@ -882,7 +882,6 @@ var AppInfo = {};
|
||||||
|
|
||||||
var isCordova = Dashboard.isRunningInCordova();
|
var isCordova = Dashboard.isRunningInCordova();
|
||||||
|
|
||||||
AppInfo.enableHomeFavorites = true;
|
|
||||||
AppInfo.enableHomeTabs = true;
|
AppInfo.enableHomeTabs = true;
|
||||||
AppInfo.enableNowPlayingPageBottomTabs = true;
|
AppInfo.enableNowPlayingPageBottomTabs = true;
|
||||||
AppInfo.enableAutoSave = browserInfo.touch;
|
AppInfo.enableAutoSave = browserInfo.touch;
|
||||||
|
@ -898,8 +897,6 @@ var AppInfo = {};
|
||||||
AppInfo.hasLowImageBandwidth = true;
|
AppInfo.hasLowImageBandwidth = true;
|
||||||
|
|
||||||
if (isCordova) {
|
if (isCordova) {
|
||||||
//AppInfo.enableSectionTransitions = true;
|
|
||||||
AppInfo.enableHomeFavorites = false;
|
|
||||||
AppInfo.enableNowPlayingPageBottomTabs = false;
|
AppInfo.enableNowPlayingPageBottomTabs = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1059,10 +1056,6 @@ var AppInfo = {};
|
||||||
if (!AppInfo.enableSupporterMembership) {
|
if (!AppInfo.enableSupporterMembership) {
|
||||||
elem.classList.add('supporterMembershipDisabled');
|
elem.classList.add('supporterMembershipDisabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!AppInfo.enableHomeFavorites) {
|
|
||||||
elem.classList.add('homeFavoritesDisabled');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadTheme() {
|
function loadTheme() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue