Skip to content

Commit

Permalink
refactor(route): remove unused routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco2002 committed Jan 16, 2025
1 parent 694e806 commit 4b7dd3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 66 deletions.
59 changes: 8 additions & 51 deletions dashboard/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { Route as HardwareRouteImport } from './routes/hardware/route'
import { Route as IndexImport } from './routes/index'
import { Route as TreeIndexImport } from './routes/tree/index'
import { Route as HardwareIndexImport } from './routes/hardware/index'
import { Route as TreeTreeNameRouteImport } from './routes/tree/$treeName/route'
import { Route as TreeTreeIdRouteImport } from './routes/tree/$treeId/route'
import { Route as TestTestIdRouteImport } from './routes/test/$testId/route'
import { Route as HardwareHardwareIdRouteImport } from './routes/hardware/$hardwareId/route'
Expand All @@ -35,7 +34,6 @@ import { Route as TreeTreeNameBranchIndexImport } from './routes/tree/$treeName/
import { Route as HardwareHardwareIdTestIndexImport } from './routes/hardware/$hardwareId/test/index'
import { Route as HardwareHardwareIdBuildIndexImport } from './routes/hardware/$hardwareId/build/index'
import { Route as HardwareHardwareIdBootIndexImport } from './routes/hardware/$hardwareId/boot/index'
import { Route as alternativesTTreeNameIndexImport } from './routes/(alternatives)/t/$treeName/index'
import { Route as alternativesTTreeIdIndexImport } from './routes/(alternatives)/t/$treeId/index'
import { Route as TreeTreeIdTestTestIdRouteImport } from './routes/tree/$treeId/test/$testId/route'
import { Route as IssueIssueIdVersionVersionNumberRouteImport } from './routes/issue/$issueId/version/$versionNumber/route'
Expand Down Expand Up @@ -77,11 +75,6 @@ const HardwareIndexRoute = HardwareIndexImport.update({
getParentRoute: () => HardwareRouteRoute,
} as any)

const TreeTreeNameRouteRoute = TreeTreeNameRouteImport.update({
path: '/$treeName',
getParentRoute: () => TreeRouteRoute,
} as any)

const TreeTreeIdRouteRoute = TreeTreeIdRouteImport.update({
path: '/$treeId',
getParentRoute: () => TreeRouteRoute,
Expand Down Expand Up @@ -156,8 +149,8 @@ const alternativesTTreeIdRouteRoute = alternativesTTreeIdRouteImport.update({
} as any)

const TreeTreeNameBranchIndexRoute = TreeTreeNameBranchIndexImport.update({
path: '/$branch/',
getParentRoute: () => TreeTreeNameRouteRoute,
path: '/$treeName/$branch/',
getParentRoute: () => TreeRouteRoute,
} as any)

const HardwareHardwareIdTestIndexRoute =
Expand All @@ -178,13 +171,6 @@ const HardwareHardwareIdBootIndexRoute =
getParentRoute: () => HardwareHardwareIdBootRouteRoute,
} as any)

const alternativesTTreeNameIndexRoute = alternativesTTreeNameIndexImport.update(
{
path: '/$treeName/',
getParentRoute: () => alternativesTRouteRoute,
} as any,
)

