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 { UserRightGuard } from '@app/core'
6 import { UserRight } from '@shared/models'
8 export const PluginsRoutes: Routes = [
11 canActivate: [ UserRightGuard ],
13 userRight: UserRight.MANAGE_PLUGINS
18 redirectTo: 'list-installed',
22 path: 'list-installed',
23 component: PluginListInstalledComponent,
26 title: $localize`List installed plugins`
32 component: PluginSearchComponent,
35 title: $localize`Search plugins`
40 path: 'show/:npmName',
41 component: PluginShowInstalledComponent,
44 title: $localize`Show plugin`