File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ go_library(
1010 "main.go" ,
1111 ],
1212 embedsrcs = [
13- "favicon.png" ,
1413 "stylesheet.css" ,
1514 "templates/error.html" ,
1615 "templates/footer.html" ,
@@ -45,6 +44,7 @@ go_library(
4544 "@com_github_buildbarn_bb_storage//pkg/filesystem/path" ,
4645 "@com_github_buildbarn_bb_storage//pkg/global" ,
4746 "@com_github_buildbarn_bb_storage//pkg/http" ,
47+ "@com_github_buildbarn_bb_storage//pkg/logo" ,
4848 "@com_github_buildbarn_bb_storage//pkg/program" ,
4949 "@com_github_buildbarn_bb_storage//pkg/proto/auth" ,
5050 "@com_github_buildbarn_bb_storage//pkg/proto/fsac" ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
2020 "github.com/buildbarn/bb-storage/pkg/digest"
2121 "github.com/buildbarn/bb-storage/pkg/global"
2222 "github.com/buildbarn/bb-storage/pkg/http"
23+ "github.com/buildbarn/bb-storage/pkg/logo"
2324 "github.com/buildbarn/bb-storage/pkg/program"
2425 auth_pb "github.com/buildbarn/bb-storage/pkg/proto/auth"
2526 "github.com/buildbarn/bb-storage/pkg/proto/iscc"
5556 templatesFS embed.FS
5657 //go:embed stylesheet.css
5758 stylesheet template.CSS
58- //go:embed favicon.png
59- favicon []byte
6059)
6160
6261func main () {
@@ -130,7 +129,7 @@ func main() {
130129 routePrefix += "/"
131130 }
132131
133- faviconURL := template .URL ("data:image/png ;base64," + base64 .StdEncoding .EncodeToString (favicon ))
132+ faviconURL := template .URL ("data:image/svg+xml ;base64," + base64 .StdEncoding .EncodeToString (logo . FaviconSvg ))
134133 templates , err := template .New ("templates" ).Funcs (template.FuncMap {
135134 "basename" : path .Base ,
136135 "favicon_url" : func () template.URL { return faviconURL },
You can’t perform that action at this time.
0 commit comments