1 import { Routes } from '@angular/router'
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'
5 import { PluginsComponent } from '@app/+admin/plugins/plugins.component'
6 import { UserRightGuard } from '@app/core'
7 import { UserRight } from '@shared/models'
9 export const PluginsRoutes: Routes = [
12 component: PluginsComponent,
13 canActivate: [ UserRightGuard ],
15 userRight: UserRight.MANAGE_PLUGINS
20 redirectTo: 'list-installed',
24 path: 'list-installed',
25 component: PluginListInstalledComponent,
28 title: $localize`List installed plugins`
34 component: PluginSearchComponent,
37 title: $localize`Search plugins`
42 path: 'show/:npmName',
43 component: PluginShowInstalledComponent,
46 title: $localize`Show plugin`