2020-05-05 12:37:53 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
2022-08-29 13:04:43 +02:00
|
|
|
import {SharedModule} from './openaireLibrary/shared/shared.module';
|
2020-05-05 12:37:53 +02:00
|
|
|
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
|
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http';
|
|
|
|
import {AppComponent} from './app.component';
|
2018-02-16 16:51:10 +01:00
|
|
|
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
2020-05-05 12:37:53 +02:00
|
|
|
import {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
2018-02-16 16:51:10 +01:00
|
|
|
import {BottomModule} from './openaireLibrary/sharedComponents/bottom.module';
|
2020-05-05 12:37:53 +02:00
|
|
|
import {ErrorModule} from './openaireLibrary/error/error.module';
|
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
|
|
|
import {AppRoutingModule} from './app-routing.module';
|
|
|
|
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
|
2020-05-18 14:46:26 +02:00
|
|
|
import {PageURLResolverModule} from "./openaireLibrary/utils/pageURLResolver.module";
|
2020-07-15 16:00:30 +02:00
|
|
|
import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
2020-07-21 15:21:00 +02:00
|
|
|
import {CacheInterceptorService} from "./openaireLibrary/cache-interceptor.service";
|
2020-11-02 18:13:23 +01:00
|
|
|
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service";
|
2020-11-16 14:49:10 +01:00
|
|
|
import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.service";
|
2022-10-12 14:31:34 +02:00
|
|
|
import {QuickContactModule} from './openaireLibrary/sharedComponents/quick-contact/quick-contact.module';
|
|
|
|
import {AlertModalModule} from './openaireLibrary/utils/modal/alertModal.module';
|
2018-01-23 11:07:39 +01:00
|
|
|
|
2020-05-05 12:37:53 +02:00
|
|
|
@NgModule({
|
2018-01-23 11:07:39 +01:00
|
|
|
imports: [
|
|
|
|
SharedModule,
|
|
|
|
CommonModule,
|
2019-06-03 15:21:49 +02:00
|
|
|
HttpClientModule,
|
2019-09-30 12:50:49 +02:00
|
|
|
ErrorModule,
|
2020-01-28 14:07:04 +01:00
|
|
|
NavigationBarModule, BottomModule,
|
2018-01-23 11:07:39 +01:00
|
|
|
CookieLawModule,
|
2021-07-14 17:41:12 +02:00
|
|
|
BrowserModule.withServerTransition({ appId: 'explore' }),
|
2019-09-30 12:50:49 +02:00
|
|
|
AppRoutingModule,
|
2020-05-05 12:37:53 +02:00
|
|
|
BrowserTransferStateModule,
|
2022-10-12 14:31:34 +02:00
|
|
|
BrowserAnimationsModule, PageURLResolverModule,
|
|
|
|
Schema2jsonldModule,
|
|
|
|
QuickContactModule,
|
|
|
|
AlertModalModule
|
2020-05-05 12:37:53 +02:00
|
|
|
],
|
2020-05-18 14:46:26 +02:00
|
|
|
declarations: [AppComponent, OpenaireErrorPageComponent],
|
2020-05-05 12:37:53 +02:00
|
|
|
exports: [AppComponent],
|
|
|
|
providers: [
|
2020-07-21 15:21:00 +02:00
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: CacheInterceptorService,
|
|
|
|
multi: true
|
|
|
|
},
|
2020-05-05 12:37:53 +02:00
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: HttpInterceptorService,
|
|
|
|
multi: true
|
2020-11-02 18:13:23 +01:00
|
|
|
},
|
2020-11-16 14:49:10 +01:00
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: ErrorInterceptorService,
|
|
|
|
multi: true
|
|
|
|
},
|
|
|
|
[{provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true}],
|
2021-04-28 17:32:41 +02:00
|
|
|
[{provide: DEFAULT_TIMEOUT, useValue: 3000}]
|
2018-01-23 11:07:39 +01:00
|
|
|
],
|
2020-05-05 12:37:53 +02:00
|
|
|
bootstrap: [AppComponent]
|
2018-01-23 11:07:39 +01:00
|
|
|
})
|
|
|
|
//
|
2020-05-05 12:37:53 +02:00
|
|
|
export class AppModule {
|
|
|
|
}
|