openaire-library/app.module.ts

161 lines
11 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 {SharedComponentsModule} from './sharedComponents/sharedComponents.module'; //navbar
import { CookieLawModule } from './sharedComponents/cookie-law/cookie-law.module';
import {Meta} from '../angular2-meta';
// import { ErrorModule } from './error/error.module';
import { ConfigurationService } from './utils/configuration/configuration.service';
import { ErrorPageComponent } from './error/errorPage.component';
import {SearchComponent} from './searchPages/find/search.component';
import {MainSearchModule} from './searchPages/find/mainSearch.module';
import {PublicationComponent} from './landingPages/publication/publication.component';
import {PublicationModule} from './landingPages/publication/publication.module';
import {DatasetComponent} from './landingPages/dataset/dataset.component';
import {DatasetModule} from './landingPages/dataset/dataset.module';
import {SoftwareComponent} from './landingPages/software/software.component';
import {SoftwareModule} from './landingPages/software/software.module';
import {DataProviderComponent} from './landingPages/dataProvider/dataProvider.component';
import {DataProviderModule} from './landingPages/dataProvider/dataProvider.module';
import {ProjectComponent} from './landingPages/project/project.component';
import {ProjectModule} from './landingPages/project/project.module';
import {OrganizationComponent} from './landingPages/organization/organization.component';
import {OrganizationModule} from './landingPages/organization/organization.module';
import {ReloadModule} from './reload/reload.module';
import {ErrorModule} from './error/error.module';
import {DepositDatasetsModule} from './deposit/datasets/depositDatasets.module';
import {DepositDatasetsComponent} from './deposit/datasets/depositDatasets.component';
import {DepositDatasetsResultsModule} from './deposit/datasets/depositDatasetsResults.module';
import {DepositDatasetsResultComponent} from './deposit/datasets/depositDatasetsResult.component';
import {DepositBySubjectResultsModule} from './deposit/datasets/depositBySubjectResults.module';
import {DepositBySubjectResultComponent} from './deposit/datasets/depositBySubjectResult.component';
import {DepositPublicationsModule} from './deposit/publications/depositPublications.module';
import {DepositPublicationsComponent} from './deposit/publications/depositPublications.component';
import {DepositPublicationsResultsModule} from './deposit/publications/depositPublicationsResults.module';
import {DepositPublicationsResultComponent} from './deposit/publications/depositPublicationsResult.component';
import {SearchPublicationsModule} from './searchPages/simple/searchPublications.module';
import {SearchPublicationsComponent} from './searchPages/simple/searchPublications.component';
import {SearchDatasetsModule} from './searchPages/simple/searchDatasets.module';
import {SearchDatasetsComponent} from './searchPages/simple/searchDatasets.component';
import {SearchSoftwareModule} from './searchPages/simple/searchSoftware.module';
import {SearchSoftwareComponent} from './searchPages/simple/searchSoftware.component';
import {SearchDataProvidersModule} from './searchPages/simple/searchDataProviders.module';
import {SearchDataprovidersComponent} from './searchPages/simple/searchDataproviders.component';
import {SearchProjectsModule} from './searchPages/simple/searchProjects.module';
import {SearchProjectsComponent} from './searchPages/simple/searchProjects.component';
import {SearchOrganizationsModule} from './searchPages/simple/searchOrganizations.module';
import {SearchOrganizationsComponent} from './searchPages/simple/searchOrganizations.component';
import {AdvancedSearchPublicationsModule} from './searchPages/advanced/advancedSearchPublications.module';
import {AdvancedSearchPublicationsComponent} from './searchPages/advanced/advancedSearchPublications.component';
import {AdvancedSearchDatasetsModule} from './searchPages/advanced/advancedSearchDatasets.module';
import {AdvancedSearchDatasetsComponent} from './searchPages/advanced/advancedSearchDatasets.component';
import {AdvancedSearchSoftwareModule} from './searchPages/advanced/advancedSearchSoftware.module';
import {AdvancedSearchSoftwareComponent} from './searchPages/advanced/advancedSearchSoftware.component';
import {AdvancedSearchDataProvidersModule} from './searchPages/advanced/advancedSearchDataProviders.module';
import {AdvancedSearchDataProvidersComponent} from './searchPages/advanced/advancedSearchDataProviders.component';
import {AdvancedSearchProjectsModule} from './searchPages/advanced/advancedSearchProjects.module';
import {AdvancedSearchProjectsComponent} from './searchPages/advanced/advancedSearchProjects.component';
import {AdvancedSearchOrganizationsModule} from './searchPages/advanced/advancedSearchOrganizations.module';
import {AdvancedSearchOrganizationsComponent} from './searchPages/advanced/advancedSearchOrganizations.component';
import {EntityRegistriesModule} from './searchPages/dataProviders/entityRegistries.module';
import {SearchEntityRegistriesComponent} from './searchPages/dataProviders/entityRegistries.component';
import {EntityRegistriesTableModule} from './searchPages/dataProviders/entityRegistriesTable.module';
import {SearchEntityRegistriesTableComponent} from './searchPages/dataProviders/entityRegistriesTable.component';
import {CompatibleDataProvidersModule} from './searchPages/dataProviders/compatibleDataProviders.module';
import {SearchCompatibleDataprovidersComponent} from './searchPages/dataProviders/compatibleDataProviders.component';
import {ClaimsAdminModule} from './claims/claimsAdmin/claimsAdmin.module';
import {ClaimsAdminComponent} from './claims/claimsAdmin/claimsAdmin.component';
import {MyClaimsModule} from './claims/myClaims/myClaims.module';
import {MyClaimsComponent} from './claims/myClaims/myClaims.component';
import {ClaimsByTokenModule} from './claims/claimsByToken/claimsByToken.module';
import {ClaimsByTokenComponent} from './claims/claimsByToken/claimsByToken.component';
import {DirectLinkingModule} from './claims/directLinking/directLinking.module';
import {DirectLinkingComponent} from './claims/directLinking/directLinking.component';
import {LinkingGenericModule} from './claims/linking/linkingGeneric.module';
import {LinkingGenericComponent} from './claims/linking/linkingGeneric.component';
@NgModule({
imports: [
SharedModule,
NoopAnimationsModule,
CommonModule,
HttpModule,
SharedComponentsModule,
CookieLawModule,
MainSearchModule,
ErrorModule,
DepositDatasetsModule,DepositDatasetsResultsModule, DepositBySubjectResultsModule,DepositPublicationsModule , DepositPublicationsResultsModule,
SearchPublicationsModule,SearchDatasetsModule, SearchSoftwareModule, SearchDataProvidersModule, SearchProjectsModule, SearchOrganizationsModule,
AdvancedSearchPublicationsModule,AdvancedSearchDatasetsModule, AdvancedSearchSoftwareModule, AdvancedSearchDataProvidersModule, AdvancedSearchProjectsModule, AdvancedSearchOrganizationsModule,
PublicationModule, DatasetModule, DataProviderModule, OrganizationModule, ProjectModule, SoftwareModule,
EntityRegistriesModule, EntityRegistriesTableModule, CompatibleDataProvidersModule,
ClaimsAdminModule, MyClaimsModule, ClaimsByTokenModule, LinkingGenericModule, DirectLinkingModule,
BrowserModule.withServerTransition({appId: 'my-app'}),
RouterModule.forRoot([
{ path: '', component: SearchComponent},
{ path: 'home', component: SearchComponent},
{ path: 'search/publication', component: PublicationComponent },
{ path: 'search/dataset', component: DatasetComponent},
{ path: 'search/software', component: SoftwareComponent},
{ path: 'search/project', component: ProjectComponent },
{ path: 'search/dataprovider', component: DataProviderComponent },
{ path: 'search/organization', component: OrganizationComponent },
{ path: 'participate/deposit-datasets', component: DepositDatasetsComponent },
{ path: 'participate/deposit-datasets-result', component: DepositDatasetsResultComponent},
{ path: 'participate/deposit-subject-result', component: DepositBySubjectResultComponent },
{ path: 'participate/deposit-publications', component: DepositPublicationsComponent },
{ path: 'participate/deposit-publications-result', component: DepositPublicationsResultComponent},
{ path: 'search/find', component: SearchComponent},
{ path: 'search/find/publications', component: SearchPublicationsComponent },
{ path: 'search/find/datasets', component:SearchDatasetsComponent},
{ path: 'search/find/software', component:SearchSoftwareComponent},
{ path: 'search/find/projects', component:SearchProjectsComponent},
{ path: 'search/find/dataproviders', component:SearchDataprovidersComponent },
{ path: 'search/find/organizations', component:SearchOrganizationsComponent },
{ path: 'search/content-providers', component: SearchCompatibleDataprovidersComponent},
{ path: 'search/content-providers-table', loadChildren: './searchPages/dataProviders/compatibleDataProvidersTable.module#CompatibleDataProvidersTableModule' },
{ path: 'search/entity-registries',component: SearchEntityRegistriesComponent},
{ path: 'search/entity-registries-table', component: SearchEntityRegistriesTableComponent},
{ path: 'search/journals', loadChildren: './searchPages/dataProviders/journals.module#JournalsModule' },
{ path: 'search/journals-table', loadChildren: './searchPages/dataProviders/journalsTable.module#JournalsTableModule' },
{ path: 'search/advanced/publications', component: AdvancedSearchPublicationsComponent },
{ path: 'search/advanced/datasets', component: AdvancedSearchPublicationsComponent },
{ path: 'search/advanced/software', component: AdvancedSearchPublicationsComponent },
{ path: 'search/advanced/organizations',component: AdvancedSearchPublicationsComponent },
{ path: 'search/advanced/dataproviders', component: AdvancedSearchPublicationsComponent },
{ path: 'search/advanced/projects', component: AdvancedSearchPublicationsComponent },
{ path: 'project-report', loadChildren: './landingPages/htmlProjectReport/htmlProjectReport.module#HtmlProjectReportModule' },
{ path: 'myclaims',component: MyClaimsComponent },
{ path: 'claims', component: ClaimsAdminComponent },
{ path: 'participate/claim', component: LinkingGenericComponent},
{ path: 'participate/direct-claim',component: DirectLinkingComponent},
{ path: 'claims-project-manager', component: ClaimsByTokenComponent },
{ path: 'reload', loadChildren: './reload/reload.module#ReloadModule' },
{ path: 'user-info', loadChildren: './login/user.module#UserModule' },
{ path: 'error', component: ErrorPageComponent },
{ path: '**',pathMatch: 'full',component: ErrorPageComponent }
]),
],
declarations: [ AppComponent ],
exports: [ AppComponent ],
providers:[ Meta, ConfigurationService],
bootstrap: [AppComponent]
})
export class AppModule {}