diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:10:17 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 67ed6552b831df66713bac9e672738796128d33f (patch) | |
tree | 59c97d41e0b49d75a90aa3de987968ab9b1ff447 /client/src/app/+my-account/my-account-routing.module.ts | |
parent | 0c4bacbff53bc732f5a2677d62a6ead7752e2405 (diff) | |
download | PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.gz PeerTube-67ed6552b831df66713bac9e672738796128d33f.tar.zst PeerTube-67ed6552b831df66713bac9e672738796128d33f.zip |
Reorganize client shared modules
Diffstat (limited to 'client/src/app/+my-account/my-account-routing.module.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-routing.module.ts | 35 |
1 files changed, 16 insertions, 19 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 f6b711e09..ac9cf4cfd 100644 --- a/client/src/app/+my-account/my-account-routing.module.ts +++ b/client/src/app/+my-account/my-account-routing.module.ts | |||
@@ -2,26 +2,20 @@ import { NgModule } from '@angular/core' | |||
2 | import { RouterModule, Routes } from '@angular/router' | 2 | import { RouterModule, Routes } from '@angular/router' |
3 | import { MetaGuard } from '@ngx-meta/core' | 3 | import { MetaGuard } from '@ngx-meta/core' |
4 | import { LoginGuard } from '../core' | 4 | import { LoginGuard } from '../core' |
5 | import { MyAccountComponent } from './my-account.component' | 5 | import { MyAccountBlocklistComponent } from './my-account-blocklist/my-account-blocklist.component' |
6 | import { MyAccountServerBlocklistComponent } from './my-account-blocklist/my-account-server-blocklist.component' | ||
7 | import { MyAccountHistoryComponent } from './my-account-history/my-account-history.component' | ||
8 | import { MyAccountNotificationsComponent } from './my-account-notifications/my-account-notifications.component' | ||
9 | import { MyAccountOwnershipComponent } from './my-account-ownership/my-account-ownership.component' | ||
6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' | 10 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' |
11 | import { MyAccountSubscriptionsComponent } from './my-account-subscriptions/my-account-subscriptions.component' | ||
12 | import { MyAccountVideoImportsComponent } from './my-account-video-imports/my-account-video-imports.component' | ||
13 | import { MyAccountVideoPlaylistCreateComponent } from './my-account-video-playlists/my-account-video-playlist-create.component' | ||
14 | import { MyAccountVideoPlaylistElementsComponent } from './my-account-video-playlists/my-account-video-playlist-elements.component' | ||
15 | import { MyAccountVideoPlaylistUpdateComponent } from './my-account-video-playlists/my-account-video-playlist-update.component' | ||
16 | import { MyAccountVideoPlaylistsComponent } from './my-account-video-playlists/my-account-video-playlists.component' | ||
7 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' | 17 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' |
8 | import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component' | 18 | import { MyAccountComponent } from './my-account.component' |
9 | import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component' | ||
10 | import { MyAccountOwnershipComponent } from '@app/+my-account/my-account-ownership/my-account-ownership.component' | ||
11 | import { MyAccountBlocklistComponent } from '@app/+my-account/my-account-blocklist/my-account-blocklist.component' | ||
12 | import { MyAccountServerBlocklistComponent } from '@app/+my-account/my-account-blocklist/my-account-server-blocklist.component' | ||
13 | import { MyAccountHistoryComponent } from '@app/+my-account/my-account-history/my-account-history.component' | ||
14 | import { MyAccountNotificationsComponent } from '@app/+my-account/my-account-notifications/my-account-notifications.component' | ||
15 | import { MyAccountVideoPlaylistsComponent } from '@app/+my-account/my-account-video-playlists/my-account-video-playlists.component' | ||
16 | import { | ||
17 | MyAccountVideoPlaylistCreateComponent | ||
18 | } from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-create.component' | ||
19 | import { | ||
20 | MyAccountVideoPlaylistUpdateComponent | ||
21 | } from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-update.component' | ||
22 | import { | ||
23 | MyAccountVideoPlaylistElementsComponent | ||
24 | } from '@app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component' | ||
25 | 19 | ||
26 | const myAccountRoutes: Routes = [ | 20 | const myAccountRoutes: Routes = [ |
27 | { | 21 | { |
@@ -46,7 +40,10 @@ const myAccountRoutes: Routes = [ | |||
46 | 40 | ||
47 | { | 41 | { |
48 | path: 'video-channels', | 42 | path: 'video-channels', |
49 | loadChildren: () => import('./my-account-video-channels/my-account-video-channels.module').then(m => m.MyAccountVideoChannelsModule) | 43 | loadChildren: () => { |
44 | return import('./+my-account-video-channels/my-account-video-channels.module') | ||
45 | .then(m => m.MyAccountVideoChannelsModule) | ||
46 | } | ||
50 | }, | 47 | }, |
51 | 48 | ||
52 | { | 49 | { |