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