@geode/opengeodeweb-front 9.0.1 → 9.0.2-rc.1

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 CHANGED
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "description": "OpenSource Vue/Vuetify framework for web applications",
39
39
  "type": "module",
40
- "version": "9.0.1",
40
+ "version": "9.0.2-rc.1",
41
41
  "main": "./nuxt.config.js",
42
42
  "dependencies": {
43
43
  "@geode/opengeodeweb-back": "5.0.0",
package/stores/infra.js CHANGED
@@ -9,6 +9,9 @@ export const use_infra_store = defineStore("infra", {
9
9
  }),
10
10
  getters: {
11
11
  is_cloud() {
12
+ console.log("is_cloud")
13
+ console.log("TEST isElectron()", isElectron())
14
+ console.log("TEST process.env.NODE_ENV", process.env.NODE_ENV)
12
15
  return !isElectron() && !process.env.NODE_ENV === "development"
13
16
  },
14
17
  domain_name() {
package/stores/viewer.js CHANGED
@@ -21,16 +21,16 @@ export const use_viewer_store = defineStore("viewer", {
21
21
  return "ws"
22
22
  }
23
23
  },
24
- port(state) {
24
+ port() {
25
25
  if (use_infra_store().is_cloud) {
26
26
  return "443"
27
27
  } else {
28
- return state.default_local_port
28
+ return this.default_local_port
29
29
  }
30
30
  },
31
- base_url(state) {
31
+ base_url() {
32
32
  const infra_store = use_infra_store()
33
- let viewer_url = `${state.protocol}://${infra_store.domain_name}:${state.port}`
33
+ let viewer_url = `${this.protocol}://${infra_store.domain_name}:${this.port}`
34
34
  if (infra_store.is_cloud) {
35
35
  if (infra_store.ID == "") {
36
36
  throw new Error("ID must not be empty in cloud mode")