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-12-13 12:15:12 +01:00
|
|
|
import { ReloadHelperComponent } from '@app/ui/misc/reload-helper/reload-helper.component';
|
2019-02-13 13:36:07 +01:00
|
|
|
import { B2AccessLoginComponent } from './ui/auth/login/b2access/b2access-login.component';
|
2020-04-08 15:36:06 +02:00
|
|
|
import { Oauth2DialogModule } from './ui/misc/oauth2-dialog/oauth2-dialog.module';
|
|
|
|
import { Oauth2DialogComponent } from './ui/misc/oauth2-dialog/oauth2-dialog.component';
|
2020-05-27 16:19:38 +02:00
|
|
|
import { AppComponent } from './app.component';
|
2017-09-26 17:16:04 +02:00
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
2019-01-18 18:03:45 +01:00
|
|
|
{
|
|
|
|
path: '',
|
2020-05-27 16:19:38 +02:00
|
|
|
component: AppComponent,
|
2019-01-18 18:03:45 +01:00
|
|
|
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',
|
2019-09-23 10:17:03 +02:00
|
|
|
loadChildren: () => import('./ui/dataset-create-wizard/dataset-create-wizard.module').then(m => m.DatasetCreateWizardModule),
|
2019-03-05 11:20:10 +01:00
|
|
|
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',
|
2020-03-16 17:50:29 +01:00
|
|
|
// loadChildren: () => import('./ui/explore-dataset/explore-dataset.module').then(m => m.ExploreDatasetModule),
|
|
|
|
loadChildren: () => import('./ui/dataset/dataset.module').then(m => m.DatasetModule),
|
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',
|
2020-04-01 17:16:06 +02:00
|
|
|
// loadChildren: () => import('./ui/explore-dmp/explore-dmp.module').then(m => m.ExploreDmpModule),
|
|
|
|
loadChildren: () => import('./ui/dmp/dmp.module').then(m => m.DmpModule),
|
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
|
|
|
},
|
2019-10-04 09:53:35 +02:00
|
|
|
// ----------- UNCOMMENT TO ADD AGAIN GRANTS --------
|
|
|
|
// {
|
|
|
|
// path: 'grants',
|
|
|
|
// loadChildren: () => import('./ui/grant/grant.module').then(m => m.GrantModule),
|
|
|
|
// data: {
|
|
|
|
// breadcrumb: true,
|
|
|
|
// title: 'GENERAL.TITLES.GRANTS'
|
|
|
|
// }
|
|
|
|
// },
|
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
|
|
|
},
|
|
|
|
{
|
2019-05-21 09:01:00 +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
|
|
|
{
|
2019-05-21 09:01:00 +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
|
|
|
},
|
2019-11-11 11:42:55 +01:00
|
|
|
{
|
|
|
|
path: 'contact-support',
|
|
|
|
loadChildren: () => import('./ui/contact/contact.module').then(m => m.ContactModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'CONTACT.SUPPORT.TITLE'
|
|
|
|
}
|
|
|
|
},
|
2019-11-08 17:47:19 +01:00
|
|
|
{
|
|
|
|
path: 'glossary',
|
|
|
|
loadChildren: () => import('./ui/glossary/glossary.module').then(m => m.GlossaryModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GLOSSARY.TITLE'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'faq',
|
|
|
|
loadChildren: () => import('./ui/faq/faq.module').then(m => m.FaqModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'FAQ.TITLE'
|
|
|
|
}
|
|
|
|
},
|
2020-02-12 17:24:42 +01:00
|
|
|
{
|
|
|
|
path: 'user-guide',
|
|
|
|
loadChildren: () => import('./ui/user-guide/user-guide.module').then(m => m.UserGuideModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GUIDE.TITLE'
|
|
|
|
}
|
|
|
|
},
|
2019-11-01 11:00:52 +01:00
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
loadChildren: () => import('./ui/sidebar/sidebar-footer/privacy/privacy.module').then(m => m.PrivacyModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.PRIVACY'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-06-25 16:52:00 +02:00
|
|
|
path: 'terms-and-conditions',
|
2019-11-01 11:00:52 +01:00
|
|
|
loadChildren: () => import('./ui/sidebar/sidebar-footer/terms/terms.module').then(m => m.TermsModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.TERMS'
|
|
|
|
}
|
|
|
|
},
|
2018-07-24 09:58:55 +02:00
|
|
|
{
|
2020-06-25 16:52:00 +02:00
|
|
|
path: 'cookies-policy',
|
|
|
|
loadChildren: () => import('./ui/sidebar/sidebar-footer/cookies-policy/cookies-policy.module').then(m => m.CookiesPolicyModule),
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2020-06-25 16:52:00 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.COOKIES-POLICY'
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
2020-05-27 16:19:38 +02: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),
|
2020-05-27 16:19:38 +02:00
|
|
|
data: {
|
|
|
|
breadcrumb: true
|
|
|
|
}
|
|
|
|
},
|
2020-06-25 19:40:41 +02:00
|
|
|
// {
|
|
|
|
// path: 'splash',
|
|
|
|
// loadChildren: () => import('./ui/splash/splash.module').then(m => m.SplashModule),
|
|
|
|
// data: {
|
|
|
|
// 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
|
|
|
},
|
2019-01-21 12:14:20 +01:00
|
|
|
{
|
|
|
|
path: 'profile',
|
2019-09-23 10:17:03 +02:00
|
|
|
loadChildren: () => import('./ui/user-profile/user-profile.module').then(m => m.UserProfileModule),
|
2019-01-21 12:14:20 +01:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.PROFILE'
|
2019-01-21 12:14:20 +01:00
|
|
|
},
|
|
|
|
},
|
2020-01-27 17:38:24 +01:00
|
|
|
{
|
|
|
|
path: 'language-editor',
|
|
|
|
loadChildren: () => import('./ui/language-editor/language-editor.module').then(m => m.LanguageEditorModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
2020-02-03 16:35:34 +01:00
|
|
|
title: 'GENERAL.TITLES.LANGUAGE-EDITOR'
|
2020-01-27 17:38:24 +01:00
|
|
|
},
|
|
|
|
},
|
2020-02-13 17:15:34 +01:00
|
|
|
{
|
|
|
|
path: 'user-guide-editor',
|
|
|
|
loadChildren: () => import('./ui/user-guide-editor/user-guide-editor.module').then(m => m.UserGuideEditorModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.GUIDE-EDITOR'
|
|
|
|
},
|
|
|
|
},
|
2020-03-11 10:06:43 +01:00
|
|
|
{
|
|
|
|
path: 'index-managment',
|
|
|
|
loadChildren: () => import('./ui/admin/index-managment/index-managment.module').then(m => m.IndexManagmentModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.INDEX-MANAGMENT'
|
|
|
|
},
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
},
|
2019-02-13 13:36:07 +01:00
|
|
|
{
|
|
|
|
path: 'api/oauth/authorized/b2access',
|
|
|
|
component: B2AccessLoginComponent,
|
|
|
|
data: {
|
|
|
|
},
|
2019-12-13 12:15:12 +01:00
|
|
|
},
|
2020-04-08 15:36:06 +02:00
|
|
|
{ path: 'reload', component: ReloadHelperComponent },
|
2020-05-15 15:19:35 +02:00
|
|
|
{ path: 'oauth2', component: Oauth2DialogComponent },
|
|
|
|
{
|
|
|
|
path: 'external',
|
|
|
|
loadChildren: () => import('./ui/external/external.module').then(m => m.ExternalModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
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 { }
|
|
|
|
|