diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-09 09:26:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-09 09:32:26 +0200 |
commit | 62e62f118d5da57acd3494fece2e8ed357564ffe (patch) | |
tree | ff5b7c6ec5708d71a76a2eb5744d810015ae29a5 /client/src/app/my-account/my-account-routing.module.ts | |
parent | 1952a538baa330b13bd11631b3975f7ef1c37e70 (diff) | |
download | PeerTube-62e62f118d5da57acd3494fece2e8ed357564ffe.tar.gz PeerTube-62e62f118d5da57acd3494fece2e8ed357564ffe.tar.zst PeerTube-62e62f118d5da57acd3494fece2e8ed357564ffe.zip |
Load my-account module lazily
Diffstat (limited to 'client/src/app/my-account/my-account-routing.module.ts')
-rw-r--r-- | client/src/app/my-account/my-account-routing.module.ts | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/client/src/app/my-account/my-account-routing.module.ts b/client/src/app/my-account/my-account-routing.module.ts deleted file mode 100644 index 96f52c1da..000000000 --- a/client/src/app/my-account/my-account-routing.module.ts +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { RouterModule, Routes } from '@angular/router' | ||
3 | import { MetaGuard } from '@ngx-meta/core' | ||
4 | import { LoginGuard } from '../core' | ||
5 | import { MyAccountComponent } from './my-account.component' | ||
6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' | ||
7 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' | ||
8 | import { MyAccountVideoChannelsComponent } from '@app/my-account/my-account-video-channels/my-account-video-channels.component' | ||
9 | import { MyAccountVideoChannelCreateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-create.component' | ||
10 | import { MyAccountVideoChannelUpdateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-update.component' | ||
11 | |||
12 | const myAccountRoutes: Routes = [ | ||
13 | { | ||
14 | path: 'my-account', | ||
15 | component: MyAccountComponent, | ||
16 | canActivateChild: [ MetaGuard, LoginGuard ], | ||
17 | children: [ | ||
18 | { | ||
19 | path: 'settings', | ||
20 | component: MyAccountSettingsComponent, | ||
21 | data: { | ||
22 | meta: { | ||
23 | title: 'Account settings' | ||
24 | } | ||
25 | } | ||
26 | }, | ||
27 | { | ||
28 | path: 'video-channels', | ||
29 | component: MyAccountVideoChannelsComponent, | ||
30 | data: { | ||
31 | meta: { | ||
32 | title: 'Account video channels' | ||
33 | } | ||
34 | } | ||
35 | }, | ||
36 | { | ||
37 | path: 'video-channels/create', | ||
38 | component: MyAccountVideoChannelCreateComponent, | ||
39 | data: { | ||
40 | meta: { | ||
41 | title: 'Create new video channel' | ||
42 | } | ||
43 | } | ||
44 | }, | ||
45 | { | ||
46 | path: 'video-channels/update/:videoChannelId', | ||
47 | component: MyAccountVideoChannelUpdateComponent, | ||
48 | data: { | ||
49 | meta: { | ||
50 | title: 'Update video channel' | ||
51 | } | ||
52 | } | ||
53 | }, | ||
54 | { | ||
55 | path: 'videos', | ||
56 | component: MyAccountVideosComponent, | ||
57 | data: { | ||
58 | meta: { | ||
59 | title: 'Account videos' | ||
60 | } | ||
61 | } | ||
62 | } | ||
63 | ] | ||
64 | } | ||
65 | ] | ||
66 | |||
67 | @NgModule({ | ||
68 | imports: [ RouterModule.forChild(myAccountRoutes) ], | ||
69 | exports: [ RouterModule ] | ||
70 | }) | ||
71 | export class MyAccountRoutingModule {} | ||