2023-08-04 12:40:26 +02:00
|
|
|
import {APP_ID, NgModule} from '@angular/core';
|
2019-04-24 14:02:11 +02:00
|
|
|
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";
|
2023-08-04 12:40:26 +02:00
|
|
|
import {BrowserModule} 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';
|
|
|
|
import {CommunitiesService} from './openaireLibrary/connect/communities/communities.service';
|
2019-04-12 13:05:28 +02:00
|
|
|
import {SubscribeModule} from './utils/subscribe/subscribe.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-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";
|
2020-12-02 18:41:53 +01:00
|
|
|
import {IsCommunity} from "./openaireLibrary/connect/communityGuard/isCommunity.guard";
|
2021-02-19 18:52:12 +01:00
|
|
|
import {SubscribeService} from "./openaireLibrary/utils/subscribe/subscribe.service";
|
|
|
|
import {RoleVerificationModule} from "./openaireLibrary/role-verification/role-verification.module";
|
2022-05-31 22:18:58 +02:00
|
|
|
import {QuickContactModule} from "./openaireLibrary/sharedComponents/quick-contact/quick-contact.module";
|
2022-06-02 16:30:48 +02:00
|
|
|
import {AlertModalModule} from "./openaireLibrary/utils/modal/alertModal.module";
|
2022-08-08 12:14:51 +02:00
|
|
|
import {CustomizationService} from "./openaireLibrary/services/customization.service";
|
2018-03-01 12:55:49 +01:00
|
|
|
|
2018-01-26 16:00:07 +01:00
|
|
|
@NgModule({
|
2021-02-19 18:52:12 +01:00
|
|
|
|
2018-01-26 16:00:07 +01:00
|
|
|
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,
|
2020-04-24 18:38:35 +02:00
|
|
|
SubscribeModule.forRoot(), InviteBasicModule,
|
2023-08-04 12:40:26 +02:00
|
|
|
BrowserModule,
|
2019-09-30 13:43:24 +02:00
|
|
|
AppRoutingModule,
|
2020-05-18 14:47:02 +02:00
|
|
|
BrowserAnimationsModule,
|
2022-06-02 16:30:48 +02:00
|
|
|
PageURLResolverModule, Schema2jsonldModule, RoleVerificationModule, QuickContactModule, AlertModalModule
|
2018-01-26 16:00:07 +01:00
|
|
|
],
|
2021-04-01 16:25:15 +02:00
|
|
|
declarations: [AppComponent, OpenaireErrorPageComponent],
|
|
|
|
exports: [AppComponent],
|
|
|
|
providers: [
|
2022-08-08 12:14:51 +02:00
|
|
|
CommunitiesService, CustomizationService, IsCommunity, SubscribeService,
|
2023-08-04 12:40:26 +02:00
|
|
|
{provide: APP_ID, useValue: 'serverApp'},
|
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
|
|
|
|
},
|
2021-04-01 16:25:15 +02:00
|
|
|
[{provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true}],
|
2021-05-17 12:10:27 +02:00
|
|
|
[{provide: DEFAULT_TIMEOUT, useValue: 10000}]
|
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
|
|
|
|
2021-04-01 16:25:15 +02:00
|
|
|
export class AppModule {
|
|
|
|
}
|