From 2dc524ddb9cb0f793f8fa3520d66e5c35daaaa95 Mon Sep 17 00:00:00 2001 From: Fredrik Medley Date: Fri, 20 Oct 2023 19:05:30 +0200 Subject: [PATCH] Update favicon to new logo from bb-storage --- cmd/bb_browser/BUILD.bazel | 2 +- cmd/bb_browser/favicon.png | Bin 5511 -> 0 bytes cmd/bb_browser/main.go | 5 ++--- 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 cmd/bb_browser/favicon.png 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 b16eaee6a9752fe1119bd3c13bd4c53416571dbc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5511 zcma)Ac{G&m-ybt$W-!LsGM34pG9-jomGGp1Ol-e8t9mV zKupl13jqTpeTef%3fNU6eI3x@(UJSUFddMv_!wNe1p-Nn9bHVpFEs-JA>7~4L>K;r z83uwwe?BK203v>WT^oPxn_gb7-u@tMKUXJzR~KB6yT2Pw-_XR&nvCKDfp|6ybx4-M zAJ=B?_}Gqy!5JH2YwI%^Rzu5PE3O|NdENEG)i}505wQ?MOzs1^Ii>)eNsxc(V!&_y zG0%PIKFG<4jQFlVm@dIF1nSNLB$W>bEO+d8>rJ+dpz4y*b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ra-L6_;c;&ps#k zVJvr~%MQ!vPo59W>b@AXCHWP+A!s;fhn4IM>n-sM|7-w@YCB(Era!v$NNdOMPJq(y z^zM-9CN~M=Ge3YS-m@IFJIy(1^C67OZoR7G;e1210(ZDDTD0#kreqNCE=zQ@?p3)jRq%x@n$_}K&9w*F4hjv!oa0Elm8Q&V zwwLW=_2lp-`~>v(HegGgmi!h`^Jo()#@C=~nNl`*IW+$Tl2f}0Xg=o?^Kikp*=b8w zEuM&0{En}&ZC6Z`m#acu2m#Vqah=>C;QtTP$Yd#cycsFk(b& z|9p4gldZYLQx?&PY(@0Dp!y?X zr%&D0F@reYw;l;FLI4fpcAVVe4oUl6zy`!{^Cq`Qle_F@j$AYE;3|!9eiwoWg(z|! zKq3+7N5KHHiHnlhtae2FT<7~|(4h7>D89uEC;5q>Tp|I{CKoBU(o4Z)O5*q>W^e;E ze{KbJY(#{>LrFZ1JO)evkLJCAky1uuSasUDVV3|}41CcyhBS8Mq7B^bz!#l@;GkUP zl=K~?x~rYX;^SXcs{clGw)B$j4NE{8nDc3D(b>#kAQgj#D UiwB550e%!@sB5ZIuH_i@A3HYdD*ylh 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 },