flaschengeist-frontend/src/plugins/user/plugin.ts

40 lines
833 B
TypeScript
Raw Normal View History

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';
import routes from './routes';
import { StateInterface } from 'src/store';
const mainLink: PluginMainLink = {
name: 'user',
title: 'loadFromStore("user/displayName")',
link: 'user',
icon: 'mdi-account',
2020-10-16 06:45:40 +00:00
children: [
{
name: 'user',
title: 'Einstellungen',
link: 'user-settings',
icon: 'mdi-cog'
}
]
};
const plugin: Plugin = {
routes,
mainLink,
name: mainLink.name,
requiredModules: [],
shortcutsOut: [],
shortcuts: [],
2020-10-16 06:45:40 +00:00
version: '0.0.1',
store: new Map<string, Module<any, StateInterface>>([
2020-10-16 06:45:40 +00:00
['user', userStore],
['sessions', sessionsStore]
])
};
export { mainLink };
export default plugin;