release v2.0.0 #4
|
@ -22,8 +22,8 @@ interface Plugin {
|
||||||
store?: Module<never, never>[];
|
store?: Module<never, never>[];
|
||||||
mainLink: PluginMainLink;
|
mainLink: PluginMainLink;
|
||||||
requiredModules: string[];
|
requiredModules: string[];
|
||||||
shortCuts: ShortCutLink[];
|
shortcuts: ShortCutLink[];
|
||||||
shortCutsOut: ShortCutLink[];
|
shortcutsOut: ShortCutLink[];
|
||||||
version: string;
|
version: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,8 +156,12 @@ function loadPlugin(
|
||||||
loadedPlugins.mainLinks,
|
loadedPlugins.mainLinks,
|
||||||
plugin.mainLink
|
plugin.mainLink
|
||||||
);
|
);
|
||||||
loadedPlugins.shortcuts.concat(plugin.shortCuts);
|
loadedPlugins.shortcuts = loadedPlugins.shortcuts.concat(
|
||||||
loadedPlugins.shortcutsOut.concat(plugin.shortCutsOut);
|
plugin.shortcuts
|
||||||
|
);
|
||||||
|
loadedPlugins.shortcutsOut = loadedPlugins.shortcutsOut.concat(
|
||||||
|
plugin.shortcutsOut
|
||||||
|
);
|
||||||
loadedPlugins.plugins.push({
|
loadedPlugins.plugins.push({
|
||||||
name: plugin.name,
|
name: plugin.name,
|
||||||
version: plugin.version
|
version: plugin.version
|
||||||
|
@ -206,4 +210,5 @@ export default boot(({ Vue, router, store }) => {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||||
Vue.prototype.$flaschengeistPlugins = loadedPlugins;
|
Vue.prototype.$flaschengeistPlugins = loadedPlugins;
|
||||||
console.log(loadedPlugins);
|
console.log(loadedPlugins);
|
||||||
|
console.log(Vue.prototype.$flaschengeistPlugins);
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,6 +13,14 @@
|
||||||
Flaschengeist
|
Flaschengeist
|
||||||
</span>
|
</span>
|
||||||
</q-toolbar-title>
|
</q-toolbar-title>
|
||||||
|
<div>
|
||||||
|
<short-cut-link
|
||||||
|
v-for="(shortcut, index) in $flaschengeistPlugins.shortcutsOut"
|
||||||
|
:key="'shortcut' + index"
|
||||||
|
:link="shortcut.link"
|
||||||
|
:icon="shortcut.icon"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
|
@ -45,7 +53,9 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from '@vue/composition-api';
|
import { defineComponent } from '@vue/composition-api';
|
||||||
|
import ShortCutLink from 'components/navigation/ShortCutLink.vue';
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'OutLayout'
|
name: 'OutLayout',
|
||||||
|
components: { ShortCutLink }
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
class="fit row justify-center content-center items-center"
|
class="fit row justify-center content-center items-center"
|
||||||
v-if="$route.name == 'about' || $route.name == 'about_out'"
|
v-if="$route.name == 'about' || $route.name == 'about_out'"
|
||||||
>
|
>
|
||||||
<q-card flat class="col-6">
|
<q-card flat class="col-xs-12 col-sm-10 col-md-6">
|
||||||
<q-card-section
|
<q-card-section
|
||||||
class="row fit justify-center items-center content-center"
|
class="row fit justify-center items-center content-center"
|
||||||
>
|
>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Plugin, PluginMainLink } from 'boot/plugins';
|
import { Plugin, PluginMainLink, ShortCutLink } from 'boot/plugins';
|
||||||
import routes from 'src/plugins/plugin-example/routes';
|
import routes from 'src/plugins/plugin-example/routes';
|
||||||
|
|
||||||
const mainLink: PluginMainLink = {
|
const mainLink: PluginMainLink = {
|
||||||
|
@ -27,8 +27,8 @@ const plugin: Plugin = {
|
||||||
mainLink,
|
mainLink,
|
||||||
name: mainLink.name,
|
name: mainLink.name,
|
||||||
requiredModules: [],
|
requiredModules: [],
|
||||||
shortCuts: [],
|
shortcuts: [],
|
||||||
shortCutsOut: [],
|
shortcutsOut: [],
|
||||||
version: '1.0.2'
|
version: '1.0.2'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ const mainLink: PluginMainLink = {
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
const shortCuts: ShortCutLink[] = [
|
const shortcuts: ShortCutLink[] = [
|
||||||
{
|
{
|
||||||
link: 'user-plugin2',
|
link: 'user-plugin2',
|
||||||
icon: 'mdi-account-minus'
|
icon: 'mdi-account-minus'
|
||||||
|
@ -34,8 +34,8 @@ const plugin: Plugin = {
|
||||||
mainLink,
|
mainLink,
|
||||||
name: mainLink.name,
|
name: mainLink.name,
|
||||||
requiredModules: ['user'],
|
requiredModules: ['user'],
|
||||||
shortCuts,
|
shortcuts,
|
||||||
shortCutsOut: [],
|
shortcutsOut: [],
|
||||||
version: '0.1.0'
|
version: '0.1.0'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ const plugin: Plugin = {
|
||||||
mainLink,
|
mainLink,
|
||||||
name: mainLink.name,
|
name: mainLink.name,
|
||||||
requiredModules: [],
|
requiredModules: [],
|
||||||
shortCutsOut: [],
|
shortcutsOut: [],
|
||||||
shortCuts: [],
|
shortcuts: [],
|
||||||
version: '0.0.1'
|
version: '0.0.1'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue