Files
havenllo/web/embed.go
Hermes 041c3fab4b
Some checks failed
Build and deploy Havenllo / Verify Go and frontend (push) Failing after 7s
Build and deploy Havenllo / Build and push image (push) Has been skipped
Build and deploy Havenllo / Apply and restart Havenllo (push) Has been skipped
feat: implement Havenllo single-board kanban (Go+SQLite backend, Preact/Vite frontend)
- Single fixed 'Haven' board: lists (To do/In progress/Done) + cards, no multi-board
- Go 1.24 backend, CGO-free modernc.org/sqlite, embedded SPA, REST /api
- Preact + Vite + TS frontend, native HTML5 drag-and-drop, optimistic UI, dark Haven theme
- PVC (nfs-client) for SQLite, root container on NFS, simple nginx ingress havenllo.haven
- Dockerfile multi-arch build, Gitea CI via pipeline-actions@main
2026-07-14 10:13:51 -03:00

21 lines
341 B
Go

package web
import (
"embed"
"io/fs"
)
//go:embed all:dist
var embedded embed.FS
// Files contains the compiled Vite bundle without its dist path prefix.
var Files = mustSub(embedded, "dist")
func mustSub(source fs.FS, directory string) fs.FS {
files, err := fs.Sub(source, directory)
if err != nil {
panic(err)
}
return files
}