const alternativesTTreeIdIndexRoute = alternativesTTreeIdIndexImport.update({
path: '/',
getParentRoute: () => alternativesTTreeIdRouteRoute,
Expand Down Expand Up @@ -320,13 +306,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof TreeTreeIdRouteImport
parentRoute: typeof TreeRouteImport
}
'/tree/$treeName': {
id: '/tree/$treeName'
path: '/$treeName'
fullPath: '/tree/$treeName'
preLoaderRoute: typeof TreeTreeNameRouteImport
parentRoute: typeof TreeRouteImport
}
'/hardware/': {
id: '/hardware/'
path: '/'
Expand Down Expand Up @@ -425,13 +404,6 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof alternativesTTreeIdIndexImport
parentRoute: typeof alternativesTTreeIdRouteImport
}
'/(alternatives)/t/$treeName/': {
id: '/t/$treeName/'
path: '/$treeName'
fullPath: '/t/$treeName'
preLoaderRoute: typeof alternativesTTreeNameIndexImport
parentRoute: typeof alternativesTRouteImport
}
'/hardware/$hardwareId/boot/': {
id: '/hardware/$hardwareId/boot/'
path: '/'
Expand All @@ -455,10 +427,10 @@ declare module '@tanstack/react-router' {
}
'/tree/$treeName/$branch/': {
id: '/tree/$treeName/$branch/'
path: '/$branch'
path: '/$treeName/$branch'
fullPath: '/tree/$treeName/$branch'
preLoaderRoute: typeof TreeTreeNameBranchIndexImport
parentRoute: typeof TreeTreeNameRouteImport
parentRoute: typeof TreeRouteImport
}
'/(alternatives)/t/$treeId/test/$testId': {
id: '/t/$treeId/test/$testId'
Expand Down Expand Up @@ -567,10 +539,8 @@ export const routeTree = rootRoute.addChildren({
}),
TreeTreeIdBuildBuildIdIndexRoute,
}),
TreeTreeNameRouteRoute: TreeTreeNameRouteRoute.addChildren({
TreeTreeNameBranchIndexRoute,
}),
TreeIndexRoute,
TreeTreeNameBranchIndexRoute,
}),
alternativesTRouteRoute: alternativesTRouteRoute.addChildren({
alternativesTTreeIdRouteRoute: alternativesTTreeIdRouteRoute.addChildren({
Expand All @@ -582,7 +552,6 @@ export const routeTree = rootRoute.addChildren({
alternativesTTreeIdBuildBuildIdIndexRoute,
}),
alternativesTIndexRoute,
alternativesTTreeNameIndexRoute,
alternativesTTreeNameBranchIndexRoute,
}),
BuildBuildIdRouteRoute: BuildBuildIdRouteRoute.addChildren({
Expand Down Expand Up @@ -628,16 +597,15 @@ export const routeTree = rootRoute.addChildren({
"filePath": "tree/route.tsx",
"children": [
"/tree/$treeId",
"/tree/$treeName",
"/tree/"
"/tree/",
"/tree/$treeName/$branch/"
]
},
"/t": {
"filePath": "(alternatives)/t/route.tsx",
"children": [
"/t/$treeId",
"/t/",
"/t/$treeName/",
"/t/$treeName/$branch/"
]
},
Expand Down Expand Up @@ -672,13 +640,6 @@ export const routeTree = rootRoute.addChildren({
"/tree/$treeId/build/$buildId/"
]
},
"/tree/$treeName": {
"filePath": "tree/$treeName/route.tsx",
"parent": "/tree",
"children": [
"/tree/$treeName/$branch/"
]
},
"/hardware/": {
"filePath": "hardware/index.tsx",
"parent": "/hardware"
Expand Down Expand Up @@ -757,10 +718,6 @@ export const routeTree = rootRoute.addChildren({
"filePath": "(alternatives)/t/$treeId/index.tsx",
"parent": "/t/$treeId"
},
"/t/$treeName/": {
"filePath": "(alternatives)/t/$treeName/index.tsx",
"parent": "/t"
},
"/hardware/$hardwareId/boot/": {
"filePath": "hardware/$hardwareId/boot/index.tsx",
"parent": "/hardware/$hardwareId/boot"
Expand All @@ -775,7 +732,7 @@ export const routeTree = rootRoute.addChildren({
},
"/tree/$treeName/$branch/": {
"filePath": "tree/$treeName/$branch/index.tsx",
"parent": "/tree/$treeName"
"parent": "/tree"
},
"/t/$treeId/test/$testId": {
"filePath": "(alternatives)/t/$treeId/test/$testId/route.tsx",
Expand Down
12 changes: 0 additions & 12 deletions dashboard/src/routes/(alternatives)/t/$treeName/index.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions dashboard/src/routes/tree/$treeName/route.tsx

This file was deleted.

0 comments on commit 4b7dd3d

Please sign in to comment.