@geode/opengeodeweb-front 9.9.0-rc.1 → 9.9.0-rc.3

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.
@@ -19,6 +19,16 @@
19
19
  site_key: { type: String, required: true },
20
20
  })
21
21
 
22
+ onMounted(() => {
23
+ if (import.meta.client) {
24
+ if (
25
+ process.env.NODE_ENV !== "production" ||
26
+ infra_store.app_mode !== appMode.appMode.CLOUD
27
+ ) {
28
+ infra_store.$patch({ is_captcha_validated: true })
29
+ }
30
+ }
31
+ })
22
32
  async function submit_recaptcha(token) {
23
33
  try {
24
34
  const response = await $fetch.raw(
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "description": "OpenSource Vue/Vuetify framework for web applications",
36
36
  "type": "module",
37
- "version": "9.9.0-rc.1",
37
+ "version": "9.9.0-rc.3",
38
38
  "main": "./nuxt.config.js",
39
39
  "dependencies": {
40
40
  "@geode/opengeodeweb-back": "5.8.7",
package/stores/infra.js CHANGED
@@ -1,12 +1,11 @@
1
1
  import { useStorage } from "@vueuse/core"
2
2
  import Status from "@ogw_f/utils/status.js"
3
- import getCaptchaState from "@ogw_f/utils/captcha_state.js"
4
3
 
5
4
  export const use_infra_store = defineStore("infra", {
6
5
  state: () => ({
7
6
  app_mode: getAppMode(),
8
7
  ID: useStorage("ID", ""),
9
- is_captcha_validated: getCaptchaState(),
8
+ is_captcha_validated: false,
10
9
  status: Status.NOT_CREATED,
11
10
  }),
12
11
  getters: {
@@ -1,11 +0,0 @@
1
- function getCaptchaState() {
2
- if (
3
- getAppMode() === appMode.appMode.BROWSER ||
4
- getAppMode() === appMode.appMode.DESKTOP
5
- ) {
6
- return true
7
- }
8
- return false
9
- }
10
-
11
- export default getCaptchaState