1 import { Routes } from '@angular/router'
3 import { UserRightGuard } from '../../core'
4 import { UserRight } from '../../../../../shared'
5 import { PluginListInstalledComponent } from '@app/+admin/plugins/plugin-list-installed/plugin-list-installed.component'
6 import { PluginSearchComponent } from '@app/+admin/plugins/plugin-search/plugin-search.component'
7 import { PluginShowInstalledComponent } from '@app/+admin/plugins/plugin-show-installed/plugin-show-installed.component'
8 import { PluginsComponent } from '@app/+admin/plugins/plugins.component'
10 export const PluginsRoutes: Routes = [
13 component: PluginsComponent,
14 canActivate: [ UserRightGuard ],
16 userRight: UserRight.MANAGE_PLUGINS
21 redirectTo: 'list-installed',
25 path: 'list-installed',
26 component: PluginListInstalledComponent,
29 title: 'List installed plugins'
35 component: PluginSearchComponent,
38 title: 'Search plugins'
43 path: 'show/:npmName',
44 component: PluginShowInstalledComponent,