From 300dfe7fc9e2fa643f95708b87e36983a84b4045 Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Thu, 4 Dec 2025 15:58:38 -0300 Subject: [PATCH] feat: replace SVG icons with Lucide components in email configuration and dashboard pages for enhanced consistency and maintainability --- apps/web/src/routes/(dashboard)/+page.svelte | 92 +----------- .../funcionarios/relatorios/+page.svelte | 58 +------- .../ti/configuracoes-email/+page.svelte | 134 ++++-------------- 3 files changed, 38 insertions(+), 246 deletions(-) diff --git a/apps/web/src/routes/(dashboard)/+page.svelte b/apps/web/src/routes/(dashboard)/+page.svelte index 7c14623..e94ed26 100644 --- a/apps/web/src/routes/(dashboard)/+page.svelte +++ b/apps/web/src/routes/(dashboard)/+page.svelte @@ -5,7 +5,7 @@ import { goto, replaceState } from '$app/navigation'; import { afterNavigate } from '$app/navigation'; import { resolve } from '$app/paths'; - import { UserPlus, Mail } from 'lucide-svelte'; + import { UserPlus, Mail, Clock, Award, TrendingUp, Zap, Users, Database } from 'lucide-svelte'; import ProtectedRoute from '$lib/components/ProtectedRoute.svelte'; import { loginModalStore } from '$lib/stores/loginModal.svelte'; @@ -248,20 +248,7 @@

de 5 total

- - - +
@@ -283,20 +270,7 @@

- - - +
@@ -316,20 +290,7 @@

- - - +
@@ -357,20 +318,7 @@
- - - +

Monitoramento em Tempo Real

@@ -407,20 +355,7 @@

sessões ativas

- - - +
@@ -442,20 +377,7 @@

no banco de dados

- - - +
diff --git a/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/relatorios/+page.svelte b/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/relatorios/+page.svelte index 12d2799..a44036b 100644 --- a/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/relatorios/+page.svelte +++ b/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/relatorios/+page.svelte @@ -3,6 +3,7 @@ import { api } from '@sgse-app/backend/convex/_generated/api'; import { onMount } from 'svelte'; import { resolve } from '$app/paths'; + import { BarChart3, Info, DollarSign, Users } from 'lucide-svelte'; const client = useConvexClient(); @@ -114,20 +115,7 @@
- - - +

Relatórios de Funcionários

@@ -143,19 +131,7 @@ class:alert-error={notice.kind === 'error'} class:alert-success={notice.kind === 'success'} > - - - + {notice.text}
{/if} @@ -173,20 +149,7 @@
- - - +

@@ -333,17 +296,8 @@
- - +
d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" /> diff --git a/apps/web/src/routes/(dashboard)/ti/configuracoes-email/+page.svelte b/apps/web/src/routes/(dashboard)/ti/configuracoes-email/+page.svelte index 3e316e6..e82e214 100644 --- a/apps/web/src/routes/(dashboard)/ti/configuracoes-email/+page.svelte +++ b/apps/web/src/routes/(dashboard)/ti/configuracoes-email/+page.svelte @@ -3,6 +3,7 @@ import { api } from '@sgse-app/backend/convex/_generated/api'; import type { Id } from '@sgse-app/backend/convex/_generated/dataModel'; import type { FunctionReference } from 'convex/server'; + import { Mail, CheckCircle, XCircle, AlertTriangle, Save, Info } from 'lucide-svelte'; const client = useConvexClient(); const currentUser = useQuery(api.auth.getCurrentUser as FunctionReference<'query'>); @@ -175,20 +176,7 @@
- - - +

Configurações de Email (SMTP)

@@ -206,28 +194,11 @@ class:alert-success={mensagem.tipo === 'success'} class:alert-error={mensagem.tipo === 'error'} > - - {#if mensagem.tipo === 'success'} - - {:else} - - {/if} - + {#if mensagem.tipo === 'success'} + + {:else} + + {/if} {mensagem.texto}
{/if} @@ -243,28 +214,11 @@ {#if !isLoading}
- - {#if configAtual?.data?.ativo} - - {:else} - - {/if} - + {#if configAtual?.data?.ativo} + + {:else} + + {/if} Status: {statusConfig} @@ -419,25 +373,12 @@ onclick={testarConexao} disabled={testando || processando} > - {#if testando} - - {:else} - - - - {/if} - Testar Conexão + {#if testando} + + {:else} + + {/if} + Testar Conexão
@@ -518,19 +446,7 @@
- - - +

Dica de Segurança: Para Gmail e outros provedores, você pode precisar gerar