2019-09-30 14:51:38 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {FormsModule} from '@angular/forms';
|
|
|
|
import {CommonModule} from '@angular/common';
|
2020-11-13 16:08:17 +01:00
|
|
|
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
|
2019-09-30 14:51:38 +02:00
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
2020-06-29 15:16:21 +02:00
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
2019-09-30 14:51:38 +02:00
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
|
|
|
|
|
|
|
import {AppRoutingModule} from './app-routing.module';
|
|
|
|
import {SharedModule} from './shared/shared.module';
|
|
|
|
import {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
|
|
|
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
|
|
|
import {ErrorModule} from './openaireLibrary/error/error.module';
|
|
|
|
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
|
|
|
|
|
|
|
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
2020-11-13 16:08:17 +01:00
|
|
|
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service";
|
2019-09-30 14:51:38 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
|
|
|
imports: [
|
|
|
|
SharedModule,
|
2020-06-03 23:55:32 +02:00
|
|
|
BrowserAnimationsModule,
|
2019-09-30 14:51:38 +02:00
|
|
|
CommonModule,
|
|
|
|
HttpClientModule,
|
|
|
|
ErrorModule,
|
|
|
|
FormsModule,
|
|
|
|
NavigationBarModule,
|
|
|
|
BottomModule,
|
|
|
|
CookieLawModule,
|
|
|
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
|
|
|
AppRoutingModule
|
|
|
|
],
|
2019-10-09 11:05:56 +02:00
|
|
|
declarations: [ AppComponent, OpenaireErrorPageComponent],
|
2019-09-30 14:51:38 +02:00
|
|
|
exports: [ AppComponent ],
|
2020-11-13 16:08:17 +01:00
|
|
|
providers:[EnvironmentSpecificResolver,
|
|
|
|
[{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }],
|
|
|
|
[{ provide: DEFAULT_TIMEOUT, useValue: 30000 }]
|
|
|
|
],
|
2019-09-30 14:51:38 +02:00
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
//
|
|
|
|
export class AppModule {}
|