argos/dmp-frontend/src/app/app-routing.module.ts

154 lines
3.6 KiB
TypeScript
Raw Normal View History

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';
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'
},
{
path: 'datasetcreatewizard',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/dataset-create-wizard/dataset-create-wizard.module').then(m => m.DatasetCreateWizardModule),
data: {
2019-09-16 17:46:19 +02:00
breadcrumb: true,
title: 'GENERAL.TITLES.DATASETCREATEWIZARD'
}
},
2019-01-18 18:03:45 +01:00
{
path: 'explore',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/explore-dataset/explore-dataset.module').then(m => m.ExploreDatasetModule),
2019-01-18 18:03:45 +01:00
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-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/explore-dmp/explore-dmp.module').then(m => m.ExploreDmpModule),
2019-04-26 16:05:15 +02:00
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-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/dataset/dataset.module').then(m => m.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-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/about/about.module').then(m => m.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
},
{
path: 'grants',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/grant/grant.module').then(m => m.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',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/dmp/dmp.module').then(m => m.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
},
{
path: 'dmp-profiles',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/admin/dmp-profile/dmp-profile.module').then(m => m.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',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/quick-wizard/quick-wizard.module').then(m => m.OuickWizardModule),
2019-03-01 16:15:25 +01:00
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
{
path: 'dataset-profiles',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/admin/dataset-profile/dataset-profile.module').then(m => m.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-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/dashboard/dashboard.module').then(m => m.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-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/misc/unauthorized/unauthorized.module').then(m => m.UnauthorizedModule),
2018-07-24 09:58:55 +02:00
data: {
breadcrumb: true
},
},
{
2018-10-05 17:00:54 +02:00
path: 'users',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/admin/user/user.module').then(m => m.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
},
{
path: 'profile',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/user-profile/user-profile.module').then(m => m.UserProfileModule),
data: {
2019-09-16 17:46:19 +02:00
breadcrumb: true,
title: 'GENERAL.TITLES.PROFILE'
},
},
2019-02-15 10:18:14 +01:00
{
path: 'login/admin',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/auth/admin-login/admin-login.module').then(m => m.AdminLoginModule),
2019-02-15 10:18:14 +01:00
data: {
breadcrumb: true
},
},
2018-07-24 09:58:55 +02:00
{
2019-01-18 18:03:45 +01:00
path: 'login',
2019-09-23 10:17:03 +02:00
loadChildren: () => import('./ui/auth/login/login.module').then(m => m.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
},
},
{
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 { }