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

Migrate all admin routes to react router

This commit is contained in:
Bill Thornton 2022-11-02 01:21:02 -04:00
parent e64e4ce355
commit 6780bfc794
4 changed files with 201 additions and 254 deletions

View file

@ -70,259 +70,6 @@ import { appRouter } from '../components/appRouter';
controller: 'session/resetPassword/index'
});
defineRoute({
alias: '/dashboard.html',
path: 'dashboard/dashboard.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/dashboard'
});
defineRoute({
alias: '/dashboardgeneral.html',
path: 'dashboard/general.html',
controller: 'dashboard/general',
autoFocus: false,
roles: 'admin'
});
defineRoute({
alias: '/networking.html',
path: 'dashboard/networking.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/networking'
});
defineRoute({
alias: '/devices.html',
path: 'dashboard/devices/devices.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/devices/devices'
});
defineRoute({
alias: '/device.html',
path: 'dashboard/devices/device.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/devices/device'
});
defineRoute({
alias: '/quickConnect.html',
path: 'dashboard/quickConnect.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/quickConnect'
});
defineRoute({
alias: '/dlnaprofile.html',
path: 'dashboard/dlna/profile.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/dlna/profile'
});
defineRoute({
alias: '/dlnaprofiles.html',
path: 'dashboard/dlna/profiles.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/dlna/profiles'
});
defineRoute({
alias: '/dlnasettings.html',
path: 'dashboard/dlna/settings.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/dlna/settings'
});
defineRoute({
alias: '/addplugin.html',
path: 'dashboard/plugins/add/index.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/plugins/add/index'
});
defineRoute({
alias: '/library.html',
path: 'dashboard/library.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/library'
});
defineRoute({
alias: '/librarydisplay.html',
path: 'dashboard/librarydisplay.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/librarydisplay'
});
defineRoute({
alias: '/edititemmetadata.html',
path: 'edititemmetadata.html',
controller: 'edititemmetadata',
autoFocus: false
});
defineRoute({
alias: '/encodingsettings.html',
path: 'dashboard/encodingsettings.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/encodingsettings'
});
defineRoute({
alias: '/log.html',
path: 'dashboard/logs.html',
roles: 'admin',
controller: 'dashboard/logs'
});
defineRoute({
alias: '/metadataimages.html',
path: 'dashboard/metadataimages.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/metadataImages'
});
defineRoute({
alias: '/metadatanfo.html',
path: 'dashboard/metadatanfo.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/metadatanfo'
});
defineRoute({
alias: '/notificationsetting.html',
path: 'dashboard/notifications/notification/index.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/notifications/notification/index'
});
defineRoute({
alias: '/notificationsettings.html',
path: 'dashboard/notifications/notifications/index.html',
controller: 'dashboard/notifications/notifications/index',
autoFocus: false,
roles: 'admin'
});
defineRoute({
alias: '/playbackconfiguration.html',
path: 'dashboard/playback.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/playback'
});
defineRoute({
alias: '/availableplugins.html',
path: 'dashboard/plugins/available/index.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/plugins/available/index'
});
defineRoute({
alias: '/repositories.html',
path: 'dashboard/plugins/repositories/index.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/plugins/repositories/index'
});
defineRoute({
alias: '/livetvguideprovider.html',
path: 'livetvguideprovider.html',
autoFocus: false,
roles: 'admin',
controller: 'livetvguideprovider'
});
defineRoute({
alias: '/livetvsettings.html',
path: 'livetvsettings.html',
autoFocus: false,
controller: 'livetvsettings'
});
defineRoute({
alias: '/livetvstatus.html',
path: 'livetvstatus.html',
autoFocus: false,
roles: 'admin',
controller: 'livetvstatus'
});
defineRoute({
alias: '/livetvtuner.html',
path: 'livetvtuner.html',
autoFocus: false,
roles: 'admin',
controller: 'livetvtuner'
});
defineRoute({
alias: '/installedplugins.html',
path: 'dashboard/plugins/installed/index.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/plugins/installed/index'
});
defineRoute({
alias: '/scheduledtask.html',
path: 'dashboard/scheduledtasks/scheduledtask.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/scheduledtasks/scheduledtask'
});
defineRoute({
alias: '/scheduledtasks.html',
path: 'dashboard/scheduledtasks/scheduledtasks.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/scheduledtasks/scheduledtasks'
});
defineRoute({
alias: '/serveractivity.html',
path: 'dashboard/serveractivity.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/serveractivity'
});
defineRoute({
alias: '/apikeys.html',
path: 'dashboard/apikeys.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/apikeys'
});
defineRoute({
alias: '/streamingsettings.html',
path: 'dashboard/streaming.html',
autoFocus: false,
roles: 'admin',
controller: 'dashboard/streaming'
});
defineRoute({
alias: '/wizardremoteaccess.html',
path: 'wizard/remote/index.html',