mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update route naming
This commit is contained in:
parent
b1a50fbd73
commit
3c63e1472c
11 changed files with 109 additions and 109 deletions
|
@ -2,32 +2,32 @@ import React from 'react';
|
|||
import { Route, Routes } from 'react-router-dom';
|
||||
|
||||
import ConnectionRequired from '../components/ConnectionRequired';
|
||||
import NewUserPage from './NewUserPage';
|
||||
import SearchPage from './search';
|
||||
import UserEditPage from './UserEditPage';
|
||||
import UserLibraryAccessPage from './UserLibraryAccessPage';
|
||||
import UserParentalControl from './UserParentalControl';
|
||||
import UserPasswordPage from './UserPasswordPage';
|
||||
import UserProfilePage from './UserProfilePage';
|
||||
import UserProfilesPage from './UserProfilesPage';
|
||||
import UserNew from './user/usernew';
|
||||
import Search from './search';
|
||||
import UserEdit from './user/useredit';
|
||||
import UserLibraryAccess from './user/userlibraryaccess';
|
||||
import UserParentalControl from './user/userparentalcontrol';
|
||||
import UserPassword from './user/userpassword';
|
||||
import UserProfile from './user/userprofile';
|
||||
import UserProfiles from './user/userprofiles';
|
||||
|
||||
const AppRoutes = () => (
|
||||
<Routes>
|
||||
<Route path='/'>
|
||||
{/* User routes */}
|
||||
<Route path='/' element={<ConnectionRequired />}>
|
||||
<Route path='search.html' element={<SearchPage />} />
|
||||
<Route path='myprofile.html' element={<UserProfilePage />} />
|
||||
<Route path='search.html' element={<Search />} />
|
||||
<Route path='userprofile.html' element={<UserProfile />} />
|
||||
</Route>
|
||||
|
||||
{/* Admin routes */}
|
||||
<Route path='/' element={<ConnectionRequired isAdminRequired={true} />}>
|
||||
<Route path='usernew.html' element={<NewUserPage />} />
|
||||
<Route path='userprofiles.html' element={<UserProfilesPage />} />
|
||||
<Route path='useredit.html' element={<UserEditPage />} />
|
||||
<Route path='userlibraryaccess.html' element={<UserLibraryAccessPage />} />
|
||||
<Route path='usernew.html' element={<UserNew />} />
|
||||
<Route path='userprofiles.html' element={<UserProfiles />} />
|
||||
<Route path='useredit.html' element={<UserEdit />} />
|
||||
<Route path='userlibraryaccess.html' element={<UserLibraryAccess />} />
|
||||
<Route path='userparentalcontrol.html' element={<UserParentalControl />} />
|
||||
<Route path='userpassword.html' element={<UserPasswordPage />} />
|
||||
<Route path='userpassword.html' element={<UserPassword />} />
|
||||
</Route>
|
||||
|
||||
{/* Suppress warnings for unhandled routes */}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue