1
|
import {NgModule} from '@angular/core';
|
2
|
import {HttpClientModule} from '@angular/common/http';
|
3
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
4
|
import {RouterModule} from '@angular/router';
|
5
|
import {ManageProjectsComponent} from './manage-projects.component';
|
6
|
import {ManageCommunityProjectsService} from '../../services/manageProjects.service';
|
7
|
import {SearchProjectsServiceModule} from '../../openaireLibrary/connect/projects/searchProjectsService.module';
|
8
|
|
9
|
import {RemoveProjectsComponent} from './remove-projects.component';
|
10
|
import {AddProjectsComponent} from './add-projects.component';
|
11
|
import {SearchProjectsService} from '../../openaireLibrary/services/searchProjects.service';
|
12
|
import {PagingModule} from '../../openaireLibrary/utils/paging.module';
|
13
|
import {SearchPagingModule} from '../../openaireLibrary/searchPages/searchUtils/searchPaging.module';
|
14
|
import {AlertModalModule} from '../../openaireLibrary/utils/modal/alertModal.module';
|
15
|
import {CommonModule} from '@angular/common';
|
16
|
import {PageContentModule} from "../../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module";
|
17
|
import {CommunityInfoModule} from "../community-info/community-info.module";
|
18
|
import {InputModule} from "../../openaireLibrary/sharedComponents/input/input.module";
|
19
|
import {SearchInputModule} from "../../openaireLibrary/sharedComponents/search-input/search-input.module";
|
20
|
import {NoLoadPaging} from "../../openaireLibrary/searchPages/searchUtils/no-load-paging.module";
|
21
|
import {LoadingModule} from "../../openaireLibrary/utils/loading/loading.module";
|
22
|
import {IconsModule} from "../../openaireLibrary/utils/icons/icons.module";
|
23
|
import {IconsService} from "../../openaireLibrary/utils/icons/icons.service";
|
24
|
import {add, arrow_left, close, remove_circle_outline} from "../../openaireLibrary/utils/icons/icons";
|
25
|
import {FullScreenModalModule} from "../../openaireLibrary/utils/modal/full-screen-modal/full-screen-modal.module";
|
26
|
import {ResultPreviewModule} from "../../openaireLibrary/utils/result-preview/result-preview.module";
|
27
|
import {ErrorMessagesModule} from "../../openaireLibrary/utils/errorMessages.module";
|
28
|
|
29
|
@NgModule({
|
30
|
imports: [
|
31
|
CommonModule,
|
32
|
HttpClientModule,
|
33
|
FormsModule,
|
34
|
ReactiveFormsModule,
|
35
|
RouterModule,
|
36
|
PagingModule, SearchPagingModule,
|
37
|
ErrorMessagesModule,
|
38
|
AlertModalModule,
|
39
|
SearchProjectsServiceModule,
|
40
|
PageContentModule,
|
41
|
CommunityInfoModule,
|
42
|
InputModule,
|
43
|
SearchInputModule,
|
44
|
RouterModule.forChild([
|
45
|
{
|
46
|
path: '', component: ManageProjectsComponent
|
47
|
}
|
48
|
]),
|
49
|
NoLoadPaging, LoadingModule, IconsModule, FullScreenModalModule, ResultPreviewModule
|
50
|
],
|
51
|
declarations: [
|
52
|
ManageProjectsComponent,
|
53
|
RemoveProjectsComponent,
|
54
|
AddProjectsComponent
|
55
|
],
|
56
|
providers: [
|
57
|
ManageCommunityProjectsService,
|
58
|
SearchProjectsService
|
59
|
],
|
60
|
exports: [ManageProjectsComponent]
|
61
|
})
|
62
|
export class CommunityProjectsModule {
|
63
|
constructor(private iconsService: IconsService) {
|
64
|
this.iconsService.registerIcons([remove_circle_outline, add, close, arrow_left]);
|
65
|
}
|
66
|
}
|