feat(eom): frame work added in for eom

This commit is contained in:
2025-03-05 20:15:38 -06:00
parent 50cf87380d
commit fda0719d87
14 changed files with 708 additions and 6 deletions

View File

@@ -13,14 +13,17 @@
import { Route as rootRoute } from './routes/__root'
import { Route as LoginImport } from './routes/login'
import { Route as AboutImport } from './routes/about'
import { Route as EomImport } from './routes/_eom'
import { Route as AuthImport } from './routes/_auth'
import { Route as AdminImport } from './routes/_admin'
import { Route as IndexImport } from './routes/index'
import { Route as OcpIndexImport } from './routes/ocp/index'
import { Route as OcpLotsImport } from './routes/ocp/lots'
import { Route as EomEomImport } from './routes/_eom/eom'
import { Route as AuthProfileImport } from './routes/_auth/profile'
import { Route as AdminSettingsImport } from './routes/_admin/settings'
import { Route as AdminModulesImport } from './routes/_admin/modules'
import { Route as EomArticleAvImport } from './routes/_eom/article/$av'
// Create/Update Routes
@@ -36,6 +39,11 @@ const AboutRoute = AboutImport.update({
getParentRoute: () => rootRoute,
} as any)
const EomRoute = EomImport.update({
id: '/_eom',
getParentRoute: () => rootRoute,
} as any)
const AuthRoute = AuthImport.update({
id: '/_auth',
getParentRoute: () => rootRoute,
@@ -64,6 +72,12 @@ const OcpLotsRoute = OcpLotsImport.update({
getParentRoute: () => rootRoute,
} as any)
const EomEomRoute = EomEomImport.update({
id: '/eom',
path: '/eom',
getParentRoute: () => EomRoute,
} as any)
const AuthProfileRoute = AuthProfileImport.update({
id: '/profile',
path: '/profile',
@@ -82,6 +96,12 @@ const AdminModulesRoute = AdminModulesImport.update({
getParentRoute: () => AdminRoute,
} as any)
const EomArticleAvRoute = EomArticleAvImport.update({
id: '/article/$av',
path: '/article/$av',
getParentRoute: () => EomRoute,
} as any)
// Populate the FileRoutesByPath interface
declare module '@tanstack/react-router' {
@@ -107,6 +127,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthImport
parentRoute: typeof rootRoute
}
'/_eom': {
id: '/_eom'
path: ''
fullPath: ''
preLoaderRoute: typeof EomImport
parentRoute: typeof rootRoute
}
'/about': {
id: '/about'
path: '/about'
@@ -142,6 +169,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AuthProfileImport
parentRoute: typeof AuthImport
}
'/_eom/eom': {
id: '/_eom/eom'
path: '/eom'
fullPath: '/eom'
preLoaderRoute: typeof EomEomImport
parentRoute: typeof EomImport
}
'/ocp/lots': {
id: '/ocp/lots'
path: '/ocp/lots'
@@ -156,6 +190,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof OcpIndexImport
parentRoute: typeof rootRoute
}
'/_eom/article/$av': {
id: '/_eom/article/$av'
path: '/article/$av'
fullPath: '/article/$av'
preLoaderRoute: typeof EomArticleAvImport
parentRoute: typeof EomImport
}
}
}
@@ -183,28 +224,44 @@ const AuthRouteChildren: AuthRouteChildren = {
const AuthRouteWithChildren = AuthRoute._addFileChildren(AuthRouteChildren)
interface EomRouteChildren {
EomEomRoute: typeof EomEomRoute
EomArticleAvRoute: typeof EomArticleAvRoute
}
const EomRouteChildren: EomRouteChildren = {
EomEomRoute: EomEomRoute,
EomArticleAvRoute: EomArticleAvRoute,
}
const EomRouteWithChildren = EomRoute._addFileChildren(EomRouteChildren)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'': typeof AuthRouteWithChildren
'': typeof EomRouteWithChildren
'/about': typeof AboutRoute
'/login': typeof LoginRoute
'/modules': typeof AdminModulesRoute
'/settings': typeof AdminSettingsRoute
'/profile': typeof AuthProfileRoute
'/eom': typeof EomEomRoute
'/ocp/lots': typeof OcpLotsRoute
'/ocp': typeof OcpIndexRoute
'/article/$av': typeof EomArticleAvRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'': typeof AuthRouteWithChildren
'': typeof EomRouteWithChildren
'/about': typeof AboutRoute
'/login': typeof LoginRoute
'/modules': typeof AdminModulesRoute
'/settings': typeof AdminSettingsRoute
'/profile': typeof AuthProfileRoute
'/eom': typeof EomEomRoute
'/ocp/lots': typeof OcpLotsRoute
'/ocp': typeof OcpIndexRoute
'/article/$av': typeof EomArticleAvRoute
}
export interface FileRoutesById {
@@ -212,13 +269,16 @@ export interface FileRoutesById {
'/': typeof IndexRoute
'/_admin': typeof AdminRouteWithChildren
'/_auth': typeof AuthRouteWithChildren
'/_eom': typeof EomRouteWithChildren
'/about': typeof AboutRoute
'/login': typeof LoginRoute
'/_admin/modules': typeof AdminModulesRoute
'/_admin/settings': typeof AdminSettingsRoute
'/_auth/profile': typeof AuthProfileRoute
'/_eom/eom': typeof EomEomRoute
'/ocp/lots': typeof OcpLotsRoute
'/ocp/': typeof OcpIndexRoute
'/_eom/article/$av': typeof EomArticleAvRoute
}
export interface FileRouteTypes {
@@ -231,8 +291,10 @@ export interface FileRouteTypes {
| '/modules'
| '/settings'
| '/profile'
| '/eom'
| '/ocp/lots'
| '/ocp'
| '/article/$av'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
@@ -242,20 +304,25 @@ export interface FileRouteTypes {
| '/modules'
| '/settings'
| '/profile'
| '/eom'
| '/ocp/lots'
| '/ocp'
| '/article/$av'
id:
| '__root__'
| '/'
| '/_admin'
| '/_auth'
| '/_eom'
| '/about'
| '/login'
| '/_admin/modules'
| '/_admin/settings'
| '/_auth/profile'
| '/_eom/eom'
| '/ocp/lots'
| '/ocp/'
| '/_eom/article/$av'
fileRoutesById: FileRoutesById
}
@@ -263,6 +330,7 @@ export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
AdminRoute: typeof AdminRouteWithChildren
AuthRoute: typeof AuthRouteWithChildren
EomRoute: typeof EomRouteWithChildren
AboutRoute: typeof AboutRoute
LoginRoute: typeof LoginRoute
OcpLotsRoute: typeof OcpLotsRoute
@@ -273,6 +341,7 @@ const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
AdminRoute: AdminRouteWithChildren,
AuthRoute: AuthRouteWithChildren,
EomRoute: EomRouteWithChildren,
AboutRoute: AboutRoute,
LoginRoute: LoginRoute,
OcpLotsRoute: OcpLotsRoute,
@@ -292,6 +361,7 @@ export const routeTree = rootRoute
"/",
"/_admin",
"/_auth",
"/_eom",
"/about",
"/login",
"/ocp/lots",
@@ -314,6 +384,13 @@ export const routeTree = rootRoute
"/_auth/profile"
]
},
"/_eom": {
"filePath": "_eom.tsx",
"children": [
"/_eom/eom",
"/_eom/article/$av"
]
},
"/about": {
"filePath": "about.tsx"
},
@@ -332,11 +409,19 @@ export const routeTree = rootRoute
"filePath": "_auth/profile.tsx",
"parent": "/_auth"
},
"/_eom/eom": {
"filePath": "_eom/eom.tsx",
"parent": "/_eom"
},
"/ocp/lots": {
"filePath": "ocp/lots.tsx"
},
"/ocp/": {
"filePath": "ocp/index.tsx"
},
"/_eom/article/$av": {
"filePath": "_eom/article/$av.tsx",
"parent": "/_eom"
}
}
}