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

move wizard and user preference routes to nested folders

This commit is contained in:
dkanada 2020-07-26 15:09:40 +09:00
parent a353812400
commit c0261ee487
30 changed files with 55 additions and 42 deletions

View file

@ -189,8 +189,8 @@
"src/controllers/dashboard/users/userparentalcontrol.js", "src/controllers/dashboard/users/userparentalcontrol.js",
"src/controllers/dashboard/users/userpasswordpage.js", "src/controllers/dashboard/users/userpasswordpage.js",
"src/controllers/dashboard/users/userprofilespage.js", "src/controllers/dashboard/users/userprofilespage.js",
"src/controllers/playback/nowplaying.js", "src/controllers/playback/queue/index.js",
"src/controllers/playback/videoosd.js", "src/controllers/playback/video/index.js",
"src/controllers/searchpage.js", "src/controllers/searchpage.js",
"src/controllers/shows/episodes.js", "src/controllers/shows/episodes.js",
"src/controllers/shows/tvgenres.js", "src/controllers/shows/tvgenres.js",
@ -199,18 +199,18 @@
"src/controllers/shows/tvshows.js", "src/controllers/shows/tvshows.js",
"src/controllers/shows/tvstudios.js", "src/controllers/shows/tvstudios.js",
"src/controllers/shows/tvupcoming.js", "src/controllers/shows/tvupcoming.js",
"src/controllers/user/display.js", "src/controllers/user/display/index.js",
"src/controllers/user/home.js", "src/controllers/user/home/index.js",
"src/controllers/user/menu.js", "src/controllers/user/menu/index.js",
"src/controllers/user/playback.js", "src/controllers/user/playback/index.js",
"src/controllers/user/profile.js", "src/controllers/user/profile/index.js",
"src/controllers/user/subtitles.js", "src/controllers/user/subtitles/index.js",
"src/controllers/user/subtitles.js", "src/controllers/user/subtitles/index.js",
"src/controllers/wizard/finish.js", "src/controllers/wizard/finish/index.js",
"src/controllers/wizard/remoteaccess.js", "src/controllers/wizard/remote/index.js",
"src/controllers/wizard/settings.js", "src/controllers/wizard/settings/index.js",
"src/controllers/wizard/start.js", "src/controllers/wizard/start/index.js",
"src/controllers/wizard/user.js", "src/controllers/wizard/user/index.js",
"src/elements/emby-button/emby-button.js", "src/elements/emby-button/emby-button.js",
"src/elements/emby-button/paper-icon-button-light.js", "src/elements/emby-button/paper-icon-button-light.js",
"src/elements/emby-checkbox/emby-checkbox.js", "src/elements/emby-checkbox/emby-checkbox.js",

View file

@ -16,7 +16,7 @@ define(['loading', 'globalize', 'events', 'viewManager', 'skinManager', 'backdro
show('/settings/settings.html'); show('/settings/settings.html');
}, },
showNowPlaying: function () { showNowPlaying: function () {
show('/nowplaying.html'); show('queue');
} }
}; };

View file

