2017-12-20 09:17:13 +01:00
|
|
|
import { NgModule } from '@angular/core';
|
2017-09-26 17:16:04 +02:00
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2019-02-13 13:36:07 +01:00
|
|
|
import { B2AccessLoginComponent } from './ui/auth/login/b2access/b2access-login.component';
|
2017-09-26 17:16:04 +02:00
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
2019-01-18 18:03:45 +01:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
redirectTo: '/home',
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumbs: false,
|
|
|
|
title: 'GENERAL.TITLES.GENERAL'
|
2019-01-18 18:03:45 +01:00
|
|
|
},
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
2019-03-05 11:20:10 +01:00
|
|
|
{
|
|
|
|
path: 'datasetcreatewizard',
|
|
|
|
loadChildren: './ui/dataset-create-wizard/dataset-create-wizard.module#DatasetCreateWizardModule',
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASETCREATEWIZARD'
|
2019-03-05 11:20:10 +01:00
|
|
|
}
|
|
|
|
},
|
2019-01-18 18:03:45 +01:00
|
|
|
{
|
|
|
|
path: 'explore',
|
|
|
|
loadChildren: './ui/explore-dataset/explore-dataset.module#ExploreDatasetModule',
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.EXPLORE'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
|
|
|
},
|
2019-04-26 16:05:15 +02:00
|
|
|
{
|
2019-05-08 14:48:57 +02:00
|
|
|
path: 'explore-plans',
|
2019-04-26 16:05:15 +02:00
|
|
|
loadChildren: './ui/explore-dmp/explore-dmp.module#ExploreDmpModule',
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.EXPLORE-PLANS'
|
2019-04-26 16:05:15 +02:00
|
|
|
}
|
|
|
|
},
|
2018-07-24 09:58:55 +02:00
|
|
|
{
|
|
|
|
path: 'datasets',
|
2019-01-18 18:03:45 +01:00
|
|
|
loadChildren: './ui/dataset/dataset.module#DatasetModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASETS'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
2019-01-18 18:03:45 +01:00
|
|
|
loadChildren: './ui/about/about.module#AboutModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.ABOUT'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
|
|
|
{
|
2019-08-01 09:54:40 +02:00
|
|
|
path: 'grants',
|
|
|
|
loadChildren: './ui/grant/grant.module#GrantModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.GRANTS'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
|
|
|
{
|
2019-01-18 18:03:45 +01:00
|
|
|
path: 'plans',
|
|
|
|
loadChildren: './ui/dmp/dmp.module#DmpModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.PLANS'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
|
|
|
{
|
2019-05-21 09:01:00 +02:00
|
|
|
path: 'dmp-profiles',
|
2019-01-18 18:03:45 +01:00
|
|
|
loadChildren: './ui/admin/dmp-profile/dmp-profile.module#DmpProfileModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DMP-PROFILES'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
2019-03-01 16:15:25 +01:00
|
|
|
{
|
|
|
|
path: 'quick-wizard',
|
|
|
|
loadChildren: './ui/quick-wizard/quick-wizard.module#OuickWizardModule',
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: "GENERAL.TITLES.QUICK-WIZARD"
|
2019-03-01 16:15:25 +01:00
|
|
|
}
|
|
|
|
},
|
2018-07-24 09:58:55 +02:00
|
|
|
{
|
2019-05-21 09:01:00 +02:00
|
|
|
path: 'dataset-profiles',
|
2019-01-18 18:03:45 +01:00
|
|
|
loadChildren: './ui/admin/dataset-profile/dataset-profile.module#DatasetProfileModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.DATASET-PROFILES'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'home',
|
2019-01-18 18:03:45 +01:00
|
|
|
loadChildren: './ui/dashboard/dashboard.module#DashboardModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-01-18 18:03:45 +01:00
|
|
|
breadcrumb: true
|
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
|
|
|
{
|
2018-10-05 17:00:54 +02:00
|
|
|
path: 'unauthorized',
|
2019-01-18 18:03:45 +01:00
|
|
|
loadChildren: './ui/misc/unauthorized/unauthorized.module#UnauthorizedModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2018-10-05 17:00:54 +02:00
|
|
|
path: 'users',
|
2019-01-18 18:03:45 +01:00
|
|
|
loadChildren: './ui/admin/user/user.module#UserModule',
|
2018-10-18 12:21:56 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.USERS'
|
2018-10-18 12:21:56 +02:00
|
|
|
},
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
2019-01-21 12:14:20 +01:00
|
|
|
{
|
|
|
|
path: 'profile',
|
|
|
|
loadChildren: './ui/user-profile/user-profile.module#UserProfileModule',
|
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.PROFILE'
|
2019-01-21 12:14:20 +01:00
|
|
|
},
|
|
|
|
},
|
2019-02-15 10:18:14 +01:00
|
|
|
{
|
|
|
|
path: 'login/admin',
|
|
|
|
loadChildren: './ui/auth/admin-login/admin-login.module#AdminLoginModule',
|
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
},
|
|
|
|
},
|
2018-07-24 09:58:55 +02:00
|
|
|
{
|
2019-01-18 18:03:45 +01:00
|
|
|
path: 'login',
|
|
|
|
loadChildren: './ui/auth/login/login.module#LoginModule',
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.LOGIN'
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
|
|
|
},
|
2019-02-13 13:36:07 +01:00
|
|
|
{
|
|
|
|
path: 'api/oauth/authorized/b2access',
|
|
|
|
component: B2AccessLoginComponent,
|
|
|
|
data: {
|
|
|
|
},
|
|
|
|
}
|
2017-09-26 17:16:04 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2019-01-18 18:03:45 +01:00
|
|
|
imports: [RouterModule.forRoot(appRoutes)],
|
|
|
|
exports: [RouterModule],
|
2017-09-26 17:16:04 +02:00
|
|
|
})
|
2017-11-01 18:18:27 +01:00
|
|
|
export class AppRoutingModule { }
|
|
|
|
|