mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
embed site files / form tweaks
This commit is contained in:
17
site/embed.go
Normal file
17
site/embed.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package site
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed all:dist
|
||||
var assets embed.FS
|
||||
|
||||
func Assets() (fs.FS, error) {
|
||||
return fs.Sub(assets, "dist")
|
||||
}
|
||||
|
||||
func Icons() (fs.FS, error) {
|
||||
return fs.Sub(assets, "dist/icons")
|
||||
}
|
Reference in New Issue
Block a user