From 84914ad1ac3e16e32727f6c644e8a0cc5290056c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E5=8F=89=E6=A0=91=E6=A0=91?= Date: Sun, 18 Jan 2026 02:01:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(assets):=20=E7=AE=80=E5=8C=96=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=96=87=E4=BB=B6=E5=90=8D=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原长格式图标文件名简化为短格式,并更新组件中的引用路径 删除旧图标文件,添加新图标文件 --- public/cdn/{Hosted-Cloudflare-#F48120.svg => cf.svg} | 0 public/cdn/{Hosted-EdgeOne-#00a3ff.svg => eo.svg} | 0 public/cdn/{Hosted-ESA-#FF6A00.svg => esa.svg} | 0 src/components/Footer.astro | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename public/cdn/{Hosted-Cloudflare-#F48120.svg => cf.svg} (100%) rename public/cdn/{Hosted-EdgeOne-#00a3ff.svg => eo.svg} (100%) rename public/cdn/{Hosted-ESA-#FF6A00.svg => esa.svg} (100%) diff --git a/public/cdn/Hosted-Cloudflare-#F48120.svg b/public/cdn/cf.svg similarity index 100% rename from public/cdn/Hosted-Cloudflare-#F48120.svg rename to public/cdn/cf.svg diff --git a/public/cdn/Hosted-EdgeOne-#00a3ff.svg b/public/cdn/eo.svg similarity index 100% rename from public/cdn/Hosted-EdgeOne-#00a3ff.svg rename to public/cdn/eo.svg diff --git a/public/cdn/Hosted-ESA-#FF6A00.svg b/public/cdn/esa.svg similarity index 100% rename from public/cdn/Hosted-ESA-#FF6A00.svg rename to public/cdn/esa.svg diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 84ad75062..c0b888585 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -95,11 +95,11 @@ try { let iconSrc = null; if (serverLower.includes('esa')) { - iconSrc = '/cdn/Hosted-ESA-#FF6A00.svg'; + iconSrc = '/cdn/esa.svg'; } else if (serverLower.includes('edgeone')) { - iconSrc = '/cdn/Hosted-EdgeOne-#00a3ff.svg'; + iconSrc = '/cdn/eo.svg'; } else if (serverLower.includes('cloudflare')) { - iconSrc = '/cdn/Hosted-Cloudflare-#F48120.svg'; + iconSrc = '/cdn/cf.svg'; } if (iconSrc) {