@geode/opengeodeweb-front 7.0.2-rc.2 → 7.0.2
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 -2
- package/stores/cloud.js +3 -4
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"description": "OpenSource Vue/Vuetify framework for web applications",
|
|
37
37
|
"type": "module",
|
|
38
|
-
"version": "7.0.2
|
|
38
|
+
"version": "7.0.2",
|
|
39
39
|
"main": "./nuxt.config.js",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@geode/opengeodeweb-back": "4.0.0",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"@pinia/nuxt": "^0.5.1",
|
|
46
46
|
"@types/node": "^20.12.4",
|
|
47
47
|
"@vueuse/components": "^10.9.0",
|
|
48
|
-
"@vueuse/core": "^10.9.0",
|
|
49
48
|
"@vueuse/nuxt": "^10.9.0",
|
|
50
49
|
"ajv": "^8.12.0",
|
|
51
50
|
"pinia": "^2.1.7",
|
package/stores/cloud.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useStorage } from "@vueuse/core"
|
|
2
2
|
|
|
3
3
|
export const use_cloud_store = defineStore("cloud", {
|
|
4
4
|
state: () => ({
|
|
@@ -36,7 +36,7 @@ export const use_cloud_store = defineStore("cloud", {
|
|
|
36
36
|
) {
|
|
37
37
|
return this.create_backend()
|
|
38
38
|
} else {
|
|
39
|
-
const { data
|
|
39
|
+
const { data } = await useFetch(`${geode_store.base_url}/ping`, {
|
|
40
40
|
method: "POST",
|
|
41
41
|
})
|
|
42
42
|
if (data.value !== null) {
|
|
@@ -56,11 +56,10 @@ export const use_cloud_store = defineStore("cloud", {
|
|
|
56
56
|
public_runtime_config.PROJECT,
|
|
57
57
|
"/createbackend",
|
|
58
58
|
)
|
|
59
|
-
const { data
|
|
59
|
+
const { data } = await useFetch(url, {
|
|
60
60
|
method: "POST",
|
|
61
61
|
})
|
|
62
62
|
|
|
63
|
-
console.log("data", data)
|
|
64
63
|
if (data.value !== null) {
|
|
65
64
|
this.ID = data.value.ID
|
|
66
65
|
localStorage.setItem("ID", data.value.ID)
|