@geode/opengeodeweb-front 2.0.0-rc.4 → 2.0.0-rc.6

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.
@@ -22,11 +22,7 @@ const websocket_store = use_websocket_store()
22
22
  const cloud_store = use_cloud_store()
23
23
  const { is_cloud_running, is_captcha_validated, is_connexion_launched } = storeToRefs(cloud_store)
24
24
 
25
- const props = defineProps({
26
- site_key: { type: String, required: true }
27
- })
28
-
29
- const { site_key } = toRefs(props)
25
+ const site_key = useRuntimeConfig().public.RECAPTCHA_SITE_KEY
30
26
 
31
27
  watch(is_captcha_validated, async (value) => {
32
28
  if (value === true && process.client) {
@@ -44,7 +40,7 @@ onMounted(() => {
44
40
  }
45
41
  })
46
42
 
47
- async function submit_recaptcha(token) {
43
+ async function submit_recaptcha (token) {
48
44
  try {
49
45
  const response = await $fetch.raw(`/.netlify/functions/recaptcha?token=${token}`)
50
46
  cloud_store.$patch({ is_captcha_validated: response.status == 200 })
@@ -5,7 +5,7 @@
5
5
  <Header :tool_name="tool_name" :cards_list="cards_list" />
6
6
  </v-col>
7
7
  <v-col v-if="!is_cloud_running">
8
- <Launcher :site_key="site_key" />
8
+ <Launcher />
9
9
  </v-col>
10
10
  <v-col v-if="is_cloud_running">
11
11
  <Stepper />
@@ -23,9 +23,8 @@ const { is_cloud_running } = storeToRefs(cloud_store)
23
23
 
24
24
  const props = defineProps({
25
25
  cards_list: { type: Array, required: true },
26
- site_key: { type: String, required: true }
27
26
  })
28
- const { cards_list, site_key } = props
27
+ const { cards_list } = props
29
28
 
30
29
  const stepper_tree = inject('stepper_tree')
31
30
  const { tool_name, route_prefix } = stepper_tree
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "description": "OpenSource Vue/Vuetify framework for web applications",
20
20
  "type": "module",
21
- "version": "2.0.0-rc.4",
21
+ "version": "2.0.0-rc.6",
22
22
  "main": "./nuxt.config.js",
23
23
  "dependencies": {
24
24
  "@kitware/vtk.js": "^28.8.0",
package/stores/viewer.js CHANGED
@@ -10,7 +10,7 @@ export const use_viewer_store = defineStore('viewer', {
10
10
  this.picking_mode = value
11
11
  },
12
12
  async set_picked_point (x, y) {
13
- const response = await get_point_position({ x, y })
13
+ const response = await this.get_point_position({ x, y })
14
14
  const { x: world_x, y: world_y } = response
15
15
  this.picked_point.x = world_x
16
16
  this.picked_point.y = world_y