aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-09 09:26:41 +0200
committerChocobozzz <me@florianbigard.com>2018-05-09 09:32:26 +0200
commit62e62f118d5da57acd3494fece2e8ed357564ffe (patch)
treeff5b7c6ec5708d71a76a2eb5744d810015ae29a5 /client/src/app
parent1952a538baa330b13bd11631b3975f7ef1c37e70 (diff)
downloadPeerTube-62e62f118d5da57acd3494fece2e8ed357564ffe.tar.gz
PeerTube-62e62f118d5da57acd3494fece2e8ed357564ffe.tar.zst
PeerTube-62e62f118d5da57acd3494fece2e8ed357564ffe.zip
Load my-account module lazily
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+my-account/index.ts (renamed from client/src/app/my-account/index.ts)0
-rw-r--r--client/src/app/+my-account/my-account-routing.module.ts (renamed from client/src/app/my-account/my-account-routing.module.ts)8
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-change-password/index.ts (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/index.ts)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-profile/index.ts (renamed from client/src/app/my-account/my-account-settings/my-account-profile/index.ts)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.scss)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-settings.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-settings.component.html)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-settings.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-settings.component.scss)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-settings.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-settings.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-video-settings/index.ts (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/index.ts)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss)0
-rw-r--r--client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts (renamed from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.html)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.scss)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.ts)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.html)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.scss)0
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts (renamed from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account-videos/my-account-videos.component.html (renamed from client/src/app/my-account/my-account-videos/my-account-videos.component.html)0
-rw-r--r--client/src/app/+my-account/my-account-videos/my-account-videos.component.scss (renamed from client/src/app/my-account/my-account-videos/my-account-videos.component.scss)0
-rw-r--r--client/src/app/+my-account/my-account-videos/my-account-videos.component.ts (renamed from client/src/app/my-account/my-account-videos/my-account-videos.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account.component.html (renamed from client/src/app/my-account/my-account.component.html)0
-rw-r--r--client/src/app/+my-account/my-account.component.ts (renamed from client/src/app/my-account/my-account.component.ts)0
-rw-r--r--client/src/app/+my-account/my-account.module.ts (renamed from client/src/app/my-account/my-account.module.ts)8
-rw-r--r--client/src/app/app-routing.module.ts4
-rw-r--r--client/src/app/app.module.ts3
33 files changed, 12 insertions, 11 deletions
diff --git a/client/src/app/my-account/index.ts b/client/src/app/+my-account/index.ts
index 3df96dd7a..3df96dd7a 100644
--- a/client/src/app/my-account/index.ts
+++ b/client/src/app/+my-account/index.ts
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 96f52c1da..7e19cd994 100644
--- a/client/src/app/my-account/my-account-routing.module.ts
+++ b/client/src/app/+my-account/my-account-routing.module.ts
@@ -5,13 +5,13 @@ 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' 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' 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' 10import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
11 11
12const myAccountRoutes: Routes = [ 12const myAccountRoutes: Routes = [
13 { 13 {
14 path: 'my-account', 14 path: '',
15 component: MyAccountComponent, 15 component: MyAccountComponent,
16 canActivateChild: [ MetaGuard, LoginGuard ], 16 canActivateChild: [ MetaGuard, LoginGuard ],
17 children: [ 17 children: [
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/index.ts b/client/src/app/+my-account/my-account-settings/my-account-change-password/index.ts
index 644047c5f..644047c5f 100644
--- a/client/src/app/my-account/my-account-settings/my-account-change-password/index.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/index.ts
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
index b0e3cada4..b0e3cada4 100644
--- a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss
index f8279ffd3..f8279ffd3 100644
--- a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss
diff --git a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
index 80af668f9..80af668f9 100644
--- a/client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/index.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/index.ts
index 3cc049f8f..3cc049f8f 100644
--- a/client/src/app/my-account/my-account-settings/my-account-profile/index.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-profile/index.ts
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html
index 306f3a12c..306f3a12c 100644
--- a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.scss b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss
index fc2b92c89..fc2b92c89 100644
--- a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.scss
+++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss
diff --git a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.ts b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts
index 2b7ba353c..2b7ba353c 100644
--- a/client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
index 0fcc7782e..0fcc7782e 100644
--- a/client/src/app/my-account/my-account-settings/my-account-settings.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.html
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.scss b/client/src/app/+my-account/my-account-settings/my-account-settings.component.scss
index ec0d40b93..ec0d40b93 100644
--- a/client/src/app/my-account/my-account-settings/my-account-settings.component.scss
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.scss
diff --git a/client/src/app/my-account/my-account-settings/my-account-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts
index 06d1138e7..06d1138e7 100644
--- a/client/src/app/my-account/my-account-settings/my-account-settings.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-settings.component.ts
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/index.ts b/client/src/app/+my-account/my-account-settings/my-account-video-settings/index.ts
index 1253bd369..1253bd369 100644
--- a/client/src/app/my-account/my-account-settings/my-account-video-settings/index.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/index.ts
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html
index 0e8598e9e..0e8598e9e 100644
--- a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss
index ed59e4689..ed59e4689 100644
--- a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss
+++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss
diff --git a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
index acc70c14d..acc70c14d 100644
--- a/client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
+++ b/client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
index 0f03548ad..0f03548ad 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html
index d5fb6262a..d5fb6262a 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.html
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss
index 6fbb8ae8b..6fbb8ae8b 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.scss
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.ts
index e56f46262..e56f46262 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.ts
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts
index c0dc6a939..c0dc6a939 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html
index 90c401bc5..90c401bc5 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.html
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss
index bcb58eac2..bcb58eac2 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.scss
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss
diff --git a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts
index eeaca11df..eeaca11df 100644
--- a/client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts
diff --git a/client/src/app/my-account/my-account-videos/my-account-videos.component.html b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
index 66ce3a77b..66ce3a77b 100644
--- a/client/src/app/my-account/my-account-videos/my-account-videos.component.html
+++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.html
diff --git a/client/src/app/my-account/my-account-videos/my-account-videos.component.scss b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss
index f276ea389..f276ea389 100644
--- a/client/src/app/my-account/my-account-videos/my-account-videos.component.scss
+++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss
diff --git a/client/src/app/my-account/my-account-videos/my-account-videos.component.ts b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
index c1b53bcd5..c1b53bcd5 100644
--- a/client/src/app/my-account/my-account-videos/my-account-videos.component.ts
+++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.ts
diff --git a/client/src/app/my-account/my-account.component.html b/client/src/app/+my-account/my-account.component.html
index 591d58cf9..591d58cf9 100644
--- a/client/src/app/my-account/my-account.component.html
+++ b/client/src/app/+my-account/my-account.component.html
diff --git a/client/src/app/my-account/my-account.component.ts b/client/src/app/+my-account/my-account.component.ts
index 7bb461d3c..7bb461d3c 100644
--- a/client/src/app/my-account/my-account.component.ts
+++ b/client/src/app/+my-account/my-account.component.ts
diff --git a/client/src/app/my-account/my-account.module.ts b/client/src/app/+my-account/my-account.module.ts
index ba9dea71e..7e6b8c03e 100644
--- a/client/src/app/my-account/my-account.module.ts
+++ b/client/src/app/+my-account/my-account.module.ts
@@ -6,10 +6,10 @@ import { MyAccountVideoSettingsComponent } from './my-account-settings/my-accoun
6import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' 6import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
7import { MyAccountComponent } from './my-account.component' 7import { MyAccountComponent } from './my-account.component'
8import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' 8import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
9import { MyAccountProfileComponent } from '@app/my-account/my-account-settings/my-account-profile/my-account-profile.component' 9import { MyAccountProfileComponent } from '@app/+my-account/my-account-settings/my-account-profile/my-account-profile.component'
10import { MyAccountVideoChannelsComponent } from '@app/my-account/my-account-video-channels/my-account-video-channels.component' 10import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
11import { MyAccountVideoChannelCreateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-create.component' 11import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
12import { MyAccountVideoChannelUpdateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-update.component' 12import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
13 13
14@NgModule({ 14@NgModule({
15 imports: [ 15 imports: [
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts
index 799748cfa..936912d28 100644
--- a/client/src/app/app-routing.module.ts
+++ b/client/src/app/app-routing.module.ts
@@ -9,6 +9,10 @@ const routes: Routes = [
9 loadChildren: './+admin/admin.module#AdminModule' 9 loadChildren: './+admin/admin.module#AdminModule'
10 }, 10 },
11 { 11 {
12 path: 'my-account',
13 loadChildren: './+my-account/my-account.module#MyAccountModule'
14 },
15 {
12 path: 'accounts', 16 path: 'accounts',
13 loadChildren: './+accounts/accounts.module#AccountsModule' 17 loadChildren: './+accounts/accounts.module#AccountsModule'
14 }, 18 },
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts
index c22632fb8..f0d2be279 100644
--- a/client/src/app/app.module.ts
+++ b/client/src/app/app.module.ts
@@ -6,8 +6,6 @@ import { ResetPasswordModule } from '@app/reset-password'
6 6
7import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' 7import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'
8 8
9import { MyAccountModule } from './my-account'
10
11import { AppRoutingModule } from './app-routing.module' 9import { AppRoutingModule } from './app-routing.module'
12import { AppComponent } from './app.component' 10import { AppComponent } from './app.component'
13import { CoreModule } from './core' 11import { CoreModule } from './core'
@@ -46,7 +44,6 @@ export function metaFactory (serverService: ServerService): MetaLoader {
46 44
47 AppRoutingModule, 45 AppRoutingModule,
48 46
49 MyAccountModule,
50 CoreModule, 47 CoreModule,
51 LoginModule, 48 LoginModule,
52 ResetPasswordModule, 49 ResetPasswordModule,