From a3c214807abaa481744bad5032b7459f613718fa Mon Sep 17 00:00:00 2001 From: Lang Date: Thu, 15 Oct 2026 01:11:46 +0800 Subject: [PATCH] =?UTF-8?q?dashboard:=20order=20kind/status=20chips=20(?= =?UTF-8?q?=E5=8D=95=E8=AF=8D/=E8=AF=8D=E7=BB=84;=20=E6=9C=AA=E5=AD=A6/?= =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E4=B8=AD/=E5=B7=B2=E6=8E=8C=E6=8F=A1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actions/build_dashboard.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/build_dashboard.py b/actions/build_dashboard.py index acc817c..892911c 100644 --- a/actions/build_dashboard.py +++ b/actions/build_dashboard.py @@ -358,9 +358,9 @@ panel({ bar: "itembar", tbl: "itemtbl", pg: "itempg", rows: DATA.items.filter(i => i.kind !== "expression"), groups: [ - { key: "kind", label: "类型", names: { word: "单词", phrase: "词组" } }, + { key: "kind", label: "类型", order: ["word","phrase"], names: { word: "单词", phrase: "词组" } }, { key: "level", label: "等级", order: ["小学","中考","高考","CET4","CET6","考研","TOEFL","GRE"] }, - { key: "status", label: "状态", names: { new: "未学", learning: "学习中", known: "已掌握" } }, + { key: "status", label: "状态", order: ["new","learning","known"], names: { new: "未学", learning: "学习中", known: "已掌握" } }, ], fields: ["item", "meaning", "context"], head: `id条目等级释义上下文状态`, @@ -373,7 +373,7 @@ panel({ bar: "exprbar", tbl: "exprtbl", pg: "exprpg", rows: DATA.items.filter(i => i.kind === "expression"), groups: [{ key: "level", label: "等级", order: ["小学","中考","高考","CET4","CET6","考研","TOEFL","GRE"] }, - { key: "status", label: "状态", names: { new: "未学", learning: "学习中", known: "已掌握" } }], + { key: "status", label: "状态", order: ["new","learning","known"], names: { new: "未学", learning: "学习中", known: "已掌握" } }], fields: ["item", "meaning", "context"], head: `id条目等级翻译 / 用法例句状态`, row: i => `${esc(i.id)}${esc(i.item)}${esc(i.level)}${esc(i.meaning)}${esc(i.context)}${badge(i.status)}`, @@ -384,7 +384,7 @@ SCRIPT_GRAMMAR = r""" panel({ bar: "grambar", tbl: "gramtbl", pg: "grampg", rows: DATA.grammar, - groups: [{ key: "status", label: "状态", names: { new: "未学", learning: "学习中", known: "已掌握" } }], + groups: [{ key: "status", label: "状态", order: ["new","learning","known"], names: { new: "未学", learning: "学习中", known: "已掌握" } }], fields: ["issue", "rule", "examples"], head: `id类别问题正确规则例子状态次数`, row: g => `${esc(g.id)}${esc(g.category)}${esc(g.issue)}${esc(g.rule)}${esc(g.examples)}${badge(g.status)}${g.count}`,