2021-05-25 13:58:01 +00:00
|
|
|
import { FG_Plugin } from '@flaschengeist/types';
|
|
|
|
import { defineAsyncComponent } from 'vue';
|
|
|
|
import routes from './routes';
|
2024-10-08 12:31:43 +00:00
|
|
|
import { DisplayNameMode } from './models';
|
2021-05-25 13:58:01 +00:00
|
|
|
|
|
|
|
const plugin: FG_Plugin.Plugin = {
|
|
|
|
id: 'users',
|
|
|
|
name: 'User',
|
|
|
|
innerRoutes: routes,
|
|
|
|
requiredModules: [['auth'], ['users'], ['roles']],
|
|
|
|
version: '0.0.1',
|
|
|
|
widgets: [
|
|
|
|
{
|
|
|
|
priority: 1,
|
|
|
|
name: 'greeting',
|
|
|
|
permissions: [],
|
|
|
|
widget: defineAsyncComponent(() => import('./components/Widget.vue')),
|
|
|
|
},
|
|
|
|
],
|
2024-10-08 12:02:52 +00:00
|
|
|
settingWidgets: [
|
|
|
|
{
|
|
|
|
priority: 1,
|
|
|
|
name: 'userSettings',
|
|
|
|
permissions: [],
|
|
|
|
widget: defineAsyncComponent(() => import('./components/SettingWidget.vue')),
|
|
|
|
},
|
|
|
|
],
|
2021-05-25 13:58:01 +00:00
|
|
|
};
|
|
|
|
|
2021-05-26 15:43:47 +00:00
|
|
|
export default plugin;
|
2024-10-08 12:31:43 +00:00
|
|
|
export { DisplayNameMode };
|
2024-10-11 06:08:53 +00:00
|
|
|
export * from './utils';
|