- API 层补充地图服务器列表接口。 - SkinSiteMapView:内外服切换、选择子服与地图,用内嵌 iframe 展示, 并提供在浏览器中打开的入口。 - 主页导航卡的「地图」改为打开该视图。
This commit is contained in:
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 })
|
||||
}
|
||||
Reference in new issue
Block a user