feat(matrix): 逐条标题可点击,直接打开抖音作品
Deploy VitePress site to Pages / build (push) Canceled after 0s
Deploy VitePress site to Pages / Deploy (push) Canceled after 0s

details 里带上入库时拼好的 note_url。提示框改成可交互(原来 pointer-events:
none 是为了防闪烁),离开格子后延迟 250ms 再收、鼠标进入提示就取消,点标题
不会因为提示消失而落空。没有地址的老数据仍按纯文字显示。
This commit is contained in:
2026-10-25 09:06:44 +08:00
parent e369478ff1
commit 3a5b973bc2
3 changed files with 46 additions and 9 deletions
+5 -2
View File
@@ -1582,9 +1582,9 @@ async def daily_tag_matrix(
"cells": {"2026-10-21": {"<hash>": {
"count": 2, "tags": ["大字报", "养号"],
"likes": 120, "comments": 8, "collected": 30, "shares": 4,
"details": [{"title": "…", "tags": ["大字报"],
"details": [{"title": "…", "url": "https://…", "tags": ["大字报"],
"likes": 80, "comments": 5, "collected": 20, "shares": 4},
{"title": "…", "tags": ["养号"],
{"title": "…", "url": "https://…", "tags": ["养号"],
"likes": 40, "comments": 3, "collected": 10, "shares": 0}],
# 按发布时间正序
}}}}
@@ -1632,6 +1632,7 @@ async def daily_tag_matrix(
MonitorNote.task_id,
MonitorNote.note_id,
MonitorNote.title,
MonitorNote.note_url,
MonitorNote.creator_hash,
MonitorNote.creator_name,
MonitorNote.published_at,
@@ -1769,6 +1770,8 @@ async def daily_tag_matrix(
bucket["details"].append(
{
"title": row.title or row.note_id,
# 点标题能直接跳过去。链接是入库时按平台拼好的,这里原样带出来。
"url": row.note_url or "",
"tags": list(tags_by_note.get(row.note_id, [])),
"likes": metric.liked_count if metric is not None else None,
"comments": metric.comment_count if metric is not None else None,