]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Load my-account module lazily
authorChocobozzz <me@florianbigard.com>
Wed, 9 May 2018 07:26:41 +0000 (09:26 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 9 May 2018 07:32:26 +0000 (09:32 +0200)
33 files changed:
client/src/app/+my-account/index.ts [moved from client/src/app/my-account/index.ts with 100% similarity]
client/src/app/+my-account/my-account-routing.module.ts [moved from client/src/app/my-account/my-account-routing.module.ts with 79% similarity]
client/src/app/+my-account/my-account-settings/my-account-change-password/index.ts [moved from client/src/app/my-account/my-account-settings/my-account-change-password/index.ts with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html [moved from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss [moved from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts [moved from client/src/app/my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-profile/index.ts [moved from client/src/app/my-account/my-account-settings/my-account-profile/index.ts with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html [moved from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.html with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss [moved from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.scss with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts [moved from client/src/app/my-account/my-account-settings/my-account-profile/my-account-profile.component.ts with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-settings.component.html [moved from client/src/app/my-account/my-account-settings/my-account-settings.component.html with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-settings.component.scss [moved from client/src/app/my-account/my-account-settings/my-account-settings.component.scss with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-settings.component.ts [moved from client/src/app/my-account/my-account-settings/my-account-settings.component.ts with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-video-settings/index.ts [moved from client/src/app/my-account/my-account-settings/my-account-video-settings/index.ts with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html [moved from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.html with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss [moved from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.scss with 100% similarity]
client/src/app/+my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts [moved from client/src/app/my-account/my-account-settings/my-account-video-settings/my-account-video-settings.component.ts with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channel-create.component.ts with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.html with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.component.scss with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.ts [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channel-edit.ts with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channel-update.component.ts with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.html [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.html with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.scss [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.scss with 100% similarity]
client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts [moved from client/src/app/my-account/my-account-video-channels/my-account-video-channels.component.ts with 100% similarity]
client/src/app/+my-account/my-account-videos/my-account-videos.component.html [moved from client/src/app/my-account/my-account-videos/my-account-videos.component.html with 100% similarity]
client/src/app/+my-account/my-account-videos/my-account-videos.component.scss [moved from client/src/app/my-account/my-account-videos/my-account-videos.component.scss with 100% similarity]
client/src/app/+my-account/my-account-videos/my-account-videos.component.ts [moved from client/src/app/my-account/my-account-videos/my-account-videos.component.ts with 100% similarity]
client/src/app/+my-account/my-account.component.html [moved from client/src/app/my-account/my-account.component.html with 100% similarity]
client/src/app/+my-account/my-account.component.ts [moved from client/src/app/my-account/my-account.component.ts with 100% similarity]
client/src/app/+my-account/my-account.module.ts [moved from client/src/app/my-account/my-account.module.ts with 68% similarity]
client/src/app/app-routing.module.ts
client/src/app/app.module.ts

similarity index 79%
rename from client/src/app/my-account/my-account-routing.module.ts
rename to client/src/app/+my-account/my-account-routing.module.ts
index 96f52c1da2c8e2ba69d1954e0a92cecad570f693..7e19cd9945cf3e2db0ae509a7399b83458483389 100644 (file)
@@ -5,13 +5,13 @@ import { LoginGuard } from '../core'
 import { MyAccountComponent } from './my-account.component'
 import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
 import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
-import { MyAccountVideoChannelsComponent } from '@app/my-account/my-account-video-channels/my-account-video-channels.component'
-import { MyAccountVideoChannelCreateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-create.component'
-import { MyAccountVideoChannelUpdateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-update.component'
+import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
+import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
+import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
 
 const myAccountRoutes: Routes = [
   {
-    path: 'my-account',
+    path: '',
     component: MyAccountComponent,
     canActivateChild: [ MetaGuard, LoginGuard ],
     children: [
similarity index 68%
rename from client/src/app/my-account/my-account.module.ts
rename to client/src/app/+my-account/my-account.module.ts
index ba9dea71ead37618823613d9844c0312ec2aa81a..7e6b8c03ee0d84d589772a4b9bae121226b9f0f5 100644 (file)
@@ -6,10 +6,10 @@ import { MyAccountVideoSettingsComponent } from './my-account-settings/my-accoun
 import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component'
 import { MyAccountComponent } from './my-account.component'
 import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component'
-import { MyAccountProfileComponent } from '@app/my-account/my-account-settings/my-account-profile/my-account-profile.component'
-import { MyAccountVideoChannelsComponent } from '@app/my-account/my-account-video-channels/my-account-video-channels.component'
-import { MyAccountVideoChannelCreateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-create.component'
-import { MyAccountVideoChannelUpdateComponent } from '@app/my-account/my-account-video-channels/my-account-video-channel-update.component'
+import { MyAccountProfileComponent } from '@app/+my-account/my-account-settings/my-account-profile/my-account-profile.component'
+import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
+import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
+import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
 
 @NgModule({
   imports: [
index 799748cfabde0408a9822f805f0c840cdfa4d933..936912d282fedddb07d171c6ccf593804da68729 100644 (file)
@@ -8,6 +8,10 @@ const routes: Routes = [
     path: 'admin',
     loadChildren: './+admin/admin.module#AdminModule'
   },
+  {
+    path: 'my-account',
+    loadChildren: './+my-account/my-account.module#MyAccountModule'
+  },
   {
     path: 'accounts',
     loadChildren: './+accounts/accounts.module#AccountsModule'
index c22632fb85d1714608e49be6232ac0db1fdc55d4..f0d2be27925747e521e66c039e56186596fdcd62 100644 (file)
@@ -6,8 +6,6 @@ import { ResetPasswordModule } from '@app/reset-password'
 
 import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core'
 
-import { MyAccountModule } from './my-account'
-
 import { AppRoutingModule } from './app-routing.module'
 import { AppComponent } from './app.component'
 import { CoreModule } from './core'
@@ -46,7 +44,6 @@ export function metaFactory (serverService: ServerService): MetaLoader {
 
     AppRoutingModule,
 
-    MyAccountModule,
     CoreModule,
     LoginModule,
     ResetPasswordModule,