]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-routing.module.ts
Remove ngx-meta
[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'
f47bf2e1 3import { LoginGuard } from '../core'
17119e4a 4import { MyAccountAbusesListComponent } from './my-account-abuses/my-account-abuses-list.component'
0f01a8ba 5import { MyAccountApplicationsComponent } from './my-account-applications/my-account-applications.component'
67ed6552
C
6import { MyAccountBlocklistComponent } from './my-account-blocklist/my-account-blocklist.component'
7import { MyAccountServerBlocklistComponent } from './my-account-blocklist/my-account-server-blocklist.component'
67ed6552 8import { MyAccountNotificationsComponent } from './my-account-notifications/my-account-notifications.component'
4bb6886d 9import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
67ed6552 10import { MyAccountComponent } from './my-account.component'
693b1aba 11
4bb6886d 12const myAccountRoutes: Routes = [
693b1aba 13 {
62e62f11 14 path: '',
4bb6886d 15 component: MyAccountComponent,
0f01a8ba 16 canActivateChild: [ LoginGuard ],
c30745f3 17 children: [
379acb21
C
18 {
19 path: '',
20 redirectTo: 'settings',
21 pathMatch: 'full'
22 },
c30745f3
C
23 {
24 path: 'settings',
4bb6886d 25 component: MyAccountSettingsComponent,
c30745f3
C
26 data: {
27 meta: {
f29f487e 28 title: $localize`Account settings`
c30745f3
C
29 }
30 }
31 },
830b4faf 32
08c1efbe
C
33 {
34 path: 'video-channels',
17119e4a
C
35 redirectTo: '/my-library/video-channels',
36 pathMatch: 'full'
08c1efbe 37 },
830b4faf
C
38
39 {
40 path: 'video-playlists',
17119e4a
C
41 redirectTo: '/my-library/video-playlists',
42 pathMatch: 'full'
830b4faf 43 },
f0a39880 44 {
bce47964 45 path: 'video-playlists/create',
17119e4a
C
46 redirectTo: '/my-library/video-playlists/create',
47 pathMatch: 'full'
f0a39880 48 },
830b4faf 49 {
bce47964 50 path: 'video-playlists/:videoPlaylistId',
17119e4a
C
51 redirectTo: '/my-library/video-playlists/:videoPlaylistId',
52 pathMatch: 'full'
830b4faf
C
53 },
54 {
55 path: 'video-playlists/update/:videoPlaylistId',
17119e4a
C
56 redirectTo: '/my-library/video-playlists/update/:videoPlaylistId',
57 pathMatch: 'full'
830b4faf
C
58 },
59
202f6b6c
C
60 {
61 path: 'videos',
17119e4a
C
62 redirectTo: '/my-library/videos',
63 pathMatch: 'full'
ed31c059
C
64 },
65 {
66 path: 'video-imports',
17119e4a
C
67 redirectTo: '/my-library/video-imports',
68 pathMatch: 'full'
22a16e36
C
69 },
70 {
71 path: 'subscriptions',
17119e4a
C
72 redirectTo: '/my-library/subscriptions',
73 pathMatch: 'full'
74d63469
GR
74 },
75 {
76 path: 'ownership',
17119e4a
C
77 redirectTo: '/my-library/ownership',
78 pathMatch: 'full'
af5767ff
C
79 },
80 {
81 path: 'blocklist/accounts',
82 component: MyAccountBlocklistComponent,
83 data: {
84 meta: {
f29f487e 85 title: $localize`Muted accounts`
af5767ff
C
86 }
87 }
88 },
89 {
90 path: 'blocklist/servers',
91 component: MyAccountServerBlocklistComponent,
92 data: {
93 meta: {
f29f487e 94 title: $localize`Muted servers`
af5767ff
C
95 }
96 }
80bfd33c
C
97 },
98 {
99 path: 'history/videos',
17119e4a
C
100 redirectTo: '/my-library/history/videos',
101 pathMatch: 'full'
2f1548fd
C
102 },
103 {
104 path: 'notifications',
105 component: MyAccountNotificationsComponent,
106 data: {
107 meta: {
f29f487e 108 title: $localize`Notifications`
2f1548fd
C
109 }
110 }
94148c90
C
111 },
112 {
113 path: 'abuses',
114 component: MyAccountAbusesListComponent,
115 data: {
116 meta: {
f29f487e 117 title: $localize`My abuse reports`
94148c90
C
118 }
119 }
afff310e
RK
120 },
121 {
122 path: 'applications',
123 component: MyAccountApplicationsComponent,
124 data: {
125 meta: {
19b7ebfa 126 title: $localize`Applications`
afff310e
RK
127 }
128 }
202f6b6c 129 }
c30745f3 130 ]
693b1aba 131 }
df98563e 132]
693b1aba
C
133
134@NgModule({
4bb6886d 135 imports: [ RouterModule.forChild(myAccountRoutes) ],
693b1aba
C
136 exports: [ RouterModule ]
137})
4bb6886d 138export class MyAccountRoutingModule {}