release: WRNexusJS 0.8.0
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
component CaptchaField {
|
||||
props {
|
||||
title: string = "Security verification"
|
||||
description: string = "Complete the challenge before submitting."
|
||||
provider: string = "self-hosted"
|
||||
type: string = "alphanumeric"
|
||||
action: string = "form-submit"
|
||||
color: string = "primary"
|
||||
size: string = "md"
|
||||
captchaSize: string = "normal"
|
||||
class: string = ""
|
||||
}
|
||||
view {
|
||||
<Card {...attrs} title='{title}' description='{description}' color='{color}' size='{size}' class='{class}'>
|
||||
<Captcha provider='{provider}' type='{type}' action='{action}' color='{color}' size='{captchaSize}' compact='{size == "sm"}' />
|
||||
</Card>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
component CaptchaStatus {
|
||||
props {
|
||||
success: boolean = false
|
||||
message: string = ""
|
||||
successMessage: string = "Security verification completed."
|
||||
failureMessage: string = "Security verification is required."
|
||||
color: string = "primary"
|
||||
size: string = "sm"
|
||||
class: string = ""
|
||||
}
|
||||
view {
|
||||
<Alert
|
||||
{...attrs}
|
||||
title='{success ? "Verified" : "Verification required"}'
|
||||
description='{message || (success ? successMessage : failureMessage)}'
|
||||
icon='{success ? "icon-[lucide--shield-check]" : "icon-[lucide--shield-alert]"}'
|
||||
color='{success ? "success" : color}'
|
||||
variant="soft"
|
||||
size='{size}'
|
||||
class='{class}'
|
||||
/>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user