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';
|
2020-10-18 23:45:06 +00:00
|
|
|
import { StateInterface } from 'src/store';
|
2020-10-31 14:09:02 +00:00
|
|
|
import { FG_Plugin } from 'src/plugins';
|
2020-10-13 18:17:00 +00:00
|
|
|
|
2020-10-31 14:09:02 +00:00
|
|
|
const plugin: FG_Plugin.Plugin = {
|
|
|
|
name: 'User',
|
|
|
|
mainRoutes: routes,
|
2020-10-14 20:27:20 +00:00
|
|
|
requiredModules: [],
|
2020-10-16 06:45:40 +00:00
|
|
|
version: '0.0.1',
|
2020-10-18 23:45:06 +00:00
|
|
|
store: new Map<string, Module<any, StateInterface>>([
|
2020-10-16 06:45:40 +00:00
|
|
|
['user', userStore],
|
2020-11-04 22:53:10 +00:00
|
|
|
['session', sessionsStore]
|
2020-11-10 00:33:55 +00:00
|
|
|
]),
|
|
|
|
widget: {
|
|
|
|
priority: 1,
|
|
|
|
widget: () => import('./components/Widget.vue')
|
|
|
|
}
|
2020-10-13 18:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default plugin;
|