qa-svelte: initial commit
This commit is contained in:
parent
abdf146fea
commit
0fe037d7f5
43 changed files with 2089 additions and 1297 deletions
28
qa/assets.go
Normal file
28
qa/assets.go
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//go:build !dev
|
||||
// +build !dev
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//go:embed ui/build/* ui/build/_app/assets/pages/* ui/build/_app/pages/*
|
||||
var _assets embed.FS
|
||||
|
||||
var Assets http.FileSystem
|
||||
|
||||
func init() {
|
||||
sub, err := fs.Sub(_assets, "ui/build")
|
||||
if err != nil {
|
||||
log.Fatal("Unable to cd to ui/build directory:", err)
|
||||
}
|
||||
Assets = http.FS(sub)
|
||||
}
|
||||
|
||||
func sanitizeStaticOptions() error {
|
||||
return nil
|
||||
}
|
||||
Reference in a new issue