Changeset 3052710
- Timestamp:
- 03/17/2024 02:58:12 PM (22 months ago)
- Location:
- captchafox-for-forms
- Files:
-
- 10 edited
- 1 copied
-
tags/1.4.0 (copied) (copied from captchafox-for-forms/trunk)
-
tags/1.4.0/assets/js/otter.js (modified) (1 diff)
-
tags/1.4.0/captchafox.php (modified) (3 diffs)
-
tags/1.4.0/readme.txt (modified) (2 diffs)
-
tags/1.4.0/src/ts/otter.ts (modified) (2 diffs)
-
tags/1.4.0/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/assets/js/otter.js (modified) (1 diff)
-
trunk/captchafox.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/ts/otter.ts (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
captchafox-for-forms/tags/1.4.0/assets/js/otter.js
r3007827 r3052710 1 "use strict";var d=(r,o,e)=>new Promise((i,a)=>{var s=n=>{try{t(e.next(n))}catch(c){a(c)}},w=n=>{try{t(e.throw(n))}catch(c){a(c)}},t=n=>n.done?i(n.value):Promise.resolve(n.value).then(s,w);t((e=e.apply(r,o)).next())});document.addEventListener("DOMContentLoaded",function(){var r;!((r=window.themeisleGutenbergForm)!=null&&r.reRecaptchaSitekey)||!window.hasOwnProperty("captchafox")||(window.grecaptcha={},window.captchaFoxLoadOtter())}),window.captchaFoxLoadOtter=()=>{document.querySelectorAll(".wp-block-themeisle-blocks-form").forEach(o=>d(this,null,function*(){var e;(e=o==null?void 0:o.classList)!=null&&e.contains("has-captcha")&&(yield renderCaptchaFoxOnOtterForm(o))}))};const renderCaptchaFoxOnOtterForm=r=>d(this,null,function*(){var s,w;const{id:o}=r,e=document.createElement("div"),i=r.querySelector(".otter-form__container");i==null||i.insertBefore(e,i.lastChild);const a=yield(w=window.captchafox)==null?void 0:w.render(e,{sitekey:(s=window==null?void 0:window.themeisleGutenbergForm)==null?void 0:s.reRecaptchaSitekey,onError:t=>console.error(t),onVerify:t=>{var n;(n=window.themeisleGutenberg)!=null&&n.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[o]={token:t,reset:()=>{var c;return(c=window.captchafox)==null?void 0:c.reset(a)}}},onExpire:()=>{var t;(t=window.themeisleGutenberg)!=null&&t.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[o]={token:null,reset:()=>null}}})});1 "use strict";var l=(i,t,n)=>new Promise((o,a)=>{var d=e=>{try{r(n.next(e))}catch(s){a(s)}},c=e=>{try{r(n.throw(e))}catch(s){a(s)}},r=e=>e.done?o(e.value):Promise.resolve(e.value).then(d,c);r((n=n.apply(i,t)).next())});document.addEventListener("DOMContentLoaded",function(){var i;if(!((i=window.themeisleGutenbergForm)!=null&&i.reRecaptchaSitekey)){console.warn("Open the Otter Blocks settings to set the sitekey for CaptchaFox");return}window.grecaptcha={},window.captchaFoxLoadOtter()}),window.captchaFoxLoadOtter=()=>{document.querySelectorAll(".wp-block-themeisle-blocks-form").forEach(t=>l(this,null,function*(){var n;(n=t==null?void 0:t.classList)!=null&&n.contains("has-captcha")&&(yield renderCaptchaFoxOnOtterForm(t))}))};const renderCaptchaFoxOnOtterForm=i=>l(this,null,function*(){var c,r;const{id:t}=i,n=document.createElement("div"),o=i.querySelector(".otter-form__container");if(o==null?void 0:o.querySelector(`#${t}`))return;n.id=t,o==null||o.insertBefore(n,o.lastChild);const d=yield(r=window.captchafox)==null?void 0:r.render(n,{sitekey:(c=window==null?void 0:window.themeisleGutenbergForm)==null?void 0:c.reRecaptchaSitekey,onError:e=>console.error(e),onVerify:e=>{var s;(s=window.themeisleGutenberg)!=null&&s.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:e,reset:()=>{var w;return(w=window.captchafox)==null?void 0:w.reset(d)}}},onExpire:()=>{var e;(e=window.themeisleGutenberg)!=null&&e.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:null,reset:()=>null}}})}); -
captchafox-for-forms/tags/1.4.0/captchafox.php
r3025079 r3052710 7 7 * Plugin Name: CaptchaFox for WordPress 8 8 * Description: GDPR compliant bot and spam protection with CaptchaFox. 9 * Version: 1. 3.09 * Version: 1.4.0 10 10 * Requires at least: 5.0 11 11 * Requires PHP: 7.0 … … 16 16 * 17 17 * WC requires at least: 3.0 18 * WC tested up to: 8. 518 * WC tested up to: 8.6 19 19 */ 20 20 … … 28 28 29 29 const CAPTCHAFOX_BASE_FILE = __FILE__; 30 const PLUGIN_VERSION = '1. 2.0';30 const PLUGIN_VERSION = '1.4.0'; 31 31 32 32 require 'vendor/autoload.php'; -
captchafox-for-forms/tags/1.4.0/readme.txt
r3025079 r3052710 3 3 Tags: captcha, abuse, recaptcha, spam, anti-spam, captchafox, gdpr, comments, block bots 4 4 Requires at least: 5.0 5 Tested up to: 6. 45 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 == Changelog == 78 78 79 = 1.4.0 = 80 * Tested on WooCommerce 8.6 81 * Tested on WordPress 6.5 82 79 83 = 1.3.0 = 80 84 * Tested on WooCommerce 8.5 -
captchafox-for-forms/tags/1.4.0/src/ts/otter.ts
r3007827 r3052710 20 20 21 21 document.addEventListener('DOMContentLoaded', function () { 22 if ( 23 !window.themeisleGutenbergForm?.reRecaptchaSitekey ||24 !window.hasOwnProperty('captchafox')25 ) {22 if (!window.themeisleGutenbergForm?.reRecaptchaSitekey) { 23 console.warn( 24 'Open the Otter Blocks settings to set the sitekey for CaptchaFox' 25 ); 26 26 return; 27 27 } … … 49 49 const captchaNode = document.createElement('div'); 50 50 const container = form.querySelector('.otter-form__container'); 51 const existingNode = container?.querySelector(`#${id}`); 52 53 if (existingNode) { 54 return; 55 } 56 57 captchaNode.id = id; 51 58 container?.insertBefore(captchaNode, container.lastChild); 52 59 -
captchafox-for-forms/tags/1.4.0/vendor/composer/installed.php
r3025079 r3052710 2 2 'root' => array( 3 3 'name' => 'captchafox/captchafox-wordpress', 4 'pretty_version' => '1. 3.0',5 'version' => '1. 3.0.0',6 'reference' => ' e00395e430141be34f2ac58bc60b8ccb42e2449b',4 'pretty_version' => '1.4.0', 5 'version' => '1.4.0.0', 6 'reference' => '5e37087bd27eecd9d0f6273564d1cdffdd1ea864', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'captchafox/captchafox-wordpress' => array( 14 'pretty_version' => '1. 3.0',15 'version' => '1. 3.0.0',16 'reference' => ' e00395e430141be34f2ac58bc60b8ccb42e2449b',14 'pretty_version' => '1.4.0', 15 'version' => '1.4.0.0', 16 'reference' => '5e37087bd27eecd9d0f6273564d1cdffdd1ea864', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
captchafox-for-forms/trunk/assets/js/otter.js
r3007827 r3052710 1 "use strict";var d=(r,o,e)=>new Promise((i,a)=>{var s=n=>{try{t(e.next(n))}catch(c){a(c)}},w=n=>{try{t(e.throw(n))}catch(c){a(c)}},t=n=>n.done?i(n.value):Promise.resolve(n.value).then(s,w);t((e=e.apply(r,o)).next())});document.addEventListener("DOMContentLoaded",function(){var r;!((r=window.themeisleGutenbergForm)!=null&&r.reRecaptchaSitekey)||!window.hasOwnProperty("captchafox")||(window.grecaptcha={},window.captchaFoxLoadOtter())}),window.captchaFoxLoadOtter=()=>{document.querySelectorAll(".wp-block-themeisle-blocks-form").forEach(o=>d(this,null,function*(){var e;(e=o==null?void 0:o.classList)!=null&&e.contains("has-captcha")&&(yield renderCaptchaFoxOnOtterForm(o))}))};const renderCaptchaFoxOnOtterForm=r=>d(this,null,function*(){var s,w;const{id:o}=r,e=document.createElement("div"),i=r.querySelector(".otter-form__container");i==null||i.insertBefore(e,i.lastChild);const a=yield(w=window.captchafox)==null?void 0:w.render(e,{sitekey:(s=window==null?void 0:window.themeisleGutenbergForm)==null?void 0:s.reRecaptchaSitekey,onError:t=>console.error(t),onVerify:t=>{var n;(n=window.themeisleGutenberg)!=null&&n.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[o]={token:t,reset:()=>{var c;return(c=window.captchafox)==null?void 0:c.reset(a)}}},onExpire:()=>{var t;(t=window.themeisleGutenberg)!=null&&t.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[o]={token:null,reset:()=>null}}})});1 "use strict";var l=(i,t,n)=>new Promise((o,a)=>{var d=e=>{try{r(n.next(e))}catch(s){a(s)}},c=e=>{try{r(n.throw(e))}catch(s){a(s)}},r=e=>e.done?o(e.value):Promise.resolve(e.value).then(d,c);r((n=n.apply(i,t)).next())});document.addEventListener("DOMContentLoaded",function(){var i;if(!((i=window.themeisleGutenbergForm)!=null&&i.reRecaptchaSitekey)){console.warn("Open the Otter Blocks settings to set the sitekey for CaptchaFox");return}window.grecaptcha={},window.captchaFoxLoadOtter()}),window.captchaFoxLoadOtter=()=>{document.querySelectorAll(".wp-block-themeisle-blocks-form").forEach(t=>l(this,null,function*(){var n;(n=t==null?void 0:t.classList)!=null&&n.contains("has-captcha")&&(yield renderCaptchaFoxOnOtterForm(t))}))};const renderCaptchaFoxOnOtterForm=i=>l(this,null,function*(){var c,r;const{id:t}=i,n=document.createElement("div"),o=i.querySelector(".otter-form__container");if(o==null?void 0:o.querySelector(`#${t}`))return;n.id=t,o==null||o.insertBefore(n,o.lastChild);const d=yield(r=window.captchafox)==null?void 0:r.render(n,{sitekey:(c=window==null?void 0:window.themeisleGutenbergForm)==null?void 0:c.reRecaptchaSitekey,onError:e=>console.error(e),onVerify:e=>{var s;(s=window.themeisleGutenberg)!=null&&s.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:e,reset:()=>{var w;return(w=window.captchafox)==null?void 0:w.reset(d)}}},onExpire:()=>{var e;(e=window.themeisleGutenberg)!=null&&e.tokens||(window.themeisleGutenberg={},window.themeisleGutenberg.tokens={}),window.themeisleGutenberg.tokens[t]={token:null,reset:()=>null}}})}); -
captchafox-for-forms/trunk/captchafox.php
r3025079 r3052710 7 7 * Plugin Name: CaptchaFox for WordPress 8 8 * Description: GDPR compliant bot and spam protection with CaptchaFox. 9 * Version: 1. 3.09 * Version: 1.4.0 10 10 * Requires at least: 5.0 11 11 * Requires PHP: 7.0 … … 16 16 * 17 17 * WC requires at least: 3.0 18 * WC tested up to: 8. 518 * WC tested up to: 8.6 19 19 */ 20 20 … … 28 28 29 29 const CAPTCHAFOX_BASE_FILE = __FILE__; 30 const PLUGIN_VERSION = '1. 2.0';30 const PLUGIN_VERSION = '1.4.0'; 31 31 32 32 require 'vendor/autoload.php'; -
captchafox-for-forms/trunk/readme.txt
r3025079 r3052710 3 3 Tags: captcha, abuse, recaptcha, spam, anti-spam, captchafox, gdpr, comments, block bots 4 4 Requires at least: 5.0 5 Tested up to: 6. 45 Tested up to: 6.5 6 6 Requires PHP: 7.0 7 Stable tag: 1. 3.07 Stable tag: 1.4.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 77 77 == Changelog == 78 78 79 = 1.4.0 = 80 * Tested on WooCommerce 8.6 81 * Tested on WordPress 6.5 82 79 83 = 1.3.0 = 80 84 * Tested on WooCommerce 8.5 -
captchafox-for-forms/trunk/src/ts/otter.ts
r3007827 r3052710 20 20 21 21 document.addEventListener('DOMContentLoaded', function () { 22 if ( 23 !window.themeisleGutenbergForm?.reRecaptchaSitekey ||24 !window.hasOwnProperty('captchafox')25 ) {22 if (!window.themeisleGutenbergForm?.reRecaptchaSitekey) { 23 console.warn( 24 'Open the Otter Blocks settings to set the sitekey for CaptchaFox' 25 ); 26 26 return; 27 27 } … … 49 49 const captchaNode = document.createElement('div'); 50 50 const container = form.querySelector('.otter-form__container'); 51 const existingNode = container?.querySelector(`#${id}`); 52 53 if (existingNode) { 54 return; 55 } 56 57 captchaNode.id = id; 51 58 container?.insertBefore(captchaNode, container.lastChild); 52 59 -
captchafox-for-forms/trunk/vendor/composer/installed.php
r3025079 r3052710 2 2 'root' => array( 3 3 'name' => 'captchafox/captchafox-wordpress', 4 'pretty_version' => '1. 3.0',5 'version' => '1. 3.0.0',6 'reference' => ' e00395e430141be34f2ac58bc60b8ccb42e2449b',4 'pretty_version' => '1.4.0', 5 'version' => '1.4.0.0', 6 'reference' => '5e37087bd27eecd9d0f6273564d1cdffdd1ea864', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'captchafox/captchafox-wordpress' => array( 14 'pretty_version' => '1. 3.0',15 'version' => '1. 3.0.0',16 'reference' => ' e00395e430141be34f2ac58bc60b8ccb42e2449b',14 'pretty_version' => '1.4.0', 15 'version' => '1.4.0.0', 16 'reference' => '5e37087bd27eecd9d0f6273564d1cdffdd1ea864', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.