]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/plugins/plugins.routes.ts
Fix grey color theme
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / plugins / plugins.routes.ts
1 import { Routes } from '@angular/router'
2
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'
9
10 export const PluginsRoutes: Routes = [
11 {
12 path: 'plugins',
13 component: PluginsComponent,
14 canActivate: [ UserRightGuard ],
15 data: {
16 userRight: UserRight.MANAGE_PLUGINS
17 },
18 children: [
19 {
20 path: '',
21 redirectTo: 'list-installed',
22 pathMatch: 'full'
23 },
24 {
25 path: 'list-installed',
26 component: PluginListInstalledComponent,
27 data: {
28 meta: {
29 title: 'List installed plugins'
30 }
31 }
32 },
33 {
34 path: 'search',
35 component: PluginSearchComponent,
36 data: {
37 meta: {
38 title: 'Search plugins'
39 }
40 }
41 },
42 {
43 path: 'show/:npmName',
44 component: PluginShowInstalledComponent,
45 data: {
46 meta: {
47 title: 'Show plugin'
48 }
49 }
50 }
51 ]
52 }
53 ]