diff options
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 3cec6d739..9f46d49a2 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -4,9 +4,7 @@ import { APP_BASE_HREF, registerLocaleData } from '@angular/common' | |||
4 | import { NgModule } from '@angular/core' | 4 | import { NgModule } from '@angular/core' |
5 | import { BrowserModule } from '@angular/platform-browser' | 5 | import { BrowserModule } from '@angular/platform-browser' |
6 | import { ServiceWorkerModule } from '@angular/service-worker' | 6 | import { ServiceWorkerModule } from '@angular/service-worker' |
7 | import { ServerService } from '@app/core' | ||
8 | import localeOc from '@app/helpers/locales/oc' | 7 | import localeOc from '@app/helpers/locales/oc' |
9 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | ||
10 | import { AppRoutingModule } from './app-routing.module' | 8 | import { AppRoutingModule } from './app-routing.module' |
11 | import { AppComponent } from './app.component' | 9 | import { AppComponent } from './app.component' |
12 | import { CoreModule } from './core' | 10 | import { CoreModule } from './core' |
@@ -19,12 +17,12 @@ import { CustomModalComponent } from './modal/custom-modal.component' | |||
19 | import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component' | 17 | import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component' |
20 | import { QuickSettingsModalComponent } from './modal/quick-settings-modal.component' | 18 | import { QuickSettingsModalComponent } from './modal/quick-settings-modal.component' |
21 | import { WelcomeModalComponent } from './modal/welcome-modal.component' | 19 | import { WelcomeModalComponent } from './modal/welcome-modal.component' |
20 | import { SharedActorImageModule } from './shared/shared-actor-image/shared-actor-image.module' | ||
22 | import { SharedFormModule } from './shared/shared-forms' | 21 | import { SharedFormModule } from './shared/shared-forms' |
23 | import { SharedGlobalIconModule } from './shared/shared-icons' | 22 | import { SharedGlobalIconModule } from './shared/shared-icons' |
24 | import { SharedInstanceModule } from './shared/shared-instance' | 23 | import { SharedInstanceModule } from './shared/shared-instance' |
25 | import { SharedMainModule } from './shared/shared-main' | 24 | import { SharedMainModule } from './shared/shared-main' |
26 | import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings' | 25 | import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings' |
27 | import { SharedActorImageModule } from './shared/shared-actor-image/shared-actor-image.module' | ||
28 | 26 | ||
29 | registerLocaleData(localeOc, 'oc') | 27 | registerLocaleData(localeOc, 'oc') |
30 | 28 | ||
@@ -62,22 +60,6 @@ registerLocaleData(localeOc, 'oc') | |||
62 | SharedInstanceModule, | 60 | SharedInstanceModule, |
63 | SharedActorImageModule, | 61 | SharedActorImageModule, |
64 | 62 | ||
65 | MetaModule.forRoot({ | ||
66 | provide: MetaLoader, | ||
67 | useFactory: (serverService: ServerService) => { | ||
68 | return new MetaStaticLoader({ | ||
69 | pageTitlePositioning: PageTitlePositioning.PrependPageTitle, | ||
70 | pageTitleSeparator: ' - ', | ||
71 | get applicationName () { return serverService.getTmpConfig().instance.name }, | ||
72 | defaults: { | ||
73 | get title () { return serverService.getTmpConfig().instance.name }, | ||
74 | get description () { return serverService.getTmpConfig().instance.shortDescription } | ||
75 | } | ||
76 | }) | ||
77 | }, | ||
78 | deps: [ ServerService ] | ||
79 | }), | ||
80 | |||
81 | AppRoutingModule // Put it after all the module because it has the 404 route | 63 | AppRoutingModule // Put it after all the module because it has the 404 route |
82 | ], | 64 | ], |
83 | 65 | ||