aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+my-account/my-account-routing.module.ts28
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts41
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts25
-rw-r--r--client/src/app/+my-account/my-account.module.ts10
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'
5import { MyAccountComponent } from './my-account.component' 5import { MyAccountComponent } from './my-account.component'
6import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' 6import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
7import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' 7import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
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'
11import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component' 8import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component'
12import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component' 9import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component'
13import { MyAccountOwnershipComponent } from '@app/+my-account/my-account-ownership/my-account-ownership.component' 10import { 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 @@
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3import { MyAccountVideoChannelUpdateComponent } from './my-account-video-channel-update.component'
4import { MyAccountVideoChannelCreateComponent } from './my-account-video-channel-create.component'
5import { MyAccountVideoChannelsComponent } from './my-account-video-channels.component'
6
7const 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})
41export 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 @@
1import { NgModule } from '@angular/core'
2import { ChartModule } from 'primeng/chart'
3import { MyAccountVideoChannelsRoutingModule } from './my-account-video-channels-routing.module'
4import { MyAccountVideoChannelsComponent } from './my-account-video-channels.component'
5import { MyAccountVideoChannelCreateComponent } from './my-account-video-channel-create.component'
6import { MyAccountVideoChannelUpdateComponent } from './my-account-video-channel-update.component'
7import { 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})
25export 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'
2import { TableModule } from 'primeng/table' 2import { TableModule } from 'primeng/table'
3import { AutoCompleteModule } from 'primeng/autocomplete' 3import { AutoCompleteModule } from 'primeng/autocomplete'
4import { InputSwitchModule } from 'primeng/inputswitch' 4import { InputSwitchModule } from 'primeng/inputswitch'
5import { ChartModule } from 'primeng/chart'
6import { SharedModule } from '../shared' 5import { SharedModule } from '../shared'
7import { MyAccountRoutingModule } from './my-account-routing.module' 6import { MyAccountRoutingModule } from './my-account-routing.module'
8import { MyAccountChangePasswordComponent } from './my-account-settings/my-account-change-password/my-account-change-password.component' 7import { 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-
13import { MyAccountOwnershipComponent } from './my-account-ownership/my-account-ownership.component' 12import { MyAccountOwnershipComponent } from './my-account-ownership/my-account-ownership.component'
14import { MyAccountAcceptOwnershipComponent } from './my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component' 13import { MyAccountAcceptOwnershipComponent } from './my-account-ownership/my-account-accept-ownership/my-account-accept-ownership.component'
15import { MyAccountProfileComponent } from '@app/+my-account/my-account-settings/my-account-profile/my-account-profile.component' 14import { MyAccountProfileComponent } from '@app/+my-account/my-account-settings/my-account-profile/my-account-profile.component'
16import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
17import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
18import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
19import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component' 15import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component'
20import { MyAccountDangerZoneComponent } from '@app/+my-account/my-account-settings/my-account-danger-zone' 16import { MyAccountDangerZoneComponent } from '@app/+my-account/my-account-settings/my-account-danger-zone'
21import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component' 17import { 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,