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

570 lines
14 KiB
JavaScript
Raw Normal View History

2020-08-14 08:46:34 +02:00
import '../elements/emby-button/emby-button';
import '../elements/emby-input/emby-input';
import '../scripts/livetvcomponents';
import '../elements/emby-button/paper-icon-button-light';
import '../elements/emby-itemscontainer/emby-itemscontainer';
import '../elements/emby-collapse/emby-collapse';
import '../elements/emby-select/emby-select';
import '../elements/emby-checkbox/emby-checkbox';
import '../elements/emby-slider/emby-slider';
import '../assets/css/livetv.scss';
2020-08-14 08:46:34 +02:00
import '../components/listview/listview.css';
import '../assets/css/dashboard.css';
import '../assets/css/detailtable.scss';
2020-10-18 20:00:39 +01:00
import { appRouter } from '../components/appRouter';
2020-08-01 05:36:36 +02:00
/* eslint-disable indent */
console.groupCollapsed('defining core routes');
2019-03-18 23:48:34 +00:00
function defineRoute(newRoute) {
2020-10-07 21:12:14 +09:00
const path = newRoute.alias ? newRoute.alias : newRoute.path;
2020-05-04 12:44:12 +02:00
console.debug('defining route: ' + path);
newRoute.dictionary = 'core';
2020-10-18 20:00:39 +01:00
appRouter.addRoute(path, newRoute);
}
2019-12-15 22:42:33 +09:00
defineRoute({
alias: '/addserver.html',
2020-08-16 20:24:45 +02:00
path: 'session/addServer/index.html',
2019-12-15 22:42:33 +09:00
autoFocus: false,
2020-04-24 22:58:43 +09:00
anonymous: true,
startup: true,
controller: 'session/addServer/index'
2019-12-15 22:42:33 +09:00
});
2020-08-01 05:36:36 +02:00
2019-12-15 22:42:33 +09:00
defineRoute({
alias: '/selectserver.html',
2020-08-16 20:24:45 +02:00
path: 'session/selectServer/index.html',
2019-12-15 22:42:33 +09:00
autoFocus: false,
2020-04-24 22:58:43 +09:00
anonymous: true,
startup: true,
controller: 'session/selectServer/index',
2020-05-04 12:44:12 +02:00
type: 'selectserver'
2019-12-15 22:42:33 +09:00
});
2020-08-01 05:36:36 +02:00
2020-05-12 06:28:14 +09:00
defineRoute({
alias: '/login.html',
2020-08-16 20:24:45 +02:00
path: 'session/login/index.html',
2020-05-12 06:28:14 +09:00
autoFocus: false,
anonymous: true,
startup: true,
controller: 'session/login/index',
2020-05-12 06:28:14 +09:00
type: 'login'
});
2020-08-01 05:36:36 +02:00
2019-12-15 22:42:33 +09:00
defineRoute({
alias: '/forgotpassword.html',
2020-08-16 20:24:45 +02:00
path: 'session/forgotPassword/index.html',
2020-04-24 22:58:43 +09:00
anonymous: true,
startup: true,
controller: 'session/forgotPassword/index'
2019-12-15 22:42:33 +09:00
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/forgotpasswordpin.html',
2020-09-25 12:52:36 +02:00
path: '/controllers/session/resetPassword/index.html',
autoFocus: false,
anonymous: true,
startup: true,
2020-09-25 12:52:36 +02:00
controller: 'session/resetPassword/index'
});
2020-04-24 22:58:43 +09:00
2019-12-15 22:42:33 +09:00
defineRoute({
alias: '/mypreferencesmenu.html',
2020-08-16 20:24:45 +02:00
path: 'user/menu/index.html',
2019-12-15 22:42:33 +09:00
autoFocus: false,
controller: 'user/menu/index'
2019-12-15 22:42:33 +09:00
});
2020-08-01 05:36:36 +02:00
2019-12-15 22:42:33 +09:00
defineRoute({
alias: '/myprofile.html',
2020-08-16 20:24:45 +02:00
path: 'user/profile/index.html',
2019-12-15 22:42:33 +09:00
autoFocus: false,
controller: 'user/profile/index'
2019-12-15 22:42:33 +09:00
});
2020-08-01 05:36:36 +02:00
2019-12-15 22:42:33 +09:00
defineRoute({
alias: '/mypreferencesdisplay.html',
2020-08-16 20:24:45 +02:00
path: 'user/display/index.html',
2019-12-15 22:42:33 +09:00
autoFocus: false,
controller: 'user/display/index'
2019-12-15 22:42:33 +09:00
});
2020-08-01 05:36:36 +02:00
2020-04-12 00:44:30 -05:00
defineRoute({
alias: '/mypreferenceshome.html',
2020-08-16 20:24:45 +02:00
path: 'user/home/index.html',
2020-04-12 00:44:30 -05:00
autoFocus: false,
controller: 'user/home/index'
2020-04-12 00:44:30 -05:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
2020-07-26 23:57:28 -05:00
alias: '/mypreferencesquickconnect.html',
2020-11-07 12:33:01 +00:00
path: 'user/quickConnect/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
transition: 'fade',
2020-07-26 23:57:28 -05:00
controller: 'user/quickConnect/index'
2019-03-18 23:41:40 +00:00
});
defineRoute({
alias: '/mypreferencesplayback.html',
2020-08-16 20:24:45 +02:00
path: 'user/playback/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
controller: 'user/playback/index'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/mypreferencessubtitles.html',
2020-08-16 20:24:45 +02:00
path: 'user/subtitles/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
controller: 'user/subtitles/index'
2019-03-18 23:41:40 +00:00
});
2019-12-15 22:42:33 +09:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/dashboard.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/dashboard.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/dashboard'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/dashboardgeneral.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/general.html',
2020-05-04 12:44:12 +02:00
controller: 'dashboard/general',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2020-04-12 00:44:30 -05:00
defineRoute({
alias: '/networking.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/networking.html',
2020-04-12 00:44:30 -05:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/networking'
2020-04-12 00:44:30 -05:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/devices.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/devices/devices.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/devices/devices'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/device.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/devices/device.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/devices/device'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/quickConnect.html',
2020-11-07 12:33:01 +00:00
path: 'dashboard/quickConnect.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/quickConnect'
2019-03-18 23:41:40 +00:00
});
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/dlnaprofile.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/dlna/profile.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/dlna/profile'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/dlnaprofiles.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/dlna/profiles.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/dlna/profiles'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2020-05-12 06:28:14 +09:00
defineRoute({
alias: '/dlnasettings.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/dlna/settings.html',
2020-05-12 06:28:14 +09:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/dlna/settings'
2020-05-12 06:28:14 +09:00
});
2020-08-01 05:36:36 +02:00
2020-05-12 06:28:14 +09:00
defineRoute({
alias: '/addplugin.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/plugins/add/index.html',
2020-05-12 06:28:14 +09:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/plugins/add/index'
2020-05-12 06:28:14 +09:00
});
2020-08-01 05:36:36 +02:00
2020-05-12 06:28:14 +09:00
defineRoute({
alias: '/library.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/library.html',
2020-05-12 06:28:14 +09:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/library'
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/librarydisplay.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/librarydisplay.html',
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/librarydisplay'
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/edititemmetadata.html',
2020-08-16 20:24:45 +02:00
path: 'edititemmetadata.html',
2020-05-04 12:44:12 +02:00
controller: 'edititemmetadata',
2019-03-18 23:41:40 +00:00
autoFocus: false
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/encodingsettings.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/encodingsettings.html',
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/encodingsettings'
});
2020-08-01 05:36:36 +02:00
2020-05-17 01:00:25 +09:00
defineRoute({
alias: '/log.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/logs.html',
2020-05-17 01:00:25 +09:00
roles: 'admin',
controller: 'dashboard/logs'
});
2020-08-01 05:36:36 +02:00
2020-05-17 01:00:25 +09:00
defineRoute({
alias: '/metadataimages.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/metadataimages.html',
2020-05-17 01:00:25 +09:00
autoFocus: false,
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/metadataImages'
2020-05-17 01:00:25 +09:00
});
2020-08-01 05:36:36 +02:00
2020-05-17 01:00:25 +09:00
defineRoute({
alias: '/metadatanfo.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/metadatanfo.html',
2020-05-17 01:00:25 +09:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/metadatanfo'
});
2020-08-01 05:36:36 +02:00
2020-05-17 01:00:25 +09:00
defineRoute({
alias: '/notificationsetting.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/notifications/notification/index.html',
2020-05-17 01:00:25 +09:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/notifications/notification/index'
2020-05-17 01:00:25 +09:00
});
2020-08-01 05:36:36 +02:00
2020-05-17 01:00:25 +09:00
defineRoute({
alias: '/notificationsettings.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/notifications/notifications/index.html',
controller: 'dashboard/notifications/notifications/index',
2020-05-17 01:00:25 +09:00
autoFocus: false,
roles: 'admin'
});
2020-08-01 05:36:36 +02:00
2020-05-17 01:00:25 +09:00
defineRoute({
2020-08-08 05:31:07 +02:00
alias: '/playbackconfiguration.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/playback.html',
2020-05-17 01:00:25 +09:00
autoFocus: false,
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/playback'
2020-05-17 01:00:25 +09:00
});
2020-08-01 05:36:36 +02:00
2020-05-17 01:00:25 +09:00
defineRoute({
alias: '/availableplugins.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/plugins/available/index.html',
2020-05-17 01:00:25 +09:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/plugins/available/index'
2020-05-17 01:00:25 +09:00
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/repositories.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/plugins/repositories/index.html',
2020-05-17 01:00:25 +09:00
autoFocus: false,
roles: 'admin',
controller: 'dashboard/plugins/repositories/index'
2020-05-17 01:00:25 +09:00
});
2020-05-12 06:28:14 +09:00
defineRoute({
alias: '/home.html',
2020-08-16 20:24:45 +02:00
path: 'home.html',
autoFocus: false,
2020-05-04 12:44:12 +02:00
controller: 'home',
type: 'home'
});
2020-08-01 05:36:36 +02:00
2020-05-12 06:28:14 +09:00
defineRoute({
alias: '/search.html',
2020-08-16 20:24:45 +02:00
path: 'search.html',
2020-05-12 06:28:14 +09:00
controller: 'searchpage'
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/list.html',
2020-08-16 20:24:45 +02:00
path: 'list.html',
autoFocus: false,
2020-08-01 05:36:36 +02:00
controller: 'list'
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/details',
2020-08-16 20:24:45 +02:00
path: 'itemDetails/index.html',
controller: 'itemDetails/index',
2020-08-01 05:36:36 +02:00
autoFocus: false
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/livetv.html',
2020-08-16 20:24:45 +02:00
path: 'livetv.html',
2020-05-04 12:44:12 +02:00
controller: 'livetv/livetvsuggested',
2020-08-01 05:36:36 +02:00
autoFocus: false
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/livetvguideprovider.html',
2020-08-16 20:24:45 +02:00
path: 'livetvguideprovider.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'livetvguideprovider'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/livetvsettings.html',
2020-08-16 20:24:45 +02:00
path: 'livetvsettings.html',
2019-04-03 00:12:02 +01:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
controller: 'livetvsettings'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/livetvstatus.html',
2020-08-16 20:24:45 +02:00
path: 'livetvstatus.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'livetvstatus'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/livetvtuner.html',
2020-08-16 20:24:45 +02:00
path: 'livetvtuner.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'livetvtuner'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/movies.html',
2020-08-16 20:24:45 +02:00
path: 'movies/movies.html',
autoFocus: false,
2020-08-01 05:36:36 +02:00
controller: 'movies/moviesrecommended'
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/music.html',
2020-08-16 20:24:45 +02:00
path: 'music/music.html',
2020-05-04 12:44:12 +02:00
controller: 'music/musicrecommended',
2020-08-01 05:36:36 +02:00
autoFocus: false
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/installedplugins.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/plugins/installed/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/plugins/installed/index'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/scheduledtask.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/scheduledtasks/scheduledtask.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/scheduledtasks/scheduledtask'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/scheduledtasks.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/scheduledtasks/scheduledtasks.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/scheduledtasks/scheduledtasks'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/serveractivity.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/serveractivity.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/serveractivity'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/apikeys.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/apikeys.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
controller: 'dashboard/apikeys'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/streamingsettings.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/streaming.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/streaming'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/tv.html',
2020-08-16 20:24:45 +02:00
path: 'shows/tvrecommended.html',
autoFocus: false,
2020-08-01 05:36:36 +02:00
controller: 'shows/tvrecommended'
});
2020-05-12 06:28:14 +09:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/useredit.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/users/useredit.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/users/useredit'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/userlibraryaccess.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/users/userlibraryaccess.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/users/userlibraryaccess'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/usernew.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/users/usernew.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/users/usernew'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/userparentalcontrol.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/users/userparentalcontrol.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/users/userparentalcontrol'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/userpassword.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/users/userpassword.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-17 23:19:21 +09:00
controller: 'dashboard/users/userpasswordpage'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/userprofiles.html',
2020-08-16 20:24:45 +02:00
path: 'dashboard/users/userprofiles.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2020-05-04 12:44:12 +02:00
roles: 'admin',
2020-05-17 23:19:21 +09:00
controller: 'dashboard/users/userprofilespage'
2019-03-18 23:41:40 +00:00
});
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/wizardremoteaccess.html',
2020-08-16 20:24:45 +02:00
path: 'wizard/remote/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
anonymous: true,
controller: 'wizard/remote/index'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/wizardfinish.html',
2020-08-16 20:24:45 +02:00
path: 'wizard/finish/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
anonymous: true,
controller: 'wizard/finish/index'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/wizardlibrary.html',
2020-08-16 20:24:45 +02:00
path: 'wizard/library.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
2019-04-03 00:12:02 +01:00
anonymous: true,
controller: 'dashboard/library'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/wizardsettings.html',
2020-08-16 20:24:45 +02:00
path: 'wizard/settings/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
anonymous: true,
controller: 'wizard/settings/index'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/wizardstart.html',
2020-08-16 20:24:45 +02:00
path: 'wizard/start/index.html',
2019-03-18 23:41:40 +00:00
autoFocus: false,
anonymous: true,
controller: 'wizard/start/index'
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/wizarduser.html',
2020-08-16 20:24:45 +02:00
path: 'wizard/user/index.html',
controller: 'wizard/user/index',
2019-03-18 23:41:40 +00:00
autoFocus: false,
anonymous: true
});
2019-03-18 23:41:40 +00:00
defineRoute({
alias: '/video',
2020-08-16 20:24:45 +02:00
path: 'playback/video/index.html',
controller: 'playback/video/index',
autoFocus: false,
2020-05-04 12:44:12 +02:00
type: 'video-osd',
supportsThemeMedia: true,
fullscreen: true,
enableMediaControl: false
2019-03-18 23:41:40 +00:00
});
2020-08-01 05:36:36 +02:00
defineRoute({
alias: '/queue',
2020-08-16 20:24:45 +02:00
path: 'playback/queue/index.html',
controller: 'playback/queue/index',
2020-04-24 22:58:43 +09:00
autoFocus: false,
fullscreen: true,
supportsThemeMedia: true,
enableMediaControl: false
});
2020-08-01 05:36:36 +02:00
defineRoute({
2020-11-08 20:36:37 +00:00
path: '/configurationpage',
autoFocus: false,
enableCache: false,
enableContentQueryString: true,
2020-05-04 12:44:12 +02:00
roles: 'admin'
});
defineRoute({
2020-08-16 20:24:45 +02:00
path: '',
isDefaultRoute: true,
autoFocus: false
});
2020-08-01 05:36:36 +02:00
2020-04-24 22:58:43 +09:00
defineRoute({
2020-08-16 20:24:45 +02:00
path: 'index.html',
2020-04-24 22:58:43 +09:00
autoFocus: false,
isDefaultRoute: true
});
2020-08-01 05:36:36 +02:00
console.groupEnd('defining core routes');
/* eslint-enable indent */