mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-29 02:21:41 +00:00
general settings and camera settings as http requests
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user