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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user