mirror of
https://github.com/a2nt/webpack-bootstrap-ui-kit.git
synced 2024-10-22 11:05:45 +02:00
FIX: turnstile captchas
This commit is contained in:
parent
3093b11739
commit
574f1c821f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react",
|
"name": "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react",
|
||||||
"version": "5.2.7",
|
"version": "5.2.8",
|
||||||
"description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
"description": "This UI Kit allows you to build Bootstrap 5 webapp with some extra UI features. It's easy to extend and easy to convert HTML templates to CMS templates.",
|
||||||
"author": "Tony Air <tony@twma.pro>",
|
"author": "Tony Air <tony@twma.pro>",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
|
@ -41,9 +41,7 @@ rules:
|
|||||||
indentation:
|
indentation:
|
||||||
- 2
|
- 2
|
||||||
- size: 4
|
- size: 4
|
||||||
final-newline:
|
final-newline: false
|
||||||
- 2
|
|
||||||
- include: true
|
|
||||||
no-trailing-whitespace: 2
|
no-trailing-whitespace: 2
|
||||||
border-zero:
|
border-zero:
|
||||||
- 2
|
- 2
|
||||||
|
@ -4,7 +4,8 @@ const NAME = 'uiTurnstile'
|
|||||||
const SELECTOR = '.cf-turnstile'
|
const SELECTOR = '.cf-turnstile'
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
if (!document.querySelectorAll(SELECTOR).length) {
|
const captchas = document.querySelectorAll(SELECTOR)
|
||||||
|
if (!captchas.length) {
|
||||||
console.log(`${NAME}: No Captcha fields.`)
|
console.log(`${NAME}: No Captcha fields.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -15,7 +16,9 @@ const init = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log(`${NAME}: init`)
|
console.log(`${NAME}: init`)
|
||||||
window.turnstile.render(SELECTOR)
|
captchas.forEach((el) => {
|
||||||
|
window.turnstile.render(el)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
|
|
||||||
&.CompositeField {
|
&.CompositeField {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
&.row {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__alert {
|
&__alert {
|
||||||
@ -47,10 +51,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form__field input.password {
|
.form {
|
||||||
@extend .form-control;
|
&__field {
|
||||||
|
input.password {
|
||||||
|
@extend .form-control;
|
||||||
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
width: 100% !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.form__fieldset {
|
.form__fieldset {
|
||||||
margin-bottom: -1rem;
|
margin-bottom: -1rem;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user