2020-10-16 06:45:40 +00:00
|
|
|
import { Module } from 'vuex';
|
2021-01-26 15:37:45 +00:00
|
|
|
import userStore, { UserStateInterface } from './store/user';
|
|
|
|
import sessionsStore, { SessionInterface } 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-11-13 12:42:15 +00:00
|
|
|
requiredBackendModules: ['auth'],
|
2020-10-16 06:45:40 +00:00
|
|
|
version: '0.0.1',
|
2021-01-26 15:37:45 +00:00
|
|
|
store: new Map<
|
|
|
|
string,
|
|
|
|
Module<UserStateInterface, StateInterface> | Module<SessionInterface, StateInterface>
|
|
|
|
>([
|
2020-10-16 06:45:40 +00:00
|
|
|
['user', userStore],
|
2021-03-18 16:23:57 +00:00
|
|
|
['session', sessionsStore],
|
2020-11-10 00:33:55 +00:00
|
|
|
]),
|
2020-11-13 03:01:53 +00:00
|
|
|
widgets: [
|
|
|
|
{
|
|
|
|
priority: 1,
|
|
|
|
name: 'greeting',
|
|
|
|
permissions: [],
|
2021-03-18 16:23:57 +00:00
|
|
|
widget: () => import('./components/Widget.vue'),
|
|
|
|
},
|
|
|
|
],
|
2020-10-13 18:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default plugin;
|