Fix: Corregir errores de TypeScript en componentes

- Instalar @types/node para resolver referencias a process
- Corregir colores inválidos en componentes (orange→warning, purple→secondary, gray→neutral, etc.)
- Agregar tipos explícitos en GroupCheckButton y EditProfileButton
- Eliminar propiedad timeout inválida en toasts
This commit is contained in:
2025-10-16 19:42:00 -06:00
parent fa0475efbf
commit 67261cd1fc
11 changed files with 40 additions and 21 deletions

View File

@@ -15,7 +15,7 @@
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold">Editar Perfil</h3>
<UButton
color="gray"
color="neutral"
variant="ghost"
icon="i-heroicons-x-mark"
@click="isOpen = false"
@@ -56,7 +56,7 @@
<template #footer>
<div class="flex justify-end gap-2">
<UButton
color="gray"
color="neutral"
variant="ghost"
:disabled="isUpdating"
@click="isOpen = false"
@@ -95,7 +95,11 @@ const openModal = async () => {
try {
// Obtener información del usuario desde Authentik
const userData = await $fetch('/api/authentik/user')
const userData = await $fetch<{
name?: string
email?: string
username?: string
}>('/api/authentik/user')
formData.value = {
name: userData.name || '',