Initial vue commit

This commit is contained in:
Joel Collins 2019-01-28 09:53:22 +00:00
parent b561513c4f
commit 859ffc2496
21 changed files with 11115 additions and 651 deletions

35
src/store.js Normal file
View file

@ -0,0 +1,35 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
host: '',
connected: '',
available: ''
},
mutations: {
changeHost(state, host) {
state.host = host
},
changeConnected(state, connected) {
state.connected = connected
},
changeAvailable(state, available) {
state.available = available
}
},
getters: {
host: state => state.host,
connected: state => state.connected,
available: state => state.available
},
actions: {
}
})