From 286a49e18938882ad6446921fd1b5f81c681793d Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 2 Jan 2019 00:54:28 +0100 Subject: [PATCH] we dont need that --- src/popup/popup.js | 2 -- src/store/actions.js | 5 ----- src/store/getters.js | 1 - src/store/index.js | 17 ----------------- src/store/mutation-types.js | 1 - src/store/mutations.js | 7 ------- 6 files changed, 33 deletions(-) delete mode 100644 src/store/actions.js delete mode 100644 src/store/getters.js delete mode 100644 src/store/index.js delete mode 100644 src/store/mutation-types.js delete mode 100644 src/store/mutations.js diff --git a/src/popup/popup.js b/src/popup/popup.js index 7e3bc50..939e105 100644 --- a/src/popup/popup.js +++ b/src/popup/popup.js @@ -1,7 +1,5 @@ import Vue from 'vue' import App from './App' -import store from '../store' - // global.browser = require('webextension-polyfill') // Vue.prototype.$browser = global.browser diff --git a/src/store/actions.js b/src/store/actions.js deleted file mode 100644 index 3dadd8c..0000000 --- a/src/store/actions.js +++ /dev/null @@ -1,5 +0,0 @@ -import * as types from './mutation-types' - -export const setFoo = ({commit}, payload) => { - commit(types.UPDATE_FOO, payload) -} diff --git a/src/store/getters.js b/src/store/getters.js deleted file mode 100644 index 075cef6..0000000 --- a/src/store/getters.js +++ /dev/null @@ -1 +0,0 @@ -export const foo = (state) => state.foo diff --git a/src/store/index.js b/src/store/index.js deleted file mode 100644 index 45fac81..0000000 --- a/src/store/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import Vue from 'vue' -import Vuex from 'vuex' - -import * as getters from './getters' -import mutations from './mutations' -import * as actions from './actions' - -Vue.use(Vuex) - -export default new Vuex.Store({ - state: { - foo: 'bar' - }, - getters, - mutations, - actions -}) diff --git a/src/store/mutation-types.js b/src/store/mutation-types.js deleted file mode 100644 index c986c3c..0000000 --- a/src/store/mutation-types.js +++ /dev/null @@ -1 +0,0 @@ -export const UPDATE_FOO = 'UPDATE_FOO' diff --git a/src/store/mutations.js b/src/store/mutations.js deleted file mode 100644 index dd926bc..0000000 --- a/src/store/mutations.js +++ /dev/null @@ -1,7 +0,0 @@ -import * as types from './mutation-types' - -export default { - [types.UPDATE_FOO] (state, payload) { - state.foo = payload - } -}