diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-03-30 14:47:04 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-03-31 10:29:24 +0200 |
commit | 6541071b4acfff9df7b1ddba53000f0e1bba3257 (patch) | |
tree | 2b241deb895f1cdc11cb0fcd3efda35fb33f6dc9 /client/src/app/+my-account/my-account-video-channels | |
parent | 3d527ba173a37bd61ec8ad742642bb320d12995c (diff) | |
download | PeerTube-6541071b4acfff9df7b1ddba53000f0e1bba3257.tar.gz PeerTube-6541071b4acfff9df7b1ddba53000f0e1bba3257.tar.zst PeerTube-6541071b4acfff9df7b1ddba53000f0e1bba3257.zip |
Lazy-load video-channels
Diffstat (limited to 'client/src/app/+my-account/my-account-video-channels')
2 files changed, 66 insertions, 0 deletions
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts new file mode 100644 index 000000000..94037e18f --- /dev/null +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts | |||
@@ -0,0 +1,41 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { RouterModule, Routes } from '@angular/router' | ||
3 | import { MyAccountVideoChannelUpdateComponent } from './my-account-video-channel-update.component' | ||
4 | import { MyAccountVideoChannelCreateComponent } from './my-account-video-channel-create.component' | ||
5 | import { MyAccountVideoChannelsComponent } from './my-account-video-channels.component' | ||
6 | |||
7 | const myAccountVideoChannelsRoutes: Routes = [ | ||
8 | { | ||
9 | path: '', | ||
10 | component: MyAccountVideoChannelsComponent, | ||
11 | data: { | ||
12 | meta: { | ||
13 | title: 'Account video channels' | ||
14 | } | ||
15 | } | ||
16 | }, | ||
17 | { | ||
18 | path: 'create', | ||
19 | component: MyAccountVideoChannelCreateComponent, | ||
20 | data: { | ||
21 | meta: { | ||
22 | title: 'Create new video channel' | ||
23 | } | ||
24 | } | ||
25 | }, | ||
26 | { | ||
27 | path: 'update/:videoChannelId', | ||
28 | component: MyAccountVideoChannelUpdateComponent, | ||
29 | data: { | ||
30 | meta: { | ||
31 | title: 'Update video channel' | ||
32 | } | ||
33 | } | ||
34 | } | ||
35 | ] | ||
36 | |||
37 | @NgModule({ | ||
38 | imports: [ RouterModule.forChild(myAccountVideoChannelsRoutes) ], | ||
39 | exports: [ RouterModule ] | ||
40 | }) | ||
41 | export class MyAccountVideoChannelsRoutingModule {} | ||
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts new file mode 100644 index 000000000..87d6b762f --- /dev/null +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts | |||
@@ -0,0 +1,25 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { ChartModule } from 'primeng/chart' | ||
3 | import { MyAccountVideoChannelsRoutingModule } from './my-account-video-channels-routing.module' | ||
4 | import { MyAccountVideoChannelsComponent } from './my-account-video-channels.component' | ||
5 | import { MyAccountVideoChannelCreateComponent } from './my-account-video-channel-create.component' | ||
6 | import { MyAccountVideoChannelUpdateComponent } from './my-account-video-channel-update.component' | ||
7 | import { SharedModule } from '@app/shared' | ||
8 | |||
9 | @NgModule({ | ||
10 | imports: [ | ||
11 | MyAccountVideoChannelsRoutingModule, | ||
12 | SharedModule, | ||
13 | ChartModule | ||
14 | ], | ||
15 | |||
16 | declarations: [ | ||
17 | MyAccountVideoChannelsComponent, | ||
18 | MyAccountVideoChannelCreateComponent, | ||
19 | MyAccountVideoChannelUpdateComponent | ||
20 | ], | ||
21 | |||
22 | exports: [], | ||
23 | providers: [] | ||
24 | }) | ||
25 | export class MyAccountVideoChannelsModule { } | ||