-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
14 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { RouteObject } from 'react-router-dom' | ||
import { Component, handle, loader } from './Component' | ||
|
||
//////////////////// | ||
// children routes | ||
//////////////////// | ||
|
||
export default { | ||
path: '/', | ||
Component, | ||
handle, | ||
loader | ||
lazy: () => import('./Component') | ||
} satisfies RouteObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { RouteObject } from 'react-router-dom' | ||
|
||
import HomeRoute from './home' | ||
import ProjectsRoute from './projects/projectId' | ||
import ProjectsListRoute from './projectsList' | ||
|
||
const homeRoute = { | ||
...HomeRoute, | ||
children: [ProjectsListRoute, ProjectsRoute] | ||
} | ||
} satisfies RouteObject | ||
|
||
export const Routes = [homeRoute] |
4 changes: 1 addition & 3 deletions
4
ui/v2/service/src/Routes/projects/projectId/dashboard/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { RouteObject } from 'react-router-dom' | ||
import { Component, loader } from './Component' | ||
|
||
export default { | ||
index: true, | ||
id: 'dashboard', | ||
Component, | ||
loader | ||
lazy: () => import('./Component') | ||
} satisfies RouteObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
ui/v2/service/src/Routes/projects/projectId/reports/reportId/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import { RouteObject } from 'react-router-dom' | ||
import { Component, handle, loader } from './Component' | ||
|
||
export default { | ||
id: 'show-report-by-id', | ||
path: ':reportId', | ||
Component, | ||
loader, | ||
handle | ||
lazy: () => import('./Component') | ||
} satisfies RouteObject |
6 changes: 2 additions & 4 deletions
6
ui/v2/service/src/Routes/projects/projectId/test-suites/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import { RouteObject } from 'react-router-dom' | ||
import { Component, handle, loader } from './Component' | ||
|
||
import TestSuiteRoute from './testSuiteId' | ||
|
||
export default { | ||
id: 'test_suites', | ||
path: 'test-suites', | ||
Component, | ||
loader, | ||
handle, | ||
lazy: () => import('./Component'), | ||
children: [TestSuiteRoute] | ||
} satisfies RouteObject |
5 changes: 1 addition & 4 deletions
5
ui/v2/service/src/Routes/projects/projectId/test-suites/testSuiteId/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import { RouteObject } from 'react-router-dom' | ||
import { Component, handle, loader } from './Component' | ||
|
||
export default { | ||
id: 'show-test-suite-by-id', | ||
path: ':testSuiteId', | ||
loader, | ||
Component, | ||
handle | ||
lazy: () => import('./Component') | ||
} satisfies RouteObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
import { RouteObject } from 'react-router-dom' | ||
import { Component, errorElement, action, loader } from './Component' | ||
|
||
export default { | ||
index: true, | ||
loader, | ||
action, | ||
Component, | ||
errorElement | ||
lazy: () => import('./Component') | ||
} satisfies RouteObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters