From c7783bf87c0375425ed8e7fa6afff125a7ec79d7 Mon Sep 17 00:00:00 2001 From: Evan Jarrett Date: Wed, 22 Apr 2026 20:13:40 -0500 Subject: [PATCH] more hardening, inline tangled svg into the sprite --- pkg/appview/public/icons.svg | 3 + pkg/appview/public/static/tangled-black.svg | 154 ------------------ pkg/appview/public/static/tangled-white.svg | 154 ------------------ pkg/appview/src/css/main.css | 16 -- pkg/appview/templates/components/footer.html | 5 +- pkg/appview/templates/pages/diff.html | 4 +- pkg/appview/templates/pages/learn-more.html | 3 +- pkg/appview/templates/pages/login.html | 6 +- .../partials/attestation-details.html | 8 +- .../templates/partials/diff-content.html | 6 +- .../templates/partials/digest-content.html | 12 +- .../templates/partials/health-badge.html | 8 +- .../templates/partials/layers-section.html | 11 +- .../templates/partials/repo-tag-section.html | 9 +- .../partials/settings-panel-storage.html | 8 +- .../templates/partials/vuln-badge.html | 2 +- pkg/appview/ui.go | 8 +- pkg/hold/admin/public/icons.svg | 3 + scripts/generate-icons.js | 28 +++- scripts/icons/tangled.svg | 5 + 20 files changed, 96 insertions(+), 357 deletions(-) delete mode 100644 pkg/appview/public/static/tangled-black.svg delete mode 100644 pkg/appview/public/static/tangled-white.svg create mode 100644 scripts/icons/tangled.svg diff --git a/pkg/appview/public/icons.svg b/pkg/appview/public/icons.svg index b22fd1a..69f44f7 100644 --- a/pkg/appview/public/icons.svg +++ b/pkg/appview/public/icons.svg @@ -70,4 +70,7 @@ + + + \ No newline at end of file diff --git a/pkg/appview/public/static/tangled-black.svg b/pkg/appview/public/static/tangled-black.svg deleted file mode 100644 index d2b7d04..0000000 --- a/pkg/appview/public/static/tangled-black.svg +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkg/appview/public/static/tangled-white.svg b/pkg/appview/public/static/tangled-white.svg deleted file mode 100644 index 8c5dd86..0000000 --- a/pkg/appview/public/static/tangled-white.svg +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pkg/appview/src/css/main.css b/pkg/appview/src/css/main.css index f29f5cf..24f85af 100644 --- a/pkg/appview/src/css/main.css +++ b/pkg/appview/src/css/main.css @@ -253,22 +253,6 @@ --btn-border: transparent; } -/* ======================================== - THEME-AWARE ICON SWITCHING - ======================================== */ -.icon-light { - display: block; -} -.icon-dark { - display: none; -} -[data-theme="dark"] .icon-light { - display: none; -} -[data-theme="dark"] .icon-dark { - display: block; -} - /* ======================================== STICKY FOOTER LAYOUT + BASE TYPE ======================================== */ diff --git a/pkg/appview/templates/components/footer.html b/pkg/appview/templates/components/footer.html index 13d03aa..cf03513 100644 --- a/pkg/appview/templates/components/footer.html +++ b/pkg/appview/templates/components/footer.html @@ -1,6 +1,6 @@ {{ define "footer" }}