2020-10-05 18:36:30 +02:00
|
|
|
import {AppRoutingModule} from "./app.routing";
|
|
|
|
import {BrowserModule} from "@angular/platform-browser";
|
2020-11-16 13:56:17 +01:00
|
|
|
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
|
2020-10-05 18:36:30 +02:00
|
|
|
import {CookieLawModule} from "./openaireLibrary/sharedComponents/cookie-law/cookie-law.module";
|
|
|
|
import {NavigationBarModule} from "./openaireLibrary/sharedComponents/navigationBar.module";
|
|
|
|
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
|
|
|
|
import {SafeHtmlPipeModule} from "./openaireLibrary/utils/pipes/safeHTMLPipe.module";
|
|
|
|
import {AppComponent} from "./app.component";
|
|
|
|
import {NgModule} from "@angular/core";
|
|
|
|
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
2020-11-16 13:56:17 +01:00
|
|
|
import {Schema2jsonldModule} from './openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module';
|
|
|
|
import {ErrorModule} from './openaireLibrary/error/error.module';
|
|
|
|
import {PreviousRouteRecorder} from './openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
|
|
import {PiwikService} from './openaireLibrary/utils/piwik/piwik.service';
|
|
|
|
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from './openaireLibrary/timeout-interceptor.service';
|
2020-10-05 18:36:30 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
AppRoutingModule,
|
|
|
|
BrowserModule,
|
|
|
|
BrowserAnimationsModule,
|
|
|
|
HttpClientModule,
|
|
|
|
NavigationBarModule,
|
|
|
|
CookieLawModule,
|
|
|
|
SafeHtmlPipeModule,
|
|
|
|
BrowserAnimationsModule,
|
2020-11-16 13:56:17 +01:00
|
|
|
BottomModule,
|
|
|
|
Schema2jsonldModule,
|
|
|
|
ErrorModule
|
2020-10-05 18:36:30 +02:00
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
],
|
2021-04-01 16:52:57 +02:00
|
|
|
providers: [PreviousRouteRecorder, PiwikService,
|
2020-11-16 13:56:17 +01:00
|
|
|
[{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }],
|
|
|
|
[{ provide: DEFAULT_TIMEOUT, useValue: 30000 }]
|
|
|
|
],
|
2020-10-05 18:36:30 +02:00
|
|
|
bootstrap: [ AppComponent ]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|