2020-10-14 20:27:20 +00:00
|
|
|
import { Plugin, PluginMainLink, ShortCutLink } from 'boot/plugins';
|
2020-10-13 18:17:00 +00:00
|
|
|
import routes from './routes';
|
|
|
|
|
|
|
|
const mainLink: PluginMainLink = {
|
|
|
|
name: 'user-plugin',
|
|
|
|
title: 'User',
|
|
|
|
link: 'user',
|
|
|
|
icon: 'mdi-account',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: 'user-plugin',
|
|
|
|
title: 'Erstes Plugin für User',
|
|
|
|
link: 'user-plugin1',
|
|
|
|
icon: 'mdi-account-plus'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'user-plugin',
|
|
|
|
title: 'Zweites Plugin für User',
|
|
|
|
link: 'user-plugin2',
|
|
|
|
icon: 'mdi-account-minus'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
2020-10-14 20:27:20 +00:00
|
|
|
const shortCuts: ShortCutLink[] = [
|
|
|
|
{
|
|
|
|
link: 'user-plugin2',
|
|
|
|
icon: 'mdi-account-minus'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2020-10-13 18:17:00 +00:00
|
|
|
const plugin: Plugin = {
|
|
|
|
routes,
|
|
|
|
mainLink,
|
|
|
|
name: mainLink.name,
|
2020-10-14 20:27:20 +00:00
|
|
|
requiredModules: ['user'],
|
|
|
|
shortCuts,
|
|
|
|
shortCutsOut: [],
|
|
|
|
version: '0.1.0'
|
2020-10-13 18:17:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export { mainLink };
|
|
|
|
export default plugin;
|