2023-08-04 13:45:56 +02:00
|
|
|
import {APP_ID, NgModule} from '@angular/core';
|
2019-09-30 14:51:38 +02:00
|
|
|
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";
|
2023-08-04 13:45:56 +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 {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';
|
2022-02-22 15:40:33 +01:00
|
|
|
import {QuickContactModule} from './openaireLibrary/sharedComponents/quick-contact/quick-contact.module';
|
2020-11-13 16:08:17 +01:00
|
|
|
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service";
|
2020-11-16 17:28:16 +01:00
|
|
|
import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
2020-11-16 15:08:38 +01:00
|
|
|
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
|
|
|
|
import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.service";
|
2022-02-16 17:19:35 +01:00
|
|
|
import {SharedModule} from "./openaireLibrary/shared/shared.module";
|
2022-02-24 17:43:20 +01:00
|
|
|
import {AlertModalModule} from "./openaireLibrary/utils/modal/alertModal.module";
|
2022-10-10 15:57:46 +02:00
|
|
|
import {isDevelopmentGuard} from './openaireLibrary/error/isDevelopmentGuard.guard';
|
2019-09-30 14:51:38 +02:00
|
|
|
|
|
|
|
@NgModule({
|
2021-04-01 16:45:13 +02:00
|
|
|
|
2019-09-30 14:51:38 +02:00
|
|
|
imports: [
|
|
|
|
SharedModule,
|
2020-06-03 23:55:32 +02:00
|
|
|
BrowserAnimationsModule,
|
2019-09-30 14:51:38 +02:00
|
|
|
CommonModule,
|
|
|
|
HttpClientModule,
|
|
|
|
ErrorModule,
|
|
|
|
FormsModule,
|
|
|
|
NavigationBarModule,
|
2022-02-24 17:43:20 +01:00
|
|
|
QuickContactModule,
|
2019-09-30 14:51:38 +02:00
|
|
|
BottomModule,
|
|
|
|
CookieLawModule,
|
2023-08-04 13:45:56 +02:00
|
|
|
BrowserModule,
|
2020-11-16 17:28:16 +01:00
|
|
|
AppRoutingModule,
|
2022-02-24 17:43:20 +01:00
|
|
|
Schema2jsonldModule,
|
|
|
|
AlertModalModule
|
2019-09-30 14:51:38 +02:00
|
|
|
],
|
2021-04-01 16:45:13 +02:00
|
|
|
declarations: [AppComponent, OpenaireErrorPageComponent],
|
|
|
|
exports: [AppComponent],
|
|
|
|
providers: [
|
2022-10-10 15:57:46 +02:00
|
|
|
isDevelopmentGuard,
|
2023-08-04 13:45:56 +02:00
|
|
|
{provide: APP_ID, useValue: 'monitor'},
|
2020-11-16 15:08:38 +01:00
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: HttpInterceptorService,
|
|
|
|
multi: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: ErrorInterceptorService,
|
|
|
|
multi: true
|
|
|
|
},
|
2021-04-01 16:45:13 +02:00
|
|
|
[{provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true}],
|
|
|
|
[{provide: DEFAULT_TIMEOUT, useValue: 30000}]
|
2020-11-13 16:08:17 +01:00
|
|
|
],
|
2019-09-30 14:51:38 +02:00
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
//
|
2021-04-01 16:45:13 +02:00
|
|
|
export class AppModule {
|
|
|
|
}
|