From c10edc0df28036f09c524cbdff0cd090f3e949c9 Mon Sep 17 00:00:00 2001 From: kenneth Date: Sat, 20 Sep 2025 13:19:41 +0000 Subject: [PATCH] feat: add placeholder /home page --- packages/web/src/routeTree.gen.ts | 22 +++++++++++++++++++ .../_authenticated/_sidebar-layout/home.tsx | 9 ++++++++ .../web/src/routes/_authenticated/index.tsx | 2 +- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 packages/web/src/routes/_authenticated/_sidebar-layout/home.tsx diff --git a/packages/web/src/routeTree.gen.ts b/packages/web/src/routeTree.gen.ts index 8fe6e55..366e47b 100644 --- a/packages/web/src/routeTree.gen.ts +++ b/packages/web/src/routeTree.gen.ts @@ -14,6 +14,7 @@ import { Route as AuthenticatedRouteImport } from './routes/_authenticated' import { Route as AuthenticatedIndexRouteImport } from './routes/_authenticated/index' import { Route as LoginCallbackRouteImport } from './routes/login_.callback' import { Route as AuthenticatedSidebarLayoutRouteImport } from './routes/_authenticated/_sidebar-layout' +import { Route as AuthenticatedSidebarLayoutHomeRouteImport } from './routes/_authenticated/_sidebar-layout/home' import { Route as AuthenticatedSidebarLayoutFilesSplatRouteImport } from './routes/_authenticated/_sidebar-layout/files.$' import { Route as AuthenticatedSidebarLayoutDirectoriesDirectoryIdRouteImport } from './routes/_authenticated/_sidebar-layout/directories.$directoryId' @@ -41,6 +42,12 @@ const AuthenticatedSidebarLayoutRoute = id: '/_sidebar-layout', getParentRoute: () => AuthenticatedRoute, } as any) +const AuthenticatedSidebarLayoutHomeRoute = + AuthenticatedSidebarLayoutHomeRouteImport.update({ + id: '/home', + path: '/home', + getParentRoute: () => AuthenticatedSidebarLayoutRoute, + } as any) const AuthenticatedSidebarLayoutFilesSplatRoute = AuthenticatedSidebarLayoutFilesSplatRouteImport.update({ id: '/files/$', @@ -58,6 +65,7 @@ export interface FileRoutesByFullPath { '/login': typeof LoginRoute '/login/callback': typeof LoginCallbackRoute '/': typeof AuthenticatedIndexRoute + '/home': typeof AuthenticatedSidebarLayoutHomeRoute '/directories/$directoryId': typeof AuthenticatedSidebarLayoutDirectoriesDirectoryIdRoute '/files/$': typeof AuthenticatedSidebarLayoutFilesSplatRoute } @@ -65,6 +73,7 @@ export interface FileRoutesByTo { '/login': typeof LoginRoute '/login/callback': typeof LoginCallbackRoute '/': typeof AuthenticatedIndexRoute + '/home': typeof AuthenticatedSidebarLayoutHomeRoute '/directories/$directoryId': typeof AuthenticatedSidebarLayoutDirectoriesDirectoryIdRoute '/files/$': typeof AuthenticatedSidebarLayoutFilesSplatRoute } @@ -75,6 +84,7 @@ export interface FileRoutesById { '/_authenticated/_sidebar-layout': typeof AuthenticatedSidebarLayoutRouteWithChildren '/login_/callback': typeof LoginCallbackRoute '/_authenticated/': typeof AuthenticatedIndexRoute + '/_authenticated/_sidebar-layout/home': typeof AuthenticatedSidebarLayoutHomeRoute '/_authenticated/_sidebar-layout/directories/$directoryId': typeof AuthenticatedSidebarLayoutDirectoriesDirectoryIdRoute '/_authenticated/_sidebar-layout/files/$': typeof AuthenticatedSidebarLayoutFilesSplatRoute } @@ -84,6 +94,7 @@ export interface FileRouteTypes { | '/login' | '/login/callback' | '/' + | '/home' | '/directories/$directoryId' | '/files/$' fileRoutesByTo: FileRoutesByTo @@ -91,6 +102,7 @@ export interface FileRouteTypes { | '/login' | '/login/callback' | '/' + | '/home' | '/directories/$directoryId' | '/files/$' id: @@ -100,6 +112,7 @@ export interface FileRouteTypes { | '/_authenticated/_sidebar-layout' | '/login_/callback' | '/_authenticated/' + | '/_authenticated/_sidebar-layout/home' | '/_authenticated/_sidebar-layout/directories/$directoryId' | '/_authenticated/_sidebar-layout/files/$' fileRoutesById: FileRoutesById @@ -147,6 +160,13 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof AuthenticatedSidebarLayoutRouteImport parentRoute: typeof AuthenticatedRoute } + '/_authenticated/_sidebar-layout/home': { + id: '/_authenticated/_sidebar-layout/home' + path: '/home' + fullPath: '/home' + preLoaderRoute: typeof AuthenticatedSidebarLayoutHomeRouteImport + parentRoute: typeof AuthenticatedSidebarLayoutRoute + } '/_authenticated/_sidebar-layout/files/$': { id: '/_authenticated/_sidebar-layout/files/$' path: '/files/$' @@ -165,12 +185,14 @@ declare module '@tanstack/react-router' { } interface AuthenticatedSidebarLayoutRouteChildren { + AuthenticatedSidebarLayoutHomeRoute: typeof AuthenticatedSidebarLayoutHomeRoute AuthenticatedSidebarLayoutDirectoriesDirectoryIdRoute: typeof AuthenticatedSidebarLayoutDirectoriesDirectoryIdRoute AuthenticatedSidebarLayoutFilesSplatRoute: typeof AuthenticatedSidebarLayoutFilesSplatRoute } const AuthenticatedSidebarLayoutRouteChildren: AuthenticatedSidebarLayoutRouteChildren = { + AuthenticatedSidebarLayoutHomeRoute: AuthenticatedSidebarLayoutHomeRoute, AuthenticatedSidebarLayoutDirectoriesDirectoryIdRoute: AuthenticatedSidebarLayoutDirectoriesDirectoryIdRoute, AuthenticatedSidebarLayoutFilesSplatRoute: diff --git a/packages/web/src/routes/_authenticated/_sidebar-layout/home.tsx b/packages/web/src/routes/_authenticated/_sidebar-layout/home.tsx new file mode 100644 index 0000000..726856f --- /dev/null +++ b/packages/web/src/routes/_authenticated/_sidebar-layout/home.tsx @@ -0,0 +1,9 @@ +import { createFileRoute } from "@tanstack/react-router" + +export const Route = createFileRoute("/_authenticated/_sidebar-layout/home")({ + component: RouteComponent, +}) + +function RouteComponent() { + return
Hello "/_authenticated/home"!
+} diff --git a/packages/web/src/routes/_authenticated/index.tsx b/packages/web/src/routes/_authenticated/index.tsx index acaee93..96d34c6 100644 --- a/packages/web/src/routes/_authenticated/index.tsx +++ b/packages/web/src/routes/_authenticated/index.tsx @@ -5,5 +5,5 @@ export const Route = createFileRoute("/_authenticated/")({ }) function RouteComponent() { - return + return }