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:
parent
3038ddb6ff
commit
c0f1de9f3f
8 changed files with 11 additions and 12 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
|
@ -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' },
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue