|
@@ -15,16 +15,11 @@ import { createApp } from 'vue'
|
|
|
import router from './resources/vue/router.js'
|
|
import router from './resources/vue/router.js'
|
|
|
import App from './resources/vue/App.vue'
|
|
import App from './resources/vue/App.vue'
|
|
|
|
|
|
|
|
-import {
|
|
|
|
|
- initMarshaller
|
|
|
|
|
-} from './js/marshaller.js'
|
|
|
|
|
-
|
|
|
|
|
-import { checkWebsocketConnection } from './js/websocket.js'
|
|
|
|
|
|
|
+import { initWebsocket } from './js/websocket.js'
|
|
|
|
|
|
|
|
function initClient () {
|
|
function initClient () {
|
|
|
const transport = createConnectTransport({
|
|
const transport = createConnectTransport({
|
|
|
baseUrl: window.location.protocol + '//' + window.location.host + '/api/'
|
|
baseUrl: window.location.protocol + '//' + window.location.host + '/api/'
|
|
|
-
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
window.client = createClient(OliveTinApiService, transport)
|
|
window.client = createClient(OliveTinApiService, transport)
|
|
@@ -40,15 +35,9 @@ function setupVue () {
|
|
|
function main () {
|
|
function main () {
|
|
|
initClient()
|
|
initClient()
|
|
|
|
|
|
|
|
- // Expose websocket connection function globally so App.vue can call it after successful init
|
|
|
|
|
- window.checkWebsocketConnection = checkWebsocketConnection
|
|
|
|
|
|
|
+ initWebsocket()
|
|
|
|
|
|
|
|
setupVue()
|
|
setupVue()
|
|
|
-
|
|
|
|
|
- initMarshaller()
|
|
|
|
|
-
|
|
|
|
|
-// window.addEventListener('EventConfigChanged', fetchGetDashboardComponents)
|
|
|
|
|
-// window.addEventListener('EventEntityChanged', fetchGetDashboardComponents)
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-main() // call self
|
|
|
|
|
|
|
+main()
|