feat: add server details
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as Server_listRouteImport } from './routes/server_list'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
import { Route as ServerServerIdRouteImport } from './routes/server.$serverId'
|
||||
|
||||
const Server_listRoute = Server_listRouteImport.update({
|
||||
id: '/server_list',
|
||||
@@ -22,31 +23,40 @@ const IndexRoute = IndexRouteImport.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const ServerServerIdRoute = ServerServerIdRouteImport.update({
|
||||
id: '/server/$serverId',
|
||||
path: '/server/$serverId',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/server_list': typeof Server_listRoute
|
||||
'/server/$serverId': typeof ServerServerIdRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/server_list': typeof Server_listRoute
|
||||
'/server/$serverId': typeof ServerServerIdRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/server_list': typeof Server_listRoute
|
||||
'/server/$serverId': typeof ServerServerIdRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/server_list'
|
||||
fullPaths: '/' | '/server_list' | '/server/$serverId'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/server_list'
|
||||
id: '__root__' | '/' | '/server_list'
|
||||
to: '/' | '/server_list' | '/server/$serverId'
|
||||
id: '__root__' | '/' | '/server_list' | '/server/$serverId'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
Server_listRoute: typeof Server_listRoute
|
||||
ServerServerIdRoute: typeof ServerServerIdRoute
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
@@ -65,12 +75,20 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof IndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/server/$serverId': {
|
||||
id: '/server/$serverId'
|
||||
path: '/server/$serverId'
|
||||
fullPath: '/server/$serverId'
|
||||
preLoaderRoute: typeof ServerServerIdRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
Server_listRoute: Server_listRoute,
|
||||
ServerServerIdRoute: ServerServerIdRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
|
||||
Reference in New Issue
Block a user