From 5d8e95ab1aca35dbec29e6d3ce724a9bbc2f8c42 Mon Sep 17 00:00:00 2001 From: argszero Date: Mon, 17 Aug 2026 13:51:57 +0800 Subject: [PATCH] feat(ui): remove Recent transactions card from dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dashboard should focus on overview; transaction details already live on the Transactions page. Remove the dash-recent card from index.html and its render block from renderDashboard() in app.js. Stats, My sharings and Point sources cards are kept. Refs: rant 2026-08-17T10:40:27 (仪表盘移除"最近交易"模块) --- ui/index.html | 4 ---- ui/js/app.js | 7 ------- 2 files changed, 11 deletions(-) diff --git a/ui/index.html b/ui/index.html index 7d2f306..d383bfa 100644 --- a/ui/index.html +++ b/ui/index.html @@ -70,10 +70,6 @@

仪表盘 Dashboard

-
-

最近交易 Recent transactions

-
-

我的共享 My sharings

diff --git a/ui/js/app.js b/ui/js/app.js index 9d65ade..a5be5c0 100644 --- a/ui/js/app.js +++ b/ui/js/app.js @@ -149,7 +149,6 @@ const txs = D.TRANSACTIONS; const monthUse = txs.filter((t) => t.type === "consume").reduce((a, t) => a + Math.abs(t.pts), 0); const monthEarn = txs.filter((t) => t.type === "earn").reduce((a, t) => a + t.pts, 0); - const recent = txs.slice(0, 5); $("#dash-stats").innerHTML = [ stat("点数余额 Points", D.fmt(D.USER.balance), "", "accent"), @@ -158,12 +157,6 @@ stat("交易笔数 Trades", txs.length + " 笔", "含充值 / 提现 / 消费 / 收益 / 赠送"), ].join(""); - $("#dash-recent").innerHTML = recent.map((t) => - '
' + esc(t.detail) + "
" + - '
' + esc(t.time) + " · " + esc(t.partner) + "
" + - '
' + (t.pts > 0 ? "+" : "") + D.fmt(t.pts) + "
" - ).join("") + (recent.length ? "" : '

暂无交易

'); - const on = D.SHARINGS.filter((s) => s.status === "on"); $("#dash-sharings").innerHTML = on.map((s) => '
' + esc(s.model) + "
" +