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

Update paths and stable app view

This commit is contained in:
Bill Thornton 2023-06-09 03:01:27 -04:00
parent 3038ddb6ff
commit c0f1de9f3f
8 changed files with 11 additions and 12 deletions

View file

@ -36,6 +36,9 @@ const ExperimentalApp = () => {
{LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)} {LEGACY_PUBLIC_ROUTES.map(toViewManagerPageRoute)}
</Route> </Route>
{/* Redirects for old paths */}
<Route path='serveractivity.html' element={<Navigate replace to='/dashboard/activity' />} />
</Route> </Route>
</Routes> </Routes>
); );

View file

@ -40,7 +40,7 @@ const DevicesDrawerSection = () => {
</ListItemLink> </ListItemLink>
</ListItem> </ListItem>
<ListItem disablePadding> <ListItem disablePadding>
<ListItemLink to='/serveractivity.html'> <ListItemLink to='/dashboard/activity'>
<ListItemIcon> <ListItemIcon>
<Analytics /> <Analytics />
</ListItemIcon> </ListItemIcon>

View file

@ -163,12 +163,6 @@ export const LEGACY_ADMIN_ROUTES: LegacyRoute[] = [
controller: 'dashboard/scheduledtasks/scheduledtasks', controller: 'dashboard/scheduledtasks/scheduledtasks',
view: 'dashboard/scheduledtasks/scheduledtasks.html' view: 'dashboard/scheduledtasks/scheduledtasks.html'
} }
}, {
path: 'serveractivity.html',
pageProps: {
controller: 'dashboard/serveractivity',
view: 'dashboard/serveractivity.html'
}
}, { }, {
path: 'apikeys.html', path: 'apikeys.html',
pageProps: { pageProps: {

View file

@ -51,6 +51,9 @@ const StableApp = () => (
{/* Suppress warnings for unhandled routes */} {/* Suppress warnings for unhandled routes */}
<Route path='*' element={null} /> <Route path='*' element={null} />
{/* Redirects for old paths */}
<Route path='/serveractivity.html' element={<Navigate replace to='/dashboard/activity' />} />
</Route> </Route>
</Routes> </Routes>
); );

View file

@ -1,7 +1,6 @@
import { AsyncRoute } from '../../../../components/router/AsyncRoute'; import { AsyncRoute } from '../../../../components/router/AsyncRoute';
export const ASYNC_ADMIN_ROUTES: AsyncRoute[] = [ export const ASYNC_ADMIN_ROUTES: AsyncRoute[] = [
{ path: 'dashboard/activity', page: 'dashboard/activity' },
{ path: 'notificationsettings.html', page: 'dashboard/notifications' }, { path: 'notificationsettings.html', page: 'dashboard/notifications' },
{ path: 'usernew.html', page: 'user/usernew' }, { path: 'usernew.html', page: 'user/usernew' },
{ path: 'userprofiles.html', page: 'user/userprofiles' }, { path: 'userprofiles.html', page: 'user/userprofiles' },

View file

@ -164,7 +164,7 @@ export const LEGACY_ADMIN_ROUTES: LegacyRoute[] = [
view: 'dashboard/scheduledtasks/scheduledtasks.html' view: 'dashboard/scheduledtasks/scheduledtasks.html'
} }
}, { }, {
path: 'serveractivity.html', path: 'dashboard/activity',
pageProps: { pageProps: {
controller: 'dashboard/serveractivity', controller: 'dashboard/serveractivity',
view: 'dashboard/serveractivity.html' view: 'dashboard/serveractivity.html'

View file

@ -44,7 +44,7 @@
<div class="dashboardColumn dashboardColumn-2-40 dashboardColumn-3-27"> <div class="dashboardColumn dashboardColumn-2-40 dashboardColumn-3-27">
<div class="dashboardSection"> <div class="dashboardSection">
<a is="emby-linkbutton" href="#/serveractivity.html?useractivity=true" class="button-flat sectionTitleTextButton"> <a is="emby-linkbutton" href="#/dashboard/activity?useractivity=true" class="button-flat sectionTitleTextButton">
<h3>${HeaderActivity}</h3> <h3>${HeaderActivity}</h3>
<span class="material-icons chevron_right" aria-hidden="true"></span> <span class="material-icons chevron_right" aria-hidden="true"></span>
</a> </a>
@ -61,7 +61,7 @@
</div> </div>
<div class="dashboardSection serverActivitySection hide activityContainer"> <div class="dashboardSection serverActivitySection hide activityContainer">
<a is="emby-linkbutton" href="#/serveractivity.html?useractivity=false" class="button-flat sectionTitleTextButton"> <a is="emby-linkbutton" href="#/dashboard/activity?useractivity=false" class="button-flat sectionTitleTextButton">
<h3>${Alerts}</h3> <h3>${Alerts}</h3>
<span class="material-icons chevron_right" aria-hidden="true"></span> <span class="material-icons chevron_right" aria-hidden="true"></span>
</a> </a>

View file

@ -466,7 +466,7 @@ function createToolsMenuList(pluginItems) {
}); });
links.push({ links.push({
name: globalize.translate('HeaderActivity'), name: globalize.translate('HeaderActivity'),
href: '#/serveractivity.html', href: '#/dashboard/activity',
pageIds: ['serverActivityPage'], pageIds: ['serverActivityPage'],
icon: 'assessment' icon: 'assessment'
}); });