Add support for dynamic themes

This commit is contained in:
Art Lowel
2021-02-25 15:04:32 +01:00
parent 70dac6bc8f
commit 5a6e4b1278
224 changed files with 3429 additions and 1017 deletions

View File

@@ -2,7 +2,6 @@ import { HttpClient, HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule, makeStateKey, TransferState } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NoPreloading, RouterModule } from '@angular/router';
import { REQUEST } from '@nguniversal/express-engine/tokens';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
@@ -30,7 +29,7 @@ import {
LocationToken
} from '../../app/core/services/browser-hard-redirect.service';
import { LocaleService } from '../../app/core/locale/locale.service';
import {GoogleAnalyticsService} from '../../app/statistics/google-analytics.service';
import { GoogleAnalyticsService } from '../../app/statistics/google-analytics.service';
export const REQ_KEY = makeStateKey<string>('req');
@@ -51,12 +50,12 @@ export function getRequest(transferState: TransferState): any {
HttpClientModule,
// forRoot ensures the providers are only created once
IdlePreloadModule.forRoot(),
RouterModule.forRoot([], {
// enableTracing: true,
useHash: false,
scrollPositionRestoration: 'enabled',
preloadingStrategy: NoPreloading
}),
// RouterModule.forRoot([], {
// // enableTracing: true,
// useHash: false,
// scrollPositionRestoration: 'enabled',
// preloadingStrategy: NoPreloading
// }),
StatisticsModule.forRoot(),
Angulartics2RouterlessModule.forRoot(),
BrowserAnimationsModule,