mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add indexes to simplify route imports
This commit is contained in:
parent
87a8c22298
commit
391d97f30d
6 changed files with 13 additions and 9 deletions
1
src/routes/appRoutes/asyncRoutes/index.ts
Normal file
1
src/routes/appRoutes/asyncRoutes/index.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export * from './user';
|
|
@ -5,10 +5,8 @@ import ConnectionRequired from '../../components/ConnectionRequired';
|
||||||
import ServerContentPage from '../../components/ServerContentPage';
|
import ServerContentPage from '../../components/ServerContentPage';
|
||||||
import { toAsyncPageRoute } from '../AsyncRoute';
|
import { toAsyncPageRoute } from '../AsyncRoute';
|
||||||
import { toViewManagerPageRoute } from '../LegacyRoute';
|
import { toViewManagerPageRoute } from '../LegacyRoute';
|
||||||
import { ASYNC_USER_ROUTES } from './asyncRoutes/user';
|
import { ASYNC_USER_ROUTES } from './asyncRoutes';
|
||||||
import { LEGACY_ADMIN_ROUTES } from './legacyRoutes/admin';
|
import { LEGACY_ADMIN_ROUTES, LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from './legacyRoutes';
|
||||||
import { LEGACY_PUBLIC_ROUTES } from './legacyRoutes/public';
|
|
||||||
import { LEGACY_USER_ROUTES } from './legacyRoutes/user';
|
|
||||||
|
|
||||||
export const AppRoutes = () => (
|
export const AppRoutes = () => (
|
||||||
<Routes>
|
<Routes>
|
||||||
|
|
3
src/routes/appRoutes/legacyRoutes/index.ts
Normal file
3
src/routes/appRoutes/legacyRoutes/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export * from './admin';
|
||||||
|
export * from './public';
|
||||||
|
export * from './user';
|
2
src/routes/experimentalAppRoutes/asyncRoutes/index.ts
Normal file
2
src/routes/experimentalAppRoutes/asyncRoutes/index.ts
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
export * from './admin';
|
||||||
|
export * from './user';
|
|
@ -5,11 +5,8 @@ import ConnectionRequired from '../../components/ConnectionRequired';
|
||||||
import ServerContentPage from '../../components/ServerContentPage';
|
import ServerContentPage from '../../components/ServerContentPage';
|
||||||
import { toAsyncPageRoute } from '../AsyncRoute';
|
import { toAsyncPageRoute } from '../AsyncRoute';
|
||||||
import { toViewManagerPageRoute } from '../LegacyRoute';
|
import { toViewManagerPageRoute } from '../LegacyRoute';
|
||||||
import { ASYNC_ADMIN_ROUTES } from './asyncRoutes/admin';
|
import { ASYNC_ADMIN_ROUTES, ASYNC_USER_ROUTES } from './asyncRoutes';
|
||||||
import { ASYNC_USER_ROUTES } from './asyncRoutes/user';
|
import { LEGACY_ADMIN_ROUTES, LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from './legacyRoutes';
|
||||||
import { LEGACY_ADMIN_ROUTES } from './legacyRoutes/admin';
|
|
||||||
import { LEGACY_PUBLIC_ROUTES } from './legacyRoutes/public';
|
|
||||||
import { LEGACY_USER_ROUTES } from './legacyRoutes/user';
|
|
||||||
|
|
||||||
export const ExperimentalAppRoutes = () => (
|
export const ExperimentalAppRoutes = () => (
|
||||||
<Routes>
|
<Routes>
|
||||||
|
|
3
src/routes/experimentalAppRoutes/legacyRoutes/index.ts
Normal file
3
src/routes/experimentalAppRoutes/legacyRoutes/index.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export * from './admin';
|
||||||
|
export * from './public';
|
||||||
|
export * from './user';
|
Loading…
Add table
Add a link
Reference in a new issue