v0.16.1: 修复后台整体不可交互(node:fs 被客户端外置化报错,image-variant 改惰性获取)、字号再放大一号(15→16)、修复深色主题被烘焙 CSS 反盖(:where 降级变量块特异性)、antd v6 弃用 API 清理(Space direction→orientation/Drawer width→size)、仪表盘菜单标签改中文源串
This commit is contained in:
@@ -147,7 +147,7 @@ function DashboardPage() {
|
||||
</Col>
|
||||
<Col xs={24} xl={8}>
|
||||
<Card title={t("询盘漏斗")} size="small" style={{ height: "100%" }}>
|
||||
<Space direction="vertical" size={12} style={{ display: "flex" }}>
|
||||
<Space orientation="vertical" size={12} style={{ display: "flex" }}>
|
||||
{(["new", "read", "replied", "spam", "archived"] as const).map((st) => {
|
||||
const n = inquiryStatus.find((s) => s.status === st)?.count ?? 0;
|
||||
return (
|
||||
|
||||
@@ -183,7 +183,7 @@ function InquiriesPage() {
|
||||
|
||||
<Drawer
|
||||
title={viewing ? `${t("询盘")} #${viewing.id} · ${viewing.name || viewing.email}` : ""}
|
||||
width="min(1120px, 92vw)"
|
||||
size="min(1120px, 92vw)"
|
||||
open={viewing !== null}
|
||||
onClose={() => setViewing(null)}
|
||||
destroyOnHidden
|
||||
|
||||
@@ -134,7 +134,7 @@ function PermissionsPage() {
|
||||
style={{ marginBottom: 16 }}
|
||||
message={t("按角色配置菜单功能权限与 MCP / API 访问。admin 角色恒为全量,不可编辑;未勾选任何菜单的角色无法访问对应后台页面。")}
|
||||
/>
|
||||
<Space direction="vertical" size={16} style={{ display: "flex" }}>
|
||||
<Space orientation="vertical" size={16} style={{ display: "flex" }}>
|
||||
{EDITABLE_ROLES.map((role) =>
|
||||
draft[role] ? (
|
||||
<Card
|
||||
|
||||
@@ -27,7 +27,7 @@ function ProfilePage() {
|
||||
return (
|
||||
<Card size="small">
|
||||
<PageHeader title={t("个人设置")} />
|
||||
<Space direction="vertical" size={16} style={{ display: "flex", maxWidth: 820 }}>
|
||||
<Space orientation="vertical" size={16} style={{ display: "flex", maxWidth: 820 }}>
|
||||
<ProfileForm profile={data} />
|
||||
<PasswordForm />
|
||||
<McpTokenCard profile={data} />
|
||||
@@ -78,7 +78,7 @@ function ProfileForm(props: { profile: ProfileData }) {
|
||||
>
|
||||
<Space size={20} align="start" style={{ display: "flex" }}>
|
||||
<Form.Item label={t("头像")} style={{ textAlign: "center" }}>
|
||||
<Space direction="vertical" size={8}>
|
||||
<Space orientation="vertical" size={8}>
|
||||
{avatar ? (
|
||||
<Avatar size={72} src={avatar} />
|
||||
) : (
|
||||
|
||||
@@ -209,7 +209,7 @@ function SettingsPage() {
|
||||
key: "__other__",
|
||||
label: t("其他"),
|
||||
children: (
|
||||
<Space direction="vertical" size={16} style={{ display: "flex" }}>
|
||||
<Space orientation="vertical" size={16} style={{ display: "flex" }}>
|
||||
<Typography.Text type="secondary">{t("以下键无表单定义(由脚本或系统内部写入),此处只读展示。")}</Typography.Text>
|
||||
{otherRows.map((r) => (
|
||||
<Card key={r.key} type="inner" size="small" title={r.key} extra={<Typography.Text type="secondary" style={{ fontSize: 12 }}>{t("最后更新")}:{fmtDateTime(r.updatedAt)}</Typography.Text>}>
|
||||
|
||||
Reference in New Issue
Block a user