Skip to content

Commit 2dc524d

Browse files
committed
Update favicon to new logo from bb-storage
1 parent daafd4f commit 2dc524d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmd/bb_browser/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

cmd/bb_browser/favicon.png

-5.38 KB
Binary file not shown.

cmd/bb_browser/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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"
@@ -55,8 +56,6 @@ var (
5556
templatesFS embed.FS
5657
//go:embed stylesheet.css
5758
stylesheet template.CSS
58-
//go:embed favicon.png
59-
favicon []byte
6059
)
6160

6261
func 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 },

0 commit comments

Comments
 (0)