aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/internal/pkgsite/ui/ui_full.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-09-15 00:06:21 +0900
committerOphestra <cat@gensokyo.uk>2026-09-15 00:06:21 +0900
commit834db962958652502aba88362dbe91df2ee618ee (patch)
tree9c06fbcab83ad56e2d90f24a8d2cf016c6c1d005 /cmd/mbf/internal/pkgsite/ui/ui_full.go
parentcce7a996b06e516f5afcd41d2d67c2392000b6ab (diff)
cmd/mbf: rename pkgsite
This name is less ambiguous than pkgserver. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/internal/pkgsite/ui/ui_full.go')
-rw-r--r--cmd/mbf/internal/pkgsite/ui/ui_full.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/mbf/internal/pkgsite/ui/ui_full.go b/cmd/mbf/internal/pkgsite/ui/ui_full.go
new file mode 100644
index 00000000..564787dc
--- /dev/null
+++ b/cmd/mbf/internal/pkgsite/ui/ui_full.go
@@ -0,0 +1,21 @@
+//go:build frontend
+
+package ui
+
+import (
+ "embed"
+ "io/fs"
+)
+
+//go:generate tsc
+//go:generate cp index.html style.css static
+//go:embed static
+var _static embed.FS
+
+var static = func() fs.FS {
+ if f, err := fs.Sub(_static, "static"); err != nil {
+ panic(err)
+ } else {
+ return f
+ }
+}()