64 lines
1.7 KiB
TypeScript
64 lines
1.7 KiB
TypeScript
|
import { FG_Plugin } from 'src/plugins';
|
||
|
|
||
|
/*const permissions = {
|
||
|
// Show own and others balance
|
||
|
SHOW: 'balance_show',
|
||
|
SHOW_OTHER: 'balance_show_others',
|
||
|
// Credit balance (give)
|
||
|
CREDIT: 'balance_credit',
|
||
|
// Debit balance (take)
|
||
|
DEBIT: 'balance_debit',
|
||
|
// Debit own balance only
|
||
|
DEBIT_OWN: 'balance_debit_own',
|
||
|
// Send from to other
|
||
|
SEND: 'balance_send',
|
||
|
// Send from other to another
|
||
|
SEND_OTHER: 'balance_send_others',
|
||
|
// Can set limit for users
|
||
|
SET_LIMIT: 'balance_set_limit',
|
||
|
//Allow sending / sub while exceeding the set limit
|
||
|
EXCEED_LIMIT: 'balance_exceed_limit'
|
||
|
};*/
|
||
|
|
||
|
const mainRoutes: FG_Plugin.PluginRouteConfig[] = [
|
||
|
{
|
||
|
title: 'Dienste',
|
||
|
icon: 'mdi-briefcase',
|
||
|
path: 'schedule',
|
||
|
name: 'schedule',
|
||
|
component: () => import('../pages/MainPage.vue'),
|
||
|
meta: { permissions: ['user'] },
|
||
|
children: [
|
||
|
{
|
||
|
title: 'Dienstübersicht',
|
||
|
icon: 'mdi-account-group',
|
||
|
path: 'schedule-overview',
|
||
|
name: 'schedule-overview',
|
||
|
shortcut: true,
|
||
|
meta: { permissions: [] },
|
||
|
component: () => import('../pages/Overview.vue')
|
||
|
},
|
||
|
{
|
||
|
title: 'Dienstverwaltung',
|
||
|
icon: 'mdi-account-details',
|
||
|
path: 'schedule-management',
|
||
|
name: 'schedule-management',
|
||
|
shortcut: false,
|
||
|
meta: { permissions: [] },
|
||
|
component: () => import('../pages/Management.vue')
|
||
|
},
|
||
|
{
|
||
|
title: 'Dienstanfragen',
|
||
|
icon: 'mdi-account-switch',
|
||
|
path: 'schedule-requests',
|
||
|
name: 'schedule-requests',
|
||
|
shortcut: false,
|
||
|
meta: { permissions: [] },
|
||
|
component: () => import('../pages/Requests.vue')
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
];
|
||
|
|
||
|
export default mainRoutes;
|