@geode/opengeodeweb-front 2.0.0-rc.12 → 2.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stores/cloud.js +1 -1
- package/stores/geode.js +2 -1
- package/stores/websocket.js +2 -3
package/package.json
CHANGED
package/stores/cloud.js
CHANGED
|
@@ -23,7 +23,7 @@ export const use_cloud_store = defineStore('cloud', {
|
|
|
23
23
|
if (this.ID === '' || this.ID === null || typeof this.ID === 'undefined') {
|
|
24
24
|
return this.create_backend()
|
|
25
25
|
} else {
|
|
26
|
-
const { data, error } = await useFetch(`${
|
|
26
|
+
const { data, error } = await useFetch(`${geode_store.base_url}/ping`, { method: 'POST' })
|
|
27
27
|
console.log("error", error)
|
|
28
28
|
if (data.value !== null) {
|
|
29
29
|
geode_store.is_running = true
|
package/stores/geode.js
CHANGED
|
@@ -8,8 +8,9 @@ export const use_geode_store = defineStore('geode', {
|
|
|
8
8
|
const cloud_store = use_cloud_store()
|
|
9
9
|
const public_runtime_config = useRuntimeConfig().public
|
|
10
10
|
var geode_url = `${public_runtime_config.GEODE_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.GEODE_PORT}`
|
|
11
|
+
console.log('ID', cloud_store.ID)
|
|
11
12
|
if (process.env.NODE_ENV == 'production') {
|
|
12
|
-
geode_url
|
|
13
|
+
geode_url += `/${cloud_store.ID}/geode`
|
|
13
14
|
}
|
|
14
15
|
return geode_url
|
|
15
16
|
},
|
package/stores/websocket.js
CHANGED
|
@@ -24,9 +24,9 @@ export const use_websocket_store = defineStore('websocket', {
|
|
|
24
24
|
const public_runtime_config = useRuntimeConfig().public
|
|
25
25
|
var viewer_url = `${public_runtime_config.VIEWER_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.VIEWER_PORT}`
|
|
26
26
|
if (process.env.NODE_ENV == 'production') {
|
|
27
|
-
viewer_url
|
|
27
|
+
viewer_url += `/${cloud_store.ID}/viewer`
|
|
28
28
|
}
|
|
29
|
-
viewer_url
|
|
29
|
+
viewer_url += '/ws'
|
|
30
30
|
return viewer_url
|
|
31
31
|
},
|
|
32
32
|
is_busy: (state) => {
|
|
@@ -90,7 +90,6 @@ export const use_websocket_store = defineStore('websocket', {
|
|
|
90
90
|
});
|
|
91
91
|
},
|
|
92
92
|
ws_initialize_server () {
|
|
93
|
-
|
|
94
93
|
if (!_.isEmpty(this.client)) {
|
|
95
94
|
this.client
|
|
96
95
|
.getRemote()
|