From 4dcf592812c96804475e0e369c2b87a90ae550f8 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Wed, 16 Nov 2022 10:54:14 -0800 Subject: [PATCH 1/3] Removed non used setting --- form.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/form.yaml b/form.yaml index ae8cecf..29793ca 100644 --- a/form.yaml +++ b/form.yaml @@ -19,7 +19,6 @@ recaptcha: site_key: secret_key: turnstile: - widget: managed # options: [managed | non-interactive | invisible] theme: light # options: [light | dark] site_key: secret_key: From 38c85c30bba2e8257921a6ee2fe7da4388e4f9bd Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 29 Nov 2022 15:52:57 -0700 Subject: [PATCH 2/3] Fix missing turnstile blueprint entries --- CHANGELOG.md | 6 ++++++ blueprints.yaml | 23 +++++++++++++++++++++++ languages.yaml | 1 + 3 files changed, 30 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e3a478..2d9c678 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v7.1.1 +## 11/29/2022 + +1. [](#bugfix) + * Fix missing blueprint entries for Turnstile configuration [#583](https://github.com/getgrav/grav-plugin-form/issues/583) + # v7.1.0 ## 11/16/2022 diff --git a/blueprints.yaml b/blueprints.yaml index 776ee88..76afd2e 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -197,6 +197,29 @@ form: help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP default: '' + turnstile_captcha: + type: section + title: PLUGIN_FORM.TURNSTILE_CAPTCHA + + fields: + turnstile.theme: + type: select + label: PLUGIN_FORM.RECAPTCHA_THEME + default: light + options: + light: PLUGIN_FORM.RECAPTCHA_THEME_LIGHT + dark: PLUGIN_FORM.RECAPTCHA_THEME_DARK + turnstile.site_key: + type: text + label: PLUGIN_FORM.RECAPTCHA_SITE_KEY + help: PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP + default: '' + turnstile.secret_key: + type: text + label: PLUGIN_FORM.RECAPTCHA_SECRET_KEY + help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP + default: '' + basic_captcha: type: section title: PLUGIN_FORM.BASIC_CAPTCHA diff --git a/languages.yaml b/languages.yaml index 84c73ff..c6a288f 100644 --- a/languages.yaml +++ b/languages.yaml @@ -87,6 +87,7 @@ en: BASIC_CAPTCHA_MATH_MIN: "Minimum number" BASIC_CAPTCHA_MATH_MAX: "Maximum number" BASIC_CAPTCHA_MATH_OPERATORS: "Mathematical operators (randomized)" + TURNSTILE_CAPTCHA: "Cloudflare Turnstile Captcha" eu: PLUGIN_FORM: From e2170f970aa0407367f0902a11bb55cce311bfad Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 29 Nov 2022 15:53:24 -0700 Subject: [PATCH 3/3] prepare for release --- blueprints.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints.yaml b/blueprints.yaml index 76afd2e..721487a 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,7 +1,7 @@ name: Form slug: form type: plugin -version: 7.1.0 +version: 7.1.1 description: Enables forms handling and processing icon: check-square author: