Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore(store): better code structure

wangaofbd41bc2d872
diff --git a/store/index.js b/store/index.js
deleted file mode 100644
index f19b77f4d..000000000
--- a/store/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import Vuex from "vuex"
-import state from "./state"
-import VuexPersist from "vuex-persist"
-
-export default {
- install(Vue) {
- Vue.use(Vuex)
-
- const vuexLocalStorage = new VuexPersist({
- key: "vuex",
- storage: window.localStorage,
- reducer: ({ ...request }) => ({
- ...request,
- }),
- })
-
- const store = new Vuex.Store({
- state,
- plugins: [vuexLocalStorage.plugin],
- })
-
- Vue.prototype.$store = store
- },
-}