67 lines
3.0 KiB
TypeScript
67 lines
3.0 KiB
TypeScript
|
import {NgModule} from '@angular/core';
|
||
|
import {HttpClientModule} from '@angular/common/http';
|
||
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||
|
import {RouterModule} from '@angular/router';
|
||
|
import {ManageProjectsComponent} from './manage-projects.component';
|
||
|
import {ManageCommunityProjectsService} from '../../services/manageProjects.service';
|
||
|
import {SearchProjectsServiceModule} from '../../openaireLibrary/connect/projects/searchProjectsService.module';
|
||
|
|
||
|
import {RemoveProjectsComponent} from './remove-projects.component';
|
||
|
import {AddProjectsComponent} from './add-projects.component';
|
||
|
import {SearchProjectsService} from '../../openaireLibrary/services/searchProjects.service';
|
||
|
import {PagingModule} from '../../openaireLibrary/utils/paging.module';
|
||
|
import {SearchPagingModule} from '../../openaireLibrary/searchPages/searchUtils/searchPaging.module';
|
||
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
||
|
import {CommonModule} from '@angular/common';
|
||
|
import {PageContentModule} from "../../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module";
|
||
|
import {CommunityInfoModule} from "../community-info/community-info.module";
|
||
|
import {InputModule} from "../../openaireLibrary/sharedComponents/input/input.module";
|
||
|
import {SearchInputModule} from "../../openaireLibrary/sharedComponents/search-input/search-input.module";
|
||
|
import {NoLoadPaging} from "../../openaireLibrary/searchPages/searchUtils/no-load-paging.module";
|
||
|
import {LoadingModule} from "../../openaireLibrary/utils/loading/loading.module";
|
||
|
import {IconsModule} from "../../openaireLibrary/utils/icons/icons.module";
|
||
|
import {IconsService} from "../../openaireLibrary/utils/icons/icons.service";
|
||
|
import {add, arrow_left, close, remove_circle_outline} from "../../openaireLibrary/utils/icons/icons";
|
||
|
import {FullScreenModalModule} from "../../openaireLibrary/utils/modal/full-screen-modal/full-screen-modal.module";
|
||
|
import {ResultPreviewModule} from "../../openaireLibrary/utils/result-preview/result-preview.module";
|
||
|
import {ErrorMessagesModule} from "../../openaireLibrary/utils/errorMessages.module";
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [
|
||
|
CommonModule,
|
||
|
HttpClientModule,
|
||
|
FormsModule,
|
||
|
ReactiveFormsModule,
|
||
|
RouterModule,
|
||
|
PagingModule, SearchPagingModule,
|
||
|
ErrorMessagesModule,
|
||
|
AlertModalModule,
|
||
|
SearchProjectsServiceModule,
|
||
|
PageContentModule,
|
||
|
CommunityInfoModule,
|
||
|
InputModule,
|
||
|
SearchInputModule,
|
||
|
RouterModule.forChild([
|
||
|
{
|
||
|
path: '', component: ManageProjectsComponent
|
||
|
}
|
||
|
]),
|
||
|
NoLoadPaging, LoadingModule, IconsModule, FullScreenModalModule, ResultPreviewModule
|
||
|
],
|
||
|
declarations: [
|
||
|
ManageProjectsComponent,
|
||
|
RemoveProjectsComponent,
|
||
|
AddProjectsComponent
|
||
|
],
|
||
|
providers: [
|
||
|
ManageCommunityProjectsService,
|
||
|
SearchProjectsService
|
||
|
],
|
||
|
exports: [ManageProjectsComponent]
|
||
|
})
|
||
|
export class CommunityProjectsModule {
|
||
|
constructor(private iconsService: IconsService) {
|
||
|
this.iconsService.registerIcons([remove_circle_outline, add, close, arrow_left]);
|
||
|
}
|
||
|
}
|