feat: 新增皮肤站服务器地图视图
Sync source to CNB / Sync Git ref (push) Skipped

- API 层补充地图服务器列表接口。
- SkinSiteMapView:内外服切换、选择子服与地图,用内嵌 iframe 展示,
  并提供在浏览器中打开的入口。
- 主页导航卡的「地图」改为打开该视图。
This commit is contained in:
AxTps committed 2026-10-17 21:28:04 +08:00
1 parent 77b381b8d0
commit 8cc4782497
4 files changed
+165 -3

No files matched your search

@@ -532,3 +532,21 @@ export function skinSiteDownloadCategories(): Promise<
> {
return skinSiteRequest<SkinSiteDownloadCategory[]>('download/category/list', { auth: false })
}
// ---------------------------------------------------------------------------
// Maps
// ---------------------------------------------------------------------------
export interface SkinSiteMapEntry {
name: string
url: string
}
export interface SkinSiteMapServer {
name: string
internal: boolean
maps: SkinSiteMapEntry[]
}
export function skinSiteMapServers(): Promise<SkinSiteResponse<SkinSiteMapServer[]>> {
return skinSiteRequest<SkinSiteMapServer[]>('maps', { auth: false })
}