2020-10-31 14:09:02 +00:00
|
|
|
import { FG_Plugin } from 'src/plugins';
|
|
|
|
const mainRoutes: FG_Plugin.PluginRouteConfig[] = [
|
2020-10-13 18:17:00 +00:00
|
|
|
{
|
2021-01-30 07:38:44 +00:00
|
|
|
title: 'loadFromStore("users/displayName")',
|
2020-10-31 14:09:02 +00:00
|
|
|
icon: 'mdi-account',
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: ['user'],
|
|
|
|
route: { path: 'user', name: 'user', component: () => import('../pages/MainPage.vue') },
|
2020-10-13 18:17:00 +00:00
|
|
|
children: [
|
2020-10-31 14:09:02 +00:00
|
|
|
{
|
|
|
|
title: 'Einstellungen',
|
2020-11-10 00:33:55 +00:00
|
|
|
icon: 'mdi-account-edit',
|
2020-10-31 14:09:02 +00:00
|
|
|
shortcut: true,
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: ['user'],
|
|
|
|
route: {
|
|
|
|
path: 'settings',
|
|
|
|
name: 'user-settings',
|
|
|
|
component: () => import('../pages/Settings.vue'),
|
|
|
|
},
|
2020-11-06 00:17:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Admin',
|
|
|
|
icon: 'mdi-cog',
|
|
|
|
shortcut: false,
|
2021-01-30 03:19:30 +00:00
|
|
|
permissions: ['users_edit_other'],
|
|
|
|
route: {
|
|
|
|
path: 'admin',
|
|
|
|
name: 'admin-settings',
|
|
|
|
component: () => import('../pages/AdminSettings.vue'),
|
|
|
|
},
|
2021-03-18 16:23:57 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-10-13 18:17:00 +00:00
|
|
|
];
|
|
|
|
|
2020-10-31 14:09:02 +00:00
|
|
|
export default mainRoutes;
|