The open-source CapCut alternative
feat(web): add editor route stub
Maze Winther0f3ea7ef7f8f
diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.tsindex dceedffd..78ee591a 100644--- a/apps/web/src/routeTree.gen.ts+++ b/apps/web/src/routeTree.gen.ts@@ -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)diff --git a/apps/web/src/routes/editor.tsx b/apps/web/src/routes/editor.tsxnew file mode 100644index 00000000..c2d2b0a8--- /dev/null+++ b/apps/web/src/routes/editor.tsx@@ -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>+ )+}