feat: improve log viewer with auto-scroll and security enhancements

- Add auto-scroll toggle to log panels
- Enhance SSE connection handling with reconnection logic
- Improve HTML escaping in log lines for security
- Update build script to properly handle frontend artifacts
- Add graceful shutdown to backend server
- Update authentication to support configurable username
This commit is contained in:
Luiz Costa
2025-11-18 09:59:36 -03:00
parent 5c0094d74e
commit f8360acab3
8 changed files with 134 additions and 31 deletions
+8 -1
View File
@@ -18,7 +18,14 @@ cd ..
REM Passo 2: Build do Backend (Go)
echo 🔨 Compilando o backend com arquivos embedados...
go build -o web-tail-pro.exe ./backend/main.go
echo 📁 Copiando artefatos do frontend para backend/dist...
if exist backend\dist rmdir /s /q backend\dist
mkdir backend\dist
xcopy /E /I /Y frontend\dist\* backend\dist\
cd backend
go mod tidy
go build -o ../web-tail-pro.exe ./main.go
cd ..
if %errorlevel% neq 0 (
echo ❌ Falha na compilação do backend. Abortando.