From 1942f11d5ee6926ad93dc1b79fae18325ba5de18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Jun 2020 14:49:20 +0200 Subject: Lazy load all routes --- client/src/app/app.module.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'client/src/app/app.module.ts') 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 import { BrowserModule } from '@angular/platform-browser' import { ServerService } from '@app/core' import localeOc from '@app/helpers/locales/oc' -import { ResetPasswordModule } from '@app/reset-password' -import { SearchModule } from '@app/search' import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' import { buildFileLocale, getCompleteLocale, isDefaultLocale } from '@shared/models' import { AppRoutingModule } from './app-routing.module' import { AppComponent } from './app.component' import { CoreModule } from './core' import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' -import { LoginModule } from './login' +import { HighlightPipe } from './header/highlight.pipe' import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' import { ConfirmComponent } from './modal/confirm.component' import { CustomModalComponent } from './modal/custom-modal.component' @@ -24,7 +22,6 @@ import { SharedGlobalIconModule } from './shared/shared-icons' import { SharedInstanceModule } from './shared/shared-instance' import { SharedMainModule } from './shared/shared-main' import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings' -import { VideosModule } from './videos' registerLocaleData(localeOc, 'oc') @@ -41,6 +38,7 @@ registerLocaleData(localeOc, 'oc') HeaderComponent, SearchTypeaheadComponent, SuggestionComponent, + HighlightPipe, CustomModalComponent, WelcomeModalComponent, @@ -58,12 +56,6 @@ registerLocaleData(localeOc, 'oc') SharedGlobalIconModule, SharedInstanceModule, - LoginModule, - ResetPasswordModule, - SearchModule, - - VideosModule, - MetaModule.forRoot({ provide: MetaLoader, useFactory: (serverService: ServerService) => { -- cgit v1.2.3