diff --git a/packages/webui/src/components/config/account-sidebar.tsx b/packages/webui/src/components/config/account-sidebar.tsx index 7d066eb9..36f43f7d 100644 --- a/packages/webui/src/components/config/account-sidebar.tsx +++ b/packages/webui/src/components/config/account-sidebar.tsx @@ -88,7 +88,7 @@ export function AccountSidebar({ > {q.nickname || q.uin} -
+
{q.uin}
@@ -101,7 +101,7 @@ export function AccountSidebar({
{q.nickname || q.uin} - {q.uin} + {q.uin}
diff --git a/packages/webui/src/components/config/general-settings-tab.tsx b/packages/webui/src/components/config/general-settings-tab.tsx index 6ac71168..1d3ab9dd 100644 --- a/packages/webui/src/components/config/general-settings-tab.tsx +++ b/packages/webui/src/components/config/general-settings-tab.tsx @@ -28,7 +28,7 @@ export function GeneralSettingsTab({ config, onChange }: GeneralSettingsTabProps -

+

收到纯文本 #sl 时回复 SnowLuma 版本 / 平台 / 运行时长。任何人可触发,关闭后完全不响应。

@@ -48,7 +48,7 @@ export function GeneralSettingsTab({ config, onChange }: GeneralSettingsTabProps maxLength={32} onChange={(e) => setStatusCommand({ trigger: e.target.value })} /> -

+

自定义触发词,默认 #sl。最长 32 字符,匹配前会去除首尾空格并转为小写。

@@ -56,7 +56,7 @@ export function GeneralSettingsTab({ config, onChange }: GeneralSettingsTabProps
-

+

开启后,命中的 #sl 不再投递给已连接的 Bot(仍会回复并本地记录)。默认关闭即透传。

@@ -81,7 +81,7 @@ export function GeneralSettingsTab({ config, onChange }: GeneralSettingsTabProps setStatusCommand({ cooldownSeconds: Number.isFinite(n) && n >= 0 ? n : 0 }); }} /> -

+

同一会话在该秒数内重复 #sl 不再回复,防刷屏。0 表示不限制。

diff --git a/packages/webui/src/components/config/node-edit-dialog.tsx b/packages/webui/src/components/config/node-edit-dialog.tsx index 8ada17a5..a4c78900 100644 --- a/packages/webui/src/components/config/node-edit-dialog.tsx +++ b/packages/webui/src/components/config/node-edit-dialog.tsx @@ -114,7 +114,7 @@ export function NodeEditDialog(props: NodeEditDialogProps >
-

+

关闭后保存即可保留配置但不启动该节点

@@ -215,7 +215,7 @@ function Section({ caption, delay, children }: { caption: string; delay: number; transition={{ duration: 0.3, delay }} className="flex flex-col gap-1.5" > - {caption} + {caption}
{children}
); @@ -227,7 +227,7 @@ function SettingRow({ label, desc, children }: { label: string; desc?: string; c
- {desc &&

{desc}

} + {desc &&

{desc}

}
{children}
@@ -366,7 +366,7 @@ function Field({ label, value, onChange, placeholder, type = 'text', error }: Fi placeholder={placeholder} className={cn(error && 'border-destructive focus-visible:ring-destructive/40')} /> - {error &&

{error}

} + {error &&

{error}

} ); } diff --git a/packages/webui/src/components/config/node-summary-card.tsx b/packages/webui/src/components/config/node-summary-card.tsx index 35699d8c..c3d6dde2 100644 --- a/packages/webui/src/components/config/node-summary-card.tsx +++ b/packages/webui/src/components/config/node-summary-card.tsx @@ -75,7 +75,7 @@ export function NodeSummaryCard({ )} {liveStatus && ( ({ )}
{summary}
-
+
{item.messageFormat === 'string' ? 'CQ 码' : '数组'} · {item.reportSelfMessage ? '上报自身' : '不上报自身'} diff --git a/packages/webui/src/components/config/notification-opt-in.tsx b/packages/webui/src/components/config/notification-opt-in.tsx index 7ea11410..3c83900c 100644 --- a/packages/webui/src/components/config/notification-opt-in.tsx +++ b/packages/webui/src/components/config/notification-opt-in.tsx @@ -110,13 +110,13 @@ export function NotificationOptIn({ selectedIds, onChange }: NotificationOptInPr 加载渠道…
) : total === 0 ? ( -

还没有全局渠道——先到「设置 → 通知」添加。

+

还没有全局渠道——先到「设置 → 通知」添加。

) : ( <> {/* collapsed: selected channels as removable chips */} {!expanded && (selectedCount === 0 ? ( -

未选择任何渠道。展开以选择。

+

未选择任何渠道。展开以选择。

) : (
{selectedChips.slice(0, CHIP_CAP).map((ch) => ( @@ -136,7 +136,7 @@ export function NotificationOptIn({ selectedIds, onChange }: NotificationOptInPr @@ -155,7 +155,7 @@ export function NotificationOptIn({ selectedIds, onChange }: NotificationOptInPr className="overflow-hidden" >
-

+

该账号上线 / 下线时向选中的渠道推送通知。渠道在「设置 → 通知」中全局定义。

@@ -172,21 +172,21 @@ export function NotificationOptIn({ selectedIds, onChange }: NotificationOptInPr
{filtered.length === 0 ? ( -

无匹配渠道

+

无匹配渠道

) : (
@@ -199,10 +199,10 @@ export function NotificationOptIn({ selectedIds, onChange }: NotificationOptInPr
{ch.name || ch.id} {!ch.enabled && ( - (已全局禁用) + (已全局禁用) )}
-

{ch.url}

+

{ch.url}

accounts.length === 0 ? [{ value: '', label: '(无在线账号)' }] : accounts.map((a) => ({ - value: a.uin, - label: a.nickname || a.uin, - sub: a.nickname ? a.uin : undefined, - avatar: qqAvatarUrl(a.uin), - })), + value: a.uin, + label: a.nickname || a.uin, + sub: a.nickname ? a.uin : undefined, + avatar: qqAvatarUrl(a.uin), + })), [accounts], ); @@ -244,10 +244,10 @@ export function ActionTester({ accounts, docs, presetAction }: { accounts: QQInf {doc && (
{doc.readOnly - ? 只读·安全 - : 有副作用} - {isStream && 流式} - {doc.summary}{doc.returns ? <> · 返回 {doc.returns} : null} + ? 只读·安全 + : 有副作用} + {isStream && 流式} + {doc.summary}{doc.returns ? <> · 返回 {doc.returns} : null}
)} @@ -273,11 +273,11 @@ export function ActionTester({ accounts, docs, presetAction }: { accounts: QQInf if (p.role === 'group_id' && doc) for (const mp of doc.params) if (mp.role === 'member_id') next[mp.name] = ''; return next; })} /> - {p.desc && {p.desc}} + {p.desc && {p.desc}} ))} {doc!.invariants && doc!.invariants.length > 0 && ( -

约束:{doc!.invariants.join(';')}

+

约束:{doc!.invariants.join(';')}

)}
)} @@ -317,7 +317,7 @@ export function ActionTester({ accounts, docs, presetAction }: { accounts: QQInf className="group flex items-center gap-2 rounded-lg px-2.5 py-2 text-left text-[13px] hover:bg-muted/50"> {rec.action} - {rec.uin} + {rec.uin} ))} diff --git a/packages/webui/src/components/debug/file-source.tsx b/packages/webui/src/components/debug/file-source.tsx index a6a7b18b..4cbc3134 100644 --- a/packages/webui/src/components/debug/file-source.tsx +++ b/packages/webui/src/components/debug/file-source.tsx @@ -86,7 +86,7 @@ export function FileSource({ value, onChange, role, placeholder }: { {mode === 'server' && (
onChange(e.target.value)} placeholder="/path/on/server/file.jpg" /> - 这是 运行 bot 的服务器 上的路径,不是你本机的。 + 这是 运行 bot 的服务器 上的路径,不是你本机的。
)} @@ -108,13 +108,13 @@ export function FileSource({ value, onChange, role, placeholder }: { {uploading ? <> 上传中… : <> 选择文件上传到服务器} {value && uploadName && !uploading && ( -
+
已上传:{uploadName} {value}
)} - {uploadErr && {uploadErr}} + {uploadErr && {uploadErr}}
)}
diff --git a/packages/webui/src/components/debug/live-activity.tsx b/packages/webui/src/components/debug/live-activity.tsx index 632dc3f4..3e609059 100644 --- a/packages/webui/src/components/debug/live-activity.tsx +++ b/packages/webui/src/components/debug/live-activity.tsx @@ -65,7 +65,7 @@ function StreamRowItem({ row }: { row: StreamRow }) { const time = new Date(row.at).toLocaleTimeString('zh-CN', { hour12: false }); if (msg.kind === 'dropped') { - return
因客户端过慢丢弃了 {msg.count} 条
; + return
因客户端过慢丢弃了 {msg.count} 条
; } const { label, detail, isAction, ok } = rowLabel(msg); @@ -73,14 +73,14 @@ function StreamRowItem({ row }: { row: StreamRow }) {
@@ -184,17 +184,17 @@ export function MessageBuilder({ segments, onChange, uin, groupId, depth = 0 }:
{COMMON.map((c) => ( ))}
- 进阶段 + 进阶段
{ADVANCED.map((c) => ( ))} @@ -257,11 +257,11 @@ function SegmentEditor({ seg, onChange, uin, groupId, depth }: { seg: Seg; onCha onChange({ ...seg, nickname: e.target.value })} placeholder="发送者昵称" className="text-xs" />
- 节点内容(可再嵌套) + 节点内容(可再嵌套) {depth < 3 ? ( onChange({ ...seg, content: c })} uin={uin} groupId={groupId} depth={depth + 1} /> ) : ( -

嵌套层级过深

+

嵌套层级过深

)}
diff --git a/packages/webui/src/components/debug/task-badge.tsx b/packages/webui/src/components/debug/task-badge.tsx index 20ed1498..4fea9bb0 100644 --- a/packages/webui/src/components/debug/task-badge.tsx +++ b/packages/webui/src/components/debug/task-badge.tsx @@ -35,7 +35,7 @@ function Row({ task, onDismiss }: { task: DebugTask; onDismiss: () => void }) { )} {task.detail && task.status !== 'running' && ( - {task.detail} + {task.detail} )} ); @@ -64,7 +64,7 @@ export function TaskBadge() {
调试任务 {tasks.some((t) => t.status !== 'running') && ( - + )}
diff --git a/packages/webui/src/components/layout/sidebar.tsx b/packages/webui/src/components/layout/sidebar.tsx index 66563353..ade76fff 100644 --- a/packages/webui/src/components/layout/sidebar.tsx +++ b/packages/webui/src/components/layout/sidebar.tsx @@ -74,9 +74,9 @@ export function Sidebar({ collapsed = false, onItemClick }: SidebarProps) {
{APP_NAME} - v{APP_VERSION} + v{APP_VERSION}
- OneBot v11 控制台 + OneBot v11 控制台
@@ -85,11 +85,11 @@ export function Sidebar({ collapsed = false, onItemClick }: SidebarProps) { {editing ? (
- 编辑导航 + 编辑导航 @@ -178,7 +178,7 @@ export function Sidebar({ collapsed = false, onItemClick }: SidebarProps) { {label} - {description} + {description} ); @@ -208,7 +208,7 @@ export function Sidebar({ collapsed = false, onItemClick }: SidebarProps) { 有新版本可用 - v{updateInfo.latest} · 点击查看 + v{updateInfo.latest} · 点击查看
@@ -218,7 +218,7 @@ export function Sidebar({ collapsed = false, onItemClick }: SidebarProps) { expanded; unpinning returns it to the hover-to-peek rail. Mirrors the 「钉住侧栏展开」 appearance setting. */}
- + © {new Date().getFullYear()} SnowLuma {isDesktop && ( diff --git a/packages/webui/src/components/overview/deliveries-widget.tsx b/packages/webui/src/components/overview/deliveries-widget.tsx index 5d5ace7c..807bdd38 100644 --- a/packages/webui/src/components/overview/deliveries-widget.tsx +++ b/packages/webui/src/components/overview/deliveries-widget.tsx @@ -63,7 +63,7 @@ export function DeliveriesWidget() {

暂无投递记录

) : ( -
+
{records.map((r, i) => (
{r.ok ? ( @@ -83,7 +83,7 @@ export function DeliveriesWidget() { {r.uin} {r.channelId} - {!r.ok && r.error ? ` · ${r.error}` : ''} + {!r.ok && r.error && · {r.error}}
))} diff --git a/packages/webui/src/components/pages/change-password-form.tsx b/packages/webui/src/components/pages/change-password-form.tsx index 6497a6f3..58f0035f 100644 --- a/packages/webui/src/components/pages/change-password-form.tsx +++ b/packages/webui/src/components/pages/change-password-form.tsx @@ -170,7 +170,7 @@ export function ChangePasswordForm({ className="h-10 text-sm" /> {confirmPassword.length > 0 && !confirmMatches && ( - 两次输入的密码不一致 + 两次输入的密码不一致 )}
diff --git a/packages/webui/src/components/pages/config-page.tsx b/packages/webui/src/components/pages/config-page.tsx index b62a2d8c..a455d99c 100644 --- a/packages/webui/src/components/pages/config-page.tsx +++ b/packages/webui/src/components/pages/config-page.tsx @@ -288,7 +288,7 @@ function HeaderBar({ selectedUin, dirty, saveStatus, saveStatusTone, onSave, act
{(saveStatus || dirty) && ( - + {saveStatusTone === 'saving' ? ( <>保存中 ) : saveStatusTone === 'success' ? ( @@ -379,7 +379,7 @@ function TabStrip({ activeTab, onChange, counts }: TabStripProps) { {count != null && ( {count} diff --git a/packages/webui/src/components/pages/consent-page.tsx b/packages/webui/src/components/pages/consent-page.tsx index 840fe5bf..6dcf3818 100644 --- a/packages/webui/src/components/pages/consent-page.tsx +++ b/packages/webui/src/components/pages/consent-page.tsx @@ -111,7 +111,7 @@ export function ConsentPage({ documents, version, onAccept, onDecline }: Consent
{active && (active.declaredVersion || active.effectiveDate) && ( -

+

{active.declaredVersion && `版本 / Version ${active.declaredVersion}`} {active.declaredVersion && active.effectiveDate && ' · '} {active.effectiveDate && `生效 / Effective ${active.effectiveDate}`} @@ -172,7 +172,7 @@ export function ConsentPage({ documents, version, onAccept, onDecline }: Consent

-

agreements {version.slice(0, 8)}

+

agreements {version.slice(0, 8)}

); diff --git a/packages/webui/src/components/pages/login-page.tsx b/packages/webui/src/components/pages/login-page.tsx index ca7382e3..80471a15 100644 --- a/packages/webui/src/components/pages/login-page.tsx +++ b/packages/webui/src/components/pages/login-page.tsx @@ -103,7 +103,7 @@ export function LoginPage({ onLogin }: LoginPageProps) {
{APP_NAME} - v{APP_VERSION} + v{APP_VERSION}

OneBot v11 协议网关 · 安全登录

@@ -155,7 +155,7 @@ export function LoginPage({ onLogin }: LoginPageProps) { -

+

© {new Date().getFullYear()} SnowLuma. All rights reserved.

@@ -187,12 +187,12 @@ export function LoginPage({ onLogin }: LoginPageProps) {

登录页动态背景

-

{fxOn ? '已开启 · 关闭后背景为静态' : '已关闭 · 背景为静态'}

+

{fxOn ? '已开启 · 关闭后背景为静态' : '已关闭 · 背景为静态'}

-

+

登录后,你还可以在「系统设置 → 无障碍」里进一步「减弱动效」或「关闭全部动效」。

diff --git a/packages/webui/src/components/pages/logs-page.tsx b/packages/webui/src/components/pages/logs-page.tsx index 7000aa14..dfada8f8 100644 --- a/packages/webui/src/components/pages/logs-page.tsx +++ b/packages/webui/src/components/pages/logs-page.tsx @@ -443,7 +443,7 @@ export function LogsPage() { onClick={() => toggleLevel(lv)} aria-pressed={active} className={cn( - 'inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11px] font-medium transition-[background-color,color,box-shadow] duration-150 ease-out cursor-pointer', + 'inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-[background-color,color,box-shadow] duration-150 ease-out cursor-pointer', active ? cn('bg-card shadow-sm ring-1 ring-border/60', levelClass[lv]) : 'text-muted-foreground/55 hover:text-foreground', @@ -474,7 +474,7 @@ export function LogsPage() {
视图预设 - · 一键套用级别 / 行数 / 换行;手动调整后变为「自定义」 + · 一键套用级别 / 行数 / 换行;手动调整后变为「自定义」
{LOG_PRESETS.map((p) => { @@ -487,7 +487,7 @@ export function LogsPage() { aria-pressed={active} title={p.hint} className={cn( - 'inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11px] font-medium transition-[background-color,color,box-shadow] duration-150 ease-out cursor-pointer outline-none focus-visible:ring-[3px] focus-visible:ring-ring/40', + 'inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-[background-color,color,box-shadow] duration-150 ease-out cursor-pointer outline-none focus-visible:ring-[3px] focus-visible:ring-ring/40', active ? 'bg-card text-foreground shadow-sm ring-1 ring-border/60' : 'text-muted-foreground/70 hover:text-foreground', )} > @@ -497,7 +497,7 @@ export function LogsPage() { })} @@ -510,7 +510,7 @@ export function LogsPage() {
服务端日志级别 - · 仅影响控制台 / 实时流,文件始终落盘 debug + · 仅影响控制台 / 实时流,文件始终落盘 debug
{LEVELS.map((lv) => { @@ -523,7 +523,7 @@ export function LogsPage() { disabled={levelBusy || serverLevel === null} aria-pressed={active} className={cn( - 'inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-[11px] font-medium transition-[background-color,color,box-shadow,opacity] duration-150 ease-out cursor-pointer disabled:cursor-not-allowed disabled:opacity-50', + 'inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-[background-color,color,box-shadow,opacity] duration-150 ease-out cursor-pointer disabled:cursor-not-allowed disabled:opacity-50', active ? cn('bg-card shadow-sm ring-1 ring-border/60', levelClass[lv]) : 'text-muted-foreground/70 hover:text-foreground', @@ -542,7 +542,7 @@ export function LogsPage() {
高亮规则 - · 命中关键词的行会被着色 + · 命中关键词的行会被着色
0 && (
{prefs.highlightRules.map((r, i) => ( - + {r.keyword}
-

+

拖到左侧画布添加;把卡片拖回此处即可移除。

{hidden.length === 0 ? ( -
+
全部部件已添加
) : ( @@ -480,9 +480,9 @@ function StatTile({ }) { const copy = ( <> -

{label}

+

{label}

{value}
- {subtext &&

{subtext}

} + {subtext &&

{subtext}

} ); const body = ( @@ -617,7 +617,7 @@ function HostBlock({ config }: { config: HostConfig }) { CPU 使用率 {systemInfo && ( - {systemInfo.cpu.perCore.length} 核 + {systemInfo.cpu.perCore.length} 核 )}
@@ -625,7 +625,7 @@ function HostBlock({ config }: { config: HostConfig }) {
-

+

负载: {systemInfo ? systemInfo.cpu.loadAvg.map((v) => v.toFixed(2)).join(' / ') : '—'}

{systemInfo && systemInfo.cpu.perCore.length > 0 && ( @@ -643,7 +643,7 @@ function HostBlock({ config }: { config: HostConfig }) { }} > {i} @@ -687,7 +687,7 @@ function HostBlock({ config }: { config: HostConfig }) { /> ))}
-
+
{segs.map((seg) => ( @@ -791,7 +791,7 @@ function SessionsBlock({ config }: { config: SessionsConfig }) {
{q.nickname}
-
{q.uin}
+
{q.uin}
@@ -873,25 +873,25 @@ function ConnectionsBlock({ config }: { config: ConnectionsConfig }) {
{acc.nickname || acc.uin} - {acc.uin} + {acc.uin}
{acc.adapters.length === 0 ? ( -

未配置任何协议端点

+

未配置任何协议端点

) : (
{acc.adapters.map((adp) => (
- + {CONN_STATUS_LABEL[adp.status]}
{adp.name} - {ADAPTER_KIND_LABEL[adp.kind]} + {ADAPTER_KIND_LABEL[adp.kind]}
-
{adp.detail}
+
{adp.detail}
{adp.lastError && adp.lastErrorAt && ( -
+
{new Date(adp.lastErrorAt).toLocaleString()} · {adp.lastError}
)} @@ -946,7 +946,7 @@ function LinkWidget({ config }: { config: LinkConfig }) {

{config.label || config.url}

-

{config.url}

+

{config.url}

@@ -977,7 +977,7 @@ function AccountWidget({ config }: { config: AccountConfig }) {

{acct?.nickname || '未接入账号'}

-

{config.uin}

+

{config.uin}

最近 {count} 条 · {config.levels.map((l) => l.toUpperCase()).join(' / ')}
- + 查看日志 @@ -1048,7 +1048,7 @@ function RecentAlertsCard({ config }: { config: AlertsConfig }) {

暂无告警

) : ( -
+
{alerts.map((a) => (
{formatClock(a.time)} diff --git a/packages/webui/src/components/pages/processes-page.tsx b/packages/webui/src/components/pages/processes-page.tsx index 0493b2a4..bbc870ea 100644 --- a/packages/webui/src/components/pages/processes-page.tsx +++ b/packages/webui/src/components/pages/processes-page.tsx @@ -85,7 +85,7 @@ export function ProcessesPage() { aria-checked={active} onClick={() => setPages({ processesSort: o.id })} className={cn( - 'rounded-md px-2.5 py-1 text-[11px] font-medium transition-[background-color,color,box-shadow] duration-150 ease-out cursor-pointer outline-none focus-visible:ring-[3px] focus-visible:ring-ring/40', + 'rounded-md px-2.5 py-1 text-xs font-medium transition-[background-color,color,box-shadow] duration-150 ease-out cursor-pointer outline-none focus-visible:ring-[3px] focus-visible:ring-ring/40', active ? 'bg-card font-semibold text-foreground shadow-sm ring-1 ring-border' : 'text-muted-foreground hover:text-foreground', )} > @@ -115,7 +115,7 @@ export function ProcessesPage() {

未检测到可加载 QQ 主进程

-

请确认 QQ 已启动后点击右上角刷新

+

请确认 QQ 已启动后点击右上角刷新

) : (
@@ -167,17 +167,17 @@ export function ProcessesPage() { {processStatusLabel[proc.status]}
-
+
PID {proc.pid} {proc.uin && proc.uin !== '0' ? ` · UIN ${proc.uin}` : ''}
{proc.path && ( -
+
{proc.path}
)} {proc.error && ( -
+
{proc.error}
)} diff --git a/packages/webui/src/components/pages/settings-page.tsx b/packages/webui/src/components/pages/settings-page.tsx index 4d192f63..bdf0b7b5 100644 --- a/packages/webui/src/components/pages/settings-page.tsx +++ b/packages/webui/src/components/pages/settings-page.tsx @@ -137,7 +137,7 @@ function SettingsNav({ tab, onChange }: { tab: SettingsTab; onChange: (t: Settin

@@ -404,7 +404,7 @@ function AppearancePanel() { ))} - {p.label} + {p.label} ); })} @@ -499,7 +499,7 @@ function AppearancePanel() {

- {Math.round(UI_SCALE.min * 100)}% + {Math.round(UI_SCALE.min * 100)}% - {Math.round(UI_SCALE.max * 100)}% + {Math.round(UI_SCALE.max * 100)}%
@@ -755,7 +755,7 @@ function FontField({ {fonts.map((f) =>