2020-10-31 20:30:02 +00:00
|
|
|
import { FG_Plugin } from 'src/plugins';
|
2021-01-21 13:24:46 +00:00
|
|
|
import permissions from '../permissions';
|
2020-10-31 16:33:40 +00:00
|
|
|
|
2021-03-22 02:24:27 +00:00
|
|
|
const mainRoutes: FG_Plugin.MenuRoute[] = [
|
2020-10-31 16:33:40 +00:00
|
|
|
{
|
|
|
|
title: 'Gerücht',
|
|
|
|
icon: 'mdi-cash-100',
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: ['user'],
|
|
|
|
route: {
|
|
|
|
path: 'balance',
|
|
|
|
name: 'balance',
|
|
|
|
redirect: { name: 'balance-view' },
|
|
|
|
},
|
2020-10-31 16:33:40 +00:00
|
|
|
children: [
|
|
|
|
{
|
2021-01-29 03:37:56 +00:00
|
|
|
title: 'Übersicht',
|
2021-02-03 12:26:39 +00:00
|
|
|
icon: 'mdi-cash-check',
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: [permissions.SHOW],
|
|
|
|
route: {
|
|
|
|
path: 'overview',
|
|
|
|
name: 'balance-view',
|
|
|
|
component: () => import('../pages/Overview.vue'),
|
|
|
|
},
|
2021-01-21 13:24:46 +00:00
|
|
|
},
|
|
|
|
{
|
2021-01-29 03:37:56 +00:00
|
|
|
title: 'Buchen',
|
|
|
|
icon: 'mdi-cash-plus',
|
|
|
|
shortcut: true,
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: [permissions.DEBIT_OWN, permissions.SHOW],
|
|
|
|
route: {
|
|
|
|
path: 'change',
|
|
|
|
name: 'balance-change',
|
|
|
|
component: () => import('../pages/MainPage.vue'),
|
|
|
|
},
|
2021-01-21 13:24:46 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Verwaltung',
|
|
|
|
icon: 'mdi-account-cash',
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: [permissions.SET_LIMIT, permissions.SHOW_OTHER],
|
|
|
|
route: {
|
|
|
|
path: 'admin',
|
|
|
|
name: 'balance-admin',
|
|
|
|
component: () => import('../pages/Admin.vue'),
|
|
|
|
},
|
2021-03-18 16:23:57 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-10-31 20:30:02 +00:00
|
|
|
];
|
2020-10-31 16:33:40 +00:00
|
|
|
|
2020-10-31 20:30:02 +00:00
|
|
|
export default mainRoutes;
|