279 lines
6.5 KiB
TypeScript
279 lines
6.5 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 { createFileRoute } from '@tanstack/react-router'
|
|
|
|
// Import Routes
|
|
|
|
import { Route as rootRoute } from './pages/__root'
|
|
import { Route as RegisterImport } from './pages/register'
|
|
import { Route as LoginImport } from './pages/login'
|
|
import { Route as ExampleImport } from './pages/example'
|
|
import { Route as EditorImport } from './pages/editor'
|
|
import { Route as AboutImport } from './pages/about'
|
|
import { Route as IndexImport } from './pages/index'
|
|
import { Route as ProfileUsernameImport } from './pages/profile/$username'
|
|
|
|
// Create Virtual Routes
|
|
|
|
const BookLazyImport = createFileRoute('/book')()
|
|
|
|
// Create/Update Routes
|
|
|
|
const BookLazyRoute = BookLazyImport.update({
|
|
id: '/book',
|
|
path: '/book',
|
|
getParentRoute: () => rootRoute,
|
|
} as any).lazy(() => import('./pages/book.lazy').then((d) => d.Route))
|
|
|
|
const RegisterRoute = RegisterImport.update({
|
|
id: '/register',
|
|
path: '/register',
|
|
getParentRoute: () => rootRoute,
|
|
} as any)
|
|
|
|
const LoginRoute = LoginImport.update({
|
|
id: '/login',
|
|
path: '/login',
|
|
getParentRoute: () => rootRoute,
|
|
} as any)
|
|
|
|
const ExampleRoute = ExampleImport.update({
|
|
id: '/example',
|
|
path: '/example',
|
|
getParentRoute: () => rootRoute,
|
|
} as any)
|
|
|
|
const EditorRoute = EditorImport.update({
|
|
id: '/editor',
|
|
path: '/editor',
|
|
getParentRoute: () => rootRoute,
|
|
} as any)
|
|
|
|
const AboutRoute = AboutImport.update({
|
|
id: '/about',
|
|
path: '/about',
|
|
getParentRoute: () => rootRoute,
|
|
} as any)
|
|
|
|
const IndexRoute = IndexImport.update({
|
|
id: '/',
|
|
path: '/',
|
|
getParentRoute: () => rootRoute,
|
|
} as any)
|
|
|
|
const ProfileUsernameRoute = ProfileUsernameImport.update({
|
|
id: '/profile/$username',
|
|
path: '/profile/$username',
|
|
getParentRoute: () => rootRoute,
|
|
} as any)
|
|
|
|
// Populate the FileRoutesByPath interface
|
|
|
|
declare module '@tanstack/react-router' {
|
|
interface FileRoutesByPath {
|
|
'/': {
|
|
id: '/'
|
|
path: '/'
|
|
fullPath: '/'
|
|
preLoaderRoute: typeof IndexImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
'/about': {
|
|
id: '/about'
|
|
path: '/about'
|
|
fullPath: '/about'
|
|
preLoaderRoute: typeof AboutImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
'/editor': {
|
|
id: '/editor'
|
|
path: '/editor'
|
|
fullPath: '/editor'
|
|
preLoaderRoute: typeof EditorImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
'/example': {
|
|
id: '/example'
|
|
path: '/example'
|
|
fullPath: '/example'
|
|
preLoaderRoute: typeof ExampleImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
'/login': {
|
|
id: '/login'
|
|
path: '/login'
|
|
fullPath: '/login'
|
|
preLoaderRoute: typeof LoginImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
'/register': {
|
|
id: '/register'
|
|
path: '/register'
|
|
fullPath: '/register'
|
|
preLoaderRoute: typeof RegisterImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
'/book': {
|
|
id: '/book'
|
|
path: '/book'
|
|
fullPath: '/book'
|
|
preLoaderRoute: typeof BookLazyImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
'/profile/$username': {
|
|
id: '/profile/$username'
|
|
path: '/profile/$username'
|
|
fullPath: '/profile/$username'
|
|
preLoaderRoute: typeof ProfileUsernameImport
|
|
parentRoute: typeof rootRoute
|
|
}
|
|
}
|
|
}
|
|
|
|
// Create and export the route tree
|
|
|
|
export interface FileRoutesByFullPath {
|
|
'/': typeof IndexRoute
|
|
'/about': typeof AboutRoute
|
|
'/editor': typeof EditorRoute
|
|
'/example': typeof ExampleRoute
|
|
'/login': typeof LoginRoute
|
|
'/register': typeof RegisterRoute
|
|
'/book': typeof BookLazyRoute
|
|
'/profile/$username': typeof ProfileUsernameRoute
|
|
}
|
|
|
|
export interface FileRoutesByTo {
|
|
'/': typeof IndexRoute
|
|
'/about': typeof AboutRoute
|
|
'/editor': typeof EditorRoute
|
|
'/example': typeof ExampleRoute
|
|
'/login': typeof LoginRoute
|
|
'/register': typeof RegisterRoute
|
|
'/book': typeof BookLazyRoute
|
|
'/profile/$username': typeof ProfileUsernameRoute
|
|
}
|
|
|
|
export interface FileRoutesById {
|
|
__root__: typeof rootRoute
|
|
'/': typeof IndexRoute
|
|
'/about': typeof AboutRoute
|
|
'/editor': typeof EditorRoute
|
|
'/example': typeof ExampleRoute
|
|
'/login': typeof LoginRoute
|
|
'/register': typeof RegisterRoute
|
|
'/book': typeof BookLazyRoute
|
|
'/profile/$username': typeof ProfileUsernameRoute
|
|
}
|
|
|
|
export interface FileRouteTypes {
|
|
fileRoutesByFullPath: FileRoutesByFullPath
|
|
fullPaths:
|
|
| '/'
|
|
| '/about'
|
|
| '/editor'
|
|
| '/example'
|
|
| '/login'
|
|
| '/register'
|
|
| '/book'
|
|
| '/profile/$username'
|
|
fileRoutesByTo: FileRoutesByTo
|
|
to:
|
|
| '/'
|
|
| '/about'
|
|
| '/editor'
|
|
| '/example'
|
|
| '/login'
|
|
| '/register'
|
|
| '/book'
|
|
| '/profile/$username'
|
|
id:
|
|
| '__root__'
|
|
| '/'
|
|
| '/about'
|
|
| '/editor'
|
|
| '/example'
|
|
| '/login'
|
|
| '/register'
|
|
| '/book'
|
|
| '/profile/$username'
|
|
fileRoutesById: FileRoutesById
|
|
}
|
|
|
|
export interface RootRouteChildren {
|
|
IndexRoute: typeof IndexRoute
|
|
AboutRoute: typeof AboutRoute
|
|
EditorRoute: typeof EditorRoute
|
|
ExampleRoute: typeof ExampleRoute
|
|
LoginRoute: typeof LoginRoute
|
|
RegisterRoute: typeof RegisterRoute
|
|
BookLazyRoute: typeof BookLazyRoute
|
|
ProfileUsernameRoute: typeof ProfileUsernameRoute
|
|
}
|
|
|
|
const rootRouteChildren: RootRouteChildren = {
|
|
IndexRoute: IndexRoute,
|
|
AboutRoute: AboutRoute,
|
|
EditorRoute: EditorRoute,
|
|
ExampleRoute: ExampleRoute,
|
|
LoginRoute: LoginRoute,
|
|
RegisterRoute: RegisterRoute,
|
|
BookLazyRoute: BookLazyRoute,
|
|
ProfileUsernameRoute: ProfileUsernameRoute,
|
|
}
|
|
|
|
export const routeTree = rootRoute
|
|
._addFileChildren(rootRouteChildren)
|
|
._addFileTypes<FileRouteTypes>()
|
|
|
|
/* ROUTE_MANIFEST_START
|
|
{
|
|
"routes": {
|
|
"__root__": {
|
|
"filePath": "__root.tsx",
|
|
"children": [
|
|
"/",
|
|
"/about",
|
|
"/editor",
|
|
"/example",
|
|
"/login",
|
|
"/register",
|
|
"/book",
|
|
"/profile/$username"
|
|
]
|
|
},
|
|
"/": {
|
|
"filePath": "index.tsx"
|
|
},
|
|
"/about": {
|
|
"filePath": "about.tsx"
|
|
},
|
|
"/editor": {
|
|
"filePath": "editor.tsx"
|
|
},
|
|
"/example": {
|
|
"filePath": "example.tsx"
|
|
},
|
|
"/login": {
|
|
"filePath": "login.tsx"
|
|
},
|
|
"/register": {
|
|
"filePath": "register.tsx"
|
|
},
|
|
"/book": {
|
|
"filePath": "book.lazy.tsx"
|
|
},
|
|
"/profile/$username": {
|
|
"filePath": "profile/$username.tsx"
|
|
}
|
|
}
|
|
}
|
|
ROUTE_MANIFEST_END */
|