@ -61,40 +61,46 @@ define([
}); });
defineRoute({ defineRoute({
path: '/mypreferencesmenu.html', alias: '/mypreferencesmenu.html',
path: '/controllers/user/menu/index.html',
autoFocus: false, autoFocus: false,
transition: 'fade', transition: 'fade',
controller: 'user/menu' controller: 'user/menu/index'
}); });
defineRoute({ defineRoute({
path: '/myprofile.html', alias: '/myprofile.html',
path: '/controllers/user/profile/index.html',
autoFocus: false, autoFocus: false,
transition: 'fade', transition: 'fade',
controller: 'user/profile' controller: 'user/profile/index'
}); });
defineRoute({ defineRoute({
path: '/mypreferencesdisplay.html', alias: '/mypreferencesdisplay.html',
path: '/controllers/user/display/index.html',
autoFocus: false, autoFocus: false,
transition: 'fade', transition: 'fade',
controller: 'user/display' controller: 'user/display/index'
}); });
defineRoute({ defineRoute({
path: '/mypreferenceshome.html', alias: '/mypreferenceshome.html',
path: '/controllers/user/home/index.html',
autoFocus: false, autoFocus: false,
transition: 'fade', transition: 'fade',
controller: 'user/home' controller: 'user/home/index'
}); });
defineRoute({ defineRoute({
path: '/mypreferencesplayback.html', alias: '/mypreferencesplayback.html',
path: '/controllers/user/playback/index.html',
autoFocus: false, autoFocus: false,
transition: 'fade', transition: 'fade',
controller: 'user/playback' controller: 'user/playback/index'
}); });
defineRoute({ defineRoute({
path: '/mypreferencessubtitles.html', alias: '/mypreferencessubtitles.html',
path: '/controllers/user/subtitles/index.html',
autoFocus: false, autoFocus: false,
transition: 'fade', transition: 'fade',
controller: 'user/subtitles' controller: 'user/subtitles/index'
}); });
defineRoute({ defineRoute({
@ -367,16 +373,18 @@ define([
}); });
defineRoute({ defineRoute({
path: '/wizardremoteaccess.html', alias: '/wizardremoteaccess.html',
path: '/controllers/wizard/remote/index.html',
autoFocus: false, autoFocus: false,
anonymous: true, anonymous: true,
controller: 'wizard/remoteaccess' controller: 'wizard/remote/index'
}); });
defineRoute({ defineRoute({
path: '/wizardfinish.html', alias: '/wizardfinish.html',
path: '/controllers/wizard/finish/index.html',
autoFocus: false, autoFocus: false,
anonymous: true, anonymous: true,
controller: 'wizard/finish' controller: 'wizard/finish/index'
}); });
defineRoute({ defineRoute({
path: '/wizardlibrary.html', path: '/wizardlibrary.html',
@ -385,28 +393,32 @@ define([
controller: 'dashboard/mediaLibrary' controller: 'dashboard/mediaLibrary'
}); });
defineRoute({ defineRoute({
path: '/wizardsettings.html', alias: '/wizardsettings.html',
path: '/controllers/wizard/settings/index.html',
autoFocus: false, autoFocus: false,
anonymous: true, anonymous: true,
controller: 'wizard/settings' controller: 'wizard/settings/index'
}); });
defineRoute({ defineRoute({
path: '/wizardstart.html', alias: '/wizardstart.html',
path: '/controllers/wizard/start/index.html',
autoFocus: false, autoFocus: false,
anonymous: true, anonymous: true,
controller: 'wizard/start' controller: 'wizard/start/index'
}); });
defineRoute({ defineRoute({
path: '/wizarduser.html', alias: '/wizarduser.html',
controller: 'wizard/user', path: '/controllers/wizard/user/index.html',
controller: 'wizard/user/index',
autoFocus: false, autoFocus: false,
anonymous: true anonymous: true
}); });
defineRoute({ defineRoute({
path: '/videoosd.html', alias: '/video',
path: '/controllers/playback/video/index.html',
transition: 'fade', transition: 'fade',
controller: 'playback/videoosd', controller: 'playback/video/index',
autoFocus: false, autoFocus: false,
type: 'video-osd', type: 'video-osd',
supportsThemeMedia: true, supportsThemeMedia: true,
@ -414,8 +426,9 @@ define([
enableMediaControl: false enableMediaControl: false
}); });
defineRoute({ defineRoute({
path: '/nowplaying.html', alias: '/queue',
controller: 'playback/nowplaying', path: '/controllers/playback/queue/index.html',
controller: 'playback/queue/index',
autoFocus: false, autoFocus: false,
transition: 'fade', transition: 'fade',
fullscreen: true, fullscreen: true,

View file

@ -890,7 +890,7 @@ var AppInfo = {};
}; };
appRouter.showVideoOsd = function () { appRouter.showVideoOsd = function () {
return Dashboard.navigate('videoosd.html'); return Dashboard.navigate('video');
}; };
appRouter.showSelectServer = function () { appRouter.showSelectServer = function () {