mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
order all routes by category
This commit is contained in:
parent
34c0d6019e
commit
4bf12b1682
@ -24,6 +24,13 @@ define([
|
|||||||
console.log("defining core routes");
|
console.log("defining core routes");
|
||||||
|
|
||||||
// authentication
|
// authentication
|
||||||
|
defineRoute({
|
||||||
|
path: "/selectserver.html",
|
||||||
|
autoFocus: false,
|
||||||
|
anonymous: true,
|
||||||
|
startup: true,
|
||||||
|
controller: "selectserver"
|
||||||
|
});
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/addserver.html",
|
path: "/addserver.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
@ -31,6 +38,13 @@ define([
|
|||||||
startup: true,
|
startup: true,
|
||||||
controller: "addserver"
|
controller: "addserver"
|
||||||
});
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/login.html",
|
||||||
|
autoFocus: false,
|
||||||
|
anonymous: true,
|
||||||
|
startup: true,
|
||||||
|
controller: "loginpage"
|
||||||
|
});
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/forgotpassword.html",
|
path: "/forgotpassword.html",
|
||||||
anonymous: true,
|
anonymous: true,
|
||||||
@ -66,6 +80,93 @@ define([
|
|||||||
enableMediaControl: false
|
enableMediaControl: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// media
|
||||||
|
defineRoute({
|
||||||
|
path: "/home.html",
|
||||||
|
autoFocus: false,
|
||||||
|
controller: "home",
|
||||||
|
transition: "fade",
|
||||||
|
type: "home"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/list.html",
|
||||||
|
autoFocus: false,
|
||||||
|
controller: "list",
|
||||||
|
transition: "fade"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/search.html",
|
||||||
|
controller: "searchpage"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/itemdetails.html",
|
||||||
|
controller: "itemdetailpage",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/livetv.html",
|
||||||
|
controller: "livetv/livetvsuggested",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/movies.html",
|
||||||
|
autoFocus: false,
|
||||||
|
controller: "movies/moviesrecommended",
|
||||||
|
transition: "fade"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/music.html",
|
||||||
|
controller: "music/musicrecommended",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/tv.html",
|
||||||
|
autoFocus: false,
|
||||||
|
controller: "shows/tvrecommended",
|
||||||
|
transition: "fade"
|
||||||
|
});
|
||||||
|
|
||||||
|
// user
|
||||||
|
defineRoute({
|
||||||
|
path: "/mypreferencesmenu.html",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade",
|
||||||
|
controller: "user/menu"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/myprofile.html",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade",
|
||||||
|
controller: "user/profile"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/mypreferencesdisplay.html",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade",
|
||||||
|
controller: "user/display"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/mypreferenceshome.html",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade",
|
||||||
|
controller: "user/home"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/mypreferencesplayback.html",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade",
|
||||||
|
controller: "user/playback"
|
||||||
|
});
|
||||||
|
defineRoute({
|
||||||
|
path: "/mypreferencessubtitles.html",
|
||||||
|
autoFocus: false,
|
||||||
|
transition: "fade",
|
||||||
|
controller: "user/subtitles"
|
||||||
|
});
|
||||||
|
|
||||||
// dashboard
|
// dashboard
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/dashboard.html",
|
path: "/dashboard.html",
|
||||||
@ -126,25 +227,6 @@ define([
|
|||||||
roles: "admin",
|
roles: "admin",
|
||||||
controller: "encodingsettings"
|
controller: "encodingsettings"
|
||||||
});
|
});
|
||||||
defineRoute({
|
|
||||||
path: "/home.html",
|
|
||||||
autoFocus: false,
|
|
||||||
controller: "home",
|
|
||||||
transition: "fade",
|
|
||||||
type: "home"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/list.html",
|
|
||||||
autoFocus: false,
|
|
||||||
controller: "list",
|
|
||||||
transition: "fade"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/itemdetails.html",
|
|
||||||
controller: "itemdetailpage",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade"
|
|
||||||
});
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/library.html",
|
path: "/library.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
@ -163,12 +245,6 @@ define([
|
|||||||
roles: "admin",
|
roles: "admin",
|
||||||
controller: "librarysettings"
|
controller: "librarysettings"
|
||||||
});
|
});
|
||||||
defineRoute({
|
|
||||||
path: "/livetv.html",
|
|
||||||
controller: "livetv/livetvsuggested",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade"
|
|
||||||
});
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/livetvguideprovider.html",
|
path: "/livetvguideprovider.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
@ -197,18 +273,6 @@ define([
|
|||||||
roles: "admin",
|
roles: "admin",
|
||||||
controller: "dashboard/logs"
|
controller: "dashboard/logs"
|
||||||
});
|
});
|
||||||
defineRoute({
|
|
||||||
path: "/login.html",
|
|
||||||
autoFocus: false,
|
|
||||||
anonymous: true,
|
|
||||||
startup: true,
|
|
||||||
controller: "loginpage"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/metadataadvanced.html",
|
|
||||||
autoFocus: false,
|
|
||||||
roles: "admin"
|
|
||||||
});
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/metadataimages.html",
|
path: "/metadataimages.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
@ -221,54 +285,6 @@ define([
|
|||||||
roles: "admin",
|
roles: "admin",
|
||||||
controller: "metadatanfo"
|
controller: "metadatanfo"
|
||||||
});
|
});
|
||||||
defineRoute({
|
|
||||||
path: "/movies.html",
|
|
||||||
autoFocus: false,
|
|
||||||
controller: "movies/moviesrecommended",
|
|
||||||
transition: "fade"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/music.html",
|
|
||||||
controller: "music/musicrecommended",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/mypreferencesmenu.html",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade",
|
|
||||||
controller: "user/menu"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/myprofile.html",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade",
|
|
||||||
controller: "user/profile"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/mypreferencesdisplay.html",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade",
|
|
||||||
controller: "user/display"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/mypreferenceshome.html",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade",
|
|
||||||
controller: "user/home"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/mypreferencesplayback.html",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade",
|
|
||||||
controller: "user/playback"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/mypreferencessubtitles.html",
|
|
||||||
autoFocus: false,
|
|
||||||
transition: "fade",
|
|
||||||
controller: "user/subtitles"
|
|
||||||
});
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/notificationsetting.html",
|
path: "/notificationsetting.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
@ -309,24 +325,13 @@ define([
|
|||||||
path: "/scheduledtask.html",
|
path: "/scheduledtask.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
roles: "admin",
|
roles: "admin",
|
||||||
controller: "scheduledtasks/scheduledtask"
|
controller: "dashboard/scheduledtasks/scheduledtask"
|
||||||
});
|
});
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/scheduledtasks.html",
|
path: "/scheduledtasks.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
roles: "admin",
|
roles: "admin",
|
||||||
controller: "scheduledtasks/scheduledtasks"
|
controller: "dashboard/scheduledtasks/scheduledtasks"
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/search.html",
|
|
||||||
controller: "searchpage"
|
|
||||||
});
|
|
||||||
defineRoute({
|
|
||||||
path: "/selectserver.html",
|
|
||||||
autoFocus: false,
|
|
||||||
anonymous: true,
|
|
||||||
startup: true,
|
|
||||||
controller: "selectserver"
|
|
||||||
});
|
});
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/serveractivity.html",
|
path: "/serveractivity.html",
|
||||||
@ -346,12 +351,6 @@ define([
|
|||||||
roles: "admin",
|
roles: "admin",
|
||||||
controller: "streamingsettings"
|
controller: "streamingsettings"
|
||||||
});
|
});
|
||||||
defineRoute({
|
|
||||||
path: "/tv.html",
|
|
||||||
autoFocus: false,
|
|
||||||
controller: "shows/tvrecommended",
|
|
||||||
transition: "fade"
|
|
||||||
});
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/useredit.html",
|
path: "/useredit.html",
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
@ -388,6 +387,15 @@ define([
|
|||||||
controller: "userprofilespage"
|
controller: "userprofilespage"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// plugins
|
||||||
|
defineRoute({
|
||||||
|
path: "/configurationpage",
|
||||||
|
autoFocus: false,
|
||||||
|
enableCache: false,
|
||||||
|
enableContentQueryString: true,
|
||||||
|
roles: "admin"
|
||||||
|
});
|
||||||
|
|
||||||
// startup wizard
|
// startup wizard
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: "/wizardremoteaccess.html",
|
path: "/wizardremoteaccess.html",
|
||||||
@ -425,13 +433,6 @@ define([
|
|||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
anonymous: true
|
anonymous: true
|
||||||
});
|
});
|
||||||
defineRoute({
|
|
||||||
path: "/configurationpage",
|
|
||||||
autoFocus: false,
|
|
||||||
enableCache: false,
|
|
||||||
enableContentQueryString: true,
|
|
||||||
roles: "admin"
|
|
||||||
});
|
|
||||||
|
|
||||||
// root
|
// root
|
||||||
defineRoute({
|
defineRoute({
|
||||||
|
Loading…
Reference in New Issue
Block a user