2019-10-19 16:58:10 +03:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
import App from './App.vue'
|
|
|
|
|
import router from './router'
|
2020-05-25 22:46:44 +03:00
|
|
|
import store from './store/index'
|
2019-10-19 16:58:10 +03:00
|
|
|
import vuetify from './plugins/vuetify';
|
|
|
|
|
import msgPack from 'msgpack5';
|
2019-11-09 19:52:33 +02:00
|
|
|
import axios from 'axios';
|
|
|
|
|
import VueAxios from "vue-axios";
|
2019-03-10 22:29:29 +02:00
|
|
|
|
2019-09-20 20:56:24 +03:00
|
|
|
Vue.config.productionTip = false;
|
2019-11-13 20:54:06 +02:00
|
|
|
|
2020-03-19 14:02:49 +02:00
|
|
|
if (process.env.NODE_ENV === "production") {
|
2019-11-13 20:54:06 +02:00
|
|
|
Vue.prototype.$address = location.host;
|
2020-03-19 14:02:49 +02:00
|
|
|
} else if (process.env.NODE_ENV === "development") {
|
2019-11-13 20:54:06 +02:00
|
|
|
Vue.prototype.$address = location.hostname + ":5800";
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-31 13:50:50 -07:00
|
|
|
const wsURL = '//' + Vue.prototype.$address + '/websocket';
|
2019-11-09 19:52:33 +02:00
|
|
|
|
2020-05-25 22:46:44 +03:00
|
|
|
import VueNativeSock from 'vue-native-websocket';
|
|
|
|
|
|
|
|
|
|
Vue.use(VueNativeSock, wsURL, {
|
2020-07-31 13:50:50 -07:00
|
|
|
reconnection: true,
|
2020-12-08 13:33:03 -05:00
|
|
|
reconnectionDelay: 100,
|
2020-07-31 13:50:50 -07:00
|
|
|
connectManually: true,
|
|
|
|
|
format: "arraybuffer",
|
2019-11-30 10:39:53 -08:00
|
|
|
});
|
2019-11-09 19:52:33 +02:00
|
|
|
Vue.use(VueAxios, axios);
|
2019-11-01 17:10:48 +02:00
|
|
|
Vue.prototype.$msgPack = msgPack(true);
|
2019-11-09 19:52:33 +02:00
|
|
|
|
2020-05-25 22:46:44 +03:00
|
|
|
import {dataHandleMixin} from './mixins/global/dataHandleMixin'
|
|
|
|
|
Vue.mixin(dataHandleMixin);
|
Bootup sprint (#18)
* Did some stuff
* Fix gradle, start implementing mjpeg frame consumer
* Did some stuff
* bade changes
* rename camera config to USBCameraConfiguration, add name
* unrename cameraconfiguration
* Add pub/sub framework
* Add setResolution to mjpeg frame consumer
* add NTDataConsumer
* Add some totally broken hsv hacks
* Start refactoring UI data
* Update index.js
* Commit and push, he says
* Fix up some errors
* Fix input tab
* Fix fps
* Update index.js
* Add pipeline field setting, update PipelineManager, fix nullpointers and USBCameraSettables
* Change v-model to point to data()
* update hsv to use mutations
* Work on saving, fix hsv
* Rename shouldErode/shouldDilate to erode and dilate
* Hook all the tabs up to the Store
* Change handleData to handlePipelineData
* camera quirk redo, add ICCSub to SocketHandler
* Fix some property names
* Fixed tons of naming in UI, fix backend for multi-val PSCs, fix PSC enums
* change pipeline type to an int in store
* Fix mutation naming
* Attempt threshold fix
* Update SocketHandler.java
* Add truthy data sending
* Start adding logging support
* [UI] Add delay to slider input boxes (#1)
* [UI] [Backend] potentially fix camera settings, various logging tweaks
* Don't release raw input mat
* add setVideoModeIndex to vision settables
* Implement pipeline index in socket handler, add framework for renaming/changing pipes
* (ish) get pipeline change working
* Create index.html
* Cleanups, fix pipeline index bug, fix stream res for MJPG, add dashboard stream (unused)
* Refactor UI to use mutatePipeline, send pipeline results
* Update NetworkConfig.java
* Change double to number
* Run spotless
* Fix reversal of large/small comparators
* Fix left/right
* Fix pitch/yaw calculation bug, fix area bug
* Use Vue.set instead of assignment
This fixes {{ }}
* Update App.vue
* run spotless
* Actually add pipelines and reassign indecies
* Delete old pipeline configs
Fixes duplication on renaming pipeline
* Start working on deleting pipes
* Fix camera nickname change
* run spotless
* Fix some test stuff
* Update VisionModuleManagerTest.java
* vision source manager test is still broken
* Fix VisionSourceManager test
* Apply spotless 2 electric boogaloo
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: Declan Freeman-Gleason <declanfreemangleason@gmail.com>
Co-authored-by: Aaryan Agrawal <54345060+13Ducks@users.noreply.github.com>
2020-07-07 01:01:58 -07:00
|
|
|
|
2021-09-03 19:20:55 -07:00
|
|
|
import {stateMixin} from './mixins/global/stateMixin'
|
|
|
|
|
Vue.mixin(stateMixin);
|
|
|
|
|
|
2019-03-10 22:29:29 +02:00
|
|
|
new Vue({
|
2019-10-29 23:58:06 +02:00
|
|
|
router,
|
|
|
|
|
store,
|
|
|
|
|
vuetify,
|
|
|
|
|
render: h => h(App)
|
2019-11-01 17:10:48 +02:00
|
|
|
}).$mount('#app');
|