1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update resource loading

This commit is contained in:
Luke Pulverenti 2016-07-09 17:09:21 -04:00
parent a3528b8e62
commit 4cbdc2a0aa
9 changed files with 16 additions and 41 deletions

View file

@ -1,4 +1,4 @@
define(['dialogHelper', 'paper-checkbox', 'paper-input', 'paper-button', 'paper-icon-button-light'], function (dialogHelper) {
define(['dialogHelper', 'paper-checkbox', 'paper-input', 'emby-button', 'paper-icon-button-light'], function (dialogHelper) {
var extractedName;
var extractedYear;

View file

@ -1,4 +1,4 @@
define(['dialogHelper', 'jQuery', 'emby-input', 'paper-button', 'emby-collapsible', 'paper-checkbox', 'paper-icon-button-light'], function (dialogHelper, $) {
define(['dialogHelper', 'jQuery', 'emby-input', 'emby-button', 'emby-collapsible', 'paper-checkbox', 'paper-icon-button-light'], function (dialogHelper, $) {
function renderLibrarySharingList(context, result) {

View file

@ -1,4 +1,4 @@
define(['jQuery', 'registrationservices', 'paper-checkbox', 'paper-button', 'emby-input', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function ($, registrationServices) {
define(['jQuery', 'registrationservices', 'paper-checkbox', 'emby-input', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function ($, registrationServices) {
return function (page, providerId, options) {

View file

@ -40,18 +40,15 @@ body:not(.dashboardDocument) .mainDrawerButton {
height: 50px;
}
.viewMenuBar, .libraryViewNav {
background-color: #000;
.libraryDocument .viewMenuBar, .libraryViewNav {
background-color: #000 !important;
box-shadow: none !important;
}
.viewMenuBar.semiTransparent {
background-color: #000;
}
.libraryViewNav {
box-shadow: none;
}
.libraryViewNav .pageTabButton {
font-weight: 400;
text-transform: none;
@ -135,19 +132,10 @@ h1, h1 a {
border-radius: 10px;
}
.bottomFab {
bottom: 120px !important;
}
.sidebarLinkText {
font-weight: 400 !important;
}
#footer {
/* Eliminate transparency to prevent clicks from passing through to the elements underneath */
background-color: rgb(26,26,26);
}
.nowPlayingPageBackButton {
display: none !important;
}
@ -172,7 +160,6 @@ h1, h1 a {
right: 5px !important;
}
.alphaPickerButton.selected {
background-color: transparent !important;
color: #52B54B !important;
.searchBackButton {
display: none !important;
}

View file

@ -498,7 +498,7 @@
}
var artist = page.querySelectorAll('.artist');
for (i = 0, length = itemMiscInfo.length; i < length; i++) {
for (i = 0, length = artist.length; i < length; i++) {
if (item.ArtistItems && item.ArtistItems.length && item.Type != "MusicAlbum") {
artist[i].classList.remove('hide');
artist[i].innerHTML = getArtistLinksHtml(item.ArtistItems, context);

View file

@ -1695,7 +1695,7 @@
if (screenWidth >= 420) return 2;
return 1;
case 'smallBackdrop':
if (screenWidth >= 1440) return 6;
if (screenWidth >= 1440) return 8;
if (screenWidth >= 1100) return 6;
if (screenWidth >= 800) return 5;
if (screenWidth >= 600) return 4;
@ -1703,7 +1703,7 @@
if (screenWidth >= 420) return 2;
return 1;
case 'homePageSmallBackdrop':
if (screenWidth >= 1440) return 6;
if (screenWidth >= 1440) return 8;
if (screenWidth >= 1100) return 6;
if (screenWidth >= 800) return 5;
if (screenWidth >= 600) return 4;

View file

@ -1186,8 +1186,10 @@ var Dashboard = {
if (AppInfo.hasLowImageBandwidth) {
// The native app can handle a little bit more than safari
if (!AppInfo.isNativeApp) {
if (AppInfo.isNativeApp) {
quality -= 5;
} else {
quality -= 20;
}
}
@ -1788,7 +1790,7 @@ var AppInfo = {};
define("actionsheet", [embyWebComponentsBowerPath + "/actionsheet/actionsheet"], returnFirstDependency);
}
define("libjass", [bowerPath + "/libjass/libjass", "css!" + bowerPath + "/libjass/libjass"], returnFirstDependency);
define("libjass", [bowerPath + "/libjass/libjass.min", "css!" + bowerPath + "/libjass/libjass"], returnFirstDependency);
define("emby-collapse", [embyWebComponentsBowerPath + "/emby-collapse/emby-collapse"], returnFirstDependency);
define("emby-button", [embyWebComponentsBowerPath + "/emby-button/emby-button"], returnFirstDependency);
@ -1877,7 +1879,6 @@ var AppInfo = {};
// Done
define("emby-icons", ['webcomponentsjs', "html!" + bowerPath + "/emby-icons/emby-icons.html"]);
define("paper-spinner", ['webcomponentsjs', "html!" + bowerPath + "/paper-spinner/paper-spinner.html"]);
define("paper-button", ["html!" + bowerPath + "/paper-button/paper-button.html"]);
define("paper-icon-button", ["html!" + bowerPath + "/paper-icon-button/paper-icon-button.html"]);
define("paper-radio-group", ["html!" + bowerPath + "/paper-radio-group/paper-radio-group.html"]);

View file

@ -24,7 +24,7 @@
}
</style>
<button is="paper-icon-button-light" style="position: absolute; top: .6em; left: 0; z-index: 1;" tabindex="-1" class="btnBack autoSize">
<button is="paper-icon-button-light" style="position: absolute; top: .6em; left: 0; z-index: 1;" tabindex="-1" class="btnBack autoSize searchBackButton">
<i class="md-icon">&#xE5C4;</i>
</button>

View file

@ -224,19 +224,6 @@ paper-fab.accent {
background-color: #e57373 !important;
}
paper-menu-item {
padding: .35em .5em;
cursor: pointer;
}
paper-menu-item iron-icon {
margin-right: 1.5em;
}
paper-menu-item:hover {
background: #eee;
}
.scrollablePaperTabs paper-icon-button {
display: none !important;
}