]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+accounts/accounts-routing.module.ts
Update translations
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts-routing.module.ts
CommitLineData
0626e7af
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3import { MetaGuard } from '@ngx-meta/core'
170726f5 4import { AccountsComponent } from './accounts.component'
0626e7af 5import { AccountVideosComponent } from './account-videos/account-videos.component'
d3e91a5f
C
6import { AccountAboutComponent } from './account-about/account-about.component'
7import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
37024082 8import { AccountSearchComponent } from './account-search/account-search.component'
0626e7af 9
170726f5 10const accountsRoutes: Routes = [
1a03bea0
C
11 {
12 path: 'peertube',
13 redirectTo: '/videos/local'
14 },
0626e7af
C
15 {
16 path: ':accountId',
170726f5 17 component: AccountsComponent,
0626e7af
C
18 canActivateChild: [ MetaGuard ],
19 children: [
20 {
21 path: '',
c8487f3f 22 redirectTo: 'video-channels',
0626e7af
C
23 pathMatch: 'full'
24 },
37024082
RK
25 {
26 path: 'video-channels',
27 component: AccountVideoChannelsComponent,
28 data: {
29 meta: {
30 title: $localize`Account video channels`
31 }
32 }
33 },
34 {
35 path: 'about',
36 component: AccountAboutComponent,
37 data: {
38 meta: {
39 title: $localize`About account`
40 }
41 }
42 },
0626e7af
C
43 {
44 path: 'videos',
45 component: AccountVideosComponent,
46 data: {
47 meta: {
f29f487e 48 title: $localize`Account videos`
489290b8
C
49 },
50 reuse: {
51 enabled: true,
52 key: 'account-videos-list'
0626e7af
C
53 }
54 }
55 },
d3e91a5f 56 {
37024082
RK
57 path: 'search',
58 component: AccountSearchComponent,
d3e91a5f
C
59 data: {
60 meta: {
37024082 61 title: $localize`Search videos within account`
0626e7af
C
62 }
63 }
64 }
65 ]
66 }
67]
68
69@NgModule({
170726f5 70 imports: [ RouterModule.forChild(accountsRoutes) ],
0626e7af
C
71 exports: [ RouterModule ]
72})
170726f5 73export class AccountsRoutingModule {}