Fix turnstile

This commit is contained in:
2026-10-15 15:53:32 +02:00
parent 7dc93ac5ed
commit 70b676660d
80 changed files with 1136 additions and 902 deletions
+17 -17
View File
@@ -27,14 +27,14 @@ import { useState } from 'react';
});
try {
const res = await fetch('/api/ipal/test-email', {
body: JSON.stringify({
to: to.trim()
}),
credentials: 'include',
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
method: 'POST'
credentials: 'include',
body: JSON.stringify({
to: to.trim()
})
});
const data = await res.json();
if (data.ok) {
@@ -67,38 +67,38 @@ import { useState } from 'react';
}),
/*#__PURE__*/ _jsx("p", {
style: {
opacity: 0.7,
fontSize: '.85rem',
marginTop: 0,
opacity: 0.7
marginTop: 0
},
children: "Sends through the transport selected above. Save your changes first."
}),
/*#__PURE__*/ _jsxs("div", {
style: {
alignItems: 'center',
display: 'flex',
flexWrap: 'wrap',
gap: '.5rem'
gap: '.5rem',
alignItems: 'center',
flexWrap: 'wrap'
},
children: [
/*#__PURE__*/ _jsx("input", {
onChange: (e)=>setTo(e.target.value),
type: "email",
placeholder: "[email protected]",
value: to,
onChange: (e)=>setTo(e.target.value),
style: {
flex: 1,
minWidth: '220px'
},
type: "email",
value: to
}
}),
/*#__PURE__*/ _jsx("button", {
className: "btn btn--style-secondary",
disabled: status.kind === 'sending',
type: "button",
onClick: send,
disabled: status.kind === 'sending',
className: "btn btn--style-secondary",
style: {
whiteSpace: 'nowrap'
},
type: "button",
children: status.kind === 'sending' ? 'Sending…' : 'Send test'
})
]