80 lines
6.4 KiB
TypeScript
Executable File
80 lines
6.4 KiB
TypeScript
Executable File
import { NgModule } from '@angular/core';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { SharedModule } from './shared/shared.module';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { APP_BASE_HREF, CommonModule } from '@angular/common';
|
|
import { HttpModule } from '@angular/http';
|
|
import { RouterModule } from '@angular/router';
|
|
import { AppComponent } from './app.component';
|
|
|
|
import {NavigationBarModule, FeedbackModule, BottomModule, CookieLawModule, ErrorModule} from 'ng-openaire-library';
|
|
|
|
import { OpenaireErrorPageComponent } from './error/errorPage.component';
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
SharedModule,
|
|
NoopAnimationsModule,
|
|
CommonModule,
|
|
HttpModule,
|
|
ErrorModule,
|
|
NavigationBarModule, FeedbackModule, BottomModule,
|
|
CookieLawModule,
|
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
|
RouterModule.forRoot([
|
|
{ path: '', loadChildren: './home/home.module#HomeModule'},
|
|
{ path: 'home', loadChildren: './home/home.module#HomeModule'},
|
|
{ path: 'community', loadChildren: './community/community.module#CommunityModule'},
|
|
{ path: 'communities', loadChildren: './communities/communities.module#CommunitiesModule'},
|
|
{ path: 'search/publication', loadChildren: './landingPages/publication/libPublication.module#LibPublicationModule' },
|
|
{ path: 'search/dataset', loadChildren: './landingPages/dataset/libDataset.module#LibDatasetModule' },
|
|
{ path: 'search/software', loadChildren: './landingPages/software/libSoftware.module#LibSoftwareModule' },
|
|
{ path: 'search/project', loadChildren: './landingPages/project/libProject.module#LibProjectModule' },
|
|
{ path: 'search/dataprovider', loadChildren: '././landingPages/dataProvider/libDataProvider.module#LibDataProviderModule' },
|
|
{ path: 'search/organization', loadChildren: './landingPages/organization/libOrganization.module#LibOrganizationModule' },
|
|
{ path: 'participate/deposit-datasets', loadChildren: './deposit/datasets/depositDatasets.module#LibDepositDatasetsModule' },
|
|
{ path: 'participate/deposit-datasets-result', loadChildren: './deposit/datasets/depositDatasetsResults.module#LibDepositDatasetsResultsModule' },
|
|
{ path: 'participate/deposit-subject-result', loadChildren: './deposit/datasets/depositBySubjectResults.module#LibDepositBySubjectResultsModule' },
|
|
{ path: 'participate/deposit-publications', loadChildren: './deposit/publications/depositPublications.module#LibDepositPublicationsModule' },
|
|
{ path: 'participate/deposit-publications-result', loadChildren: './deposit/publications/depositPublicationsResults.module#LibDepositPublicationsResultsModule' },
|
|
{ path: 'search/find', loadChildren: './searchPages/find/libSearch.module#LibMainSearchModule' },
|
|
{ path: 'search/find/publications', loadChildren: './searchPages/simple/searchPublications.module#LibSearchPublicationsModule' },
|
|
{ path: 'search/find/datasets', loadChildren: './searchPages/simple/searchDatasets.module#LibSearchDatasetsModule' },
|
|
{ path: 'search/find/software', loadChildren: './searchPages/simple/searchSoftware.module#LibSearchSoftwareModule' },
|
|
{ path: 'search/find/projects', loadChildren: './searchPages/simple/searchProjects.module#LibSearchProjectsModule' },
|
|
{ path: 'search/find/dataproviders', loadChildren: './searchPages/simple/searchDataProviders.module#LibSearchDataProvidersModule' },
|
|
{ path: 'search/find/organizations', loadChildren: './searchPages/simple/searchOrganizations.module#LibSearchOrganizationsModule' },
|
|
{ path: 'search/content-providers', loadChildren: './searchPages/dataProviders/compatibleDataProviders.module#LibCompatibleDataProvidersModule' },
|
|
{ path: 'search/content-providers-table', loadChildren: './searchPages/dataProviders/compatibleDataProvidersTable.module#CompatibleDataProvidersTableModule' },
|
|
{ path: 'search/entity-registries', loadChildren: './searchPages/dataProviders/entityRegistries.module#LibEntityRegistriesModule' },
|
|
{ path: 'search/entity-registries-table', loadChildren: './searchPages/dataProviders/entityRegistriesTable.module#EntityRegistriesTableModule' },
|
|
{ path: 'search/journals', loadChildren: './searchPages/dataProviders/journals.module#LibJournalsModule' },
|
|
{ path: 'search/journals-table', loadChildren: './searchPages/dataProviders/journalsTable.module#JournalsTableModule' },
|
|
{ path: 'search/advanced/publications', loadChildren: './searchPages/advanced/advancedSearchPublications.module#LibAdvancedSearchPublicationsModule' },
|
|
{ path: 'search/advanced/datasets', loadChildren: './searchPages/advanced/advancedSearchDatasets.module#LibAdvancedSearchDatasetsModule' },
|
|
{ path: 'search/advanced/software', loadChildren: './searchPages/advanced/advancedSearchSoftware.module#LibAdvancedSearchSoftwareModule' },
|
|
{ path: 'search/advanced/organizations', loadChildren: './searchPages/advanced/advancedSearchOrganizations.module#LibAdvancedSearchOrganizationsModule' },
|
|
{ path: 'search/advanced/dataproviders', loadChildren: './searchPages/advanced/advancedSearchDataProviders.module#LibAdvancedSearchDataProvidersModule' },
|
|
{ path: 'search/advanced/projects', loadChildren: './searchPages/advanced/advancedSearchProjects.module#LibAdvancedSearchProjectsModule' },
|
|
{ path: 'project-report', loadChildren: './landingPages/htmlProjectReport/libHtmlProjectReport.module#LibHtmlProjectReportModule' },
|
|
{ path: 'myclaims', loadChildren: './claims/myClaims/myClaims.module#LibMyClaimsModule' },
|
|
{ path: 'claims', loadChildren: './claims/claimsAdmin/claimsAdmin.module#LibClaimsAdminModule' },
|
|
{ path: 'participate/claim', loadChildren: './claims/linking/linkingGeneric.module#LibLinkingGenericModule' },
|
|
{ path: 'participate/direct-claim', loadChildren: './claims/directLinking/directLinking.module#LibDirectLinkingModule' },
|
|
{ path: 'claims-project-manager', loadChildren: './claims/claimsByToken/claimsByToken.module#LibClaimsByTokenModule' },
|
|
{ path: 'reload', loadChildren: './reload/libReload.module#LibReloadModule' },
|
|
{ path: 'user-info', loadChildren: './login/libUser.module#LibUserModule' },
|
|
{ path: 'error', component: OpenaireErrorPageComponent },
|
|
{ path: '**',pathMatch: 'full',component: OpenaireErrorPageComponent }
|
|
]),
|
|
],
|
|
declarations: [ AppComponent, OpenaireErrorPageComponent],
|
|
exports: [ AppComponent ],
|
|
providers:[ ],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
//
|
|
export class AppModule {}
|