chore(36-02): regenerate routeTree.gen.ts with /admin and /admin/ routes
This commit is contained in:
@@ -12,10 +12,12 @@ import { Route as rootRouteImport } from './routes/__root'
|
|||||||
import { Route as SettingsRouteImport } from './routes/settings'
|
import { Route as SettingsRouteImport } from './routes/settings'
|
||||||
import { Route as ProfileRouteImport } from './routes/profile'
|
import { Route as ProfileRouteImport } from './routes/profile'
|
||||||
import { Route as LoginRouteImport } from './routes/login'
|
import { Route as LoginRouteImport } from './routes/login'
|
||||||
|
import { Route as AdminRouteImport } from './routes/admin'
|
||||||
import { Route as IndexRouteImport } from './routes/index'
|
import { Route as IndexRouteImport } from './routes/index'
|
||||||
import { Route as SetupsIndexRouteImport } from './routes/setups/index'
|
import { Route as SetupsIndexRouteImport } from './routes/setups/index'
|
||||||
import { Route as GlobalItemsIndexRouteImport } from './routes/global-items/index'
|
import { Route as GlobalItemsIndexRouteImport } from './routes/global-items/index'
|
||||||
import { Route as CollectionIndexRouteImport } from './routes/collection/index'
|
import { Route as CollectionIndexRouteImport } from './routes/collection/index'
|
||||||
|
import { Route as AdminIndexRouteImport } from './routes/admin/index'
|
||||||
import { Route as UsersUserIdRouteImport } from './routes/users/$userId'
|
import { Route as UsersUserIdRouteImport } from './routes/users/$userId'
|
||||||
import { Route as SetupsSetupIdRouteImport } from './routes/setups/$setupId'
|
import { Route as SetupsSetupIdRouteImport } from './routes/setups/$setupId'
|
||||||
import { Route as ItemsItemIdRouteImport } from './routes/items/$itemId'
|
import { Route as ItemsItemIdRouteImport } from './routes/items/$itemId'
|
||||||
@@ -38,6 +40,11 @@ const LoginRoute = LoginRouteImport.update({
|
|||||||
path: '/login',
|
path: '/login',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
|
const AdminRoute = AdminRouteImport.update({
|
||||||
|
id: '/admin',
|
||||||
|
path: '/admin',
|
||||||
|
getParentRoute: () => rootRouteImport,
|
||||||
|
} as any)
|
||||||
const IndexRoute = IndexRouteImport.update({
|
const IndexRoute = IndexRouteImport.update({
|
||||||
id: '/',
|
id: '/',
|
||||||
path: '/',
|
path: '/',
|
||||||
@@ -58,6 +65,11 @@ const CollectionIndexRoute = CollectionIndexRouteImport.update({
|
|||||||
path: '/collection/',
|
path: '/collection/',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
|
const AdminIndexRoute = AdminIndexRouteImport.update({
|
||||||
|
id: '/',
|
||||||
|
path: '/',
|
||||||
|
getParentRoute: () => AdminRoute,
|
||||||
|
} as any)
|
||||||
const UsersUserIdRoute = UsersUserIdRouteImport.update({
|
const UsersUserIdRoute = UsersUserIdRouteImport.update({
|
||||||
id: '/users/$userId',
|
id: '/users/$userId',
|
||||||
path: '/users/$userId',
|
path: '/users/$userId',
|
||||||
@@ -92,6 +104,7 @@ const ThreadsThreadIdCandidatesCandidateIdRoute =
|
|||||||
|
|
||||||
export interface FileRoutesByFullPath {
|
export interface FileRoutesByFullPath {
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
|
'/admin': typeof AdminRouteWithChildren
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/profile': typeof ProfileRoute
|
'/profile': typeof ProfileRoute
|
||||||
'/settings': typeof SettingsRoute
|
'/settings': typeof SettingsRoute
|
||||||
@@ -99,6 +112,7 @@ export interface FileRoutesByFullPath {
|
|||||||
'/items/$itemId': typeof ItemsItemIdRoute
|
'/items/$itemId': typeof ItemsItemIdRoute
|
||||||
'/setups/$setupId': typeof SetupsSetupIdRoute
|
'/setups/$setupId': typeof SetupsSetupIdRoute
|
||||||
'/users/$userId': typeof UsersUserIdRoute
|
'/users/$userId': typeof UsersUserIdRoute
|
||||||
|
'/admin/': typeof AdminIndexRoute
|
||||||
'/collection/': typeof CollectionIndexRoute
|
'/collection/': typeof CollectionIndexRoute
|
||||||
'/global-items/': typeof GlobalItemsIndexRoute
|
'/global-items/': typeof GlobalItemsIndexRoute
|
||||||
'/setups/': typeof SetupsIndexRoute
|
'/setups/': typeof SetupsIndexRoute
|
||||||
@@ -114,6 +128,7 @@ export interface FileRoutesByTo {
|
|||||||
'/items/$itemId': typeof ItemsItemIdRoute
|
'/items/$itemId': typeof ItemsItemIdRoute
|
||||||
'/setups/$setupId': typeof SetupsSetupIdRoute
|
'/setups/$setupId': typeof SetupsSetupIdRoute
|
||||||
'/users/$userId': typeof UsersUserIdRoute
|
'/users/$userId': typeof UsersUserIdRoute
|
||||||
|
'/admin': typeof AdminIndexRoute
|
||||||
'/collection': typeof CollectionIndexRoute
|
'/collection': typeof CollectionIndexRoute
|
||||||
'/global-items': typeof GlobalItemsIndexRoute
|
'/global-items': typeof GlobalItemsIndexRoute
|
||||||
'/setups': typeof SetupsIndexRoute
|
'/setups': typeof SetupsIndexRoute
|
||||||
@@ -123,6 +138,7 @@ export interface FileRoutesByTo {
|
|||||||
export interface FileRoutesById {
|
export interface FileRoutesById {
|
||||||
__root__: typeof rootRouteImport
|
__root__: typeof rootRouteImport
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
|
'/admin': typeof AdminRouteWithChildren
|
||||||
'/login': typeof LoginRoute
|
'/login': typeof LoginRoute
|
||||||
'/profile': typeof ProfileRoute
|
'/profile': typeof ProfileRoute
|
||||||
'/settings': typeof SettingsRoute
|
'/settings': typeof SettingsRoute
|
||||||
@@ -130,6 +146,7 @@ export interface FileRoutesById {
|
|||||||
'/items/$itemId': typeof ItemsItemIdRoute
|
'/items/$itemId': typeof ItemsItemIdRoute
|
||||||
'/setups/$setupId': typeof SetupsSetupIdRoute
|
'/setups/$setupId': typeof SetupsSetupIdRoute
|
||||||
'/users/$userId': typeof UsersUserIdRoute
|
'/users/$userId': typeof UsersUserIdRoute
|
||||||
|
'/admin/': typeof AdminIndexRoute
|
||||||
'/collection/': typeof CollectionIndexRoute
|
'/collection/': typeof CollectionIndexRoute
|
||||||
'/global-items/': typeof GlobalItemsIndexRoute
|
'/global-items/': typeof GlobalItemsIndexRoute
|
||||||
'/setups/': typeof SetupsIndexRoute
|
'/setups/': typeof SetupsIndexRoute
|
||||||
@@ -140,6 +157,7 @@ export interface FileRouteTypes {
|
|||||||
fileRoutesByFullPath: FileRoutesByFullPath
|
fileRoutesByFullPath: FileRoutesByFullPath
|
||||||
fullPaths:
|
fullPaths:
|
||||||
| '/'
|
| '/'
|
||||||
|
| '/admin'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/profile'
|
| '/profile'
|
||||||
| '/settings'
|
| '/settings'
|
||||||
@@ -147,6 +165,7 @@ export interface FileRouteTypes {
|
|||||||
| '/items/$itemId'
|
| '/items/$itemId'
|
||||||
| '/setups/$setupId'
|
| '/setups/$setupId'
|
||||||
| '/users/$userId'
|
| '/users/$userId'
|
||||||
|
| '/admin/'
|
||||||
| '/collection/'
|
| '/collection/'
|
||||||
| '/global-items/'
|
| '/global-items/'
|
||||||
| '/setups/'
|
| '/setups/'
|
||||||
@@ -162,6 +181,7 @@ export interface FileRouteTypes {
|
|||||||
| '/items/$itemId'
|
| '/items/$itemId'
|
||||||
| '/setups/$setupId'
|
| '/setups/$setupId'
|
||||||
| '/users/$userId'
|
| '/users/$userId'
|
||||||
|
| '/admin'
|
||||||
| '/collection'
|
| '/collection'
|
||||||
| '/global-items'
|
| '/global-items'
|
||||||
| '/setups'
|
| '/setups'
|
||||||
@@ -170,6 +190,7 @@ export interface FileRouteTypes {
|
|||||||
id:
|
id:
|
||||||
| '__root__'
|
| '__root__'
|
||||||
| '/'
|
| '/'
|
||||||
|
| '/admin'
|
||||||
| '/login'
|
| '/login'
|
||||||
| '/profile'
|
| '/profile'
|
||||||
| '/settings'
|
| '/settings'
|
||||||
@@ -177,6 +198,7 @@ export interface FileRouteTypes {
|
|||||||
| '/items/$itemId'
|
| '/items/$itemId'
|
||||||
| '/setups/$setupId'
|
| '/setups/$setupId'
|
||||||
| '/users/$userId'
|
| '/users/$userId'
|
||||||
|
| '/admin/'
|
||||||
| '/collection/'
|
| '/collection/'
|
||||||
| '/global-items/'
|
| '/global-items/'
|
||||||
| '/setups/'
|
| '/setups/'
|
||||||
@@ -186,6 +208,7 @@ export interface FileRouteTypes {
|
|||||||
}
|
}
|
||||||
export interface RootRouteChildren {
|
export interface RootRouteChildren {
|
||||||
IndexRoute: typeof IndexRoute
|
IndexRoute: typeof IndexRoute
|
||||||
|
AdminRoute: typeof AdminRouteWithChildren
|
||||||
LoginRoute: typeof LoginRoute
|
LoginRoute: typeof LoginRoute
|
||||||
ProfileRoute: typeof ProfileRoute
|
ProfileRoute: typeof ProfileRoute
|
||||||
SettingsRoute: typeof SettingsRoute
|
SettingsRoute: typeof SettingsRoute
|
||||||
@@ -223,6 +246,13 @@ declare module '@tanstack/react-router' {
|
|||||||
preLoaderRoute: typeof LoginRouteImport
|
preLoaderRoute: typeof LoginRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
|
'/admin': {
|
||||||
|
id: '/admin'
|
||||||
|
path: '/admin'
|
||||||
|
fullPath: '/admin'
|
||||||
|
preLoaderRoute: typeof AdminRouteImport
|
||||||
|
parentRoute: typeof rootRouteImport
|
||||||
|
}
|
||||||
'/': {
|
'/': {
|
||||||
id: '/'
|
id: '/'
|
||||||
path: '/'
|
path: '/'
|
||||||
@@ -251,6 +281,13 @@ declare module '@tanstack/react-router' {
|
|||||||
preLoaderRoute: typeof CollectionIndexRouteImport
|
preLoaderRoute: typeof CollectionIndexRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
|
'/admin/': {
|
||||||
|
id: '/admin/'
|
||||||
|
path: '/'
|
||||||
|
fullPath: '/admin/'
|
||||||
|
preLoaderRoute: typeof AdminIndexRouteImport
|
||||||
|
parentRoute: typeof AdminRoute
|
||||||
|
}
|
||||||
'/users/$userId': {
|
'/users/$userId': {
|
||||||
id: '/users/$userId'
|
id: '/users/$userId'
|
||||||
path: '/users/$userId'
|
path: '/users/$userId'
|
||||||
@@ -296,8 +333,19 @@ declare module '@tanstack/react-router' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface AdminRouteChildren {
|
||||||
|
AdminIndexRoute: typeof AdminIndexRoute
|
||||||
|
}
|
||||||
|
|
||||||
|
const AdminRouteChildren: AdminRouteChildren = {
|
||||||
|
AdminIndexRoute: AdminIndexRoute,
|
||||||
|
}
|
||||||
|
|
||||||
|
const AdminRouteWithChildren = AdminRoute._addFileChildren(AdminRouteChildren)
|
||||||
|
|
||||||
const rootRouteChildren: RootRouteChildren = {
|
const rootRouteChildren: RootRouteChildren = {
|
||||||
IndexRoute: IndexRoute,
|
IndexRoute: IndexRoute,
|
||||||
|
AdminRoute: AdminRouteWithChildren,
|
||||||
LoginRoute: LoginRoute,
|
LoginRoute: LoginRoute,
|
||||||
ProfileRoute: ProfileRoute,
|
ProfileRoute: ProfileRoute,
|
||||||
SettingsRoute: SettingsRoute,
|
SettingsRoute: SettingsRoute,
|
||||||
|
|||||||
Reference in New Issue
Block a user