)}
{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) => )}
)}
-
+
{canQuery
? '可输入字体名称,或聚焦后从已安装字体中选择;找不到时回退到系统字体。'
: '输入已安装的字体名称(可写多个,用逗号分隔);找不到时回退到系统字体。'}
@@ -804,12 +804,12 @@ function ThemeVarsPanel({
{CSS_VAR_FIELDS.map((f) => {
const override = cssVars[f.token];
return (
- {f.token}} layout="inline">
+ {f.token}} layout="inline">
{override ? (
-
{override}
+
{override}
) : (
-
默认
+
默认
)}
);
}
@@ -204,7 +204,7 @@ export function LinkConfigForm({ config, onChange }: FormProps) {
onChange={(e) => onChange({ url: e.target.value })}
className={cn('h-8', urlInvalid && 'border-destructive')}
/>
- {urlInvalid && 仅支持 http:// 或 https:// 链接}
+ {urlInvalid && 仅支持 http:// 或 https:// 链接}
图标
@@ -259,7 +259,7 @@ export function AccountConfigForm({ config, onChange }: FormProps) {
- 可从已接入账号中选择,或手动输入。
+ 可从已接入账号中选择,或手动输入。
);
}
diff --git a/packages/webui/src/components/settings/global-config-panel.tsx b/packages/webui/src/components/settings/global-config-panel.tsx
index eef75ae3..1fcd247d 100644
--- a/packages/webui/src/components/settings/global-config-panel.tsx
+++ b/packages/webui/src/components/settings/global-config-panel.tsx
@@ -110,7 +110,7 @@ export function GlobalConfigPanel() {
{/* rkey fallback servers */}
-
+
图片 / 文件下载链接需要服务器签发的 rkey。SnowLuma 默认走内核获取;
@@ -160,7 +160,7 @@ export function GlobalConfigPanel() {
);
})}
-
+
端点需返回 {'{ group_rkey, private_rkey, expired_time }'}
(兼容 NapCat rkey 服务格式)。非 http(s) 链接会被忽略。
@@ -171,7 +171,7 @@ export function GlobalConfigPanel() {
{/* music sign URL */}
-
+
音乐分享卡片的签名服务,对所有账号统一生效。留空则使用内置默认服务。
@@ -191,7 +191,7 @@ export function GlobalConfigPanel() {
)}
onChange={(e) => commit({ ...config, musicSignUrl: e.target.value })}
/>
-
+
内置默认:{MUSIC_SIGN_DEFAULT}
diff --git a/packages/webui/src/components/settings/notification-channel-dialog.tsx b/packages/webui/src/components/settings/notification-channel-dialog.tsx
index fa855f81..14561af1 100644
--- a/packages/webui/src/components/settings/notification-channel-dialog.tsx
+++ b/packages/webui/src/components/settings/notification-channel-dialog.tsx
@@ -108,7 +108,7 @@ export function NotificationChannelDialog(props: NotificationChannelDialogProps)
onChange={(e) => patch({ bodyTemplate: e.target.value })}
className="font-mono text-xs leading-relaxed"
/>
-
+
变量:{'{uin}'} {'{nickname}'}{' '}
{'{event}'}(offline/online) {'{time}'}
@@ -117,7 +117,7 @@ export function NotificationChannelDialog(props: NotificationChannelDialogProps)
-
+
关闭后保留配置但不推送;账号侧对应开关会被锁定并关闭。
@@ -168,9 +168,9 @@ function Field({ label, value, onChange, placeholder, type = 'text', error, hint
className={cn(error && 'border-destructive focus-visible:ring-destructive/40', disabled && 'opacity-60')}
/>
{error ? (
-
{error}
+
{error}
) : hint ? (
-
{hint}
+
{hint}
) : null}
);
diff --git a/packages/webui/src/components/settings/notifications-panel.tsx b/packages/webui/src/components/settings/notifications-panel.tsx
index e7dea139..d86873b2 100644
--- a/packages/webui/src/components/settings/notifications-panel.tsx
+++ b/packages/webui/src/components/settings/notifications-panel.tsx
@@ -131,7 +131,7 @@ export function NotificationsPanel() {
{/* Global settings */}
-
+
账号上线 / 下线时向启用的渠道 POST 一条通知(机械转发,仅去抖防刷屏)。渠道在此全局定义,每个账号在其「配置」页勾选启用哪些。
@@ -150,7 +150,7 @@ export function NotificationsPanel() {
commit({ ...config, debounceSeconds: Number.isFinite(n) ? Math.min(3600, Math.max(0, n)) : 0 });
}}
/>
-
+
下线后在该秒数内自愈则不发;超时才发「下线」,恢复时再发「上线」。0 = 立即发、不去抖。
@@ -237,7 +237,7 @@ function ChannelCard({ channel, testing, onToggle, onTest, onEdit, onDelete }: C
{!channel.enabled &&
已停用}
{channel.url}
-
{channel.bodyTemplate}
+
{channel.bodyTemplate}
diff --git a/packages/webui/src/components/settings/system-panel.tsx b/packages/webui/src/components/settings/system-panel.tsx
index 2c226796..e73f92c4 100644
--- a/packages/webui/src/components/settings/system-panel.tsx
+++ b/packages/webui/src/components/settings/system-panel.tsx
@@ -163,7 +163,7 @@ export function SystemPanel() {
const EnvBadge = ({ field }: { field: string }) =>
overridden(field)
- ?
被环境变量覆盖
+ ?
被环境变量覆盖
: null;
return (
@@ -200,7 +200,7 @@ export function SystemPanel() {
setTrustProxy(e.target.value)} placeholder="留空=只信任 socket 对端;1=信任反代头" />
-
仅在 WebUI 位于受信任反向代理之后时才设为 1 / loopback / IP 列表。
+
仅在 WebUI 位于受信任反向代理之后时才设为 1 / loopback / IP 列表。
)}
-
+
私钥仅写入服务器 config/key.pem(0600 权限),不会回显。证书无效时保存会被拒绝;若启用了 TLS 但证书加载失败,启动时会自动回退到 HTTP。
>
@@ -282,7 +282,7 @@ export function SystemPanel() {
{exportCreds && (
-
⚠ 将额外包含 WebUI 登录状态、TLS 私钥,以及带访问令牌的 OneBot 配置,请妥善保管。
+
⚠ 将额外包含 WebUI 登录状态、TLS 私钥,以及带访问令牌的 OneBot 配置,请妥善保管。
)}
{restoreCreds && (
-
⚠ 将覆盖当前 WebUI 登录状态、TLS 私钥与 OneBot 配置(含访问令牌);若备份口令未知可能登不进。
+
⚠ 将覆盖当前 WebUI 登录状态、TLS 私钥与 OneBot 配置(含访问令牌);若备份口令未知可能登不进。
)}
:
} 选择备份文件并恢复
-
恢复前会校验本次要恢复的配置;写入过程中出错会自动回滚,成功后临时快照会删除。恢复后需重启生效。
+
恢复前会校验本次要恢复的配置;写入过程中出错会自动回滚,成功后临时快照会删除。恢复后需重启生效。
diff --git a/packages/webui/src/components/ui/badge.tsx b/packages/webui/src/components/ui/badge.tsx
index edeb587b..910b0775 100644
--- a/packages/webui/src/components/ui/badge.tsx
+++ b/packages/webui/src/components/ui/badge.tsx
@@ -3,7 +3,7 @@ import { cva, type VariantProps } from 'class-variance-authority';
import { cn } from '@/lib/utils';
const badgeVariants = cva(
- 'inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-[11px] font-medium transition-colors',
+ 'inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium transition-colors',
{
variants: {
variant: {
diff --git a/packages/webui/src/components/ui/json-tree.tsx b/packages/webui/src/components/ui/json-tree.tsx
index 59922222..ed32d45e 100644
--- a/packages/webui/src/components/ui/json-tree.tsx
+++ b/packages/webui/src/components/ui/json-tree.tsx
@@ -33,7 +33,7 @@ function Leaf({ value }: { value: string | number | boolean | null }) {
@@ -101,7 +101,7 @@ function Node({ k, value, depth, defaultOpen }: { k?: string; value: unknown; de