@geode/opengeodeweb-front 0.0.12 → 0.0.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.
@@ -35,16 +35,10 @@ watch(is_captcha_validated, async (value) => {
35
35
  }
36
36
  })
37
37
 
38
- watch(is_cloud_running, (value, oldValue) => {
39
- if (value === false && oldValue == true) {
40
- cloud_store.$patch({ internal_error: true })
41
- }
42
- })
43
-
44
38
  onMounted(() => {
45
39
  if (process.client) {
46
40
  const config = useRuntimeConfig()
47
- if ((config.public.NODE_ENV !== 'production') || (config.public.SITE_URL.includes('.netlify.app'))) {
41
+ if (config.public.NODE_ENV !== 'production') {
48
42
  cloud_store.$patch({ is_captcha_validated: true })
49
43
  }
50
44
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "description": "OpenSource Vue/Vuetify framework for web applications",
17
17
  "type": "module",
18
- "version": "0.0.12",
18
+ "version": "0.0.14",
19
19
  "main": "./nuxt.config.js",
20
20
  "dependencies": {
21
21
  "@mdi/font": "^7.2.96",
package/stores/cloud.js CHANGED
@@ -9,6 +9,25 @@ export const use_cloud_store = defineStore('cloud', {
9
9
  is_connexion_launched: false,
10
10
  request_counter: 0
11
11
  }),
12
+ getters: {
13
+ geode_url: (state) => {
14
+ const public_runtime_config = useRuntimeConfig().public
15
+ var geode_url = `${public_runtime_config.GEODE_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.GEODE_PORT}`
16
+ if (process.env.NODE_ENV == 'production') {
17
+ geode_url = geode_url + `/${state.ID}`
18
+ // /!\ ADD /geode LATER /!\
19
+ }
20
+ return geode_url
21
+ },
22
+ viewer_url: (state) => {
23
+ const public_runtime_config = useRuntimeConfig().public
24
+ var viewer_url = `${public_runtime_config.VIEWER_PROTOCOL}://${public_runtime_config.API_URL}:${public_runtime_config.VIEWER_PORT}`
25
+ if (process.env.NODE_ENV == 'production') {
26
+ viewer_url = viewer_url + `/${state.ID}/viewer`
27
+ }
28
+ return viewer_url
29
+ },
30
+ },
12
31
  actions: {
13
32
  async create_connexion () {
14
33
  if (this.is_connexion_launched) { return }