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';
|
2020-11-06 00:00:34 +00:00
|
|
|
import '../assets/css/livetv.scss';
|
2020-08-14 08:46:34 +02:00
|
|
|
import '../components/listview/listview.css';
|
|
|
|
import '../assets/css/dashboard.css';
|
2020-11-06 00:00:34 +00:00
|
|
|
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-02-24 20:07:41 +00:00
|
|
|
|
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-02-24 20:07:41 +00:00
|
|
|
}
|
|
|
|
|
2019-12-15 22:42:33 +09:00
|
|
|
defineRoute({
|
2020-07-26 15:40:12 +09:00
|
|
|
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,
|
2020-07-26 15:40:12 +09:00
|
|
|
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({
|
2020-07-26 15:40:12 +09:00
|
|
|
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,
|
2020-07-26 15:40:12 +09:00
|
|
|
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({
|
2020-07-26 15:40:12 +09:00
|
|
|
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,
|
2020-07-26 15:40:12 +09:00
|
|
|
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({
|
2020-07-26 15:40:12 +09:00
|
|
|
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,
|
2020-07-26 15:40:12 +09:00
|
|
|
controller: 'session/forgotPassword/index'
|
2019-12-15 22:42:33 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-07-26 15:40:12 +09:00
|
|
|
alias: '/forgotpasswordpin.html',
|
2020-09-25 12:52:36 +02:00
|
|
|
path: '/controllers/session/resetPassword/index.html',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
|
|
|
anonymous: true,
|
|
|
|
startup: true,
|
2020-09-25 12:52:36 +02:00
|
|
|
controller: 'session/resetPassword/index'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-04-24 22:58:43 +09:00
|
|
|
|
2019-12-15 22:42:33 +09:00
|
|
|
defineRoute({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-10-12 12:36:42 +09:00
|
|
|
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,
|
2020-05-05 20:42:15 -05:00
|
|
|
roles: 'admin',
|
2020-10-12 12:36:42 +09:00
|
|
|
controller: 'dashboard/quickConnect'
|
2019-03-18 23:41:40 +00:00
|
|
|
});
|
2020-09-03 16:17:35 -05:00
|
|
|
|
2019-03-18 23:41:40 +00:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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',
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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',
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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',
|
2020-08-08 03:15:57 +02:00
|
|
|
controller: 'dashboard/library'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
alias: '/librarydisplay.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'dashboard/librarydisplay.html',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
2020-05-04 12:44:12 +02:00
|
|
|
roles: 'admin',
|
2020-08-08 03:15:57 +02:00
|
|
|
controller: 'dashboard/librarydisplay'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
alias: '/encodingsettings.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'dashboard/encodingsettings.html',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
2020-05-04 12:44:12 +02:00
|
|
|
roles: 'admin',
|
|
|
|
controller: 'dashboard/encodingsettings'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-05-17 01:00:25 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-07-26 15:40:12 +09:00
|
|
|
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',
|
2020-07-26 15:40:12 +09:00
|
|
|
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({
|
2020-07-26 15:40:12 +09:00
|
|
|
alias: '/notificationsettings.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'dashboard/notifications/notifications/index.html',
|
2020-07-26 15:40:12 +09:00
|
|
|
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({
|
2020-07-26 15:40:12 +09:00
|
|
|
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',
|
2020-07-26 15:40:12 +09:00
|
|
|
controller: 'dashboard/plugins/available/index'
|
2020-05-17 01:00:25 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-06-10 21:33:08 +09:00
|
|
|
defineRoute({
|
2020-07-26 15:40:12 +09:00
|
|
|
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',
|
2020-07-26 15:40:12 +09:00
|
|
|
controller: 'dashboard/plugins/repositories/index'
|
2020-05-17 01:00:25 +09:00
|
|
|
});
|
2020-05-12 06:28:14 +09:00
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
alias: '/home.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'home.html',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
2020-05-04 12:44:12 +02:00
|
|
|
controller: 'home',
|
|
|
|
type: 'home'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-05-12 06:28:14 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
alias: '/list.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'list.html',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
2020-08-01 05:36:36 +02:00
|
|
|
controller: 'list'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2019-03-18 23:41:40 +00:00
|
|
|
defineRoute({
|
2020-06-17 15:45:23 +02:00
|
|
|
alias: '/details',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'itemDetails/index.html',
|
2020-06-21 13:47:33 +02:00
|
|
|
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
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2019-03-18 23:41:40 +00:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
alias: '/movies.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'movies/movies.html',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
2020-08-01 05:36:36 +02:00
|
|
|
controller: 'movies/moviesrecommended'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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-01-08 01:36:34 +09:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2019-03-18 23:41:40 +00:00
|
|
|
defineRoute({
|
2020-07-26 15:40:12 +09:00
|
|
|
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',
|
2020-07-26 15:40:12 +09:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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
|
|
|
|
2020-01-08 01:36:34 +09:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
alias: '/tv.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'shows/tvrecommended.html',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
2020-08-01 05:36:36 +02:00
|
|
|
controller: 'shows/tvrecommended'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
2020-05-12 06:28:14 +09:00
|
|
|
|
2019-03-18 23:41:40 +00:00
|
|
|
defineRoute({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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-12-15 20:47:47 +09:00
|
|
|
|
2019-03-18 23:41:40 +00:00
|
|
|
defineRoute({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-08-08 03:15:57 +02:00
|
|
|
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,
|
2020-08-08 03:15:57 +02:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
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,
|
2020-07-26 15:09:40 +09:00
|
|
|
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({
|
2020-07-26 15:09:40 +09:00
|
|
|
alias: '/wizarduser.html',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'wizard/user/index.html',
|
2020-07-26 15:09:40 +09:00
|
|
|
controller: 'wizard/user/index',
|
2019-03-18 23:41:40 +00:00
|
|
|
autoFocus: false,
|
|
|
|
anonymous: true
|
|
|
|
});
|
2019-12-15 20:47:47 +09:00
|
|
|
|
2019-03-18 23:41:40 +00:00
|
|
|
defineRoute({
|
2020-07-26 15:09:40 +09:00
|
|
|
alias: '/video',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'playback/video/index.html',
|
2020-07-26 15:09:40 +09:00
|
|
|
controller: 'playback/video/index',
|
2020-01-08 01:36:34 +09:00
|
|
|
autoFocus: false,
|
2020-05-04 12:44:12 +02:00
|
|
|
type: 'video-osd',
|
2020-01-08 01:36:34 +09:00
|
|
|
supportsThemeMedia: true,
|
|
|
|
fullscreen: true,
|
|
|
|
enableMediaControl: false
|
2019-03-18 23:41:40 +00:00
|
|
|
});
|
2020-08-01 05:36:36 +02:00
|
|
|
|
2019-12-15 20:47:47 +09:00
|
|
|
defineRoute({
|
2020-07-26 15:09:40 +09:00
|
|
|
alias: '/queue',
|
2020-08-16 20:24:45 +02:00
|
|
|
path: 'playback/queue/index.html',
|
2020-07-26 15:09:40 +09:00
|
|
|
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
|
|
|
|
2019-12-15 20:47:47 +09:00
|
|
|
defineRoute({
|
2020-11-08 20:36:37 +00:00
|
|
|
path: '/configurationpage',
|
2019-12-15 20:47:47 +09:00
|
|
|
autoFocus: false,
|
2020-01-08 01:36:34 +09:00
|
|
|
enableCache: false,
|
|
|
|
enableContentQueryString: true,
|
2020-05-04 12:44:12 +02:00
|
|
|
roles: 'admin'
|
2020-01-08 01:36:34 +09:00
|
|
|
});
|
|
|
|
|
|
|
|
defineRoute({
|
2020-08-16 20:24:45 +02:00
|
|
|
path: '',
|
2020-01-08 01:36:34 +09:00
|
|
|
isDefaultRoute: true,
|
|
|
|
autoFocus: false
|
2019-12-15 20:47:47 +09:00
|
|
|
});
|
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 */
|