1 import { Routes } from '@angular/router'
2 import { UserRightGuard } from '@app/core'
3 import { UserRight } from '@shared/models'
4 import { DebugComponent } from './debug'
5 import { JobsComponent } from './jobs/jobs.component'
6 import { LogsComponent } from './logs'
7 import { RunnersRoutes } from './runners'
9 export const SystemRoutes: Routes = [
20 canActivate: [ UserRightGuard ],
21 component: JobsComponent,
24 userRight: UserRight.MANAGE_JOBS,
25 title: $localize`Jobs`
31 canActivate: [ UserRightGuard ],
32 component: LogsComponent,
35 userRight: UserRight.MANAGE_LOGS,
36 title: $localize`Logs`
42 canActivate: [ UserRightGuard ],
43 component: DebugComponent,
46 userRight: UserRight.MANAGE_DEBUG,
47 title: $localize`Debug`