feat: initial commit of mini-paas engine and documentation

This commit is contained in:
2026-10-23 13:57:39 -03:00
commit e0e2201230
17 changed files with 2263 additions and 0 deletions

24
internal/ui/ui.go Normal file
View File

@@ -0,0 +1,24 @@
package ui
import (
_ "embed"
"html/template"
"io"
)
//go:embed dashboard.html
var dashboardHTML string
var tmpl = template.Must(template.New("dashboard").Parse(dashboardHTML))
type DashboardData struct {
Domain string
Port string
AppsDir string
ActiveCount int
Apps any
}
func RenderDashboard(w io.Writer, data DashboardData) error {
return tmpl.Execute(w, data)
}