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

optimize dlna views

This commit is contained in:
Luke Pulverenti 2016-05-16 14:20:08 -04:00
parent 3cc014002e
commit 146daaccd0
4 changed files with 48 additions and 53 deletions

View file

@ -1752,7 +1752,8 @@ var AppInfo = {};
globalize: embyWebComponentsBowerPath + "/globalize",
itemHelper: embyWebComponentsBowerPath + '/itemhelper',
itemShortcuts: embyWebComponentsBowerPath + "/shortcuts",
imageLoader: embyWebComponentsBowerPath + "/images/imagehelper"
imageLoader: embyWebComponentsBowerPath + "/images/imagehelper",
webAnimations: bowerPath + '/web-animations-js/web-animations-next-lite.min'
};
if (navigator.webkitPersistentStorage) {
@ -2348,13 +2349,15 @@ var AppInfo = {};
defineRoute({
path: '/channelitems.html',
dependencies: [],
autoFocus: false
autoFocus: false,
transition: 'fade'
});
defineRoute({
path: '/channels.html',
dependencies: [],
autoFocus: false
autoFocus: false,
transition: 'fade'
});
defineRoute({
@ -2522,7 +2525,8 @@ var AppInfo = {};
path: '/home.html',
dependencies: [],
autoFocus: false,
controller: 'scripts/indexpage'
controller: 'scripts/indexpage',
transition: 'fade'
});
defineRoute({
@ -2535,14 +2539,16 @@ var AppInfo = {};
defineRoute({
path: '/itemdetails.html',
dependencies: ['paper-button'],
autoFocus: false
autoFocus: false,
transition: 'fade'
});
defineRoute({
path: '/itemlist.html',
dependencies: ['paper-checkbox', 'scripts/alphapicker'],
autoFocus: false,
controller: 'scripts/itemlistpage'
controller: 'scripts/itemlistpage',
transition: 'fade'
});
defineRoute({
@ -2576,7 +2582,8 @@ var AppInfo = {};
path: '/livetv.html',
dependencies: ['paper-button', 'livetvcss'],
controller: 'scripts/livetvsuggested',
autoFocus: false
autoFocus: false,
transition: 'fade'
});
defineRoute({
@ -2692,14 +2699,16 @@ var AppInfo = {};
path: '/movies.html',
dependencies: ['paper-checkbox', 'paper-fab', 'scripts/alphapicker', 'paper-button'],
autoFocus: false,
controller: 'scripts/moviesrecommended'
controller: 'scripts/moviesrecommended',
transition: 'fade'
});
defineRoute({
path: '/music.html',
dependencies: ['scripts/alphapicker'],
controller: 'scripts/musicrecommended',
autoFocus: false
autoFocus: false,
transition: 'fade'
});
defineRoute({
@ -2781,7 +2790,8 @@ var AppInfo = {};
defineRoute({
path: '/photos.html',
dependencies: [],
autoFocus: false
autoFocus: false,
transition: 'fade'
});
defineRoute({
@ -2794,7 +2804,8 @@ var AppInfo = {};
defineRoute({
path: '/playlists.html',
dependencies: [],
autoFocus: false
autoFocus: false,
transition: 'fade'
});
defineRoute({
@ -2908,7 +2919,8 @@ var AppInfo = {};
path: '/tv.html',
dependencies: ['paper-checkbox', 'paper-icon-button-light', 'paper-button'],
autoFocus: false,
controller: 'scripts/tvrecommended'
controller: 'scripts/tvrecommended',
transition: 'fade'
});
defineRoute({
@ -3242,6 +3254,7 @@ pageClassOn('viewinit', "page", function () {
page.classList.add("ui-page");
page.classList.add("ui-page-theme-" + current);
page.classList.add("ui-body-" + current);
var contents = page.querySelectorAll("div[data-role='content']");
@ -3269,13 +3282,9 @@ pageClassOn('viewshow', "page", function () {
if (currentTheme == 'a') {
docElem.classList.add('background-theme-a');
docElem.classList.remove('background-theme-b');
page.classList.add('ui-body-a');
page.classList.remove('ui-body-b');
} else {
docElem.classList.add('background-theme-b');
docElem.classList.remove('background-theme-a');
page.classList.add('ui-body-b');
page.classList.remove('ui-body-a');
}
var apiClient = window.ApiClient;