feat(web): include removed in visible stats; cover bang badge
站内展示/统计统一 VISIBLE(含 removed):热度、UP 列表、总览 active_ups/初导入计数、说明页粉丝覆盖、黑名单视频数。采集队列仍 只 active/unfaved。失效片封面右上角感叹号徽标,点击/tap 提示 「该视频已失效」;手动/候选入库仍可复活 removed→active。
This commit is contained in:
1 parent
6c73904b25
commit
0c660c6474
7 files changed
+122
-17
No files matched your search
@@ -13,6 +13,13 @@ export function cover(item, className = "thumb") {
|
||||
loading="lazy" referrerpolicy="no-referrer"></div>`;
|
||||
}
|
||||
|
||||
|
||||
export function removedCoverMark(item) {
|
||||
if (item?.status !== "removed") return "";
|
||||
return `<button type="button" class="cover-removed-mark" data-removed-tip
|
||||
title="该视频已失效" aria-label="该视频已失效">!</button>`;
|
||||
}
|
||||
|
||||
export function rankBadge(rank, className = "rank-badge") {
|
||||
if (!rank) return "";
|
||||
const top = rank <= 3 ? ` rank-${rank}` : "";
|
||||
@@ -73,6 +80,7 @@ export function videoCard(item, {
|
||||
<div class="video-cover">
|
||||
${cover(item, "video-thumb")}
|
||||
${durationBadge}
|
||||
${removedCoverMark(item)}
|
||||
</div>
|
||||
<div class="video-card-body">
|
||||
<h3 class="video-title">${title}</h3>
|
||||
@@ -150,6 +158,7 @@ export function mediaCard(item, { rank = null, highlight = "" } = {}) {
|
||||
<div class="media-cover">
|
||||
${cover(item, "media-thumb")}
|
||||
${durationBadge}
|
||||
${removedCoverMark(item)}
|
||||
</div>
|
||||
<span class="media-title">${escapeHtml(item.title || "(无标题)")}</span>
|
||||
<span class="media-byline">
|
||||
|
||||
Reference in new issue
Block a user