🚚 Moved assets to web/static

This commit is contained in:
Maxim Lebedev 2023-03-16 22:18:33 +06:00
parent 0585d51f66
commit 27bab72323
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
7 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@ import (
"net/url"
"os"
"os/signal"
"path/filepath"
"runtime"
"runtime/pprof"
"strings"
@ -106,7 +107,7 @@ var (
//nolint:gochecknoglobals
var cpuProfilePath, memProfilePath string
//go:embed assets/*
//go:embed web/static/*
var staticFS embed.FS
//nolint:gochecknoinits
@ -156,7 +157,7 @@ func main() {
var opts NewAppOptions
var err error
if opts.Static, err = fs.Sub(staticFS, "assets"); err != nil {
if opts.Static, err = fs.Sub(staticFS, filepath.Join("web", "static")); err != nil {
logger.Fatalln(err)
}

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 492 B

After

Width:  |  Height:  |  Size: 492 B