Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

67 lines
1.6 KiB

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Sebastian Stehle. All rights reserved
*/
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import {
ApiUrlConfig,
CurrencyConfig,
DecimalSeparatorConfig,
SqxFrameworkModule,
SqxSharedModule,
TitlesConfig,
UserReportConfig
} from './shared';
import { SqxShellModule } from './shell';
import { routing } from './app.routes';
export function configApiUrl() {
return new ApiUrlConfig(window.location.protocol + '//' + window.location.host + '/');
}
export function configTitles() {
return new TitlesConfig({}, undefined, 'Squidex Headless CMS');
}
export function configDecimalSeparator() {
return new DecimalSeparatorConfig('.');
}
export function configCurrency() {
return new CurrencyConfig('EUR', '€', true);
}
export function configUserReport() {
return new UserReportConfig('221afe63-0ca2-42aa-8efe-188d77964a7f');
}
@NgModule({
imports: [
BrowserModule,
SqxFrameworkModule.forRoot(),
SqxSharedModule.forRoot(),
SqxShellModule,
routing
],
declarations: [
AppComponent
],
providers: [
{ provide: ApiUrlConfig, useFactory: configApiUrl },
{ provide: CurrencyConfig, useFactory: configCurrency },
{ provide: DecimalSeparatorConfig, useFactory: configDecimalSeparator },
{ provide: TitlesConfig, useFactory: configTitles },
{ provide: UserReportConfig, useFactory: configUserReport }
],
bootstrap: [AppComponent]
})
export class AppModule { }