]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-routing.module.ts
Use height instead of width to represent the video resolution
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-routing.module.ts
CommitLineData
df98563e
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
8b13c289 3import { MetaGuard } from '@ngx-meta/core'
f47bf2e1 4import { LoginGuard } from '../core'
4bb6886d
C
5import { MyAccountComponent } from './my-account.component'
6import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
7import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
62e62f11
C
8import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
9import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
10import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
ed31c059 11import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component'
693b1aba 12
4bb6886d 13const myAccountRoutes: Routes = [
693b1aba 14 {
62e62f11 15 path: '',
4bb6886d 16 component: MyAccountComponent,
c30745f3
C
17 canActivateChild: [ MetaGuard, LoginGuard ],
18 children: [
379acb21
C
19 {
20 path: '',
21 redirectTo: 'settings',
22 pathMatch: 'full'
23 },
c30745f3
C
24 {
25 path: 'settings',
4bb6886d 26 component: MyAccountSettingsComponent,
c30745f3
C
27 data: {
28 meta: {
29 title: 'Account settings'
30 }
31 }
32 },
08c1efbe
C
33 {
34 path: 'video-channels',
35 component: MyAccountVideoChannelsComponent,
36 data: {
37 meta: {
38 title: 'Account video channels'
39 }
40 }
41 },
42 {
43 path: 'video-channels/create',
44 component: MyAccountVideoChannelCreateComponent,
45 data: {
46 meta: {
47 title: 'Create new video channel'
48 }
49 }
50 },
51 {
52 path: 'video-channels/update/:videoChannelId',
53 component: MyAccountVideoChannelUpdateComponent,
54 data: {
55 meta: {
56 title: 'Update video channel'
57 }
58 }
59 },
202f6b6c
C
60 {
61 path: 'videos',
4bb6886d 62 component: MyAccountVideosComponent,
202f6b6c
C
63 data: {
64 meta: {
65 title: 'Account videos'
66 }
67 }
ed31c059
C
68 },
69 {
70 path: 'video-imports',
71 component: MyAccountVideoImportsComponent,
72 data: {
73 meta: {
74 title: 'Account video imports'
75 }
76 }
202f6b6c 77 }
c30745f3 78 ]
693b1aba 79 }
df98563e 80]
693b1aba
C
81
82@NgModule({
4bb6886d 83 imports: [ RouterModule.forChild(myAccountRoutes) ],
693b1aba
C
84 exports: [ RouterModule ]
85})
4bb6886d 86export class MyAccountRoutingModule {}