mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 08:48:32 +02:00
feat(loading_page): move loading page css to style.css and serve as static asset
This commit is contained in:
@@ -3,7 +3,7 @@ package idlewatcher
|
||||
import (
|
||||
"bytes"
|
||||
_ "embed"
|
||||
"text/template"
|
||||
"html/template"
|
||||
|
||||
"github.com/yusing/goutils/http/httpheaders"
|
||||
)
|
||||
@@ -18,6 +18,9 @@ type templateData struct {
|
||||
var loadingPage []byte
|
||||
var loadingPageTmpl = template.Must(template.New("loading_page").Parse(string(loadingPage)))
|
||||
|
||||
//go:embed html/style.css
|
||||
var cssBytes []byte
|
||||
|
||||
func (w *Watcher) makeLoadingPageBody() []byte {
|
||||
msg := w.cfg.ContainerName() + " is starting..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user