Initial vue commit
This commit is contained in:
parent
b561513c4f
commit
859ffc2496
21 changed files with 11115 additions and 651 deletions
35
src/store.js
Normal file
35
src/store.js
Normal 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: {
|
||||
}
|
||||
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue