implement basic web server for dashboard,

use templates to do basic SSR on head and header
This commit is contained in:
2025-02-25 21:35:11 +00:00
parent 84cbe0e45d
commit cfceb32134
21 changed files with 302 additions and 107 deletions

43
web/embed.go Normal file
View File

@@ -0,0 +1,43 @@
package embed
import (
"embed"
)
//go:embed css/*
var CSS_fs embed.FS
//go:embed images/*
var Images_fs embed.FS
//go:embed modules/*
var Modules_fs embed.FS
//go:embed scripts/*
var Scripts_fs embed.FS
//go:embed html/*
var HTML embed.FS
//go:embed templates/*
var Templates embed.FS
/*
//go:embed html/account.html
var Account string
//go:embed html/index.html
var Index string
//go:embed html/instance.html
var Instance string
//go:embed html/login.html
var Login string
//go:embed html/settings.html
var Settings string
//go:embed templates/base.html
var Base string
*/