2021-01-23 13:40:35 +00:00
|
|
|
import { Module } from 'vuex';
|
2021-02-02 01:16:29 +00:00
|
|
|
import { defineAsyncComponent } from 'vue';
|
|
|
|
import mainRoutes from './routes';
|
|
|
|
import { FG_Plugin } from 'src/plugins';
|
2021-01-23 13:40:35 +00:00
|
|
|
import { StateInterface } from 'src/store';
|
2021-02-02 01:16:29 +00:00
|
|
|
import store, { ScheduleInterface } from './store/schedule';
|
2020-11-10 00:33:55 +00:00
|
|
|
|
|
|
|
const plugin: FG_Plugin.Plugin = {
|
|
|
|
name: 'Schedule',
|
2021-01-23 13:40:35 +00:00
|
|
|
mainRoutes,
|
|
|
|
requiredModules: ['User'],
|
2020-11-13 12:42:15 +00:00
|
|
|
requiredBackendModules: ['schedule'],
|
2020-11-10 00:33:55 +00:00
|
|
|
version: '0.0.1',
|
2021-01-26 15:37:45 +00:00
|
|
|
store: new Map<string, Module<ScheduleInterface, StateInterface>>([['schedule', store]]),
|
2020-11-13 03:01:53 +00:00
|
|
|
widgets: [
|
|
|
|
{
|
|
|
|
priority: 0,
|
|
|
|
name: 'stats',
|
|
|
|
permissions: [],
|
2021-02-02 01:16:29 +00:00
|
|
|
widget: defineAsyncComponent(() => import('./components/Widget.vue')),
|
2021-03-18 16:23:57 +00:00
|
|
|
},
|
|
|
|
],
|
2020-11-10 00:33:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default plugin;
|