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";
|
2022-05-11 11:57:00 +02:00
|
|
|
import {OpenaireErrorPageComponent} from "../error/errorPage.component";
|
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,
|
2022-03-28 10:40:22 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
|
|
|
data: {
|
|
|
|
activeMenuItem: "dashboard"
|
|
|
|
}
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
2022-07-27 11:36:18 +02:00
|
|
|
{
|
2022-08-29 15:58:03 +02:00
|
|
|
path: ':stakeholder/indicators',
|
2022-07-27 11:36:18 +02:00
|
|
|
loadChildren: () => import('../openaireLibrary/monitor/indicators/indicators.module').then(m => m.IndicatorsModule),
|
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
|
|
|
data: {
|
|
|
|
hasSidebar: false
|
|
|
|
}
|
|
|
|
},
|
2020-12-11 19:34:50 +01:00
|
|
|
{
|
|
|
|
path: ':stakeholder/develop',
|
2021-07-14 18:02:04 +02:00
|
|
|
loadChildren: () => import('../develop/develop.module').then(m => m.DevelopModule),
|
2021-03-31 11:35:26 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
|
|
|
data: {
|
2022-04-07 00:25:36 +02:00
|
|
|
hasSidebar: false
|
2021-03-31 11:35:26 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2021-04-05 15:40:40 +02:00
|
|
|
path: ':stakeholder/methodology',
|
2022-07-29 13:47:32 +02:00
|
|
|
loadChildren: () => import('../openaireLibrary/monitor/methodology/methodology.module').then(m => m.MethodologyModule),
|
2021-03-31 11:35:26 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
2020-12-11 19:34:50 +01:00
|
|
|
data: {
|
2022-04-07 00:25:36 +02:00
|
|
|
hasSidebar: false
|
2020-12-11 19:34:50 +01:00
|
|
|
}
|
|
|
|
},
|
2020-07-10 10:38:52 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder/search',
|
2021-07-14 18:02:04 +02:00
|
|
|
loadChildren: () => import('../search/search.module').then(m => m.SearchModule),
|
2022-03-02 22:58:53 +01:00
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
|
|
|
data: {
|
|
|
|
hasSidebar: false,
|
2022-03-28 10:40:22 +02:00
|
|
|
activeMenuItem: "search"
|
2022-03-02 22:58:53 +01:00
|
|
|
}
|
2020-07-10 10:38:52 +02:00
|
|
|
},
|
2022-05-11 11:57:00 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder/error',
|
|
|
|
component: OpenaireErrorPageComponent,
|
|
|
|
data: {hasSidebar: false}
|
|
|
|
},
|
2022-06-29 13:35:21 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder/user-info',
|
|
|
|
loadChildren: () => import('../login/libUser.module').then(m => m.LibUserModule),
|
|
|
|
data: {hasSidebar: false}
|
|
|
|
},
|
2019-10-25 15:19:54 +02:00
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic',
|
|
|
|
component: MonitorComponent,
|
2022-03-28 10:40:22 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
|
|
|
data: {
|
|
|
|
activeMenuItem: "dashboard"
|
|
|
|
}
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category',
|
|
|
|
component: MonitorComponent,
|
2022-03-28 10:40:22 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
|
|
|
data: {
|
|
|
|
activeMenuItem: "dashboard"
|
|
|
|
}
|
2019-10-25 15:19:54 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: ':stakeholder/:topic/:category/:subCategory',
|
|
|
|
component: MonitorComponent,
|
2022-03-28 10:40:22 +02:00
|
|
|
canDeactivate: [PreviousRouteRecorder],
|
|
|
|
data: {
|
|
|
|
activeMenuItem: "dashboard"
|
|
|
|
}
|
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 {
|
|
|
|
}
|