1
|
import { NgModule } from '@angular/core';
|
2
|
import { FormsModule } from '@angular/forms';
|
3
|
import { SharedModule } from './shared/shared.module';
|
4
|
import { BrowserModule } from '@angular/platform-browser';
|
5
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
6
|
import { APP_BASE_HREF, CommonModule } from '@angular/common';
|
7
|
import { HttpModule } from '@angular/http';
|
8
|
import { RouterModule } from '@angular/router';
|
9
|
import { AppComponent } from './app.component';
|
10
|
|
11
|
import {NavigationBarModule, FeedbackModule, BottomModule, CookieLawModule, ErrorModule} from 'ng-openaire-library';
|
12
|
|
13
|
import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
14
|
|
15
|
import { CommunityService } from './community/community.service';
|
16
|
|
17
|
@NgModule({
|
18
|
|
19
|
imports: [
|
20
|
SharedModule,
|
21
|
NoopAnimationsModule,
|
22
|
CommonModule,
|
23
|
HttpModule,
|
24
|
ErrorModule,
|
25
|
NavigationBarModule, FeedbackModule, BottomModule,
|
26
|
CookieLawModule,
|
27
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
28
|
RouterModule.forRoot([
|
29
|
{ path: '', loadChildren: './home/home.module#HomeModule'},
|
30
|
{ path: 'home', loadChildren: './home/home.module#HomeModule'},
|
31
|
{ path: 'community', loadChildren: './community/community.module#CommunityModule'},
|
32
|
{ path: 'communities', loadChildren: './communities/communities.module#CommunitiesModule'},
|
33
|
{ path: 'search/publication', loadChildren: './landingPages/publication/libPublication.module#LibPublicationModule' },
|
34
|
{ path: 'search/dataset', loadChildren: './landingPages/dataset/libDataset.module#LibDatasetModule' },
|
35
|
{ path: 'search/software', loadChildren: './landingPages/software/libSoftware.module#LibSoftwareModule' },
|
36
|
{ path: 'search/project', loadChildren: './landingPages/project/libProject.module#LibProjectModule' },
|
37
|
{ path: 'search/dataprovider', loadChildren: '././landingPages/dataProvider/libDataProvider.module#LibDataProviderModule' },
|
38
|
{ path: 'search/organization', loadChildren: './landingPages/organization/libOrganization.module#LibOrganizationModule' },
|
39
|
{ path: 'participate/deposit-datasets', loadChildren: './deposit/datasets/depositDatasets.module#LibDepositDatasetsModule' },
|
40
|
{ path: 'participate/deposit-datasets-result', loadChildren: './deposit/datasets/depositDatasetsResults.module#LibDepositDatasetsResultsModule' },
|
41
|
{ path: 'participate/deposit-subject-result', loadChildren: './deposit/datasets/depositBySubjectResults.module#LibDepositBySubjectResultsModule' },
|
42
|
{ path: 'participate/deposit-publications', loadChildren: './deposit/publications/depositPublications.module#LibDepositPublicationsModule' },
|
43
|
{ path: 'participate/deposit-publications-result', loadChildren: './deposit/publications/depositPublicationsResults.module#LibDepositPublicationsResultsModule' },
|
44
|
{ path: 'search/find', loadChildren: './searchPages/find/libSearch.module#LibMainSearchModule' },
|
45
|
{ path: 'search/find/publications', loadChildren: './searchPages/simple/searchPublications.module#LibSearchPublicationsModule' },
|
46
|
{ path: 'search/find/datasets', loadChildren: './searchPages/simple/searchDatasets.module#LibSearchDatasetsModule' },
|
47
|
{ path: 'search/find/software', loadChildren: './searchPages/simple/searchSoftware.module#LibSearchSoftwareModule' },
|
48
|
{ path: 'search/find/projects', loadChildren: './searchPages/simple/searchProjects.module#LibSearchProjectsModule' },
|
49
|
{ path: 'search/find/dataproviders', loadChildren: './searchPages/simple/searchDataProviders.module#LibSearchDataProvidersModule' },
|
50
|
{ path: 'search/find/organizations', loadChildren: './searchPages/simple/searchOrganizations.module#LibSearchOrganizationsModule' },
|
51
|
{ path: 'search/content-providers', loadChildren: './searchPages/dataProviders/compatibleDataProviders.module#LibCompatibleDataProvidersModule' },
|
52
|
{ path: 'search/content-providers-table', loadChildren: './searchPages/dataProviders/compatibleDataProvidersTable.module#CompatibleDataProvidersTableModule' },
|
53
|
{ path: 'search/entity-registries', loadChildren: './searchPages/dataProviders/entityRegistries.module#LibEntityRegistriesModule' },
|
54
|
{ path: 'search/entity-registries-table', loadChildren: './searchPages/dataProviders/entityRegistriesTable.module#EntityRegistriesTableModule' },
|
55
|
{ path: 'search/journals', loadChildren: './searchPages/dataProviders/journals.module#LibJournalsModule' },
|
56
|
{ path: 'search/journals-table', loadChildren: './searchPages/dataProviders/journalsTable.module#JournalsTableModule' },
|
57
|
{ path: 'search/advanced/publications', loadChildren: './searchPages/advanced/advancedSearchPublications.module#LibAdvancedSearchPublicationsModule' },
|
58
|
{ path: 'search/advanced/datasets', loadChildren: './searchPages/advanced/advancedSearchDatasets.module#LibAdvancedSearchDatasetsModule' },
|
59
|
{ path: 'search/advanced/software', loadChildren: './searchPages/advanced/advancedSearchSoftware.module#LibAdvancedSearchSoftwareModule' },
|
60
|
{ path: 'search/advanced/organizations', loadChildren: './searchPages/advanced/advancedSearchOrganizations.module#LibAdvancedSearchOrganizationsModule' },
|
61
|
{ path: 'search/advanced/dataproviders', loadChildren: './searchPages/advanced/advancedSearchDataProviders.module#LibAdvancedSearchDataProvidersModule' },
|
62
|
{ path: 'search/advanced/projects', loadChildren: './searchPages/advanced/advancedSearchProjects.module#LibAdvancedSearchProjectsModule' },
|
63
|
{ path: 'project-report', loadChildren: './landingPages/htmlProjectReport/libHtmlProjectReport.module#LibHtmlProjectReportModule' },
|
64
|
{ path: 'myclaims', loadChildren: './claims/myClaims/myClaims.module#LibMyClaimsModule' },
|
65
|
{ path: 'claims', loadChildren: './claims/claimsAdmin/claimsAdmin.module#LibClaimsAdminModule' },
|
66
|
{ path: 'participate/claim', loadChildren: './claims/linking/linkingGeneric.module#LibLinkingGenericModule' },
|
67
|
{ path: 'participate/direct-claim', loadChildren: './claims/directLinking/directLinking.module#LibDirectLinkingModule' },
|
68
|
{ path: 'claims-project-manager', loadChildren: './claims/claimsByToken/claimsByToken.module#LibClaimsByTokenModule' },
|
69
|
{ path: 'reload', loadChildren: './reload/libReload.module#LibReloadModule' },
|
70
|
{ path: 'user-info', loadChildren: './login/libUser.module#LibUserModule' },
|
71
|
{ path: 'error', component: OpenaireErrorPageComponent },
|
72
|
{ path: '**',pathMatch: 'full',component: OpenaireErrorPageComponent }
|
73
|
]),
|
74
|
],
|
75
|
declarations: [ AppComponent, OpenaireErrorPageComponent],
|
76
|
exports: [ AppComponent ],
|
77
|
providers:[ CommunityService ],
|
78
|
bootstrap: [AppComponent]
|
79
|
})
|
80
|
//
|
81
|
export class AppModule {}
|