From bba78772db9ae9537d17d57c51160eb7afa05d6d Mon Sep 17 00:00:00 2001 From: Artur Oliveira Date: Tue, 16 Dec 2025 17:40:29 -0300 Subject: [PATCH] feat(servers): exibir senha na listagem - inclui o campo password no DTO enviado pelo backend - ajusta tipagens e tabela do dashboard para mostrar a credencial --- .../hitcommunications/servermanager/model/dtos/ServerDTO.java | 2 +- frontend/src/components/ServersTable.tsx | 4 ++++ frontend/src/types/Server.ts | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/com/hitcommunications/servermanager/model/dtos/ServerDTO.java b/backend/src/main/java/com/hitcommunications/servermanager/model/dtos/ServerDTO.java index 4131cce..d02b236 100644 --- a/backend/src/main/java/com/hitcommunications/servermanager/model/dtos/ServerDTO.java +++ b/backend/src/main/java/com/hitcommunications/servermanager/model/dtos/ServerDTO.java @@ -12,6 +12,7 @@ public record ServerDTO( String ip, Integer port, String user, + String password, ServersType type, Applications application, DatabaseType dbType, @@ -19,4 +20,3 @@ public record ServerDTO( Timestamp updatedAt ) { } - diff --git a/frontend/src/components/ServersTable.tsx b/frontend/src/components/ServersTable.tsx index 7851b9f..5c09ab6 100644 --- a/frontend/src/components/ServersTable.tsx +++ b/frontend/src/components/ServersTable.tsx @@ -23,6 +23,7 @@ export const ServersTable = ({ servers, loading, error }: Props) => { IP Porta Usuário + Senha Tipo Aplicação Banco @@ -38,6 +39,9 @@ export const ServersTable = ({ servers, loading, error }: Props) => { {server.ip} {server.port} {server.user} + + {server.password} + {server.type.toLowerCase()} {server.application.toLowerCase()} {server.dbType.toLowerCase()} diff --git a/frontend/src/types/Server.ts b/frontend/src/types/Server.ts index 96ad638..1577fb6 100644 --- a/frontend/src/types/Server.ts +++ b/frontend/src/types/Server.ts @@ -6,9 +6,10 @@ export interface Server { ip: string; port: number; user: string; + password: string; type: ServersType; application: Applications; dbType: DatabaseType; createdAt: string; updatedAt: string; -} \ No newline at end of file +}