diff --git a/cmd/bb_browser/BUILD.bazel b/cmd/bb_browser/BUILD.bazel index 468ee21..26316fd 100644 --- a/cmd/bb_browser/BUILD.bazel +++ b/cmd/bb_browser/BUILD.bazel @@ -10,7 +10,6 @@ go_library( "main.go", ], embedsrcs = [ - "favicon.png", "stylesheet.css", "templates/error.html", "templates/footer.html", @@ -45,6 +44,7 @@ go_library( "@com_github_buildbarn_bb_storage//pkg/filesystem/path", "@com_github_buildbarn_bb_storage//pkg/global", "@com_github_buildbarn_bb_storage//pkg/http", + "@com_github_buildbarn_bb_storage//pkg/logo", "@com_github_buildbarn_bb_storage//pkg/program", "@com_github_buildbarn_bb_storage//pkg/proto/auth", "@com_github_buildbarn_bb_storage//pkg/proto/fsac", diff --git a/cmd/bb_browser/favicon.png b/cmd/bb_browser/favicon.png deleted file mode 100644 index b16eaee..0000000 Binary files a/cmd/bb_browser/favicon.png and /dev/null differ diff --git a/cmd/bb_browser/main.go b/cmd/bb_browser/main.go index 4927678..8dcc4e3 100644 --- a/cmd/bb_browser/main.go +++ b/cmd/bb_browser/main.go @@ -20,6 +20,7 @@ import ( "github.com/buildbarn/bb-storage/pkg/digest" "github.com/buildbarn/bb-storage/pkg/global" "github.com/buildbarn/bb-storage/pkg/http" + "github.com/buildbarn/bb-storage/pkg/logo" "github.com/buildbarn/bb-storage/pkg/program" auth_pb "github.com/buildbarn/bb-storage/pkg/proto/auth" "github.com/buildbarn/bb-storage/pkg/proto/iscc" @@ -55,8 +56,6 @@ var ( templatesFS embed.FS //go:embed stylesheet.css stylesheet template.CSS - //go:embed favicon.png - favicon []byte ) func main() { @@ -130,7 +129,7 @@ func main() { routePrefix += "/" } - faviconURL := template.URL("data:image/png;base64," + base64.StdEncoding.EncodeToString(favicon)) + faviconURL := template.URL("data:image/svg+xml;base64," + base64.StdEncoding.EncodeToString(logo.FaviconSvg)) templates, err := template.New("templates").Funcs(template.FuncMap{ "basename": path.Base, "favicon_url": func() template.URL { return faviconURL },