]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-routing.module.ts
My account menu -> open entries on hover
[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'
22a16e36 12import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component'
74d63469 13import { MyAccountOwnershipComponent } from '@app/+my-account/my-account-ownership/my-account-ownership.component'
af5767ff
C
14import { MyAccountBlocklistComponent } from '@app/+my-account/my-account-blocklist/my-account-blocklist.component'
15import { MyAccountServerBlocklistComponent } from '@app/+my-account/my-account-blocklist/my-account-server-blocklist.component'
693b1aba 16
4bb6886d 17const myAccountRoutes: Routes = [
693b1aba 18 {
62e62f11 19 path: '',
4bb6886d 20 component: MyAccountComponent,
c30745f3
C
21 canActivateChild: [ MetaGuard, LoginGuard ],
22 children: [
379acb21
C
23 {
24 path: '',
25 redirectTo: 'settings',
26 pathMatch: 'full'
27 },
c30745f3
C
28 {
29 path: 'settings',
4bb6886d 30 component: MyAccountSettingsComponent,
c30745f3
C
31 data: {
32 meta: {
33 title: 'Account settings'
34 }
35 }
36 },
08c1efbe
C
37 {
38 path: 'video-channels',
39 component: MyAccountVideoChannelsComponent,
40 data: {
41 meta: {
42 title: 'Account video channels'
43 }
44 }
45 },
46 {
47 path: 'video-channels/create',
48 component: MyAccountVideoChannelCreateComponent,
49 data: {
50 meta: {
51 title: 'Create new video channel'
52 }
53 }
54 },
55 {
56 path: 'video-channels/update/:videoChannelId',
57 component: MyAccountVideoChannelUpdateComponent,
58 data: {
59 meta: {
60 title: 'Update video channel'
61 }
62 }
63 },
202f6b6c
C
64 {
65 path: 'videos',
4bb6886d 66 component: MyAccountVideosComponent,
202f6b6c
C
67 data: {
68 meta: {
69 title: 'Account videos'
70 }
71 }
ed31c059
C
72 },
73 {
74 path: 'video-imports',
75 component: MyAccountVideoImportsComponent,
76 data: {
77 meta: {
78 title: 'Account video imports'
79 }
80 }
22a16e36
C
81 },
82 {
83 path: 'subscriptions',
84 component: MyAccountSubscriptionsComponent,
85 data: {
86 meta: {
87 title: 'Account subscriptions'
88 }
89 }
74d63469
GR
90 },
91 {
92 path: 'ownership',
93 component: MyAccountOwnershipComponent,
94 data: {
95 meta: {
96 title: 'Ownership changes'
97 }
98 }
af5767ff
C
99 },
100 {
101 path: 'blocklist/accounts',
102 component: MyAccountBlocklistComponent,
103 data: {
104 meta: {
92ea70a7 105 title: 'Muted accounts'
af5767ff
C
106 }
107 }
108 },
109 {
110 path: 'blocklist/servers',
111 component: MyAccountServerBlocklistComponent,
112 data: {
113 meta: {
92ea70a7 114 title: 'Muted instances'
af5767ff
C
115 }
116 }
202f6b6c 117 }
c30745f3 118 ]
693b1aba 119 }
df98563e 120]
693b1aba
C
121
122@NgModule({
4bb6886d 123 imports: [ RouterModule.forChild(myAccountRoutes) ],
693b1aba
C
124 exports: [ RouterModule ]
125})
4bb6886d 126export class MyAccountRoutingModule {}