2017-12-19 13:53:46 +01:00
|
|
|
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';
|
2018-01-11 11:55:54 +01:00
|
|
|
import {NavigationBarModule} from './sharedComponents/navigationBar.module';
|
2017-12-19 13:53:46 +01:00
|
|
|
import { CookieLawModule } from './sharedComponents/cookie-law/cookie-law.module';
|
2018-02-12 14:38:30 +01:00
|
|
|
import {Meta} from './sharedComponents/metaService';
|
2017-12-19 13:53:46 +01:00
|
|
|
// import { ErrorModule } from './error/error.module';
|
|
|
|
import { ConfigurationService } from './utils/configuration/configuration.service';
|
|
|
|
import {MainSearchModule} from './searchPages/find/mainSearch.module';
|
|
|
|
import {PublicationModule} from './landingPages/publication/publication.module';
|
|
|
|
import {DatasetModule} from './landingPages/dataset/dataset.module';
|
|
|
|
import {SoftwareModule} from './landingPages/software/software.module';
|
|
|
|
import {DataProviderModule} from './landingPages/dataProvider/dataProvider.module';
|
|
|
|
import {ProjectModule} from './landingPages/project/project.module';
|
|
|
|
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 {DepositDatasetsResultsModule} from './deposit/datasets/depositDatasetsResults.module';
|
|
|
|
import {DepositBySubjectResultsModule} from './deposit/datasets/depositBySubjectResults.module';
|
|
|
|
import {DepositPublicationsModule} from './deposit/publications/depositPublications.module';
|
|
|
|
import {DepositPublicationsResultsModule} from './deposit/publications/depositPublicationsResults.module';
|
|
|
|
|
|
|
|
import {SearchPublicationsModule} from './searchPages/simple/searchPublications.module';
|
|
|
|
import {SearchDatasetsModule} from './searchPages/simple/searchDatasets.module';
|
|
|
|
import {SearchSoftwareModule} from './searchPages/simple/searchSoftware.module';
|
|
|
|
import {SearchDataProvidersModule} from './searchPages/simple/searchDataProviders.module';
|
|
|
|
import {SearchProjectsModule} from './searchPages/simple/searchProjects.module';
|
|
|
|
import {SearchOrganizationsModule} from './searchPages/simple/searchOrganizations.module';
|
|
|
|
|
|
|
|
import {AdvancedSearchPublicationsModule} from './searchPages/advanced/advancedSearchPublications.module';
|
|
|
|
import {AdvancedSearchDatasetsModule} from './searchPages/advanced/advancedSearchDatasets.module';
|
|
|
|
import {AdvancedSearchSoftwareModule} from './searchPages/advanced/advancedSearchSoftware.module';
|
|
|
|
import {AdvancedSearchDataProvidersModule} from './searchPages/advanced/advancedSearchDataProviders.module';
|
|
|
|
import {AdvancedSearchProjectsModule} from './searchPages/advanced/advancedSearchProjects.module';
|
|
|
|
import {AdvancedSearchOrganizationsModule} from './searchPages/advanced/advancedSearchOrganizations.module';
|
|
|
|
|
|
|
|
import {EntityRegistriesModule} from './searchPages/dataProviders/entityRegistries.module';
|
2018-01-03 14:12:31 +01:00
|
|
|
import {EntityRegistriesTableModule} from './searchPages/dataProviders/entityRegistriesTable.module';
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2018-01-11 11:55:54 +01:00
|
|
|
import {JournalsTableModule} from './searchPages/dataProviders/journalsTable.module';
|
|
|
|
import {JournalsModule} from './searchPages/dataProviders/journals.module';
|
|
|
|
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
import {CompatibleDataProvidersModule} from './searchPages/dataProviders/compatibleDataProviders.module';
|
2018-01-11 11:55:54 +01:00
|
|
|
import {CompatibleDataProvidersTableModule} from './searchPages/dataProviders/compatibleDataProvidersTable.module';
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2018-01-03 14:12:31 +01:00
|
|
|
import {ClaimsAdminModule} from './claims/claimsAdmin/claimsAdmin.module';
|
|
|
|
import {MyClaimsModule} from './claims/myClaims/myClaims.module';
|
|
|
|
import {ClaimsByTokenModule} from './claims/claimsByToken/claimsByToken.module';
|
|
|
|
import {DirectLinkingModule} from './claims/directLinking/directLinking.module';
|
|
|
|
import {LinkingGenericModule} from './claims/linking/linkingGeneric.module';
|
|
|
|
|
2018-02-05 14:14:59 +01:00
|
|
|
import{ HtmlProjectReportModule} from './landingPages/htmlProjectReport/htmlProjectReport.module';
|
|
|
|
import {IsRouteEnabled} from './error/isRouteEnabled.guard';
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
2017-12-19 13:53:46 +01:00
|
|
|
@NgModule({
|
|
|
|
|
|
|
|
imports: [
|
|
|
|
SharedModule,
|
|
|
|
NoopAnimationsModule,
|
|
|
|
CommonModule,
|
|
|
|
HttpModule,
|
2018-01-11 11:55:54 +01:00
|
|
|
NavigationBarModule,
|
2017-12-19 13:53:46 +01:00
|
|
|
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,
|
2018-01-11 11:55:54 +01:00
|
|
|
EntityRegistriesModule, CompatibleDataProvidersModule, JournalsModule,
|
|
|
|
JournalsTableModule, EntityRegistriesTableModule, CompatibleDataProvidersTableModule,
|
2018-01-03 14:12:31 +01:00
|
|
|
ClaimsAdminModule, MyClaimsModule, ClaimsByTokenModule, LinkingGenericModule, DirectLinkingModule,
|
2018-02-05 14:14:59 +01:00
|
|
|
HtmlProjectReportModule,
|
2017-12-19 13:53:46 +01:00
|
|
|
BrowserModule.withServerTransition({appId: 'my-app'}),
|
2018-02-05 14:14:59 +01:00
|
|
|
AppRoutingModule
|
2017-12-19 13:53:46 +01:00
|
|
|
],
|
|
|
|
declarations: [ AppComponent ],
|
|
|
|
exports: [ AppComponent ],
|
|
|
|
providers:[ Meta, ConfigurationService],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
|
|
|
export class AppModule {}
|
2018-02-05 14:14:59 +01:00
|
|
|
/*
|
|
|
|
|
|
|
|
, canActivate: [ IsRouteEnabled], data: {
|
|
|
|
redirect: '/error'
|
|
|
|
}
|
|
|
|
*/
|