we dont need that
This commit is contained in:
parent
10a8746338
commit
286a49e189
@ -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
|
||||
|
@ -1,5 +0,0 @@
|
||||
import * as types from './mutation-types'
|
||||
|
||||
export const setFoo = ({commit}, payload) => {
|
||||
commit(types.UPDATE_FOO, payload)
|
||||
}
|
@ -1 +0,0 @@
|
||||
export const foo = (state) => state.foo
|
@ -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
|
||||
})
|
@ -1 +0,0 @@
|
||||
export const UPDATE_FOO = 'UPDATE_FOO'
|
@ -1,7 +0,0 @@
|
||||
import * as types from './mutation-types'
|
||||
|
||||
export default {
|
||||
[types.UPDATE_FOO] (state, payload) {
|
||||
state.foo = payload
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user