From f18897caf4d1ec3d23d4048ef223af501c9c2d6c Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 14 Mar 2021 15:12:54 +0100 Subject: [PATCH] [pinia] Remove last vuex parts --- src/boot/plugins.ts | 19 ++----------------- src/plugins.d.ts | 3 --- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/boot/plugins.ts b/src/boot/plugins.ts index 5eb1d09..21edae8 100644 --- a/src/boot/plugins.ts +++ b/src/boot/plugins.ts @@ -1,5 +1,4 @@ import { boot } from 'quasar/wrappers'; -import { Store } from 'vuex'; import { FG_Plugin } from 'src/plugins'; import routes from 'src/router/routes'; import { api } from 'boot/axios'; @@ -158,7 +157,6 @@ function loadPlugin( modules: string[], backendpromise: Promise, plugins: FG_Plugin.Plugin[], - store: Store, router: Router ): FG_Plugin.Flaschengeist { modules.forEach((requiredModule) => { @@ -181,11 +179,6 @@ function loadPlugin( plugin.widgets.forEach((widget) => (widget.name = plugin.name + '_' + widget.name)); Array.prototype.push.apply(loadedPlugins.widgets, plugin.widgets); } - if (plugin.store) { - plugin.store.forEach((store_plugin, store_namespace) => { - store.registerModule(store_namespace, store_plugin); - }); - } loadedPlugins.plugins.push({ name: plugin.name, version: plugin.version, @@ -213,7 +206,7 @@ async function getBackend(): Promise { } } -export default boot(({ router, app, store }) => { +export default boot(({ router, app }) => { const plugins: FG_Plugin.Plugin[] = []; const backendPromise = getBackend(); @@ -275,17 +268,9 @@ export default boot(({ router, app, store }) => { config.requiredModules, backendPromise, plugins, - store, - router - ); - loadedPlugins = loadPlugin( - loadedPlugins, - config.loadModules, - backendPromise, - plugins, - store, router ); + loadedPlugins = loadPlugin(loadedPlugins, config.loadModules, backendPromise, plugins, router); loadedPlugins.widgets.sort((a, b) => b.priority - a.priority); diff --git a/src/plugins.d.ts b/src/plugins.d.ts index 19485fd..376d850 100644 --- a/src/plugins.d.ts +++ b/src/plugins.d.ts @@ -1,5 +1,4 @@ import { RouteRecordRaw } from 'vue-router'; -import { Module } from 'vuex'; import { Component, ComputedRef } from 'vue'; declare namespace FG_Plugin { @@ -33,8 +32,6 @@ declare namespace FG_Plugin { requiredBackendModules: string[]; mainRoutes?: PluginRouteConfig[]; outRoutes?: PluginRouteConfig[]; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - store?: Map>; } interface PluginMainLink extends PluginChildLink {