diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:49:20 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 1942f11d5ee6926ad93dc1b79fae18325ba5de18 (patch) | |
tree | 3f2a3cd9466a56c419d197ac832a3e9cbc86bec4 /client/src/app/app.module.ts | |
parent | 67ed6552b831df66713bac9e672738796128d33f (diff) | |
download | PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.tar.gz PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.tar.zst PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.zip |
Lazy load all routes
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 7fbc6463b..c6e9d7315 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -4,15 +4,13 @@ import { LOCALE_ID, NgModule, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular | |||
4 | import { BrowserModule } from '@angular/platform-browser' | 4 | import { BrowserModule } from '@angular/platform-browser' |
5 | import { ServerService } from '@app/core' | 5 | import { ServerService } from '@app/core' |
6 | import localeOc from '@app/helpers/locales/oc' | 6 | import localeOc from '@app/helpers/locales/oc' |
7 | import { ResetPasswordModule } from '@app/reset-password' | ||
8 | import { SearchModule } from '@app/search' | ||
9 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | 7 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
10 | import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' | 8 | import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' |
11 | import { AppRoutingModule } from './app-routing.module' | 9 | import { AppRoutingModule } from './app-routing.module' |
12 | import { AppComponent } from './app.component' | 10 | import { AppComponent } from './app.component' |
13 | import { CoreModule } from './core' | 11 | import { CoreModule } from './core' |
14 | import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' | 12 | import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' |
15 | import { LoginModule } from './login' | 13 | import { HighlightPipe } from './header/highlight.pipe' |
16 | import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' | 14 | import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' |
17 | import { ConfirmComponent } from './modal/confirm.component' | 15 | import { ConfirmComponent } from './modal/confirm.component' |
18 | import { CustomModalComponent } from './modal/custom-modal.component' | 16 | import { CustomModalComponent } from './modal/custom-modal.component' |
@@ -24,7 +22,6 @@ import { SharedGlobalIconModule } from './shared/shared-icons' | |||
24 | import { SharedInstanceModule } from './shared/shared-instance' | 22 | import { SharedInstanceModule } from './shared/shared-instance' |
25 | import { SharedMainModule } from './shared/shared-main' | 23 | import { SharedMainModule } from './shared/shared-main' |
26 | import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings' | 24 | import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings' |
27 | import { VideosModule } from './videos' | ||
28 | 25 | ||
29 | registerLocaleData(localeOc, 'oc') | 26 | registerLocaleData(localeOc, 'oc') |
30 | 27 | ||
@@ -41,6 +38,7 @@ registerLocaleData(localeOc, 'oc') | |||
41 | HeaderComponent, | 38 | HeaderComponent, |
42 | SearchTypeaheadComponent, | 39 | SearchTypeaheadComponent, |
43 | SuggestionComponent, | 40 | SuggestionComponent, |
41 | HighlightPipe, | ||
44 | 42 | ||
45 | CustomModalComponent, | 43 | CustomModalComponent, |
46 | WelcomeModalComponent, | 44 | WelcomeModalComponent, |
@@ -58,12 +56,6 @@ registerLocaleData(localeOc, 'oc') | |||
58 | SharedGlobalIconModule, | 56 | SharedGlobalIconModule, |
59 | SharedInstanceModule, | 57 | SharedInstanceModule, |
60 | 58 | ||
61 | LoginModule, | ||
62 | ResetPasswordModule, | ||
63 | SearchModule, | ||
64 | |||
65 | VideosModule, | ||
66 | |||
67 | MetaModule.forRoot({ | 59 | MetaModule.forRoot({ |
68 | provide: MetaLoader, | 60 | provide: MetaLoader, |
69 | useFactory: (serverService: ServerService) => { | 61 | useFactory: (serverService: ServerService) => { |