mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-23 01:21:40 +00:00
- changed the resolution list to be the actual resolution instead of ratio - changed development port to be 5800
27 lines
728 B
JavaScript
27 lines
728 B
JavaScript
import Vue from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import store from './store'
|
|
import vuetify from './plugins/vuetify';
|
|
import VueNativeSock from 'vue-native-websocket';
|
|
import msgPack from 'msgpack5';
|
|
|
|
Vue.config.productionTip = false;
|
|
// Vue.use(VueNativeSock,'ws://' + location.host + '/websocket',{format: 'json'});
|
|
Vue.use(VueNativeSock, 'ws://' + location.hostname + ':5800/websocket');
|
|
Vue.prototype.$msgPack = msgPack(true);
|
|
Vue.mixin({
|
|
methods: {
|
|
handleInput(key, value) {
|
|
let msg = this.$msgPack.encode({[key]: value});
|
|
this.$socket.send(msg);
|
|
}
|
|
}
|
|
});
|
|
new Vue({
|
|
router,
|
|
store,
|
|
vuetify,
|
|
render: h => h(App)
|
|
}).$mount('#app');
|