2019-04-24 14:02:11 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {FormsModule} from '@angular/forms';
|
|
|
|
import {CommonModule} from '@angular/common';
|
2019-09-30 13:43:24 +02:00
|
|
|
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
|
|
|
|
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
|
2020-05-05 12:40:15 +02:00
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
2018-03-14 14:28:45 +01:00
|
|
|
|
2019-04-24 14:02:11 +02:00
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
import {OpenaireErrorPageComponent} from './error/errorPage.component';
|
2018-03-14 14:28:45 +01:00
|
|
|
|
2019-04-24 14:02:11 +02:00
|
|
|
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';
|
2018-03-14 14:28:45 +01:00
|
|
|
|
2019-04-24 14:02:11 +02:00
|
|
|
import {EnvironmentSpecificResolver} from './openaireLibrary/utils/properties/environmentSpecificResolver';
|
2018-03-14 14:28:45 +01:00
|
|
|
|
2019-04-24 14:02:11 +02:00
|
|
|
import {CommunitiesService} from './openaireLibrary/connect/communities/communities.service';
|
2019-03-19 11:25:25 +01:00
|
|
|
import {LayoutService} from "./openaireLibrary/services/layout.service";
|
2019-04-12 13:05:28 +02:00
|
|
|
import {SubscribeModule} from './utils/subscribe/subscribe.module';
|
2019-07-22 16:18:54 +02:00
|
|
|
import {CustomizationModule} from "./utils/customization/customization.module";
|
2019-09-30 13:43:24 +02:00
|
|
|
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
|
2020-04-24 18:38:35 +02:00
|
|
|
import {InviteBasicModule} from "./utils/subscribe/invite/inviteBasic.module";
|
2020-04-28 13:07:36 +02:00
|
|
|
import {SubscribeService} from "./openaireLibrary/utils/subscribe/subscribe.service";
|
2020-05-18 14:47:02 +02:00
|
|
|
import {PageURLResolverModule} from "./openaireLibrary/utils/pageURLResolver.module";
|
2020-08-10 17:32:33 +02:00
|
|
|
import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
|
2020-11-12 16:59:26 +01:00
|
|
|
import {DEFAULT_TIMEOUT, TimeoutInterceptor} from "./openaireLibrary/timeout-interceptor.service";
|
2020-11-16 14:48:25 +01:00
|
|
|
import {ErrorInterceptorService} from "./openaireLibrary/error-interceptor.service";
|
2018-03-01 12:55:49 +01:00
|
|
|
|
2018-01-26 16:00:07 +01:00
|
|
|
@NgModule({
|
|
|
|
|
|
|
|
imports: [
|
|
|
|
SharedModule,
|
|
|
|
CommonModule,
|
2019-06-03 16:41:57 +02:00
|
|
|
HttpClientModule,
|
2018-03-14 14:28:45 +01:00
|
|
|
ErrorModule,
|
2018-11-09 16:46:15 +01:00
|
|
|
FormsModule,
|
2019-04-24 14:02:11 +02:00
|
|
|
NavigationBarModule,
|
2019-04-11 16:32:07 +02:00
|
|
|
BottomModule,
|
2018-01-26 16:00:07 +01:00
|
|
|
CookieLawModule,
|
2019-07-22 16:18:54 +02:00
|
|
|
CustomizationModule,
|
2020-04-24 18:38:35 +02:00
|
|
|
SubscribeModule.forRoot(), InviteBasicModule,
|
2018-01-26 16:00:07 +01:00
|
|
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
2019-09-30 13:43:24 +02:00
|
|
|
AppRoutingModule,
|
2020-05-05 12:40:15 +02:00
|
|
|
BrowserTransferStateModule,
|
2020-05-18 14:47:02 +02:00
|
|
|
BrowserAnimationsModule,
|
2020-08-10 17:32:33 +02:00
|
|
|
PageURLResolverModule, Schema2jsonldModule
|
2018-01-26 16:00:07 +01:00
|
|
|
],
|
2020-06-03 11:50:08 +02:00
|
|
|
declarations: [ AppComponent, OpenaireErrorPageComponent],
|
2018-01-26 16:00:07 +01:00
|
|
|
exports: [ AppComponent ],
|
2019-09-30 13:43:24 +02:00
|
|
|
providers:[
|
2020-04-28 13:07:36 +02:00
|
|
|
EnvironmentSpecificResolver, CommunitiesService, LayoutService, SubscribeService,
|
2019-09-30 13:43:24 +02:00
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: HttpInterceptorService,
|
|
|
|
multi: true
|
2020-11-12 16:59:26 +01:00
|
|
|
},
|
2020-11-16 14:48:25 +01:00
|
|
|
{
|
|
|
|
provide: HTTP_INTERCEPTORS,
|
|
|
|
useClass: ErrorInterceptorService,
|
|
|
|
multi: true
|
|
|
|
},
|
2020-11-12 16:59:26 +01:00
|
|
|
[{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }],
|
|
|
|
[{ provide: DEFAULT_TIMEOUT, useValue: 30000 }]
|
2019-09-30 13:43:24 +02:00
|
|
|
],
|
2018-03-14 14:28:45 +01:00
|
|
|
bootstrap: [AppComponent]
|
2018-01-26 16:00:07 +01:00
|
|
|
})
|
2020-11-12 16:59:26 +01:00
|
|
|
|
2018-01-26 16:00:07 +01:00
|
|
|
export class AppModule {}
|