diff --git a/components/Launcher.vue b/components/Launcher.vue
index 27fa73f4..04a18a3e 100644
--- a/components/Launcher.vue
+++ b/components/Launcher.vue
@@ -8,8 +8,7 @@
align-self="center"
style="z-index: 1000"
>
-
Please complete the recaptcha to launch the app
-
+
diff --git a/components/Recaptcha.vue b/components/Recaptcha.vue
index 2ce4d0b4..fcf9d397 100644
--- a/components/Recaptcha.vue
+++ b/components/Recaptcha.vue
@@ -1,23 +1,68 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/package-lock.json b/package-lock.json
index dad428b4..cd15ca70 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27,7 +27,6 @@
"semver": "7.7.1",
"tree-kill": "1.2.2",
"uuid": "11.1.0",
- "vue-recaptcha": "2.0.3",
"vue3-carousel": "0.3.4",
"vuetify": "3.8.12",
"wslink": "1.12.4"
@@ -22557,54 +22556,6 @@
"eslint": "^8.57.0 || ^9.0.0"
}
},
- "node_modules/vue-recaptcha": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/vue-recaptcha/-/vue-recaptcha-2.0.3.tgz",
- "integrity": "sha512-Rz0kLIETUgmOrp7CxFvaFE65DkhKdWu4pteWOTt2i+yTajTHPqtyOW6DqTg0BvALWTm+WUvWVV7k5XXFijQnBw==",
- "license": "MIT",
- "workspaces": [
- ".",
- "vue2-test"
- ],
- "dependencies": {
- "vue-demi": "^0.13.11"
- },
- "peerDependencies": {
- "@vue/composition-api": "^1.0.0-beta.1",
- "vue": "^2.0.0 || ^3.0.0"
- },
- "peerDependenciesMeta": {
- "@vue/composition-api": {
- "optional": true
- }
- }
- },
- "node_modules/vue-recaptcha/node_modules/vue-demi": {
- "version": "0.13.11",
- "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.13.11.tgz",
- "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==",
- "hasInstallScript": true,
- "license": "MIT",
- "bin": {
- "vue-demi-fix": "bin/vue-demi-fix.js",
- "vue-demi-switch": "bin/vue-demi-switch.js"
- },
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/antfu"
- },
- "peerDependencies": {
- "@vue/composition-api": "^1.0.0-rc.1",
- "vue": "^3.0.0-0 || ^2.6.0"
- },
- "peerDependenciesMeta": {
- "@vue/composition-api": {
- "optional": true
- }
- }
- },
"node_modules/vue-router": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.5.1.tgz",
diff --git a/package.json b/package.json
index ec8bdf2b..960c7c3a 100644
--- a/package.json
+++ b/package.json
@@ -61,7 +61,6 @@
"semver": "7.7.1",
"tree-kill": "1.2.2",
"uuid": "11.1.0",
- "vue-recaptcha": "2.0.3",
"vue3-carousel": "0.3.4",
"vuetify": "3.8.12",
"wslink": "1.12.4"
diff --git a/tests/unit/utils/recaptcha.nuxt.test.js b/tests/unit/utils/recaptcha.nuxt.test.js
new file mode 100644
index 00000000..5d2ac15f
--- /dev/null
+++ b/tests/unit/utils/recaptcha.nuxt.test.js
@@ -0,0 +1,33 @@
+import { describe, expect, test } from "vitest"
+
+import check_recaptcha_params from "@ogw_f/utils/recaptcha.js"
+
+describe("recaptcha.js", () => {
+ const name = ""
+ const email = ""
+ const launch = false
+ describe("Wrong params", () => {
+ test("name", async () => {
+ const name = "test"
+ const result = check_recaptcha_params(name, email, launch)
+ expect(result.status).toBe(500)
+ })
+ test("email", async () => {
+ const email = "test"
+ const result = check_recaptcha_params(name, email, launch)
+ expect(result.status).toBe(500)
+ })
+ test("launch", async () => {
+ const launch = true
+ const result = check_recaptcha_params(name, email, launch)
+ expect(result.status).toBe(500)
+ })
+ })
+
+ describe("Right params", () => {
+ test("name", async () => {
+ const result = check_recaptcha_params(name, email, launch)
+ expect(result.status).toBe(200)
+ })
+ })
+})
diff --git a/utils/recaptcha.js b/utils/recaptcha.js
new file mode 100644
index 00000000..1523a796
--- /dev/null
+++ b/utils/recaptcha.js
@@ -0,0 +1,8 @@
+function check_recaptcha_params(name, email, launch) {
+ if (name !== "") return { status: 500 }
+ if (email !== "") return { status: 500 }
+ if (launch !== false) return { status: 500 }
+ return { status: 200 }
+}
+
+export default check_recaptcha_params