v0.6.4: show match id on match cards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
voson
2026-07-30 11:29:29 +08:00
co-authored by Cursor
parent 79ce5cfd2e
commit fefd8c7823
6 changed files with 23 additions and 7 deletions
+6
View File
@@ -4,6 +4,12 @@
## [Unreleased]
## [0.6.4] - 2026-07-30
### Added
- 比赛卡片头部显示比赛 ID(顶层「比赛」页与英雄详情「近期比赛」Tab 共用)。
## [0.6.3] - 2026-07-30
### Changed
+1 -1
View File
@@ -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"
+4
View File
@@ -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}`;
+1 -1
View File
@@ -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 = "";
+5 -5
View File
@@ -43,8 +43,8 @@
}
</script>
<link rel="icon" href="/ui-icon/dota2_logo.png" type="image/png" />
<link rel="stylesheet" href="/style.css?v=0.6.3" />
<script src="/mobile-gate.js?v=0.6.3"></script>
<link rel="stylesheet" href="/style.css?v=0.6.4" />
<script src="/mobile-gate.js?v=0.6.4"></script>
</head>
<body>
<h1 class="sr-only">DOTA2 上分帝</h1>
@@ -233,8 +233,8 @@
</div>
<footer class="heroes-site-foot" id="heroes-site-foot" aria-hidden="true"></footer>
<script src="/config.js?v=0.6.3"></script>
<script src="/router.js?v=0.6.3"></script>
<script src="/app.js?v=0.6.3"></script>
<script src="/config.js?v=0.6.4"></script>
<script src="/router.js?v=0.6.4"></script>
<script src="/app.js?v=0.6.4"></script>
</body>
</html>
+6
View File
@@ -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;