mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
81 lines
2.8 KiB
TypeScript
81 lines
2.8 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { Action, StoreConfig, StoreModule } from '@ngrx/store';
|
|
import { EffectsModule } from '@ngrx/effects';
|
|
|
|
import { CoreModule } from '../core/core.module';
|
|
import { SharedModule } from '../shared/shared.module';
|
|
import { storeModuleConfig } from '../app.reducer';
|
|
import { QualityAssuranceTopicsComponent } from './qa/topics/quality-assurance-topics.component';
|
|
import { QualityAssuranceEventsComponent } from './qa/events/quality-assurance-events.component';
|
|
import { NotificationsStateService } from './notifications-state.service';
|
|
import { notificationsReducers, NotificationsState } from './notifications.reducer';
|
|
import { notificationsEffects } from './notifications.effects';
|
|
import { QualityAssuranceTopicsService } from './qa/topics/quality-assurance-topics.service';
|
|
import { QualityAssuranceTopicRestService } from '../core/notifications/qa/topics/quality-assurance-topic-rest.service';
|
|
import { QualityAssuranceEventRestService } from '../core/notifications/qa/events/quality-assurance-event-rest.service';
|
|
import { ProjectEntryImportModalComponent } from './qa/project-entry-import-modal/project-entry-import-modal.component';
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
import { SearchModule } from '../shared/search/search.module';
|
|
import { QualityAssuranceSourceComponent } from './qa/source/quality-assurance-source.component';
|
|
import { QualityAssuranceSourceService } from './qa/source/quality-assurance-source.service';
|
|
import { QualityAssuranceSourceRestService } from '../core/notifications/qa/source/quality-assurance-source-rest.service';
|
|
|
|
const MODULES = [
|
|
CommonModule,
|
|
SharedModule,
|
|
CoreModule.forRoot(),
|
|
StoreModule.forFeature('notifications', notificationsReducers, storeModuleConfig as StoreConfig<NotificationsState, Action>),
|
|
EffectsModule.forFeature(notificationsEffects),
|
|
TranslateModule
|
|
];
|
|
|
|
const COMPONENTS = [
|
|
QualityAssuranceTopicsComponent,
|
|
QualityAssuranceEventsComponent,
|
|
QualityAssuranceSourceComponent
|
|
];
|
|
|
|
const DIRECTIVES = [ ];
|
|
|
|
const ENTRY_COMPONENTS = [
|
|
ProjectEntryImportModalComponent
|
|
];
|
|
|
|
const PROVIDERS = [
|
|
NotificationsStateService,
|
|
QualityAssuranceTopicsService,
|
|
QualityAssuranceSourceService,
|
|
QualityAssuranceTopicRestService,
|
|
QualityAssuranceSourceRestService,
|
|
QualityAssuranceEventRestService
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
...MODULES,
|
|
SearchModule
|
|
],
|
|
declarations: [
|
|
...COMPONENTS,
|
|
...DIRECTIVES,
|
|
...ENTRY_COMPONENTS
|
|
],
|
|
providers: [
|
|
...PROVIDERS
|
|
],
|
|
entryComponents: [
|
|
...ENTRY_COMPONENTS
|
|
],
|
|
exports: [
|
|
...COMPONENTS,
|
|
...DIRECTIVES
|
|
]
|
|
})
|
|
|
|
/**
|
|
* This module handles all components that are necessary for the OpenAIRE components
|
|
*/
|
|
export class NotificationsModule {
|
|
}
|