feat: implement advanced access control system with user blocking, rate limiting, and enhanced login security; update UI components for improved user experience and documentation

This commit is contained in:
2025-10-29 09:07:37 -03:00
parent d1715f358a
commit 6b14059fde
33 changed files with 6450 additions and 1202 deletions

View File

@@ -0,0 +1,22 @@
<script lang="ts">
interface Props {
ativo: boolean;
bloqueado?: boolean;
}
let { ativo, bloqueado = false }: Props = $props();
const getStatus = () => {
if (bloqueado) return { text: "Bloqueado", class: "badge-error" };
if (ativo) return { text: "Ativo", class: "badge-success" };
return { text: "Inativo", class: "badge-warning" };
};
const status = $derived(getStatus());
</script>
<span class="badge {status.class}">
{status.text}
</span>