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

Move shared components to common layout

This commit is contained in:
Bill Thornton 2023-09-21 16:40:08 -04:00
parent 6101e04ca8
commit d5e703287a
5 changed files with 39 additions and 31 deletions

View file

@ -5,11 +5,12 @@ import AppBody from 'components/AppBody';
import ConnectionRequired from 'components/ConnectionRequired';
import { toAsyncPageRoute } from 'components/router/AsyncRoute';
import { toViewManagerPageRoute } from 'components/router/LegacyRoute';
import { toRedirectRoute } from 'components/router/Redirect';
import { ASYNC_USER_ROUTES } from './routes/asyncRoutes';
import { LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from './routes/legacyRoutes';
import { REDIRECTS } from './routes/_redirects';
import { toRedirectRoute } from 'components/router/Redirect';
import { DASHBOARD_APP_PATHS } from 'apps/dashboard/App';
const Layout = () => (
<AppBody>
@ -34,9 +35,13 @@ const StableApp = () => (
</Route>
{/* Ignore dashboard routes */}
<Route path='/configurationpage/*' element={null} />
<Route path='/dashboard/*' element={null} />
<Route path='/metadata/*' element={null} />
{Object.entries(DASHBOARD_APP_PATHS).map(([ key, path ]) => (
<Route
key={key}
path={`/${path}/*`}
element={null}
/>
))}
{/* Suppress warnings for unhandled routes */}
<Route path='*' element={null} />