added driver mode tab to settings in the ui

This commit is contained in:
ori agranat
2019-11-01 17:10:48 +02:00
parent 7ef05e6077
commit 51a3f677bd
18 changed files with 211 additions and 136 deletions

View File

@@ -9,18 +9,18 @@ import msgPack from 'msgpack5';
Vue.config.productionTip = false;
// Vue.use(VueNativeSock,'ws://' + location.host + '/websocket',{format: 'json'});
Vue.use(VueNativeSock, 'ws://' + location.hostname + ':8888/websocket');
Vue.prototype.$msgPack = msgPack(true)
Vue.prototype.$msgPack = msgPack(true);
Vue.mixin({
methods: {
handleInput(key, value) {
let msg = this.$msgPack.encode({[key]: value})
let msg = this.$msgPack.encode({[key]: value});
this.$socket.send(msg);
}
}
})
});
new Vue({
router,
store,
vuetify,
render: h => h(App)
}).$mount('#app')
}).$mount('#app');