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
|
|
|
{
|
2020-10-31 14:09:02 +00:00
|
|
|
title: 'loadFromStore("user/displayName")',
|
|
|
|
icon: 'mdi-account',
|
|
|
|
path: 'user',
|
|
|
|
name: 'user',
|
|
|
|
component: () => import('../pages/MainPage.vue'),
|
2020-10-31 16:33:09 +00:00
|
|
|
meta: { permissions: ['user'] },
|
2020-10-13 18:17:00 +00:00
|
|
|
children: [
|
|
|
|
{
|
2020-10-31 14:09:02 +00:00
|
|
|
title: 'Hauptkanal',
|
|
|
|
icon: 'mdi-account-hard-hat',
|
|
|
|
path: 'user-main',
|
|
|
|
name: 'user-main',
|
|
|
|
shortcut: false,
|
2020-10-31 16:33:09 +00:00
|
|
|
meta: { permissions: ['user'] },
|
2020-10-31 14:09:02 +00:00
|
|
|
component: () => import('../pages/User.vue')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Einstellungen',
|
|
|
|
icon: 'mdi-cog',
|
|
|
|
path: 'settings',
|
|
|
|
name: 'user-settings',
|
|
|
|
shortcut: true,
|
2020-10-31 16:33:09 +00:00
|
|
|
meta: { permissions: ['user'] },
|
2020-10-31 14:09:02 +00:00
|
|
|
component: () => import('../pages/Settings.vue')
|
2020-11-06 00:17:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Admin',
|
|
|
|
icon: 'mdi-cog',
|
|
|
|
path: 'admin',
|
|
|
|
name: 'admin-settings',
|
|
|
|
shortcut: false,
|
|
|
|
meta: { permissions: ['users_edit_other'] },
|
|
|
|
component: () => import('../pages/AdminSettings.vue')
|
2020-10-13 18:17:00 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2020-10-31 14:09:02 +00:00
|
|
|
export default mainRoutes;
|