e09864bbed
После regen routeTree.gen.ts /dictionaries/$name стал child route /dictionaries.
dictionaries.tsx рендерил карточки без <Outlet/> — клик по карточке менял URL,
но child компонент негде было рендерить, поэтому видна та же страница со списком.
Разнёс по конвенции:
- dictionaries.tsx — layout с <Outlet/>
- dictionaries.index.tsx — карточки списка (matches /dictionaries)
- dictionaries.$name.tsx — без изменений (matches /dictionaries/{name})
128 lines
3.9 KiB
TypeScript
128 lines
3.9 KiB
TypeScript
/* eslint-disable */
|
|
|
|
// @ts-nocheck
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
|
|
// This file was automatically generated by TanStack Router.
|
|
// You should NOT make any changes in this file as it will be overwritten.
|
|
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
|
|
import { Route as rootRouteImport } from './routes/__root'
|
|
import { Route as DictionariesRouteImport } from './routes/dictionaries'
|
|
import { Route as IndexRouteImport } from './routes/index'
|
|
import { Route as DictionariesIndexRouteImport } from './routes/dictionaries.index'
|
|
import { Route as DictionariesNameRouteImport } from './routes/dictionaries.$name'
|
|
|
|
const DictionariesRoute = DictionariesRouteImport.update({
|
|
id: '/dictionaries',
|
|
path: '/dictionaries',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const IndexRoute = IndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => rootRouteImport,
|
|
} as any)
|
|
const DictionariesIndexRoute = DictionariesIndexRouteImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => DictionariesRoute,
|
|
} as any)
|
|
const DictionariesNameRoute = DictionariesNameRouteImport.update({
|
|
id: '/$name',
|
|
path: '/$name',
|
|
getParentRoute: () => DictionariesRoute,
|
|
} as any)
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof IndexRoute
|
|
'/dictionaries': typeof DictionariesRouteWithChildren
|
|
'/dictionaries/$name': typeof DictionariesNameRoute
|
|
'/dictionaries/': typeof DictionariesIndexRoute
|
|
}
|
|
export interface FileRoutesByTo {
|
|
'/': typeof IndexRoute
|
|
'/dictionaries/$name': typeof DictionariesNameRoute
|
|
'/dictionaries': typeof DictionariesIndexRoute
|
|
}
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRouteImport
|
|
'/': typeof IndexRoute
|
|
'/dictionaries': typeof DictionariesRouteWithChildren
|
|
'/dictionaries/$name': typeof DictionariesNameRoute
|
|
'/dictionaries/': typeof DictionariesIndexRoute
|
|
}
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths: '/' | '/dictionaries' | '/dictionaries/$name' | '/dictionaries/'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to: '/' | '/dictionaries/$name' | '/dictionaries'
|
|
id:
|
|
| '__root__'
|
|
| '/'
|
|
| '/dictionaries'
|
|
| '/dictionaries/$name'
|
|
| '/dictionaries/'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
export interface RootRouteChildren {
|
|
IndexRoute: typeof IndexRoute
|
|
DictionariesRoute: typeof DictionariesRouteWithChildren
|
|
}
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/dictionaries': {
|
|
id: '/dictionaries'
|
|
path: '/dictionaries'
|
|
fullPath: '/dictionaries'
|
|
preLoaderRoute: typeof DictionariesRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/': {
|
|
id: '/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof IndexRouteImport
|
|
parentRoute: typeof rootRouteImport
|
|
}
|
|
'/dictionaries/': {
|
|
id: '/dictionaries/'
|
|
path: '/'
|
|
fullPath: '/dictionaries/'
|
|
preLoaderRoute: typeof DictionariesIndexRouteImport
|
|
parentRoute: typeof DictionariesRoute
|
|
}
|
|
'/dictionaries/$name': {
|
|
id: '/dictionaries/$name'
|
|
path: '/$name'
|
|
fullPath: '/dictionaries/$name'
|
|
preLoaderRoute: typeof DictionariesNameRouteImport
|
|
parentRoute: typeof DictionariesRoute
|
|
}
|
|
}
|
|
}
|
|
|
|
interface DictionariesRouteChildren {
|
|
DictionariesNameRoute: typeof DictionariesNameRoute
|
|
DictionariesIndexRoute: typeof DictionariesIndexRoute
|
|
}
|
|
|
|
const DictionariesRouteChildren: DictionariesRouteChildren = {
|
|
DictionariesNameRoute: DictionariesNameRoute,
|
|
DictionariesIndexRoute: DictionariesIndexRoute,
|
|
}
|
|
|
|
const DictionariesRouteWithChildren = DictionariesRoute._addFileChildren(
|
|
DictionariesRouteChildren,
|
|
)
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
IndexRoute: IndexRoute,
|
|
DictionariesRoute: DictionariesRouteWithChildren,
|
|
}
|
|
export const routeTree = rootRouteImport
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|