2021-05-25 15:11:44 +00:00
|
|
|
import { FG_Plugin } from '@flaschengeist/types';
|
|
|
|
import { PERMISSIONS } from '../permissions';
|
|
|
|
|
|
|
|
export const innerRoutes: FG_Plugin.MenuRoute[] = [
|
|
|
|
{
|
|
|
|
title: 'Dienste',
|
|
|
|
icon: 'mdi-briefcase',
|
|
|
|
permissions: ['user'],
|
|
|
|
route: {
|
2021-11-24 20:47:14 +00:00
|
|
|
path: 'events',
|
|
|
|
name: 'events',
|
2021-05-25 15:11:44 +00:00
|
|
|
redirect: { name: 'schedule-overview' },
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
title: 'Dienstübersicht',
|
|
|
|
icon: 'mdi-account-group',
|
|
|
|
shortcut: true,
|
|
|
|
route: {
|
|
|
|
path: 'schedule-overview',
|
|
|
|
name: 'schedule-overview',
|
2021-11-22 11:00:17 +00:00
|
|
|
component: () => import('../pages/EventOverview.vue'),
|
2021-05-25 15:11:44 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Dienstverwaltung',
|
|
|
|
icon: 'mdi-account-details',
|
|
|
|
shortcut: false,
|
|
|
|
permissions: [PERMISSIONS.CREATE],
|
|
|
|
route: {
|
|
|
|
path: 'schedule-management',
|
|
|
|
name: 'schedule-management',
|
2021-11-22 11:00:17 +00:00
|
|
|
component: () => import('../pages/EventManagement.vue'),
|
2021-11-23 16:32:48 +00:00
|
|
|
props: (route) => ({ date: route.query.date }),
|
2021-05-25 15:11:44 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Dienstanfragen',
|
|
|
|
icon: 'mdi-account-switch',
|
|
|
|
shortcut: false,
|
|
|
|
route: {
|
2021-11-24 20:47:14 +00:00
|
|
|
path: 'events-requests',
|
|
|
|
name: 'events-requests',
|
2021-11-22 11:00:17 +00:00
|
|
|
component: () => import('../pages/EventRequests.vue'),
|
2021-05-25 15:11:44 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export const privateRoutes: FG_Plugin.NamedRouteRecordRaw[] = [
|
2021-11-15 09:25:21 +00:00
|
|
|
{
|
2021-11-24 20:47:14 +00:00
|
|
|
name: 'events-single-view',
|
|
|
|
path: 'events/:id',
|
|
|
|
component: () => import('../pages/EventPage.vue'),
|
|
|
|
props: true
|
2021-11-15 09:25:21 +00:00
|
|
|
},
|
2021-05-25 15:11:44 +00:00
|
|
|
{
|
|
|
|
name: 'events-edit',
|
2021-11-24 20:47:14 +00:00
|
|
|
path: 'events/:id/edit',
|
2021-11-22 11:00:17 +00:00
|
|
|
component: () => import('../pages/EventPage.vue'),
|
2021-05-25 15:11:44 +00:00
|
|
|
},
|
|
|
|
];
|