1 import { Routes } from '@angular/router'
2 import { UserRightGuard } from '../../core'
3 import { UserRight } from '../../../../../shared'
4 import { JobsComponent } from '@app/+admin/system/jobs/jobs.component'
5 import { LogsComponent } from '@app/+admin/system/logs'
6 import { SystemComponent } from '@app/+admin/system/system.component'
7 import { DebugComponent } from '@app/+admin/system/debug'
9 export const SystemRoutes: Routes = [
12 component: SystemComponent,
23 canActivate: [ UserRightGuard ],
24 component: JobsComponent,
27 userRight: UserRight.MANAGE_JOBS,
34 canActivate: [ UserRightGuard ],
35 component: LogsComponent,
38 userRight: UserRight.MANAGE_LOGS,
45 canActivate: [ UserRightGuard ],
46 component: DebugComponent,
49 userRight: UserRight.MANAGE_DEBUG,