general settings and camera settings as http requests

This commit is contained in:
ori agranat
2019-11-09 19:52:33 +02:00
parent 130cc394ee
commit 1198e2cf99
9 changed files with 153 additions and 74 deletions

View File

@@ -5,11 +5,17 @@ import store from './store'
import vuetify from './plugins/vuetify';
import VueNativeSock from 'vue-native-websocket';
import msgPack from 'msgpack5';
import axios from 'axios';
import VueAxios from "vue-axios";
Vue.config.productionTip = false;
// Vue.use(VueNativeSock,'ws://' + location.host + '/websocket',{format: 'json'});
Vue.use(VueNativeSock, 'ws://' + location.hostname + ':5800/websocket');
Vue.prototype.$address = location.hostname + ":5800";
// Vue.prototype.$address = location.host;
Vue.use(VueNativeSock, 'ws://' + Vue.prototype.$address + '/websocket');
Vue.use(VueAxios, axios);
Vue.prototype.$msgPack = msgPack(true);
Vue.mixin({
methods: {
handleInput(key, value) {