feat(web): add editor route stub

This commit is contained in:
Maze Winther 2026-07-24 14:15:35 +02:00
parent ccb67d9a95
commit 0f3ea7ef7f
2 changed files with 33 additions and 3 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 EditorRouteImport } from './routes/editor'
import { Route as IndexRouteImport } from './routes/index'
const EditorRoute = EditorRouteImport.update({
id: '/editor',
path: '/editor',
getParentRoute: () => rootRouteImport,
} as any)
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
@ -19,28 +25,39 @@ const IndexRoute = IndexRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/editor': typeof EditorRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/editor': typeof EditorRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/editor': typeof EditorRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/'
fullPaths: '/' | '/editor'
fileRoutesByTo: FileRoutesByTo
to: '/'
id: '__root__' | '/'
to: '/' | '/editor'
id: '__root__' | '/' | '/editor'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
EditorRoute: typeof EditorRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/editor': {
id: '/editor'
path: '/editor'
fullPath: '/editor'
preLoaderRoute: typeof EditorRouteImport
parentRoute: typeof rootRouteImport
}
'/': {
id: '/'
path: '/'
@ -53,6 +70,7 @@ declare module '@tanstack/react-router' {
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
EditorRoute: EditorRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)

View File

@ -0,0 +1,12 @@
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/editor')({ component: Editor })
function Editor() {
return (
<main>
<h1>Editor</h1>
<p>Coming soon.</p>
</main>
)
}