feat(shared-sqs): add SQS Console UI (v0.1.4)

- Embedded SPA with Nubes branding (go:embed)
- Admin dashboard: health stats, tenant CRUD, queue listing
- New API: GET /admin/tenants/{id}/queues — tenant queue list with counts
- Route /ui/ serves built-in console
- Auto-refresh every 10s, responsive design
This commit is contained in:
“Naeel”
2026-04-09 18:01:12 +03:00
parent 2c1b7d042e
commit 12b3bb9bf3
4 changed files with 945 additions and 147 deletions
+17
View File
@@ -0,0 +1,17 @@
// app/ui/embed.go
// Встраивание и раздача UI (SPA) для shared-sqs console
// Created: 2026-04-10
package ui
import (
"embed"
"net/http"
)
//go:embed index.html
var content embed.FS
// Handler — возвращает http.Handler, раздающий встроенный index.html
func Handler() http.Handler {
return http.FileServer(http.FS(content))
}