]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-routing.module.ts
Add history page on client
[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'
693b1aba 17
4bb6886d 18const myAccountRoutes: Routes = [
693b1aba 19 {
62e62f11 20 path: '',
4bb6886d 21 component: MyAccountComponent,
c30745f3
C
22 canActivateChild: [ MetaGuard, LoginGuard ],
23 children: [
379acb21
C
24 {
25 path: '',
26 redirectTo: 'settings',
27 pathMatch: 'full'
28 },
c30745f3
C
29 {
30 path: 'settings',
4bb6886d 31 component: MyAccountSettingsComponent,
c30745f3
C
32 data: {
33 meta: {
34 title: 'Account settings'
35 }
36 }
37 },
08c1efbe
C
38 {
39 path: 'video-channels',
40 component: MyAccountVideoChannelsComponent,
41 data: {
42 meta: {
43 title: 'Account video channels'
44 }
45 }
46 },
47 {
48 path: 'video-channels/create',
49 component: MyAccountVideoChannelCreateComponent,
50 data: {
51 meta: {
52 title: 'Create new video channel'
53 }
54 }
55 },
56 {
57 path: 'video-channels/update/:videoChannelId',
58 component: MyAccountVideoChannelUpdateComponent,
59 data: {
60 meta: {
61 title: 'Update video channel'
62 }
63 }
64 },
202f6b6c
C
65 {
66 path: 'videos',
4bb6886d 67 component: MyAccountVideosComponent,
202f6b6c
C
68 data: {
69 meta: {
70 title: 'Account videos'
71 }
72 }
ed31c059
C
73 },
74 {
75 path: 'video-imports',
76 component: MyAccountVideoImportsComponent,
77 data: {
78 meta: {
79 title: 'Account video imports'
80 }
81 }
22a16e36
C
82 },
83 {
84 path: 'subscriptions',
85 component: MyAccountSubscriptionsComponent,
86 data: {
87 meta: {
88 title: 'Account subscriptions'
89 }
90 }
74d63469
GR
91 },
92 {
93 path: 'ownership',
94 component: MyAccountOwnershipComponent,
95 data: {
96 meta: {
97 title: 'Ownership changes'
98 }
99 }
af5767ff
C
100 },
101 {
102 path: 'blocklist/accounts',
103 component: MyAccountBlocklistComponent,
104 data: {
105 meta: {
92ea70a7 106 title: 'Muted accounts'
af5767ff
C
107 }
108 }
109 },
110 {
111 path: 'blocklist/servers',
112 component: MyAccountServerBlocklistComponent,
113 data: {
114 meta: {
92ea70a7 115 title: 'Muted instances'
af5767ff
C
116 }
117 }
80bfd33c
C
118 },
119 {
120 path: 'history/videos',
121 component: MyAccountHistoryComponent,
122 data: {
123 meta: {
124 title: 'Videos history'
125 }
126 }
202f6b6c 127 }
c30745f3 128 ]
693b1aba 129 }
df98563e 130]
693b1aba
C
131
132@NgModule({
4bb6886d 133 imports: [ RouterModule.forChild(myAccountRoutes) ],
693b1aba
C
134 exports: [ RouterModule ]
135})
4bb6886d 136export class MyAccountRoutingModule {}