setup correct routes, add analytics and pgn viewer deps

This commit is contained in:
2026-05-29 20:45:26 +02:00
parent 7f8cc180c3
commit c14909d116
6 changed files with 1007 additions and 57 deletions
+35 -17
View File
@@ -9,12 +9,18 @@
// 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 AboutRouteImport } from './routes/about'
import { Route as ContactRouteImport } from './routes/contact'
import { Route as ChessboardRouteImport } from './routes/chessboard'
import { Route as IndexRouteImport } from './routes/index'
const AboutRoute = AboutRouteImport.update({
id: '/about',
path: '/about',
const ContactRoute = ContactRouteImport.update({
id: '/contact',
path: '/contact',
getParentRoute: () => rootRouteImport,
} as any)
const ChessboardRoute = ChessboardRouteImport.update({
id: '/chessboard',
path: '/chessboard',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
@@ -25,37 +31,48 @@ const IndexRoute = IndexRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/about': typeof AboutRoute
'/chessboard': typeof ChessboardRoute
'/contact': typeof ContactRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/about': typeof AboutRoute
'/chessboard': typeof ChessboardRoute
'/contact': typeof ContactRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/about': typeof AboutRoute
'/chessboard': typeof ChessboardRoute
'/contact': typeof ContactRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/about'
fullPaths: '/' | '/chessboard' | '/contact'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/about'
id: '__root__' | '/' | '/about'
to: '/' | '/chessboard' | '/contact'
id: '__root__' | '/' | '/chessboard' | '/contact'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AboutRoute: typeof AboutRoute
ChessboardRoute: typeof ChessboardRoute
ContactRoute: typeof ContactRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/about': {
id: '/about'
path: '/about'
fullPath: '/about'
preLoaderRoute: typeof AboutRouteImport
'/contact': {
id: '/contact'
path: '/contact'
fullPath: '/contact'
preLoaderRoute: typeof ContactRouteImport
parentRoute: typeof rootRouteImport
}
'/chessboard': {
id: '/chessboard'
path: '/chessboard'
fullPath: '/chessboard'
preLoaderRoute: typeof ChessboardRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
@@ -70,7 +87,8 @@ declare module '@tanstack/react-router' {
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AboutRoute: AboutRoute,
ChessboardRoute: ChessboardRoute,
ContactRoute: ContactRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)