diff options
Diffstat (limited to 'client/src/app')
4 files changed, 68 insertions, 36 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 index 018d6f996..f44b60ec9 100644 --- a/client/src/app/+my-account/my-account-routing.module.ts +++ b/client/src/app/+my-account/my-account-routing.module.ts | |||
@@ -5,9 +5,6 @@ import { LoginGuard } from '../core' | |||
5 | import { MyAccountComponent } from './my-account.component' | 5 | import { MyAccountComponent } from './my-account.component' |
6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' | 6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' |
7 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.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 | import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component' | 8 | import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component' |
12 | import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component' | 9 | import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component' |
13 | import { MyAccountOwnershipComponent } from '@app/+my-account/my-account-ownership/my-account-ownership.component' | 10 | import { MyAccountOwnershipComponent } from '@app/+my-account/my-account-ownership/my-account-ownership.component' |
@@ -49,30 +46,7 @@ const myAccountRoutes: Routes = [ | |||
49 | 46 | ||
50 | { | 47 | { |
51 | path: 'video-channels', | 48 | path: 'video-channels', |
52 | component: MyAccountVideoChannelsComponent, | 49 | loadChildren: () => import('./my-account-video-channels/my-account-video-channels.module').then(m => m.MyAccountVideoChannelsModule) |
53 | data: { | ||
54 | meta: { | ||
55 | title: 'Account video channels' | ||
56 | } | ||
57 | } | ||
58 | }, | ||
59 | { | ||
60 | path: 'video-channels/create', | ||
61 | component: MyAccountVideoChannelCreateComponent, | ||
62 | data: { | ||
63 | meta: { | ||
64 | title: 'Create new video channel' | ||
65 | } | ||
66 | } | ||
67 | }, | ||
68 | { | ||
69 | path: 'video-channels/update/:videoChannelId', | ||
70 | component: MyAccountVideoChannelUpdateComponent, | ||
71 | data: { | ||
72 | meta: { | ||
73 | title: 'Update video channel' | ||
74 | } | ||
75 | } | ||
76 | }, | 50 | }, |
77 | 51 | ||
78 | { | 52 | { |
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 { } | ||
diff --git a/client/src/app/+my-account/my-account.module.ts b/client/src/app/+my-account/my-account.module.ts index 42b61bba6..72b9fd9f2 100644 --- a/client/src/app/+my-account/my-account.module.ts +++ b/client/src/app/+my-account/my-account.module.ts | |||
@@ -2,7 +2,6 @@ import { NgModule } from '@angular/core' | |||
2 | import { TableModule } from 'primeng/table' | 2 | import { TableModule } from 'primeng/table' |
3 | import { AutoCompleteModule } from 'primeng/autocomplete' | 3 | import { AutoCompleteModule } from 'primeng/autocomplete' |
4 | import { InputSwitchModule } from 'primeng/inputswitch' | 4 | import { InputSwitchModule } from 'primeng/inputswitch' |
5 | import { ChartModule } from 'primeng/chart' | ||
6 | import { SharedModule } from '../shared' | 5 | import { SharedModule } from '../shared' |
7 | import { MyAccountRoutingModule } from './my-account-routing.module' | 6 | import { MyAccountRoutingModule } from './my-account-routing.module' |
8 | import { MyAccountChangePasswordComponent } from './my-account-settings/my-account-change-password/my-account-change-password.component' | 7 | import { MyAccountChangePasswordComponent } from './my-account-settings/my-account-change-password/my-account-change-password.component' |
@@ -13,9 +12,6 @@ import { VideoChangeOwnershipComponent } from './my-account-videos/video-change- | |||
13 | import { MyAccountOwnershipComponent } from './my-account-ownership/my-account-ownership.component' | 12 | import { MyAccountOwnershipComponent } from './my-account-ownership/my-account-ownership.component' |
14 | import { MyAccountAcceptOwnershipComponent } from './my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component' | 13 | import { MyAccountAcceptOwnershipComponent } from './my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component' |
15 | import { MyAccountProfileComponent } from '@app/+my-account/my-account-settings/my-account-profile/my-account-profile.component' | 14 | import { MyAccountProfileComponent } from '@app/+my-account/my-account-settings/my-account-profile/my-account-profile.component' |
16 | import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component' | ||
17 | import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component' | ||
18 | import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component' | ||
19 | import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component' | 15 | import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component' |
20 | import { MyAccountDangerZoneComponent } from '@app/+my-account/my-account-settings/my-account-danger-zone' | 16 | import { MyAccountDangerZoneComponent } from '@app/+my-account/my-account-settings/my-account-danger-zone' |
21 | import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component' | 17 | import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component' |
@@ -45,8 +41,7 @@ import { MyAccountChangeEmailComponent } from '@app/+my-account/my-account-setti | |||
45 | SharedModule, | 41 | SharedModule, |
46 | TableModule, | 42 | TableModule, |
47 | InputSwitchModule, | 43 | InputSwitchModule, |
48 | DragDropModule, | 44 | DragDropModule |
49 | ChartModule | ||
50 | ], | 45 | ], |
51 | 46 | ||
52 | declarations: [ | 47 | declarations: [ |
@@ -61,9 +56,6 @@ import { MyAccountChangeEmailComponent } from '@app/+my-account/my-account-setti | |||
61 | VideoChangeOwnershipComponent, | 56 | VideoChangeOwnershipComponent, |
62 | MyAccountOwnershipComponent, | 57 | MyAccountOwnershipComponent, |
63 | MyAccountAcceptOwnershipComponent, | 58 | MyAccountAcceptOwnershipComponent, |
64 | MyAccountVideoChannelsComponent, | ||
65 | MyAccountVideoChannelCreateComponent, | ||
66 | MyAccountVideoChannelUpdateComponent, | ||
67 | MyAccountVideoImportsComponent, | 59 | MyAccountVideoImportsComponent, |
68 | MyAccountDangerZoneComponent, | 60 | MyAccountDangerZoneComponent, |
69 | MyAccountSubscriptionsComponent, | 61 | MyAccountSubscriptionsComponent, |