@geode/opengeodeweb-front 4.0.0-rc.1 → 4.0.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.
package/.github/workflows/CD.yml
CHANGED
|
@@ -14,3 +14,11 @@ jobs:
|
|
|
14
14
|
env:
|
|
15
15
|
GITHUB_TOKEN: ${{ github.token }}
|
|
16
16
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
17
|
+
- name: Merge master -> next
|
|
18
|
+
if: github.ref == 'ref/head/master'
|
|
19
|
+
uses: devmasx/merge-branch@master
|
|
20
|
+
with:
|
|
21
|
+
type: now
|
|
22
|
+
from_branch: master
|
|
23
|
+
target_branch: next
|
|
24
|
+
github_token: ${{ github.token }}
|
package/components/Launcher.vue
CHANGED
|
@@ -8,15 +8,7 @@
|
|
|
8
8
|
align="center"
|
|
9
9
|
>
|
|
10
10
|
<h4 class="pb-3">Please complete the recaptcha to launch the app</h4>
|
|
11
|
-
|
|
12
|
-
<vue-recaptcha
|
|
13
|
-
ref="recaptcha"
|
|
14
|
-
sitekey="6Lce72wgAAAAAOXrHyDxRQBhk6NDTD80MrXOlgbC"
|
|
15
|
-
:loadRecaptchaScript="true"
|
|
16
|
-
@expired="is_captcha_validated = false"
|
|
17
|
-
@verify="submit_recaptcha"
|
|
18
|
-
align-self="center"
|
|
19
|
-
/>
|
|
11
|
+
<Recaptcha :site_key="site_key" />
|
|
20
12
|
</v-col>
|
|
21
13
|
<v-col
|
|
22
14
|
v-else-if="!cloud_store.is_running && cloud_store.is_connexion_launched"
|
|
@@ -28,7 +20,6 @@
|
|
|
28
20
|
</template>
|
|
29
21
|
|
|
30
22
|
<script setup>
|
|
31
|
-
import { VueRecaptcha } from "vue-recaptcha"
|
|
32
23
|
const websocket_store = use_websocket_store()
|
|
33
24
|
const cloud_store = use_cloud_store()
|
|
34
25
|
const { is_captcha_validated } = storeToRefs(cloud_store)
|
|
@@ -45,16 +36,4 @@
|
|
|
45
36
|
onMounted(() => {
|
|
46
37
|
console.log("onMounted", useRuntimeConfig())
|
|
47
38
|
})
|
|
48
|
-
|
|
49
|
-
async function submit_recaptcha(token) {
|
|
50
|
-
try {
|
|
51
|
-
const response = await $fetch.raw(
|
|
52
|
-
`/.netlify/functions/recaptcha?token=${token}`,
|
|
53
|
-
)
|
|
54
|
-
cloud_store.$patch({ is_captcha_validated: response.status == 200 })
|
|
55
|
-
recaptcha.reset()
|
|
56
|
-
} catch (error) {
|
|
57
|
-
console.error(error)
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
39
|
</script>
|
package/components/Recaptcha.vue
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
<script setup>
|
|
15
15
|
import { VueRecaptcha } from "vue-recaptcha"
|
|
16
16
|
|
|
17
|
-
const websocket_store = use_websocket_store()
|
|
18
17
|
const cloud_store = use_cloud_store()
|
|
19
18
|
const { is_captcha_validated } = storeToRefs(cloud_store)
|
|
20
19
|
|
|
@@ -23,7 +22,6 @@
|
|
|
23
22
|
})
|
|
24
23
|
const { site_key } = props
|
|
25
24
|
|
|
26
|
-
// const site_key = useRuntimeConfig().public.RECAPTCHA_SITE_KEY
|
|
27
25
|
console.log("site_key", site_key)
|
|
28
26
|
|
|
29
27
|
onMounted(() => {
|
package/package.json
CHANGED