]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-routing.module.ts
Fix margins/widths with top-menu and main-col on small screens
[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'
80bfd33c 16import { MyAccountHistoryComponent } from '@app/+my-account/my-account-history/my-account-history.component'
2f1548fd 17import { MyAccountNotificationsComponent } from '@app/+my-account/my-account-notifications/my-account-notifications.component'
830b4faf
C
18import { MyAccountVideoPlaylistsComponent } from '@app/+my-account/my-account-video-playlists/my-account-video-playlists.component'
19import {
20 MyAccountVideoPlaylistCreateComponent
21} from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-create.component'
22import {
23 MyAccountVideoPlaylistUpdateComponent
24} from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-update.component'
f0a39880
C
25import {
26 MyAccountVideoPlaylistElementsComponent
27} from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component'
693b1aba 28
4bb6886d 29const myAccountRoutes: Routes = [
693b1aba 30 {
62e62f11 31 path: '',
4bb6886d 32 component: MyAccountComponent,
c30745f3
C
33 canActivateChild: [ MetaGuard, LoginGuard ],
34 children: [
379acb21
C
35 {
36 path: '',
37 redirectTo: 'settings',
38 pathMatch: 'full'
39 },
c30745f3
C
40 {
41 path: 'settings',
4bb6886d 42 component: MyAccountSettingsComponent,
c30745f3
C
43 data: {
44 meta: {
45 title: 'Account settings'
46 }
47 }
48 },
830b4faf 49
08c1efbe
C
50 {
51 path: 'video-channels',
52 component: MyAccountVideoChannelsComponent,
53 data: {
54 meta: {
55 title: 'Account video channels'
56 }
57 }
58 },
59 {
60 path: 'video-channels/create',
61 component: MyAccountVideoChannelCreateComponent,
62 data: {
63 meta: {
64 title: 'Create new video channel'
65 }
66 }
67 },
68 {
69 path: 'video-channels/update/:videoChannelId',
70 component: MyAccountVideoChannelUpdateComponent,
71 data: {
72 meta: {
73 title: 'Update video channel'
74 }
75 }
76 },
830b4faf
C
77
78 {
79 path: 'video-playlists',
80 component: MyAccountVideoPlaylistsComponent,
81 data: {
82 meta: {
83 title: 'Account playlists'
84 }
85 }
86 },
f0a39880 87 {
bce47964
C
88 path: 'video-playlists/create',
89 component: MyAccountVideoPlaylistCreateComponent,
f0a39880
C
90 data: {
91 meta: {
bce47964 92 title: 'Create new playlist'
f0a39880
C
93 }
94 }
95 },
830b4faf 96 {
bce47964
C
97 path: 'video-playlists/:videoPlaylistId',
98 component: MyAccountVideoPlaylistElementsComponent,
830b4faf
C
99 data: {
100 meta: {
bce47964 101 title: 'Playlist elements'
830b4faf
C
102 }
103 }
104 },
105 {
106 path: 'video-playlists/update/:videoPlaylistId',
107 component: MyAccountVideoPlaylistUpdateComponent,
108 data: {
109 meta: {
110 title: 'Update playlist'
111 }
112 }
113 },
114
202f6b6c
C
115 {
116 path: 'videos',
4bb6886d 117 component: MyAccountVideosComponent,
202f6b6c
C
118 data: {
119 meta: {
120 title: 'Account videos'
489290b8
C
121 },
122 reuse: {
123 enabled: true,
124 key: 'my-account-videos-list'
202f6b6c
C
125 }
126 }
ed31c059
C
127 },
128 {
129 path: 'video-imports',
130 component: MyAccountVideoImportsComponent,
131 data: {
132 meta: {
133 title: 'Account video imports'
134 }
135 }
22a16e36
C
136 },
137 {
138 path: 'subscriptions',
139 component: MyAccountSubscriptionsComponent,
140 data: {
141 meta: {
142 title: 'Account subscriptions'
143 }
144 }
74d63469
GR
145 },
146 {
147 path: 'ownership',
148 component: MyAccountOwnershipComponent,
149 data: {
150 meta: {
151 title: 'Ownership changes'
152 }
153 }
af5767ff
C
154 },
155 {
156 path: 'blocklist/accounts',
157 component: MyAccountBlocklistComponent,
158 data: {
159 meta: {
92ea70a7 160 title: 'Muted accounts'
af5767ff
C
161 }
162 }
163 },
164 {
165 path: 'blocklist/servers',
166 component: MyAccountServerBlocklistComponent,
167 data: {
168 meta: {
92ea70a7 169 title: 'Muted instances'
af5767ff
C
170 }
171 }
80bfd33c
C
172 },
173 {
174 path: 'history/videos',
175 component: MyAccountHistoryComponent,
176 data: {
177 meta: {
178 title: 'Videos history'
489290b8
C
179 },
180 reuse: {
181 enabled: true,
182 key: 'my-videos-history-list'
80bfd33c
C
183 }
184 }
2f1548fd
C
185 },
186 {
187 path: 'notifications',
188 component: MyAccountNotificationsComponent,
189 data: {
190 meta: {
191 title: 'Notifications'
192 }
193 }
202f6b6c 194 }
c30745f3 195 ]
693b1aba 196 }
df98563e 197]
693b1aba
C
198
199@NgModule({
4bb6886d 200 imports: [ RouterModule.forChild(myAccountRoutes) ],
693b1aba
C
201 exports: [ RouterModule ]
202})
4bb6886d 203export class MyAccountRoutingModule {}