[Trunk | Explore]: Remove IsRouteEnabled guard from landing and search pages (these pages should load even when not active - existing links from other pages).
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59070 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
bb64c1368d
commit
37f6c344e6
|
@ -4,13 +4,12 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireDataProviderComponent } from './dataProvider.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireDataProviderComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireDataProviderComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
},canDeactivate: [PreviousRouteRecorder] }
|
||||
])
|
||||
|
|
|
@ -7,12 +7,11 @@ import { OpenaireDataProviderComponent } from './dataProvider.component';
|
|||
import {DataProviderRoutingModule} from './dataProvider-routing.module';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
@NgModule({
|
||||
imports: [DataProviderModule, DataProviderRoutingModule],
|
||||
declarations:[OpenaireDataProviderComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenaireDataProviderComponent]
|
||||
})
|
||||
export class LibDataProviderModule { }
|
||||
|
|
|
@ -4,13 +4,12 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireDatasetComponent } from './dataset.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireDatasetComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireDatasetComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
},canDeactivate: [PreviousRouteRecorder] }
|
||||
])
|
||||
|
|
|
@ -7,13 +7,12 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireDatasetComponent } from './dataset.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import {DatasetRoutingModule} from './dataset-routing.module';
|
||||
import {ResultLandingModule} from "../../openaireLibrary/landingPages/result/resultLanding.module";
|
||||
@NgModule({
|
||||
imports: [DatasetRoutingModule, ResultLandingModule],
|
||||
declarations:[OpenaireDatasetComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenaireDatasetComponent]
|
||||
})
|
||||
export class LibDatasetModule { }
|
||||
|
|
|
@ -4,11 +4,10 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireHtmlProjectReportComponent } from './htmlProjectReport.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireHtmlProjectReportComponent , canActivate: [FreeGuard, IsRouteEnabled],canDeactivate: [PreviousRouteRecorder]}
|
||||
{ path: '', component: OpenaireHtmlProjectReportComponent , canActivate: [FreeGuard],canDeactivate: [PreviousRouteRecorder]}
|
||||
])
|
||||
]
|
||||
})
|
||||
|
|
|
@ -7,14 +7,13 @@ import { RouterModule } from '@angular/router';
|
|||
import { HtmlProjectReportModule } from '../../openaireLibrary/landingPages/htmlProjectReport/htmlProjectReport.module';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import { OpenaireHtmlProjectReportComponent } from './htmlProjectReport.component';
|
||||
import {HtmlProjectReportRoutingModule} from './htmlProjectReport-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [HtmlProjectReportModule, HtmlProjectReportRoutingModule],
|
||||
declarations:[OpenaireHtmlProjectReportComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenaireHtmlProjectReportComponent]
|
||||
})
|
||||
export class LibHtmlProjectReportModule { }
|
||||
|
|
|
@ -7,14 +7,13 @@ import { RouterModule } from '@angular/router';
|
|||
import { OrganizationModule } from '../../openaireLibrary/landingPages/organization/organization.module';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import { OpenaireOrganizationComponent } from './organization.component';
|
||||
import {OrganizationRoutingModule} from './organization-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [OrganizationModule, OrganizationRoutingModule],
|
||||
declarations:[OpenaireOrganizationComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenaireOrganizationComponent]
|
||||
})
|
||||
export class LibOrganizationModule { }
|
||||
|
|
|
@ -4,14 +4,13 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireOrganizationComponent } from './organization.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireOrganizationComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireOrganizationComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
},canDeactivate: [PreviousRouteRecorder] }
|
||||
])
|
||||
|
|
|
@ -7,13 +7,12 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireOrpComponent } from './orp.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import {OrpRoutingModule} from './orp-routing.module';
|
||||
import {ResultLandingModule} from "../../openaireLibrary/landingPages/result/resultLanding.module";
|
||||
@NgModule({
|
||||
imports: [OrpRoutingModule, ResultLandingModule],
|
||||
declarations:[OpenaireOrpComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenaireOrpComponent]
|
||||
})
|
||||
export class LibOrpModule { }
|
||||
|
|
|
@ -4,13 +4,12 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireOrpComponent } from './orp.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireOrpComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireOrpComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
},canDeactivate: [PreviousRouteRecorder] }
|
||||
])
|
||||
|
|
|
@ -7,14 +7,13 @@ import { RouterModule } from '@angular/router';
|
|||
import { ProjectModule } from '../../openaireLibrary/landingPages/project/project.module';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import { OpenaireProjectComponent } from './project.component';
|
||||
import {ProjectRoutingModule} from './project-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [ProjectModule, ProjectRoutingModule],
|
||||
declarations:[OpenaireProjectComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenaireProjectComponent]
|
||||
})
|
||||
export class LibProjectModule { }
|
||||
|
|
|
@ -4,13 +4,11 @@ import { RouterModule } from '@angular/router';
|
|||
import { OpenaireProjectComponent } from './project.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireProjectComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireProjectComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
},canDeactivate: [PreviousRouteRecorder] }
|
||||
])
|
||||
|
|
|
@ -6,7 +6,6 @@ import { SharedModule } from '../../shared/shared.module';
|
|||
import { RouterModule } from '@angular/router';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import { OpenairePublicationComponent } from './publication.component';
|
||||
import {PublicationRoutingModule} from './publication-routing.module';
|
||||
import {ResultLandingModule} from "../../openaireLibrary/landingPages/result/resultLanding.module";
|
||||
|
@ -14,7 +13,7 @@ import {ResultLandingModule} from "../../openaireLibrary/landingPages/result/res
|
|||
@NgModule({
|
||||
imports: [PublicationRoutingModule, ResultLandingModule],
|
||||
declarations:[OpenairePublicationComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenairePublicationComponent]
|
||||
})
|
||||
export class LibPublicationModule { }
|
||||
|
|
|
@ -4,13 +4,11 @@ import { RouterModule } from '@angular/router';
|
|||
import {OpenairePublicationComponent } from './publication.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenairePublicationComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenairePublicationComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
},canDeactivate: [PreviousRouteRecorder] }
|
||||
])
|
||||
|
|
|
@ -6,14 +6,13 @@ import { FormsModule } from '@angular/forms';
|
|||
import { RouterModule } from '@angular/router';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import { OpenaireSoftwareComponent } from './software.component';
|
||||
import {SoftwareRoutingModule} from './software-routing.module';
|
||||
import {ResultLandingModule} from "../../openaireLibrary/landingPages/result/resultLanding.module";
|
||||
@NgModule({
|
||||
imports: [SoftwareRoutingModule, ResultLandingModule],
|
||||
declarations:[OpenaireSoftwareComponent],
|
||||
providers:[FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard, PreviousRouteRecorder],
|
||||
exports:[OpenaireSoftwareComponent]
|
||||
})
|
||||
export class LibSoftwareModule { }
|
||||
|
|
|
@ -4,12 +4,11 @@ import { RouterModule } from '@angular/router';
|
|||
import {OpenaireSoftwareComponent } from './software.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireSoftwareComponent, canActivate: [FreeGuard, IsRouteEnabled],canDeactivate: [PreviousRouteRecorder] }
|
||||
{ path: '', component: OpenaireSoftwareComponent, canActivate: [FreeGuard],canDeactivate: [PreviousRouteRecorder] }
|
||||
])
|
||||
]
|
||||
})
|
||||
|
|
|
@ -6,7 +6,6 @@ import {AdvancedSearchDataProvidersRoutingModule} from './advancedSearchDataProv
|
|||
import {OpenaireAdvancedSearchDataProvidersComponent} from './advancedSearchDataProviders.component';
|
||||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searchDataProviders.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -19,7 +18,7 @@ import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searc
|
|||
declarations: [
|
||||
OpenaireAdvancedSearchDataProvidersComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireAdvancedSearchDataProvidersComponent
|
||||
]
|
||||
|
|
|
@ -6,7 +6,6 @@ import {AdvancedSearchDatasetsRoutingModule} from './advancedSearchDatasets-rout
|
|||
import {OpenaireAdvancedSearchDatasetsComponent} from './advancedSearchDatasets.component';
|
||||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -18,7 +17,7 @@ import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchP
|
|||
declarations: [
|
||||
OpenaireAdvancedSearchDatasetsComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireAdvancedSearchDatasetsComponent
|
||||
]
|
||||
|
|
|
@ -6,7 +6,6 @@ import {AdvancedSearchOrganizationsRoutingModule} from './advancedSearchOrganiza
|
|||
import {OpenaireAdvancedSearchOrganizationsComponent} from './advancedSearchOrganizations.component';
|
||||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import {SearchOrganizationsModule} from "../../openaireLibrary/searchPages/searchOrganizations.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -19,7 +18,7 @@ import {SearchOrganizationsModule} from "../../openaireLibrary/searchPages/searc
|
|||
declarations: [
|
||||
OpenaireAdvancedSearchOrganizationsComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireAdvancedSearchOrganizationsComponent
|
||||
]
|
||||
|
|
|
@ -6,7 +6,6 @@ import {AdvancedSearchOrpsRoutingModule} from './advancedSearchOrps-routing.modu
|
|||
import {OpenaireAdvancedSearchOrpsComponent} from './advancedSearchOrps.component';
|
||||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
|
||||
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
|
||||
|
||||
|
@ -19,7 +18,7 @@ import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchP
|
|||
declarations: [
|
||||
OpenaireAdvancedSearchOrpsComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireAdvancedSearchOrpsComponent
|
||||
]
|
||||
|
|
|
@ -5,7 +5,6 @@ import {FormsModule} from '@angular/forms';
|
|||
import {AdvancedSearchProjectsRoutingModule} from './advancedSearchProjects-routing.module';
|
||||
import {OpenaireAdvancedSearchProjectsComponent} from './advancedSearchProjects.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import {SearchProjectsModule} from "../../openaireLibrary/searchPages/searchProjects.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -18,7 +17,7 @@ import {SearchProjectsModule} from "../../openaireLibrary/searchPages/searchProj
|
|||
declarations: [
|
||||
OpenaireAdvancedSearchProjectsComponent
|
||||
],
|
||||
providers: [FreeGuard, IsRouteEnabled],
|
||||
providers: [FreeGuard],
|
||||
exports: [
|
||||
OpenaireAdvancedSearchProjectsComponent
|
||||
]
|
||||
|
|
|
@ -6,7 +6,6 @@ import {AdvancedSearchPublicationsRoutingModule} from './advancedSearchPublicati
|
|||
import {OpenaireAdvancedSearchPublicationsComponent} from './advancedSearchPublications.component';
|
||||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -18,7 +17,7 @@ import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchP
|
|||
declarations: [
|
||||
OpenaireAdvancedSearchPublicationsComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireAdvancedSearchPublicationsComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import {OpenaireAdvancedSearchSoftwareComponent} from './advancedSearchSoftware.
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchPages/advanced/advancedSearchResearchResults.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -19,7 +18,7 @@ import {AdvancedSearchResearchResultsModule} from "../../openaireLibrary/searchP
|
|||
declarations: [
|
||||
OpenaireAdvancedSearchSoftwareComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireAdvancedSearchSoftwareComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchResearchResultsComponent} from './searchResearchResults.com
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/searchResearchResults.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -19,7 +18,7 @@ import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/sea
|
|||
declarations: [
|
||||
OpenaireSearchResearchResultsComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchResearchResultsComponent
|
||||
]
|
||||
|
|
|
@ -4,13 +4,12 @@ import { RouterModule } from '@angular/router';
|
|||
import{OpenaireSearchCompatibleDataprovidersComponent} from './compatibleDataProviders.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireSearchCompatibleDataprovidersComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireSearchCompatibleDataprovidersComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
}, canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchCompatibleDataprovidersComponent} from './compatibleDataPro
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
import { CompatibleDataProvidersModule} from '../../openaireLibrary/searchPages/dataProviders/compatibleDataProviders.module';
|
||||
import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searchDataProviders.module";
|
||||
|
@ -22,7 +21,7 @@ import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searc
|
|||
declarations: [
|
||||
OpenaireSearchCompatibleDataprovidersComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireSearchCompatibleDataprovidersComponent
|
||||
]
|
||||
|
|
|
@ -4,13 +4,12 @@ import { RouterModule } from '@angular/router';
|
|||
import{OpenaireSearchCompatibleDataprovidersTableComponent} from './compatibleDataProvidersTable.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireSearchCompatibleDataprovidersTableComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireSearchCompatibleDataprovidersTableComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
}, canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import{OpenaireSearchCompatibleDataprovidersTableComponent} from './compatibleDa
|
|||
import {CompatibleDataProvidersTableRoutingModule} from './compatibleDataProvidersTable-routing.module';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import { CompatibleDataProvidersTableModule} from '../../openaireLibrary/searchPages/dataProviders/compatibleDataProvidersTable.module';
|
||||
|
||||
@NgModule({
|
||||
|
@ -15,7 +14,7 @@ import { CompatibleDataProvidersTableModule} from '../../openaireLibrary/search
|
|||
CompatibleDataProvidersTableModule,
|
||||
CompatibleDataProvidersTableRoutingModule
|
||||
|
||||
], providers:[FreeGuard, IsRouteEnabled],
|
||||
], providers:[FreeGuard],
|
||||
declarations: [
|
||||
OpenaireSearchCompatibleDataprovidersTableComponent
|
||||
],
|
||||
|
|
|
@ -4,12 +4,11 @@ import { RouterModule } from '@angular/router';
|
|||
import{OpenaireSearchEntityRegistriesComponent} from './entityRegistries.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireSearchEntityRegistriesComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireSearchEntityRegistriesComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
}, canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ import{ EntityRegistriesRoutingModule} from './entityRegistries-routing.module';
|
|||
import{OpenaireSearchEntityRegistriesComponent} from './entityRegistries.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
import {EntityRegistriesModule } from '../../openaireLibrary/searchPages/dataProviders/entityRegistries.module';
|
||||
import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searchDataProviders.module";
|
||||
|
@ -20,7 +19,7 @@ import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searc
|
|||
declarations: [
|
||||
OpenaireSearchEntityRegistriesComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireSearchEntityRegistriesComponent
|
||||
]
|
||||
|
|
|
@ -4,13 +4,12 @@ import { RouterModule } from '@angular/router';
|
|||
import{OpenaireSearchEntityRegistriesTableComponent} from './entityRegistriesTable.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireSearchEntityRegistriesTableComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireSearchEntityRegistriesTableComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
}, canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import { EntityRegistriesTableModule} from '../../openaireLibrary/searchPages/d
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -16,7 +15,7 @@ import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
|||
EntityRegistriesTableRoutingModule,
|
||||
EntityRegistriesTableModule
|
||||
|
||||
], providers:[FreeGuard, IsRouteEnabled],
|
||||
], providers:[FreeGuard],
|
||||
declarations: [
|
||||
OpenaireSearchEntityRegistriesTableComponent
|
||||
],
|
||||
|
|
|
@ -4,13 +4,12 @@ import { RouterModule } from '@angular/router';
|
|||
import{OpenaireSearchJournalsComponent} from './journals.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireSearchJournalsComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireSearchJournalsComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
}, canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchJournalsComponent} from './journals.component';
|
|||
import { JournalsModule} from '../../openaireLibrary/searchPages/dataProviders/journals.module';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searchDataProviders.module";
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -17,7 +16,7 @@ import {SearchDataProvidersModule} from "../../openaireLibrary/searchPages/searc
|
|||
declarations: [
|
||||
OpenaireSearchJournalsComponent
|
||||
],
|
||||
providers:[FreeGuard, IsRouteEnabled],
|
||||
providers:[FreeGuard],
|
||||
exports: [
|
||||
OpenaireSearchJournalsComponent
|
||||
]
|
||||
|
|
|
@ -4,13 +4,11 @@ import { RouterModule } from '@angular/router';
|
|||
import{OpenaireSearchJournalsTableComponent} from './journalsTable.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: OpenaireSearchJournalsTableComponent, canActivate: [FreeGuard, IsRouteEnabled], data: {
|
||||
{ path: '', component: OpenaireSearchJournalsTableComponent, canActivate: [FreeGuard], data: {
|
||||
redirect: '/error', community : 'openaire'
|
||||
} , canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import {JournalsTableRoutingModule} from './journalsTable-routing.module';
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard';
|
||||
import { JournalsTableModule} from '../../openaireLibrary/searchPages/dataProviders/journalsTable.module';
|
||||
|
||||
@NgModule({
|
||||
|
@ -16,7 +15,7 @@ import { JournalsTableModule} from '../../openaireLibrary/searchPages/dataProvid
|
|||
CommonModule, FormsModule,
|
||||
JournalsTableModule, JournalsTableRoutingModule
|
||||
|
||||
], providers:[FreeGuard, IsRouteEnabled],
|
||||
], providers:[FreeGuard],
|
||||
declarations: [
|
||||
OpenaireSearchJournalsTableComponent
|
||||
],
|
||||
|
|
|
@ -5,7 +5,6 @@ import {OpenaireSearchDataprovidersComponent} from './searchDataproviders.compon
|
|||
import{ SearchDataProvidersRoutingModule} from './searchDataProviders-routing.module';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchDataProvidersModule} from '../../openaireLibrary/searchPages/searchDataProviders.module';
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -16,7 +15,7 @@ SearchDataProvidersModule, SearchDataProvidersRoutingModule
|
|||
declarations: [
|
||||
OpenaireSearchDataprovidersComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchDataprovidersComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import {OpenaireSearchDatasetsComponent} from './searchDatasets.component';
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
|
||||
|
||||
|
||||
|
@ -20,7 +19,7 @@ import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/sim
|
|||
declarations: [
|
||||
OpenaireSearchDatasetsComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchDatasetsComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchOrganizationsComponent} from './searchOrganizations.compone
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchOrganizationsModule} from "../../openaireLibrary/searchPages/searchOrganizations.module";
|
||||
|
||||
|
||||
|
@ -20,7 +19,7 @@ import {SearchOrganizationsModule} from "../../openaireLibrary/searchPages/searc
|
|||
declarations: [
|
||||
OpenaireSearchOrganizationsComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchOrganizationsComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchOrpsComponent} from './searchOrps.component';
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
|
||||
|
||||
|
||||
|
@ -20,7 +19,7 @@ import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/sim
|
|||
declarations: [
|
||||
OpenaireSearchOrpsComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchOrpsComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchProjectsComponent} from './searchProjects.component';
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import { SearchProjectsModule} from '../../openaireLibrary/searchPages/searchProjects.module';
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -17,7 +16,7 @@ import { SearchProjectsModule} from '../../openaireLibrary/searchPages/searchPro
|
|||
declarations: [
|
||||
OpenaireSearchProjectsComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchProjectsComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchPublicationsComponent} from './searchPublications.component
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -19,7 +18,7 @@ import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/sim
|
|||
declarations: [
|
||||
OpenaireSearchPublicationsComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchPublicationsComponent
|
||||
]
|
||||
|
|
|
@ -7,7 +7,6 @@ import{OpenaireSearchResearchResultsComponent} from './searchResearchResults.com
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/searchResearchResults.module";
|
||||
|
||||
@NgModule({
|
||||
|
@ -19,7 +18,7 @@ import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/sea
|
|||
declarations: [
|
||||
OpenaireSearchResearchResultsComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchResearchResultsComponent
|
||||
]
|
||||
|
|
|
@ -6,7 +6,6 @@ import{ SearchSoftwareRoutingModule} from './searchSoftware-routing.module';
|
|||
import{OpenaireSearchSoftwareComponent} from './searchSoftware.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from '../../openaireLibrary/error/isRouteEnabled.guard'
|
||||
|
||||
import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/simple/searchResearchResults.module";
|
||||
|
||||
|
@ -17,8 +16,7 @@ import {SearchResearchResultsModule} from "../../openaireLibrary/searchPages/sim
|
|||
declarations: [
|
||||
OpenaireSearchSoftwareComponent
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder, IsRouteEnabled
|
||||
],
|
||||
providers:[FreeGuard,PreviousRouteRecorder],
|
||||
exports: [
|
||||
OpenaireSearchSoftwareComponent
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue