2020-10-13 18:17:00 +00:00
|
|
|
import { Plugin, PluginMainLink } from 'boot/plugins';
|
2020-10-16 06:45:40 +00:00
|
|
|
import { Module } from 'vuex';
|
|
|
|
import userStore from './store/user';
|
|
|
|
import sessionsStore from './store/session';
|
2020-10-13 18:17:00 +00:00
|
|
|
import routes from './routes';
|
|
|
|
|
|
|
|
const mainLink: PluginMainLink = {
|
|
|
|
name: 'user',
|
|
|
|
title: 'User',
|
|
|
|
link: 'user',
|
|
|
|
icon: 'mdi-account',
|
2020-10-16 06:45:40 +00:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: 'user',
|
|
|
|
title: 'Einstellungen',
|
|
|
|
link: 'user-settings',
|
|
|
|
icon: 'mdi-cog'
|
|
|
|
}
|
|
|
|
]
|
2020-10-13 18:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const plugin: Plugin = {
|
|
|
|
routes,
|
|
|
|
mainLink,
|
|
|
|
name: mainLink.name,
|
2020-10-14 20:27:20 +00:00
|
|
|
requiredModules: [],
|
2020-10-14 20:41:50 +00:00
|
|
|
shortcutsOut: [],
|
|
|
|
shortcuts: [],
|
2020-10-16 06:45:40 +00:00
|
|
|
version: '0.0.1',
|
|
|
|
store: new Map<string, Module<any, any>>([
|
|
|
|
['user', userStore],
|
|
|
|
['sessions', sessionsStore]
|
|
|
|
])
|
2020-10-13 18:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export { mainLink };
|
|
|
|
|
|
|
|
export default plugin;
|