mirror of
https://github.com/handsomezhuzhu/personal-navigation-site.git
synced 2026-02-20 11:46:55 +00:00
feat: update color distinctions for CDN and server components
Assign distinct colors to EdgeOne Pages, EdgeOne, ESA API, ESA, and rename "青竹云" to "青瑞云". Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
@@ -117,7 +117,7 @@ const categories: Category[] = [
|
||||
{
|
||||
domain: "health.zhuzihan.com/status/ai",
|
||||
name: "AI服务状态查询",
|
||||
server: "青竹云",
|
||||
server: "青瑞云",
|
||||
cdn: "ESA加速",
|
||||
url: "https://health.zhuzihan.com/status/ai",
|
||||
},
|
||||
@@ -157,8 +157,8 @@ const categories: Category[] = [
|
||||
},
|
||||
{
|
||||
domain: "qzy.zhuzihan.com",
|
||||
name: "青竹云管理后台",
|
||||
server: "青竹云",
|
||||
name: "青瑞云管理后台",
|
||||
server: "青瑞云",
|
||||
cdn: "无加速",
|
||||
url: "https://qzy.zhuzihan.com",
|
||||
},
|
||||
@@ -299,7 +299,9 @@ const categories: Category[] = [
|
||||
]
|
||||
|
||||
function getCdnBadgeStyle(cdn: string) {
|
||||
if (cdn.includes("EdgeOne")) return "bg-emerald-500/20 text-emerald-400"
|
||||
if (cdn.includes("EdgeOne Pages")) return "bg-emerald-500/20 text-emerald-400"
|
||||
if (cdn.includes("EdgeOne")) return "bg-green-500/20 text-green-400"
|
||||
if (cdn.includes("ESA API")) return "bg-indigo-500/20 text-indigo-400"
|
||||
if (cdn.includes("ESA")) return "bg-sky-500/20 text-sky-400"
|
||||
if (cdn.includes("Vercel")) return "bg-foreground/10 text-foreground"
|
||||
return "bg-muted text-muted-foreground"
|
||||
@@ -313,7 +315,8 @@ function getServerBadgeStyle(server: string) {
|
||||
if (server.includes("火山")) return "bg-amber-500/20 text-amber-400"
|
||||
if (server.includes("Vercel") || server.includes("v0")) return "bg-foreground/10 text-foreground"
|
||||
if (server.includes("GitHub")) return "bg-foreground/10 text-foreground"
|
||||
if (server.includes("EdgeOne")) return "bg-emerald-500/20 text-emerald-400"
|
||||
if (server.includes("EdgeOne Pages")) return "bg-emerald-500/20 text-emerald-400"
|
||||
if (server.includes("EdgeOne")) return "bg-green-500/20 text-green-400"
|
||||
if (server.includes("网易") || server.includes("企业邮箱")) return "bg-red-500/20 text-red-400"
|
||||
if (server.includes("狐蒂云-日本")) return "bg-pink-500/20 text-pink-400"
|
||||
if (server.includes("狐蒂云-美国")) return "bg-violet-500/20 text-violet-400"
|
||||
|
||||
Reference in New Issue
Block a user