2019-06-13 14:40:03 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {SharedModule} from './shared/shared.module';
|
2020-11-23 13:28:46 +01:00
|
|
|
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
|
2020-12-14 17:22:50 +01:00
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
2019-06-13 14:40:03 +02:00
|
|
|
import {CommonModule} from '@angular/common';
|
2020-11-23 13:28:46 +01:00
|
|
|
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
|
2019-06-13 14:40:03 +02:00
|
|
|
import {AppComponent} from './app.component';
|
2019-05-23 15:38:44 +02:00
|
|
|
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
2019-06-13 14:40:03 +02:00
|
|
|
import {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
2019-05-23 15:38:44 +02:00
|
|
|
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
|
|
|
import {FeedbackModule} from './openaireLibrary/sharedComponents/feedback/feedback.module';
|
2019-06-13 14:40:03 +02:00
|
|
|
import {ErrorModule} from './openaireLibrary/error/error.module';
|
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
|
|
|
import {AppRoutingModule} from './app-routing.module';
|
2020-11-23 13:28:46 +01:00
|
|
|
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
|
|
|
|
import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.service";
|
|
|
|
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service";
|
2020-11-25 18:39:05 +01:00
|
|
|
import {ConfigurationService} from "./openaireLibrary/utils/configuration/configuration.service";
|
2019-05-23 15:38:44 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
SharedModule,
|
2020-12-14 17:22:50 +01:00
|
|
|
BrowserAnimationsModule,
|
2019-05-23 15:38:44 +02:00
|
|
|
CommonModule,
|
|
|
|
HttpClientModule,
|
2019-06-13 14:40:03 +02:00
|
|
|
ErrorModule,
|
2019-10-17 14:21:24 +02:00
|
|
|
NavigationBarModule, FeedbackModule, BottomModule,
|
2019-05-23 15:38:44 +02:00
|
|
|
CookieLawModule,
|
2020-11-23 13:28:46 +01:00
|
|
|
BrowserAnimationsModule,
|
|
|
|
BrowserTransferStateModule,
|
2022-08-08 16:49:07 +02:00
|
|
|
BrowserModule.withServerTransition({appId: 'eosc'}),
|
2019-05-23 15:38:44 +02:00
|
|
|
AppRoutingModule
|
|
|
|
],
|
2019-10-17 14:21:24 +02:00
|
|
|
declarations: [AppComponent, OpenaireErrorPageComponent],
|
|
|
|
exports: [AppComponent],
|
|
|
|
providers: [
|
2021-04-01 16:59:03 +02:00
|
|
|
ConfigurationService,
|
2020-11-23 13:28:46 +01:00
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: HttpInterceptorService,
|
|
|
|
multi: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: ErrorInterceptorService,
|
|
|
|
multi: true
|
|
|
|
},
|
|
|
|
[{provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true}],
|
|
|
|
[{provide: DEFAULT_TIMEOUT, useValue: 30000}]
|
2019-10-17 14:21:24 +02:00
|
|
|
],
|
|
|
|
bootstrap: [AppComponent]
|
2019-05-23 15:38:44 +02:00
|
|
|
})
|
2019-10-17 14:21:24 +02:00
|
|
|
export class AppModule {
|
|
|
|
}
|