43a19b723a
- Go module: git.tukangketik.id/swanadiva/hostkeeper/v2 - GoFiber v2 server with static, template engine, middleware - HTMX + Alpine.js (downloaded from CDN) - TailwindCSS v4 with custom theme (Lumina System colors) - Custom CSS: dot-grid, glassmorphism, animations, toggle, modal - Layout template (sidebar nav + header + main) - Dashboard page with host list, search, filter, view toggle - Health endpoint: GET /api/health
19 lines
576 B
Go
19 lines
576 B
Go
package handler
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
func Dashboard(c *fiber.Ctx) error {
|
|
return c.Render("index", fiber.Map{
|
|
"View": "hosts",
|
|
"NavItems": []fiber.Map{
|
|
{"ID": "hosts", "Label": "Hosts", "Icon": "server"},
|
|
{"ID": "terminal", "Label": "Terminal", "Icon": "terminal"},
|
|
{"ID": "sftp", "Label": "SFTP", "Icon": "folder-sync"},
|
|
{"ID": "snippets", "Label": "Snippets", "Icon": "code2"},
|
|
{"ID": "keychain", "Label": "Keychain", "Icon": "key-round"},
|
|
{"ID": "settings", "Label": "Settings", "Icon": "settings2"},
|
|
},
|
|
"Title": "Hosts",
|
|
})
|
|
}
|