From fefd8c78235c9a1a77bfae496e4c04b4c0e93e3f Mon Sep 17 00:00:00 2001 From: voson Date: Thu, 30 Jul 2026 11:29:29 +0800 Subject: [PATCH] v0.6.4: show match id on match cards. Co-authored-by: Cursor --- CHANGELOG.md | 6 ++++++ web/export_relations_site.py | 2 +- web/frontend/app.js | 4 ++++ web/frontend/config.js | 2 +- web/frontend/index.html | 10 +++++----- web/frontend/style.css | 6 ++++++ 6 files changed, 23 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a84a614..a3faea5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ ## [Unreleased] +## [0.6.4] - 2026-07-30 + +### Added + +- 比赛卡片头部显示比赛 ID(顶层「比赛」页与英雄详情「近期比赛」Tab 共用)。 + ## [0.6.3] - 2026-07-30 ### Changed diff --git a/web/export_relations_site.py b/web/export_relations_site.py index ec59500..46e1961 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.3" +SITE_VERSION = "0.6.4" DEFAULT_OSS_BASE = "https://climperor.oss-cn-shanghai.aliyuncs.com" diff --git a/web/frontend/app.js b/web/frontend/app.js index c6aa509..c5219e0 100644 --- a/web/frontend/app.js +++ b/web/frontend/app.js @@ -1871,6 +1871,10 @@ function buildMatchCard(heroKey, row, opts = {}) { const links = document.createElement("span"); links.className = "match-links"; if (row.match_id) { + const matchId = document.createElement("span"); + matchId.className = "match-id"; + matchId.textContent = String(row.match_id); + links.appendChild(matchId); const matchLink = document.createElement("a"); matchLink.className = "match-opendota"; matchLink.href = `https://www.dotabuff.com/matches/${row.match_id}`; diff --git a/web/frontend/config.js b/web/frontend/config.js index 1de8741..7b22bf9 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.3"; +var SITE_VERSION = "0.6.4"; var SITE_ORIGIN = ""; var ABILITY_VIDEO_BASE = ""; var STATIC_ASSET_BASE = ""; diff --git a/web/frontend/index.html b/web/frontend/index.html index 248ae31..b3d27e6 100644 --- a/web/frontend/index.html +++ b/web/frontend/index.html @@ -43,8 +43,8 @@ } - - + +

DOTA2 上分帝

@@ -233,8 +233,8 @@
- - - + + + diff --git a/web/frontend/style.css b/web/frontend/style.css index fdbb60e..339dbfb 100644 --- a/web/frontend/style.css +++ b/web/frontend/style.css @@ -2191,6 +2191,12 @@ body.detail-drawer-open { white-space: nowrap; color: rgba(190, 205, 225, 0.8); } +.match-id { + font-variant-numeric: tabular-nums; + font-size: 13px; + letter-spacing: 0.02em; + color: rgba(180, 195, 215, 0.82); +} .match-opendota { color: rgba(140, 180, 230, 0.95); text-decoration: none;