]>
Commit | Line | Data |
---|---|---|
d00dc28d | 1 | import { Routes } from '@angular/router' |
d00dc28d C |
2 | import { PluginListInstalledComponent } from '@app/+admin/plugins/plugin-list-installed/plugin-list-installed.component' |
3 | import { PluginSearchComponent } from '@app/+admin/plugins/plugin-search/plugin-search.component' | |
4 | import { PluginShowInstalledComponent } from '@app/+admin/plugins/plugin-show-installed/plugin-show-installed.component' | |
583eb04b C |
5 | import { UserRightGuard } from '@app/core' |
6 | import { UserRight } from '@shared/models' | |
d00dc28d C |
7 | |
8 | export const PluginsRoutes: Routes = [ | |
9 | { | |
10 | path: 'plugins', | |
d00dc28d C |
11 | canActivate: [ UserRightGuard ], |
12 | data: { | |
13 | userRight: UserRight.MANAGE_PLUGINS | |
14 | }, | |
15 | children: [ | |
16 | { | |
17 | path: '', | |
18 | redirectTo: 'list-installed', | |
19 | pathMatch: 'full' | |
20 | }, | |
21 | { | |
22 | path: 'list-installed', | |
23 | component: PluginListInstalledComponent, | |
24 | data: { | |
25 | meta: { | |
f29f487e | 26 | title: $localize`List installed plugins` |
d00dc28d C |
27 | } |
28 | } | |
29 | }, | |
30 | { | |
31 | path: 'search', | |
32 | component: PluginSearchComponent, | |
33 | data: { | |
34 | meta: { | |
f29f487e | 35 | title: $localize`Search plugins` |
d00dc28d C |
36 | } |
37 | } | |
38 | }, | |
39 | { | |
dba85a1e | 40 | path: 'show/:npmName', |
d00dc28d C |
41 | component: PluginShowInstalledComponent, |
42 | data: { | |
43 | meta: { | |
f29f487e | 44 | title: $localize`Show plugin` |
d00dc28d C |
45 | } |
46 | } | |
47 | } | |
48 | ] | |
49 | } | |
50 | ] |