From eb0e5e1d00fd8afe63816c2f43efd436bc398fce Mon Sep 17 00:00:00 2001 From: Fanbuz <118787336+fanbuz@users.noreply.github.com> Date: Mon, 5 Oct 2026 01:31:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E8=A1=8C=E6=98=BE=E7=A4=BA=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=AC=A1=E6=95=B0=20(#813)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/gui/assets/app.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/gui/assets/app.js b/internal/gui/assets/app.js index 6d3bf150b..3850628be 100644 --- a/internal/gui/assets/app.js +++ b/internal/gui/assets/app.js @@ -9482,7 +9482,7 @@ function balanceFix(p) { } // accountQuota: an account's allowance as a line of small meters under its -// name, the reset time on the ones nearly used up, and any credit balance. +// name, the reset time on the ones nearly used up, credits and held resets. function accountQuota(data, user, cap = 0) { const line = el("div", "aq"); if (!data) { @@ -9494,6 +9494,13 @@ function accountQuota(data, user, cap = 0) { line.classList.add("stale"); line.append(el("span", "aq-asof", asOfText(q))); } + if (q?.resets?.count && !q.error) { + const words = resetsWords(q.resets); + const resets = el("span", "aq-w aq-resets"); + resets.title = [words.textContent, words.title].filter(Boolean).join("\n"); + resets.append(words.querySelector(".resets-n")); + line.append(resets); + } // an account on no plan says so, whatever else can be read of it const noPlan = q?.plan === "No plan" ? [t("No plan")] : []; if (q && !q.error && !q.windows?.length && q.balance) {