add base layout

This commit is contained in:
yzned
2025-07-19 12:55:03 +03:00
committed by yzned
parent d249f0d291
commit de28d80769
13 changed files with 238 additions and 17 deletions

View File

@@ -9,8 +9,14 @@
// 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 InteractionPanelRouteImport } from './routes/interaction-panel'
import { Route as IndexRouteImport } from './routes/index'
const InteractionPanelRoute = InteractionPanelRouteImport.update({
id: '/interaction-panel',
path: '/interaction-panel',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
@@ -19,28 +25,39 @@ const IndexRoute = IndexRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/interaction-panel': typeof InteractionPanelRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/interaction-panel': typeof InteractionPanelRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/interaction-panel': typeof InteractionPanelRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/'
fullPaths: '/' | '/interaction-panel'
fileRoutesByTo: FileRoutesByTo
to: '/'
id: '__root__' | '/'
to: '/' | '/interaction-panel'
id: '__root__' | '/' | '/interaction-panel'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
InteractionPanelRoute: typeof InteractionPanelRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/interaction-panel': {
id: '/interaction-panel'
path: '/interaction-panel'
fullPath: '/interaction-panel'
preLoaderRoute: typeof InteractionPanelRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
path: '/'
@@ -53,6 +70,7 @@ declare module '@tanstack/react-router' {
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
InteractionPanelRoute: InteractionPanelRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)