feat: add persistent dashboard dark mode
CI/CD Dev / dev (push) Failing after 44s

This commit is contained in:
2026-08-15 00:53:58 +03:30
parent 675def5fe6
commit 32e7b6b749
8 changed files with 1423 additions and 1293 deletions
+9
View File
@@ -10,7 +10,16 @@ import (
//go:embed assets/favicon.ico
var favicon []byte
//go:embed assets/theme.js
var themeScript []byte
func (h *Handler) favicon(response http.ResponseWriter, request *http.Request) {
response.Header().Set("Cache-Control", "public, max-age=86400")
http.ServeContent(response, request, "favicon.ico", time.Time{}, bytes.NewReader(favicon))
}
func (h *Handler) theme(response http.ResponseWriter, request *http.Request) {
response.Header().Set("Cache-Control", "public, max-age=3600")
response.Header().Set("Content-Type", "application/javascript; charset=utf-8")
http.ServeContent(response, request, "theme.js", time.Time{}, bytes.NewReader(themeScript))
}