]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-routing.module.ts
Add video channel view
[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'
121 }
122 }
ed31c059
C
123 },
124 {
125 path: 'video-imports',
126 component: MyAccountVideoImportsComponent,
127 data: {
128 meta: {
129 title: 'Account video imports'
130 }
131 }
22a16e36
C
132 },
133 {
134 path: 'subscriptions',
135 component: MyAccountSubscriptionsComponent,
136 data: {
137 meta: {
138 title: 'Account subscriptions'
139 }
140 }
74d63469
GR
141 },
142 {
143 path: 'ownership',
144 component: MyAccountOwnershipComponent,
145 data: {
146 meta: {
147 title: 'Ownership changes'
148 }
149 }
af5767ff
C
150 },
151 {
152 path: 'blocklist/accounts',
153 component: MyAccountBlocklistComponent,
154 data: {
155 meta: {
92ea70a7 156 title: 'Muted accounts'
af5767ff
C
157 }
158 }
159 },
160 {
161 path: 'blocklist/servers',
162 component: MyAccountServerBlocklistComponent,
163 data: {
164 meta: {
92ea70a7 165 title: 'Muted instances'
af5767ff
C
166 }
167 }
80bfd33c
C
168 },
169 {
170 path: 'history/videos',
171 component: MyAccountHistoryComponent,
172 data: {
173 meta: {
174 title: 'Videos history'
175 }
176 }
2f1548fd
C
177 },
178 {
179 path: 'notifications',
180 component: MyAccountNotificationsComponent,
181 data: {
182 meta: {
183 title: 'Notifications'
184 }
185 }
202f6b6c 186 }
c30745f3 187 ]
693b1aba 188 }
df98563e 189]
693b1aba
C
190
191@NgModule({
4bb6886d 192 imports: [ RouterModule.forChild(myAccountRoutes) ],
693b1aba
C
193 exports: [ RouterModule ]
194})
4bb6886d 195export class MyAccountRoutingModule {}