@@ -13,10 +13,12 @@ import { Route as SignupRouteImport } from './routes/signup'
1313import { Route as ResetPasswordRouteImport } from './routes/reset-password'
1414import { Route as RecoverPasswordRouteImport } from './routes/recover-password'
1515import { Route as LoginRouteImport } from './routes/login'
16+ import { Route as LandingRouteImport } from './routes/landing'
1617import { Route as LayoutRouteImport } from './routes/_layout'
17- import { Route as LayoutIndexRouteImport } from './routes/_layout /index'
18+ import { Route as IndexRouteImport } from './routes/index'
1819import { Route as LayoutSettingsRouteImport } from './routes/_layout/settings'
1920import { Route as LayoutItemsRouteImport } from './routes/_layout/items'
21+ import { Route as LayoutDashboardRouteImport } from './routes/_layout/dashboard'
2022import { Route as LayoutAdminRouteImport } from './routes/_layout/admin'
2123
2224const SignupRoute = SignupRouteImport . update ( {
@@ -39,14 +41,19 @@ const LoginRoute = LoginRouteImport.update({
3941 path : '/login' ,
4042 getParentRoute : ( ) => rootRouteImport ,
4143} as any )
44+ const LandingRoute = LandingRouteImport . update ( {
45+ id : '/landing' ,
46+ path : '/landing' ,
47+ getParentRoute : ( ) => rootRouteImport ,
48+ } as any )
4249const LayoutRoute = LayoutRouteImport . update ( {
4350 id : '/_layout' ,
4451 getParentRoute : ( ) => rootRouteImport ,
4552} as any )
46- const LayoutIndexRoute = LayoutIndexRouteImport . update ( {
53+ const IndexRoute = IndexRouteImport . update ( {
4754 id : '/' ,
4855 path : '/' ,
49- getParentRoute : ( ) => LayoutRoute ,
56+ getParentRoute : ( ) => rootRouteImport ,
5057} as any )
5158const LayoutSettingsRoute = LayoutSettingsRouteImport . update ( {
5259 id : '/settings' ,
@@ -58,80 +65,99 @@ const LayoutItemsRoute = LayoutItemsRouteImport.update({
5865 path : '/items' ,
5966 getParentRoute : ( ) => LayoutRoute ,
6067} as any )
68+ const LayoutDashboardRoute = LayoutDashboardRouteImport . update ( {
69+ id : '/dashboard' ,
70+ path : '/dashboard' ,
71+ getParentRoute : ( ) => LayoutRoute ,
72+ } as any )
6173const LayoutAdminRoute = LayoutAdminRouteImport . update ( {
6274 id : '/admin' ,
6375 path : '/admin' ,
6476 getParentRoute : ( ) => LayoutRoute ,
6577} as any )
6678
6779export interface FileRoutesByFullPath {
80+ '/' : typeof IndexRoute
81+ '/landing' : typeof LandingRoute
6882 '/login' : typeof LoginRoute
6983 '/recover-password' : typeof RecoverPasswordRoute
7084 '/reset-password' : typeof ResetPasswordRoute
7185 '/signup' : typeof SignupRoute
7286 '/admin' : typeof LayoutAdminRoute
87+ '/dashboard' : typeof LayoutDashboardRoute
7388 '/items' : typeof LayoutItemsRoute
7489 '/settings' : typeof LayoutSettingsRoute
75- '/' : typeof LayoutIndexRoute
7690}
7791export interface FileRoutesByTo {
92+ '/' : typeof IndexRoute
93+ '/landing' : typeof LandingRoute
7894 '/login' : typeof LoginRoute
7995 '/recover-password' : typeof RecoverPasswordRoute
8096 '/reset-password' : typeof ResetPasswordRoute
8197 '/signup' : typeof SignupRoute
8298 '/admin' : typeof LayoutAdminRoute
99+ '/dashboard' : typeof LayoutDashboardRoute
83100 '/items' : typeof LayoutItemsRoute
84101 '/settings' : typeof LayoutSettingsRoute
85- '/' : typeof LayoutIndexRoute
86102}
87103export interface FileRoutesById {
88104 __root__ : typeof rootRouteImport
105+ '/' : typeof IndexRoute
89106 '/_layout' : typeof LayoutRouteWithChildren
107+ '/landing' : typeof LandingRoute
90108 '/login' : typeof LoginRoute
91109 '/recover-password' : typeof RecoverPasswordRoute
92110 '/reset-password' : typeof ResetPasswordRoute
93111 '/signup' : typeof SignupRoute
94112 '/_layout/admin' : typeof LayoutAdminRoute
113+ '/_layout/dashboard' : typeof LayoutDashboardRoute
95114 '/_layout/items' : typeof LayoutItemsRoute
96115 '/_layout/settings' : typeof LayoutSettingsRoute
97- '/_layout/' : typeof LayoutIndexRoute
98116}
99117export interface FileRouteTypes {
100118 fileRoutesByFullPath : FileRoutesByFullPath
101119 fullPaths :
120+ | '/'
121+ | '/landing'
102122 | '/login'
103123 | '/recover-password'
104124 | '/reset-password'
105125 | '/signup'
106126 | '/admin'
127+ | '/dashboard'
107128 | '/items'
108129 | '/settings'
109- | '/'
110130 fileRoutesByTo : FileRoutesByTo
111131 to :
132+ | '/'
133+ | '/landing'
112134 | '/login'
113135 | '/recover-password'
114136 | '/reset-password'
115137 | '/signup'
116138 | '/admin'
139+ | '/dashboard'
117140 | '/items'
118141 | '/settings'
119- | '/'
120142 id :
121143 | '__root__'
144+ | '/'
122145 | '/_layout'
146+ | '/landing'
123147 | '/login'
124148 | '/recover-password'
125149 | '/reset-password'
126150 | '/signup'
127151 | '/_layout/admin'
152+ | '/_layout/dashboard'
128153 | '/_layout/items'
129154 | '/_layout/settings'
130- | '/_layout/'
131155 fileRoutesById : FileRoutesById
132156}
133157export interface RootRouteChildren {
158+ IndexRoute : typeof IndexRoute
134159 LayoutRoute : typeof LayoutRouteWithChildren
160+ LandingRoute : typeof LandingRoute
135161 LoginRoute : typeof LoginRoute
136162 RecoverPasswordRoute : typeof RecoverPasswordRoute
137163 ResetPasswordRoute : typeof ResetPasswordRoute
@@ -168,19 +194,26 @@ declare module '@tanstack/react-router' {
168194 preLoaderRoute : typeof LoginRouteImport
169195 parentRoute : typeof rootRouteImport
170196 }
197+ '/landing' : {
198+ id : '/landing'
199+ path : '/landing'
200+ fullPath : '/landing'
201+ preLoaderRoute : typeof LandingRouteImport
202+ parentRoute : typeof rootRouteImport
203+ }
171204 '/_layout' : {
172205 id : '/_layout'
173206 path : ''
174207 fullPath : ''
175208 preLoaderRoute : typeof LayoutRouteImport
176209 parentRoute : typeof rootRouteImport
177210 }
178- '/_layout/ ' : {
179- id : '/_layout/ '
211+ '/' : {
212+ id : '/'
180213 path : '/'
181214 fullPath : '/'
182- preLoaderRoute : typeof LayoutIndexRouteImport
183- parentRoute : typeof LayoutRoute
215+ preLoaderRoute : typeof IndexRouteImport
216+ parentRoute : typeof rootRouteImport
184217 }
185218 '/_layout/settings' : {
186219 id : '/_layout/settings'
@@ -196,6 +229,13 @@ declare module '@tanstack/react-router' {
196229 preLoaderRoute : typeof LayoutItemsRouteImport
197230 parentRoute : typeof LayoutRoute
198231 }
232+ '/_layout/dashboard' : {
233+ id : '/_layout/dashboard'
234+ path : '/dashboard'
235+ fullPath : '/dashboard'
236+ preLoaderRoute : typeof LayoutDashboardRouteImport
237+ parentRoute : typeof LayoutRoute
238+ }
199239 '/_layout/admin' : {
200240 id : '/_layout/admin'
201241 path : '/admin'
@@ -208,23 +248,25 @@ declare module '@tanstack/react-router' {
208248
209249interface LayoutRouteChildren {
210250 LayoutAdminRoute : typeof LayoutAdminRoute
251+ LayoutDashboardRoute : typeof LayoutDashboardRoute
211252 LayoutItemsRoute : typeof LayoutItemsRoute
212253 LayoutSettingsRoute : typeof LayoutSettingsRoute
213- LayoutIndexRoute : typeof LayoutIndexRoute
214254}
215255
216256const LayoutRouteChildren : LayoutRouteChildren = {
217257 LayoutAdminRoute : LayoutAdminRoute ,
258+ LayoutDashboardRoute : LayoutDashboardRoute ,
218259 LayoutItemsRoute : LayoutItemsRoute ,
219260 LayoutSettingsRoute : LayoutSettingsRoute ,
220- LayoutIndexRoute : LayoutIndexRoute ,
221261}
222262
223263const LayoutRouteWithChildren =
224264 LayoutRoute . _addFileChildren ( LayoutRouteChildren )
225265
226266const rootRouteChildren : RootRouteChildren = {
267+ IndexRoute : IndexRoute ,
227268 LayoutRoute : LayoutRouteWithChildren ,
269+ LandingRoute : LandingRoute ,
228270 LoginRoute : LoginRoute ,
229271 RecoverPasswordRoute : RecoverPasswordRoute ,
230272 ResetPasswordRoute : ResetPasswordRoute ,
0 commit comments