2019-10-25 15:19:54 +02:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {RouterModule} from '@angular/router';
|
2019-10-24 09:44:29 +02:00
|
|
|
import {PreviousRouteRecorder} from '../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
|
|
|
import {MonitorComponent} from "./monitor.component";
|
2020-07-10 10:38:52 +02:00
|
|
|
import {EnvironmentSpecificResolver} from "../openaireLibrary/utils/properties/environmentSpecificResolver";
|
2019-10-24 09:44:29 +02:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forChild([
|
2020-07-10 10:38:52 +02:00
|
|
|
{path: '', redirectTo: '/admin', pathMatch: 'full'},
|
2019-10-25 15:19:54 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder',
|
|
|
|
component: MonitorComponent,
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
2020-12-11 19:34:50 +01:00
|
|
|
{
|
|
|
|
path: ':stakeholder/develop',
|
|
|
|
loadChildren: '../develop/develop.module#DevelopModule',
|
|
|
|
resolve: {envSpecific: EnvironmentSpecificResolver},
|
|
|
|
data: {
|
|
|
|
hasSidebar: false,
|
|
|
|
isDashboard: false
|
|
|
|
}
|
|
|
|
},
|
2020-07-10 10:38:52 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder/search',
|
|
|
|
loadChildren: '../search/search.module#SearchModule',
|
|
|
|
resolve: {envSpecific: EnvironmentSpecificResolver}
|
|
|
|
},
|
2019-10-25 15:19:54 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic',
|
|
|
|
component: MonitorComponent,
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category',
|
|
|
|
component: MonitorComponent,
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category/:subCategory',
|
|
|
|
component: MonitorComponent,
|
2020-07-06 11:19:01 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder]
|
2019-10-25 15:19:54 +02:00
|
|
|
}
|
2019-10-24 09:44:29 +02:00
|
|
|
])
|
|
|
|
]
|
|
|
|
})
|
2019-10-25 15:19:54 +02:00
|
|
|
export class MonitorRoutingModule {
|
|
|
|
}
|