diff --git a/CHANGELOG.md b/CHANGELOG.md index cef2406..4152591 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ ## [Unreleased] +## [0.6.1] - 2026-07-30 + +### Added + +- 英雄详情标题下显示英文名与缩写(如 `Anti-Mage · AM`;无缩写时仅英文名)。 + ## [0.6.0] - 2026-07-30 ### Changed diff --git a/web/export_relations_site.py b/web/export_relations_site.py index 68b51b2..0beaadf 100644 --- a/web/export_relations_site.py +++ b/web/export_relations_site.py @@ -56,7 +56,7 @@ from shared.paths import ( from seo_prerender import DEFAULT_SITE_ORIGIN, write_seo_bundle from serve_relations import WEB_DIR, build_payload -SITE_VERSION = "0.6.0" +SITE_VERSION = "0.6.1" DEFAULT_OSS_BASE = "https://climperor.oss-cn-shanghai.aliyuncs.com" diff --git a/web/frontend/app.js b/web/frontend/app.js index 9d2e18a..ca2a1b8 100644 --- a/web/frontend/app.js +++ b/web/frontend/app.js @@ -2928,6 +2928,18 @@ function renderDetail() { title.className = "detail-name"; title.textContent = hero.name_loc || hero.key; head.appendChild(title); + const enParts = []; + if (hero.name) enParts.push(hero.name); + const abbrs = (hero.abbr || []).map((a) => String(a || "").trim()).filter(Boolean); + if (abbrs.length) { + enParts.push(abbrs.map((a) => a.toUpperCase()).join(" / ")); + } + if (enParts.length) { + const meta = document.createElement("p"); + meta.className = "detail-name-meta"; + meta.textContent = enParts.join(" · "); + head.appendChild(meta); + } root.appendChild(head); const tabDefs = [ diff --git a/web/frontend/config.js b/web/frontend/config.js index 6900616..5672df8 100644 --- a/web/frontend/config.js +++ b/web/frontend/config.js @@ -1,5 +1,5 @@ /* Local defaults; production export overwrites via export_relations_site.py. */ -var SITE_VERSION = "0.6.0"; +var SITE_VERSION = "0.6.1"; var SITE_ORIGIN = ""; var ABILITY_VIDEO_BASE = ""; var STATIC_ASSET_BASE = ""; diff --git a/web/frontend/index.html b/web/frontend/index.html index 610fb33..ff67023 100644 --- a/web/frontend/index.html +++ b/web/frontend/index.html @@ -43,8 +43,8 @@ } - - + +