From fe5dbcddba1e49614c9983950f692122e8bedbb5 Mon Sep 17 00:00:00 2001 From: Aska Date: Tue, 8 Sep 2026 20:38:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E9=A1=B9=E7=9B=AE=E4=B8=BB?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=BB=9F=E4=B8=80=E6=9B=BF=E6=8D=A2=E4=B8=BA?= =?UTF-8?q?=E6=98=94=E6=B6=9F3rd=5FForm-Cyrene-3F-Q-Happy-1.png?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - favicon/apple-touch-icon (index.html) - PWA manifest 图标 (manifest.json) - PWA precache (sw.js) - 用户端侧栏品牌头像 (Nav.tsx) - 管理面板顶栏品牌头像 (AdminApp.tsx) - 删除已被替换的 icon.svg 残留引用 --- frontend/web/index.html | 4 ++-- frontend/web/public/icon.svg | 11 ----------- frontend/web/public/manifest.json | 8 ++++---- frontend/web/public/sw.js | 2 +- frontend/web/src/admin/AdminApp.tsx | 2 +- frontend/web/src/components/Nav.tsx | 2 +- 6 files changed, 9 insertions(+), 20 deletions(-) delete mode 100644 frontend/web/public/icon.svg diff --git a/frontend/web/index.html b/frontend/web/index.html index c61bf03..3494325 100644 --- a/frontend/web/index.html +++ b/frontend/web/index.html @@ -6,8 +6,8 @@ - - + + Cyrene · 昔涟 diff --git a/frontend/web/public/icon.svg b/frontend/web/public/icon.svg deleted file mode 100644 index e0edfbe..0000000 --- a/frontend/web/public/icon.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/frontend/web/public/manifest.json b/frontend/web/public/manifest.json index 1cab577..fe49f4f 100644 --- a/frontend/web/public/manifest.json +++ b/frontend/web/public/manifest.json @@ -9,10 +9,10 @@ "orientation": "any", "icons": [ { - "src": "/icon.svg", - "type": "image/svg+xml", - "sizes": "any", - "purpose": "any maskable" + "src": "/images/Cyrene_Avatar/3rd_Form/Cyrene-3F-Q-Happy-1.png", + "type": "image/png", + "sizes": "1500x1500", + "purpose": "any" } ] } diff --git a/frontend/web/public/sw.js b/frontend/web/public/sw.js index fa23122..fa0c34d 100644 --- a/frontend/web/public/sw.js +++ b/frontend/web/public/sw.js @@ -1,6 +1,6 @@ /* Cyrene v2 PWA service worker — core-resource caching + offline shell. */ const CACHE = "cyrene-web-v1"; -const PRECACHE = ["/", "/index.html", "/manifest.json", "/icon.svg"]; +const PRECACHE = ["/", "/index.html", "/manifest.json", "/images/Cyrene_Avatar/3rd_Form/Cyrene-3F-Q-Happy-1.png"]; self.addEventListener("install", (event) => { event.waitUntil( diff --git a/frontend/web/src/admin/AdminApp.tsx b/frontend/web/src/admin/AdminApp.tsx index b3c2423..4a617e1 100644 --- a/frontend/web/src/admin/AdminApp.tsx +++ b/frontend/web/src/admin/AdminApp.tsx @@ -138,7 +138,7 @@ function AdminTopBar({ section, onMenu }: { section: AdminSectionId; onMenu?: () ) : null}
- Cyrene + Cyrene
Cyrene · 管理面板
{meta?.label ?? "仪表盘"}
diff --git a/frontend/web/src/components/Nav.tsx b/frontend/web/src/components/Nav.tsx index 7f027e9..32def05 100644 --- a/frontend/web/src/components/Nav.tsx +++ b/frontend/web/src/components/Nav.tsx @@ -68,7 +68,7 @@ function NavContent({ onNavigate }: { onNavigate: () => void }): React.ReactNode return ( <>
- Cyrene + Cyrene
Cyrene
昔涟