mirror of
https://github.com/handsomezhuzhu/personal-navigation-site.git
synced 2026-02-20 11:46:55 +00:00
Merge pull request #1 from handsomezhuzhu/v0/kdaugh14-4907-5f74c627
feat: Enhance site navigation and server infrastructure
This commit is contained in:
@@ -82,14 +82,14 @@ const categories: Category[] = [
|
|||||||
{
|
{
|
||||||
domain: "api-proxy.zhuzihan.com",
|
domain: "api-proxy.zhuzihan.com",
|
||||||
name: "AI API转发",
|
name: "AI API转发",
|
||||||
server: ["狐蒂云-美国", "Google-Iowa", "Google-Oregon"],
|
server: ["狐蒂云-美国", "Google-Iowa", "Google-Oregon", "Google-Taiwan"],
|
||||||
cdn: "ESA API加速",
|
cdn: "ESA API加速",
|
||||||
url: "https://api-proxy.zhuzihan.com",
|
url: "https://api-proxy.zhuzihan.com",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
domain: "ai-proxy.zhuzihan.com",
|
domain: "ai-proxy.zhuzihan.com",
|
||||||
name: "AI API转发",
|
name: "AI API转发",
|
||||||
server: ["狐蒂云-美国", "Google-Iowa", "Google-Oregon"],
|
server: ["狐蒂云-美国", "Google-Iowa", "Google-Oregon", "Google-Taiwan"],
|
||||||
cdn: "ESA API加速",
|
cdn: "ESA API加速",
|
||||||
url: "https://ai-proxy.zhuzihan.com",
|
url: "https://ai-proxy.zhuzihan.com",
|
||||||
},
|
},
|
||||||
@@ -117,7 +117,7 @@ const categories: Category[] = [
|
|||||||
{
|
{
|
||||||
domain: "health.zhuzihan.com/status/ai",
|
domain: "health.zhuzihan.com/status/ai",
|
||||||
name: "AI服务状态查询",
|
name: "AI服务状态查询",
|
||||||
server: "青竹云",
|
server: "青瑞云",
|
||||||
cdn: "ESA加速",
|
cdn: "ESA加速",
|
||||||
url: "https://health.zhuzihan.com/status/ai",
|
url: "https://health.zhuzihan.com/status/ai",
|
||||||
},
|
},
|
||||||
@@ -157,8 +157,8 @@ const categories: Category[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
domain: "qzy.zhuzihan.com",
|
domain: "qzy.zhuzihan.com",
|
||||||
name: "青竹云管理后台",
|
name: "青瑞云管理后台",
|
||||||
server: "青竹云",
|
server: "青瑞云",
|
||||||
cdn: "无加速",
|
cdn: "无加速",
|
||||||
url: "https://qzy.zhuzihan.com",
|
url: "https://qzy.zhuzihan.com",
|
||||||
},
|
},
|
||||||
@@ -176,6 +176,13 @@ const categories: Category[] = [
|
|||||||
cdn: "无加速",
|
cdn: "无加速",
|
||||||
url: "https://google2.zhuzihan.com",
|
url: "https://google2.zhuzihan.com",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
domain: "google3.zhuzihan.com",
|
||||||
|
name: "Google-Taiwan管理后台",
|
||||||
|
server: "Google-Taiwan",
|
||||||
|
cdn: "无加速",
|
||||||
|
url: "https://google3.zhuzihan.com",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
domain: "hdy.zhuzihan.com",
|
domain: "hdy.zhuzihan.com",
|
||||||
name: "狐蒂云-日本管理后台",
|
name: "狐蒂云-日本管理后台",
|
||||||
@@ -292,7 +299,9 @@ const categories: Category[] = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
function getCdnBadgeStyle(cdn: string) {
|
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("ESA")) return "bg-sky-500/20 text-sky-400"
|
||||||
if (cdn.includes("Vercel")) return "bg-foreground/10 text-foreground"
|
if (cdn.includes("Vercel")) return "bg-foreground/10 text-foreground"
|
||||||
return "bg-muted text-muted-foreground"
|
return "bg-muted text-muted-foreground"
|
||||||
@@ -306,11 +315,14 @@ function getServerBadgeStyle(server: string) {
|
|||||||
if (server.includes("火山")) return "bg-amber-500/20 text-amber-400"
|
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("Vercel") || server.includes("v0")) return "bg-foreground/10 text-foreground"
|
||||||
if (server.includes("GitHub")) 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("网易") || 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"
|
if (server.includes("狐蒂云-美国")) return "bg-violet-500/20 text-violet-400"
|
||||||
if (server.includes("Google-Iowa") || server.includes("Google-Oregon")) return "bg-green-500/20 text-green-400"
|
if (server.includes("Google-Iowa")) return "bg-green-500/20 text-green-400"
|
||||||
|
if (server.includes("Google-Oregon")) return "bg-teal-500/20 text-teal-400"
|
||||||
|
if (server.includes("Google-Taiwan")) return "bg-cyan-500/20 text-cyan-400"
|
||||||
return "bg-muted text-muted-foreground"
|
return "bg-muted text-muted-foreground"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user