feat: distinguish FoxCloud servers by color

Assign pink for FoxCloud Japan and violet for FoxCloud US.

Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
v0
2026-01-08 14:12:11 +00:00
parent 52b2ac81da
commit f07ca66f3f

View File

@@ -79,6 +79,20 @@ const categories: Category[] = [
cdn: "EdgeOne加速",
url: "https://load.zhuzihan.com",
},
{
domain: "api-proxy.zhuzihan.com",
name: "AI API转发",
server: "狐蒂云-美国",
cdn: "ESA API加速",
url: "https://api-proxy.zhuzihan.com",
},
{
domain: "ai-proxy.zhuzihan.com",
name: "AI API转发",
server: "狐蒂云-美国",
cdn: "ESA API加速",
url: "https://ai-proxy.zhuzihan.com",
},
{
domain: "crs.zhuzihan.com",
name: "Claude轮训",
@@ -273,7 +287,8 @@ function getServerBadgeStyle(server: string) {
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("网易") || 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-pink-500/20 text-pink-400"
if (server.includes("狐蒂云-美国")) return "bg-violet-500/20 text-violet-400"
return "bg-muted text-muted-foreground"
}