From dd9ae21472a3f236c33ba5217c93f3d9136f7b49 Mon Sep 17 00:00:00 2001 From: axolotle Date: Mon, 4 Mar 2024 03:28:55 +0100 Subject: [PATCH] refactor: upgrade to vuex4 --- app/package.json | 3 +-- app/src/store/index.js | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app/package.json b/app/package.json index 2ae083bb..9a20cdf0 100644 --- a/app/package.json +++ b/app/package.json @@ -24,8 +24,7 @@ "vue-i18n": "^8.28.2", "vue-router": "^4.3.0", "vue-showdown": "^2.4.1", - "vuelidate": "^0.7.7", - "vuex": "^3.6.2" + "vuex": "^4.1.0" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.4", diff --git a/app/src/store/index.js b/app/src/store/index.js index ea7adddf..1aff8077 100644 --- a/app/src/store/index.js +++ b/app/src/store/index.js @@ -1,13 +1,10 @@ -import Vue from 'vue' -import Vuex from 'vuex' +import { createStore } from 'vuex' import info from './info' import settings from './settings' import data from './data' -Vue.use(Vuex) - -export default new Vuex.Store({ +export default createStore({ state: settings.state, mutations: settings.mutations, actions: settings.actions,