]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-routing.module.ts
Improving select displays, focus box-shadows for paginators, instructions for index url
[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'
ed31c059 8import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component'
22a16e36 9import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component'
74d63469 10import { MyAccountOwnershipComponent } from '@app/+my-account/my-account-ownership/my-account-ownership.component'
af5767ff
C
11import { MyAccountBlocklistComponent } from '@app/+my-account/my-account-blocklist/my-account-blocklist.component'
12import { MyAccountServerBlocklistComponent } from '@app/+my-account/my-account-blocklist/my-account-server-blocklist.component'
80bfd33c 13import { MyAccountHistoryComponent } from '@app/+my-account/my-account-history/my-account-history.component'
2f1548fd 14import { MyAccountNotificationsComponent } from '@app/+my-account/my-account-notifications/my-account-notifications.component'
830b4faf
C
15import { MyAccountVideoPlaylistsComponent } from '@app/+my-account/my-account-video-playlists/my-account-video-playlists.component'
16import {
17 MyAccountVideoPlaylistCreateComponent
18} from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-create.component'
19import {
20 MyAccountVideoPlaylistUpdateComponent
21} from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-update.component'
f0a39880
C
22import {
23 MyAccountVideoPlaylistElementsComponent
24} from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.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',
6541071b 49 loadChildren: () => import('./my-account-video-channels/my-account-video-channels.module').then(m => m.MyAccountVideoChannelsModule)
08c1efbe 50 },
830b4faf
C
51
52 {
53 path: 'video-playlists',
54 component: MyAccountVideoPlaylistsComponent,
55 data: {
56 meta: {
57 title: 'Account playlists'
58 }
59 }
60 },
f0a39880 61 {
bce47964
C
62 path: 'video-playlists/create',
63 component: MyAccountVideoPlaylistCreateComponent,
f0a39880
C
64 data: {
65 meta: {
bce47964 66 title: 'Create new playlist'
f0a39880
C
67 }
68 }
69 },
830b4faf 70 {
bce47964
C
71 path: 'video-playlists/:videoPlaylistId',
72 component: MyAccountVideoPlaylistElementsComponent,
830b4faf
C
73 data: {
74 meta: {
bce47964 75 title: 'Playlist elements'
830b4faf
C
76 }
77 }
78 },
79 {
80 path: 'video-playlists/update/:videoPlaylistId',
81 component: MyAccountVideoPlaylistUpdateComponent,
82 data: {
83 meta: {
84 title: 'Update playlist'
85 }
86 }
87 },
88
202f6b6c
C
89 {
90 path: 'videos',
4bb6886d 91 component: MyAccountVideosComponent,
202f6b6c
C
92 data: {
93 meta: {
94 title: 'Account videos'
489290b8
C
95 },
96 reuse: {
97 enabled: true,
98 key: 'my-account-videos-list'
202f6b6c
C
99 }
100 }
ed31c059
C
101 },
102 {
103 path: 'video-imports',
104 component: MyAccountVideoImportsComponent,
105 data: {
106 meta: {
107 title: 'Account video imports'
108 }
109 }
22a16e36
C
110 },
111 {
112 path: 'subscriptions',
113 component: MyAccountSubscriptionsComponent,
114 data: {
115 meta: {
116 title: 'Account subscriptions'
117 }
118 }
74d63469
GR
119 },
120 {
121 path: 'ownership',
122 component: MyAccountOwnershipComponent,
123 data: {
124 meta: {
125 title: 'Ownership changes'
126 }
127 }
af5767ff
C
128 },
129 {
130 path: 'blocklist/accounts',
131 component: MyAccountBlocklistComponent,
132 data: {
133 meta: {
92ea70a7 134 title: 'Muted accounts'
af5767ff
C
135 }
136 }
137 },
138 {
139 path: 'blocklist/servers',
140 component: MyAccountServerBlocklistComponent,
141 data: {
142 meta: {
92ea70a7 143 title: 'Muted instances'
af5767ff
C
144 }
145 }
80bfd33c
C
146 },
147 {
148 path: 'history/videos',
149 component: MyAccountHistoryComponent,
150 data: {
151 meta: {
152 title: 'Videos history'
489290b8
C
153 },
154 reuse: {
155 enabled: true,
156 key: 'my-videos-history-list'
80bfd33c
C
157 }
158 }
2f1548fd
C
159 },
160 {
161 path: 'notifications',
162 component: MyAccountNotificationsComponent,
163 data: {
164 meta: {
165 title: 'Notifications'
166 }
167 }
202f6b6c 168 }
c30745f3 169 ]
693b1aba 170 }
df98563e 171]
693b1aba
C
172
173@NgModule({
4bb6886d 174 imports: [ RouterModule.forChild(myAccountRoutes) ],
693b1aba
C
175 exports: [ RouterModule ]
176})
4bb6886d 177export class MyAccountRoutingModule {}