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';
|
2020-04-08 15:36:06 +02:00
|
|
|
import { Oauth2DialogComponent } from './ui/misc/oauth2-dialog/oauth2-dialog.component';
|
2020-05-27 16:19:38 +02:00
|
|
|
import { AppComponent } from './app.component';
|
2023-10-17 16:13:34 +02:00
|
|
|
import { AppPermission } from './core/common/enum/permission.enum';
|
2023-10-20 17:01:09 +02:00
|
|
|
import { BreadcrumbService } from './ui/misc/breadcrumb/breadcrumb.service';
|
2023-12-29 16:04:16 +01:00
|
|
|
import { ReloadHelperComponent } from './ui/misc/reload-helper/reload-helper.component';
|
2017-09-26 17:16:04 +02:00
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
2019-01-18 18:03:45 +01:00
|
|
|
{
|
|
|
|
path: '',
|
2024-04-08 17:59:42 +02:00
|
|
|
redirectTo:'home',
|
2019-01-18 18:03:45 +01:00
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
2019-03-05 11:20:10 +01:00
|
|
|
{
|
2023-12-05 21:36:00 +01:00
|
|
|
path: 'home',
|
|
|
|
loadChildren: () => import('./ui/dashboard/dashboard.module').then(m => m.DashboardModule),
|
2019-03-05 11:20:10 +01:00
|
|
|
data: {
|
2023-12-05 21:36:00 +01:00
|
|
|
breadcrumb: true
|
2019-03-05 11:20:10 +01:00
|
|
|
}
|
|
|
|
},
|
2019-01-18 18:03:45 +01:00
|
|
|
{
|
2023-12-01 18:18:41 +01:00
|
|
|
path: 'descriptions',
|
|
|
|
loadChildren: () => import('./ui/description/description.module').then(m => m.DescriptionModule),
|
2019-04-26 16:05:15 +02:00
|
|
|
data: {
|
2024-04-02 16:18:07 +02:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewMyDescriptionPage]
|
|
|
|
},
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
2023-12-01 18:18:41 +01:00
|
|
|
title: 'GENERAL.TITLES.DESCRIPTIONS'
|
2019-04-26 16:05:15 +02:00
|
|
|
}
|
|
|
|
},
|
2018-07-24 09:58:55 +02:00
|
|
|
{
|
2023-12-01 18:18:41 +01:00
|
|
|
path: 'explore-descriptions',
|
2023-11-29 14:26:40 +01:00
|
|
|
loadChildren: () => import('./ui/description/description.module').then(m => m.DescriptionModule),
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2019-09-16 17:46:19 +02:00
|
|
|
breadcrumb: true,
|
2023-12-01 18:18:41 +01:00
|
|
|
title: 'GENERAL.TITLES.EXPLORE'
|
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: {
|
2024-04-02 16:18:07 +02:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewMyDmpPage]
|
|
|
|
},
|
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
|
|
|
},
|
2023-12-01 18:18:41 +01:00
|
|
|
{
|
|
|
|
path: 'explore-plans',
|
|
|
|
loadChildren: () => import('./ui/dmp/dmp.module').then(m => m.DmpModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.EXPLORE-PLANS'
|
|
|
|
}
|
|
|
|
},
|
2018-07-24 09:58:55 +02:00
|
|
|
{
|
2023-10-20 17:01:09 +02:00
|
|
|
path: 'dmp-blueprints',
|
|
|
|
loadChildren: () => import('./ui/admin/dmp-blueprint/dmp-blueprint.module').then(m => m.DmpBlueprintModule),
|
2018-07-24 09:58:55 +02:00
|
|
|
data: {
|
2023-10-23 10:58:15 +02:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewDmpBlueprintPage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.DMP-BLUEPRINTS'
|
|
|
|
})
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
2018-07-24 09:58:55 +02:00
|
|
|
},
|
2023-12-05 21:36:00 +01:00
|
|
|
|
2024-04-02 16:18:07 +02:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
loadChildren: () => import('./ui/about/about.module').then(m => m.AboutModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.ABOUT'
|
|
|
|
}
|
|
|
|
},
|
2024-04-02 16:18:07 +02:00
|
|
|
|
2023-10-30 14:30:46 +01:00
|
|
|
{
|
|
|
|
path: 'description-templates',
|
|
|
|
loadChildren: () => import('./ui/admin/description-template/description-template.module').then(m => m.DescriptionTemplateModule),
|
|
|
|
data: {
|
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewDescriptionTemplatePage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.DESCRIPTION-TEMPLATES'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
2023-07-25 14:27:15 +02:00
|
|
|
{
|
2023-10-20 17:01:09 +02:00
|
|
|
path: 'description-template-type',
|
|
|
|
loadChildren: () => import('./ui/admin/description-types/description-template-type.module').then(m => m.DescriptionTemplateTypesModule),
|
2023-07-25 14:27:15 +02:00
|
|
|
data: {
|
2023-10-17 16:13:34 +02:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewDescriptionTemplateTypePage]
|
2023-10-20 17:01:09 +02:00
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.DESCRIPTION-TEMPLATE-TYPES'
|
|
|
|
})
|
2023-10-17 16:13:34 +02:00
|
|
|
},
|
2023-07-25 14:27:15 +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-07-17 16:46:10 +02:00
|
|
|
{
|
|
|
|
path: 'opensource-licences',
|
|
|
|
loadChildren: () => import('./ui/sidebar/sidebar-footer/opensource-licences/opensource-licenses.module').then(m => m.OpensourceLicencesModule),
|
|
|
|
data: {
|
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.OPENSOURCE-LICENCES'
|
|
|
|
}
|
|
|
|
},
|
2019-11-01 11:00:52 +01:00
|
|
|
{
|
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
|
|
|
},
|
2024-04-02 16:18:07 +02:00
|
|
|
|
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',
|
2023-11-28 14:15:16 +01:00
|
|
|
loadChildren: () => import('./ui/admin/user/user.module').then(m => m.UsersModule),
|
2018-10-18 12:21:56 +02:00
|
|
|
data: {
|
2024-04-02 16:18:07 +02:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewUserPage]
|
|
|
|
},
|
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
|
|
|
{
|
2023-11-27 17:22:13 +01:00
|
|
|
path: 'languages',
|
|
|
|
loadChildren: () => import('./ui/admin/language/language.module').then(m => m.LanguageModule),
|
2020-01-27 17:38:24 +01:00
|
|
|
data: {
|
2023-11-27 17:22:13 +01:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewLanguagePage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.LANGUAGES'
|
|
|
|
})
|
2020-01-27 17:38:24 +01:00
|
|
|
},
|
|
|
|
},
|
2020-02-13 17:15:34 +01:00
|
|
|
{
|
2023-11-03 12:30:11 +01:00
|
|
|
path: 'supportive-material',
|
|
|
|
loadChildren: () => import('./ui/supportive-material-editor/supportive-material-editor.module').then(m => m.SupportiveMaterialEditorModule),
|
2020-02-13 17:15:34 +01:00
|
|
|
data: {
|
2023-11-27 17:22:13 +01:00
|
|
|
authContext: {
|
2024-01-05 10:34:21 +01:00
|
|
|
permissions: [AppPermission.ViewSupportiveMaterialPage]
|
2023-11-27 17:22:13 +01:00
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'GENERAL.TITLES.SUPPORTIVE-MATERIAL'
|
|
|
|
})
|
2020-02-13 17:15:34 +01:00
|
|
|
},
|
|
|
|
},
|
2023-11-24 18:12:39 +01:00
|
|
|
{
|
|
|
|
path: 'references',
|
|
|
|
loadChildren: () => import('./ui/admin/reference/reference.module').then(m => m.ReferenceModule),
|
|
|
|
data: {
|
2023-11-27 17:22:13 +01:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewReferencePage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.REFERENCES'
|
|
|
|
})
|
2020-02-13 17:15:34 +01:00
|
|
|
},
|
|
|
|
},
|
2023-11-09 14:43:08 +01:00
|
|
|
{
|
|
|
|
path: 'reference-type',
|
|
|
|
loadChildren: () => import('./ui/admin/reference-type/reference-type.module').then(m => m.ReferenceTypeModule),
|
|
|
|
data: {
|
2023-11-27 17:22:13 +01:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewReferenceTypePage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.REFERENCE-TYPES'
|
|
|
|
})
|
2023-11-22 17:01:58 +01:00
|
|
|
},
|
|
|
|
},
|
2024-02-26 18:40:31 +01:00
|
|
|
{
|
|
|
|
path: 'prefilling-sources',
|
|
|
|
loadChildren: () => import('./ui/admin/prefilling-source/prefilling-source.module').then(m => m.PrefillingSourceModule),
|
|
|
|
data: {
|
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewPrefillingSourcePage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.PREFILLING-SOURCES'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
2023-11-22 17:01:58 +01:00
|
|
|
{
|
|
|
|
path: 'tenants',
|
|
|
|
loadChildren: () => import('./ui/admin/tenant/tenant.module').then(m => m.TenantModule),
|
|
|
|
data: {
|
2023-11-27 17:22:13 +01:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewTenantPage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.TENANTS'
|
|
|
|
})
|
2023-11-09 14:43:08 +01:00
|
|
|
},
|
|
|
|
},
|
2024-04-22 15:47:40 +02:00
|
|
|
{
|
|
|
|
path: 'tenant-configuration',
|
|
|
|
loadChildren: () => import('./ui/admin/tenant-configuration/tenant-configuration.module').then(m => m.TenantConfigurationModule),
|
|
|
|
data: {
|
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewTenantConfigurationPage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.TENANT-CONFIGURATION'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
2024-01-11 16:59:27 +01:00
|
|
|
{
|
|
|
|
path: 'notifications',
|
2024-04-12 16:37:37 +02:00
|
|
|
loadChildren: () => import('@notification-service/ui/admin/notification/notification.module').then(m => m.NotificationModule),
|
2024-01-11 16:59:27 +01:00
|
|
|
data: {
|
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewNotificationPage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.NOTIFICATIONS'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
2023-12-19 18:08:17 +01:00
|
|
|
{
|
|
|
|
path: 'notification-templates',
|
2024-04-12 16:37:37 +02:00
|
|
|
loadChildren: () => import('@notification-service/ui/admin/notification-template/notification-template.module').then(m => m.NotificationTemplateModule),
|
2023-12-19 18:08:17 +01:00
|
|
|
data: {
|
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewNotificationTemplatePage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.NOTIFICATION-TEMPLATES'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
2024-01-08 17:32:07 +01:00
|
|
|
{
|
2024-01-10 13:24:32 +01:00
|
|
|
path: 'mine-notifications',
|
2024-04-12 16:37:37 +02:00
|
|
|
loadChildren: () => import('@notification-service/ui/inapp-notification/mine-inapp-notification.module').then(m => m.MineInAppNotificationModule),
|
2024-01-08 17:32:07 +01:00
|
|
|
data: {
|
|
|
|
authContext: {
|
2024-01-10 13:24:32 +01:00
|
|
|
permissions: [AppPermission.ViewMineInAppNotificationPage]
|
2024-01-08 17:32:07 +01:00
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.INAPP-NOTIFICATIONS'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
2024-03-21 08:46:18 +01:00
|
|
|
{
|
|
|
|
path: 'entity-locks',
|
|
|
|
loadChildren: () => import('./ui/admin/entity-locks/lock.module').then(m => m.LockModule),
|
|
|
|
data: {
|
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewEntityLockPage]
|
|
|
|
},
|
|
|
|
...BreadcrumbService.generateRouteDataConfiguration({
|
|
|
|
title: 'BREADCRUMBS.ENTITY-LOCKS'
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
2023-03-27 13:58:45 +02:00
|
|
|
{
|
|
|
|
path: 'maintenance-tasks',
|
|
|
|
loadChildren: () => import('./ui/admin/maintenance-tasks/maintenance-tasks.module').then(m => m.MaintenanceTasksModule),
|
|
|
|
data: {
|
2024-04-02 16:18:07 +02:00
|
|
|
authContext: {
|
|
|
|
permissions: [AppPermission.ViewMaintenancePage]
|
|
|
|
},
|
2024-04-04 12:52:13 +02:00
|
|
|
breadcrumb: true,
|
|
|
|
title: 'GENERAL.TITLES.MAINTENANCE-TASKS'
|
2023-03-27 13:58:45 +02:00
|
|
|
},
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
},
|
2023-10-11 16:53:12 +02:00
|
|
|
{ path: 'logout', loadChildren: () => import('./ui/auth/logout/logout.module').then(m => m.LogoutModule) },
|
2020-04-08 15:36:06 +02:00
|
|
|
{ path: 'reload', component: ReloadHelperComponent },
|
2020-05-15 15:19:35 +02:00
|
|
|
{ path: 'oauth2', component: Oauth2DialogComponent },
|
2017-09-26 17:16:04 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2023-10-05 15:58:45 +02:00
|
|
|
imports: [RouterModule.forRoot(appRoutes, {})],
|
2019-01-18 18:03:45 +01:00
|
|
|
exports: [RouterModule],
|
2017-09-26 17:16:04 +02:00
|
|
|
})
|
2017-11-01 18:18:27 +01:00
|
|
|
export class AppRoutingModule { }
|
|
|
|
|