@@ -3,11 +3,14 @@ import type { MatchResult } from 'path-to-regexp'
33import { Dashboard } from '../pages/dashboard/index.js'
44import { ExportStack } from '../pages/import-export/export-stack.js'
55import { ImportStack } from '../pages/import-export/import-stack.js'
6+ import { PrerequisitesList } from '../pages/prerequisites/prerequisites-list.js'
67import { CreateRepository } from '../pages/repositories/create-repository.js'
78import { EditRepository } from '../pages/repositories/edit-repository.js'
9+ import { RepositoriesList } from '../pages/repositories/repositories-list.js'
810import { CreateService } from '../pages/services/create-service.js'
911import { ServiceDetail } from '../pages/services/service-detail.js'
1012import { ServiceLogs } from '../pages/services/service-logs.js'
13+ import { ServicesList } from '../pages/services/services-list.js'
1114import { UserSettings } from '../pages/settings/user-settings.js'
1215import { CreateStack } from '../pages/stacks/create-stack.js'
1316import { EditStack } from '../pages/stacks/edit-stack.js'
@@ -18,55 +21,88 @@ export const appRoutes = {
1821 '/' : {
1922 component : ( ) => < Dashboard /> ,
2023 } ,
21- '/services/create/:stackName' : {
24+ '/settings' : {
25+ component : ( ) => < UserSettings /> ,
26+ } ,
27+ '/stacks/create' : {
28+ component : ( ) => < CreateStack /> ,
29+ } ,
30+ '/stacks/import' : {
31+ component : ( ) => < ImportStack /> ,
32+ } ,
33+ '/stacks/:stackName' : {
2234 component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
23- < CreateService stackName = { match . params . stackName } />
35+ < Dashboard stackName = { match . params . stackName } />
2436 ) ,
2537 } ,
26- '/services/wizard/ :stackName' : {
38+ '/stacks/ :stackName/edit ' : {
2739 component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
28- < CreateServiceWizard stackName = { match . params . stackName } />
40+ < EditStack stackName = { match . params . stackName } />
2941 ) ,
3042 } ,
31- '/services/:id/logs/:processUid ' : {
32- component : ( { match } : { match : MatchResult < { id : string ; processUid : string } > } ) => (
33- < ServiceLogs serviceId = { match . params . id } processUid = { match . params . processUid } />
43+ '/stacks/:stackName/export ' : {
44+ component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
45+ < ExportStack stackName = { match . params . stackName } />
3446 ) ,
3547 } ,
36- '/services/:id/logs' : {
37- component : ( { match } : { match : MatchResult < { id : string } > } ) => < ServiceLogs serviceId = { match . params . id } /> ,
48+ '/stacks/:stackName/setup' : {
49+ component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
50+ < StackSetup stackName = { match . params . stackName } />
51+ ) ,
3852 } ,
39- '/services/:id' : {
40- component : ( { match } : { match : MatchResult < { id : string } > } ) => < ServiceDetail serviceId = { match . params . id } /> ,
53+ '/stacks/:stackName/services' : {
54+ component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
55+ < ServicesList stackName = { match . params . stackName } />
56+ ) ,
4157 } ,
42- '/repositories/create/ :stackName' : {
58+ '/stacks/ :stackName/services/create ' : {
4359 component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
44- < CreateRepository stackName = { match . params . stackName } />
60+ < CreateService stackName = { match . params . stackName } />
4561 ) ,
4662 } ,
47- '/repositories/:id' : {
48- component : ( { match } : { match : MatchResult < { id : string } > } ) => < EditRepository repositoryId = { match . params . id } /> ,
63+ '/stacks/:stackName/services/wizard' : {
64+ component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
65+ < CreateServiceWizard stackName = { match . params . stackName } />
66+ ) ,
4967 } ,
50- '/settings' : {
51- component : ( ) => < UserSettings /> ,
68+ '/stacks/:stackName/services/:serviceId/logs/:processUid' : {
69+ component : ( { match } : { match : MatchResult < { stackName : string ; serviceId : string ; processUid : string } > } ) => (
70+ < ServiceLogs
71+ stackName = { match . params . stackName }
72+ serviceId = { match . params . serviceId }
73+ processUid = { match . params . processUid }
74+ />
75+ ) ,
5276 } ,
53- '/stacks/create' : {
54- component : ( ) => < CreateStack /> ,
77+ '/stacks/:stackName/services/:serviceId/logs' : {
78+ component : ( { match } : { match : MatchResult < { stackName : string ; serviceId : string } > } ) => (
79+ < ServiceLogs stackName = { match . params . stackName } serviceId = { match . params . serviceId } />
80+ ) ,
5581 } ,
56- '/stacks/import' : {
57- component : ( ) => < ImportStack /> ,
82+ '/stacks/:stackName/services/:serviceId' : {
83+ component : ( { match } : { match : MatchResult < { stackName : string ; serviceId : string } > } ) => (
84+ < ServiceDetail stackName = { match . params . stackName } serviceId = { match . params . serviceId } />
85+ ) ,
5886 } ,
59- '/stacks/:name/setup' : {
60- component : ( { match } : { match : MatchResult < { name : string } > } ) => < StackSetup stackName = { match . params . name } /> ,
87+ '/stacks/:stackName/repositories' : {
88+ component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
89+ < RepositoriesList stackName = { match . params . stackName } />
90+ ) ,
6191 } ,
62- '/stacks/:name/edit' : {
63- component : ( { match } : { match : MatchResult < { name : string } > } ) => < EditStack stackName = { match . params . name } /> ,
92+ '/stacks/:stackName/repositories/create' : {
93+ component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
94+ < CreateRepository stackName = { match . params . stackName } />
95+ ) ,
6496 } ,
65- '/stacks/:name' : {
66- component : ( { match } : { match : MatchResult < { name : string } > } ) => < Dashboard stackName = { match . params . name } /> ,
97+ '/stacks/:stackName/repositories/:repositoryId' : {
98+ component : ( { match } : { match : MatchResult < { stackName : string ; repositoryId : string } > } ) => (
99+ < EditRepository stackName = { match . params . stackName } repositoryId = { match . params . repositoryId } />
100+ ) ,
67101 } ,
68- '/stacks/:name/export' : {
69- component : ( { match } : { match : MatchResult < { name : string } > } ) => < ExportStack stackName = { match . params . name } /> ,
102+ '/stacks/:stackName/prerequisites' : {
103+ component : ( { match } : { match : MatchResult < { stackName : string } > } ) => (
104+ < PrerequisitesList stackName = { match . params . stackName } />
105+ ) ,
70106 } ,
71107} as const satisfies Record < string , NestedRoute < any > >
72108
0 commit comments