diff options
Diffstat (limited to 'client/src/app/+admin/system/runners/runners.routes.ts')
-rw-r--r-- | client/src/app/+admin/system/runners/runners.routes.ts | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/client/src/app/+admin/system/runners/runners.routes.ts b/client/src/app/+admin/system/runners/runners.routes.ts new file mode 100644 index 000000000..fabe687d6 --- /dev/null +++ b/client/src/app/+admin/system/runners/runners.routes.ts | |||
@@ -0,0 +1,53 @@ | |||
1 | import { Routes } from '@angular/router' | ||
2 | import { UserRightGuard } from '@app/core' | ||
3 | import { UserRight } from '@shared/models' | ||
4 | import { RunnerJobListComponent } from './runner-job-list' | ||
5 | import { RunnerListComponent } from './runner-list' | ||
6 | import { RunnerRegistrationTokenListComponent } from './runner-registration-token-list' | ||
7 | |||
8 | export const RunnersRoutes: Routes = [ | ||
9 | { | ||
10 | path: 'runners', | ||
11 | canActivate: [ UserRightGuard ], | ||
12 | data: { | ||
13 | userRight: UserRight.MANAGE_RUNNERS | ||
14 | }, | ||
15 | children: [ | ||
16 | { | ||
17 | path: '', | ||
18 | redirectTo: 'jobs-list', | ||
19 | pathMatch: 'full' | ||
20 | }, | ||
21 | |||
22 | { | ||
23 | path: 'jobs-list', | ||
24 | component: RunnerJobListComponent, | ||
25 | data: { | ||
26 | meta: { | ||
27 | title: $localize`List runner jobs` | ||
28 | } | ||
29 | } | ||
30 | }, | ||
31 | |||
32 | { | ||
33 | path: 'runners-list', | ||
34 | component: RunnerListComponent, | ||
35 | data: { | ||
36 | meta: { | ||
37 | title: $localize`List remote runners` | ||
38 | } | ||
39 | } | ||
40 | }, | ||
41 | |||
42 | { | ||
43 | path: 'registration-tokens-list', | ||
44 | component: RunnerRegistrationTokenListComponent, | ||
45 | data: { | ||
46 | meta: { | ||
47 | title: $localize`List registration runner tokens` | ||
48 | } | ||
49 | } | ||
50 | } | ||
51 | ] | ||
52 | } | ||
53 | ] | ||