From ca73bda68f9acd556befe987219ecf1aca6aa96d Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Mon, 2 Nov 2026 10:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=AD=E8=8B=B1=E5=B9=B6?= =?UTF-8?q?=E5=88=97=E7=9A=84=E7=9C=89=E6=A0=87=EF=BC=9A=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?/=E9=9D=A2=E6=9D=BF/=E6=8A=BD=E5=B1=89=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=8F=AA=E4=BF=9D=E7=95=99=E4=B8=AD=E6=96=87=E4=B8=80=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/app/ErrorBoundary.tsx | 1 - frontend/src/app/layout/AppBar.tsx | 4 +- .../src/components/media/MediaLightbox.tsx | 4 +- .../src/components/media/VersionPanel.tsx | 4 +- frontend/src/components/ui/Overlay.tsx | 12 ++--- frontend/src/components/ui/Page.tsx | 7 +-- frontend/src/components/ui/Panel.tsx | 17 +++--- frontend/src/pages/Account.tsx | 8 +-- frontend/src/pages/AssetLibrary.tsx | 54 +++++++++---------- frontend/src/pages/Dashboard.tsx | 12 ++--- frontend/src/pages/Help.tsx | 54 +++++++++---------- frontend/src/pages/Login.tsx | 4 +- frontend/src/pages/ModelCenter.tsx | 22 ++++---- frontend/src/pages/ProjectDetail.tsx | 2 +- frontend/src/pages/UserAdmin.tsx | 10 ++-- frontend/src/pages/project/AgentConsole.tsx | 5 +- frontend/src/pages/project/Delivery.tsx | 12 ++--- frontend/src/pages/project/Dispatch.tsx | 37 +++++++------ frontend/src/pages/project/Library.tsx | 22 ++++---- frontend/src/pages/project/Overview.tsx | 9 ++-- frontend/src/pages/project/Review.tsx | 10 ++-- frontend/src/pages/project/Storyboard.tsx | 12 +++-- frontend/src/pages/project/Timeline.tsx | 32 +++++------ 23 files changed, 161 insertions(+), 193 deletions(-) diff --git a/frontend/src/app/ErrorBoundary.tsx b/frontend/src/app/ErrorBoundary.tsx index 794aa96..8970b9f 100644 --- a/frontend/src/app/ErrorBoundary.tsx +++ b/frontend/src/app/ErrorBoundary.tsx @@ -63,7 +63,6 @@ export default class ErrorBoundary extends Component { return ( - 长视频编导平台 - NEX ANIMATION STUDIO - + 长视频编导平台 {projectId && } diff --git a/frontend/src/components/media/MediaLightbox.tsx b/frontend/src/components/media/MediaLightbox.tsx index fe76cc9..332cc6e 100644 --- a/frontend/src/components/media/MediaLightbox.tsx +++ b/frontend/src/components/media/MediaLightbox.tsx @@ -31,7 +31,7 @@ import { viewedVersion } from '../../stores/preview' import { pauseAudio, playAudio, stopAudio, toggleAudio, useAudioStore } from '../../stores/audio' -import { Button, Eyebrow, Tag } from '../ui' +import { Button, MUTED, Tag } from '../ui' import { Select } from '../forms' import { VersionPanel } from './VersionPanel' @@ -184,7 +184,7 @@ export function MediaLightbox() {
- {item.group || item.kindLabel || kindLabel(kind)} · {kindLabel(kind)} +

{item.group || item.kindLabel || kindLabel(kind)}

{item.title}

{item.subtitle &&

{item.subtitle}

}
diff --git a/frontend/src/components/media/VersionPanel.tsx b/frontend/src/components/media/VersionPanel.tsx index a8b0f33..86ca25a 100644 --- a/frontend/src/components/media/VersionPanel.tsx +++ b/frontend/src/components/media/VersionPanel.tsx @@ -18,7 +18,7 @@ import { usePreviewStore, viewedVersion } from '../../stores/preview' -import { Button, Eyebrow, Tag } from '../ui' +import { Button, MUTED, Tag } from '../ui' /** 新版本在上,和下拉里的顺序一致 */ function rowsOf(item: MediaItem): MediaVersion[] { @@ -70,7 +70,7 @@ export function VersionPanel({ onClose }: { onClose: () => void }) { >
- VERSIONS · 版本管理 +

版本管理

{item.title}

共 {rows.length} 版 · 当前默认 v{currentNo} diff --git a/frontend/src/components/ui/Overlay.tsx b/frontend/src/components/ui/Overlay.tsx index 951f098..c7e37a1 100644 --- a/frontend/src/components/ui/Overlay.tsx +++ b/frontend/src/components/ui/Overlay.tsx @@ -66,11 +66,9 @@ export function CloseButton({ onClose, label = '关闭' }: { onClose: () => void ) } -export function Drawer({ open, onClose, eyebrow, title, sub, children, actions, width, closeOnBackdrop = true, label }: { +export function Drawer({ open, onClose, title, sub, children, actions, width, closeOnBackdrop = true, label }: { open: boolean onClose: () => void - /** 眉标(ASSET · 人物 / EDIT MODEL) */ - eyebrow?: ReactNode title: ReactNode sub?: ReactNode children: ReactNode @@ -93,8 +91,7 @@ export function Drawer({ open, onClose, eyebrow, title, sub, children, actions, width || 'w-[min(1360px,calc(100vw-20px))] max-huge:w-[calc(100vw-16px)] max-short:w-screen')}>

- {eyebrow && {eyebrow}} -

{title}

+

{title}

{sub &&

{sub}

}
@@ -113,11 +110,9 @@ export function Drawer({ open, onClose, eyebrow, title, sub, children, actions, } /** 居中模态:只放一两句确认文案 + 两个动作;长表单请用 Drawer */ -export function Modal({ open, onClose, eyebrow, title, children, footer, width = 560, closeOnBackdrop = true, label }: { +export function Modal({ open, onClose, title, children, footer, width = 560, closeOnBackdrop = true, label }: { open: boolean onClose: () => void - /** 眉标同 Drawer:先说「这是什么动作」,标题只放对象名 */ - eyebrow?: ReactNode title?: ReactNode children: ReactNode footer?: ReactNode @@ -137,7 +132,6 @@ export function Modal({ open, onClose, eyebrow, title, children, footer, width = {title && (
- {eyebrow && {eyebrow}}

{title}

diff --git a/frontend/src/components/ui/Page.tsx b/frontend/src/components/ui/Page.tsx index 3a9a73a..7e98b3a 100644 --- a/frontend/src/components/ui/Page.tsx +++ b/frontend/src/components/ui/Page.tsx @@ -20,17 +20,18 @@ export const LINK_CLS = 'text-success text-caption no-underline hover:underline' /** * 页头(旧
):左边「状态行 + 大标题」,右边整组动作。 + * 标题只有一层中文——旧站在标题上方另加一行全大写英文眉标,切不到英文, + * 只是装饰,现在整层删掉(见 UI规范 §1)。 * 窄屏按旧站规则改成纵向堆叠,动作按钮拉满一行——两三个小按钮排在 * 25px 标题右边,在 430px 屏上会挤成一团中文碎渣。 */ -export function PageHead({ title, meta, eyebrow, actions, className }: { - title?: ReactNode; meta?: ReactNode; eyebrow?: ReactNode; actions?: ReactNode; className?: string +export function PageHead({ title, meta, actions, className }: { + title?: ReactNode; meta?: ReactNode; actions?: ReactNode; className?: string }) { return (
{meta && {meta}} - {eyebrow &&
{eyebrow}
} {title &&

{title}

}
{actions && {actions}} diff --git a/frontend/src/components/ui/Panel.tsx b/frontend/src/components/ui/Panel.tsx index 0afc725..37b2564 100644 --- a/frontend/src/components/ui/Panel.tsx +++ b/frontend/src/components/ui/Panel.tsx @@ -13,21 +13,21 @@ export function Panel({ children, className, style, pad = true }: { } /** - * 面板头:眉标 + 标题 + 右侧动作。 + * 面板头:标题 + 右侧动作。 * - * 旧站 25 处面板头全都是 +

,标题走的是全局 h2(17px); + * 旧站 25 处面板头都是 +

的「英文眉标 + 中文标题」双层, + * 眉标既不翻译也不承载信息,已整层删除;标题走全局 h2(17px), * 第一版迁移手写成 14px 的 h3,整站面板标题比正文重不了多少,扫视时找不到锚点。 * 窄列必须允许换行(旧站第二十章补的 .panel-head{flex-wrap:wrap}):两列栅格下 * 每列只有 ~400px,筛选控件的最小宽度就超过整列,不换行会把内容压到相邻面板上。 */ -export function PanelHead({ title, eyebrow, sub, right, className }: { - title?: ReactNode; eyebrow?: ReactNode; sub?: ReactNode; right?: ReactNode; className?: string +export function PanelHead({ title, sub, right, className }: { + title?: ReactNode; sub?: ReactNode; right?: ReactNode; className?: string }) { return (
*]:min-w-0', className)}>
- {eyebrow && {eyebrow}} - {title &&

{title}

} + {title &&

{title}

} {sub &&

{sub}

}
{right &&
{right}
} @@ -35,11 +35,6 @@ export function PanelHead({ title, eyebrow, sub, right, className }: { ) } -/** 眉标(面板上方那行全大写小字) */ -export function Eyebrow({ children, className }: { children: ReactNode; className?: string }) { - return
{children}
-} - /** * 小标题 + 右侧动作(.small-label / .sect-act:增删按钮一律贴在标题行右端)。 * diff --git a/frontend/src/pages/Account.tsx b/frontend/src/pages/Account.tsx index adbe918..8399959 100644 --- a/frontend/src/pages/Account.tsx +++ b/frontend/src/pages/Account.tsx @@ -98,7 +98,7 @@ export default function Account() { return (
- {role}} /> {mustChange && 这个账号还在使用初始密码,请先修改密码再开始制作。} @@ -108,7 +108,7 @@ export default function Account() { - + @@ -127,7 +127,7 @@ export default function Account() { - + - + {!sessions.length ? 只有一个当前会话,没有其它设备在线。 : ( diff --git a/frontend/src/pages/AssetLibrary.tsx b/frontend/src/pages/AssetLibrary.tsx index 6766569..39f426b 100644 --- a/frontend/src/pages/AssetLibrary.tsx +++ b/frontend/src/pages/AssetLibrary.tsx @@ -51,10 +51,10 @@ type ViewMode = 'grid' | 'list' | 'media' type BatchDialog = '' | 'tag' | 'delete' | 'media-delete' /** 左侧大分类导航:图标 / 说明 / 眉标一次给全,新增分类只改这一张表 */ -const TYPE_META: Record = { - human: { label: '人物', icon: '☺', eyebrow: 'CASTING WALL', hint: '定妆、造型与角色一致性' }, - scene: { label: '场景', icon: '▧', eyebrow: 'LOCATION BIBLE', hint: '空间、光线与美术基调' }, - voice: { label: '声线', icon: '◉', eyebrow: 'VOICE ARCHIVE', hint: '音色样本与方言 / 情绪参数' } +const TYPE_META: Record = { + human: { label: '人物', icon: '☺', hint: '定妆、造型与角色一致性' }, + scene: { label: '场景', icon: '▧', hint: '空间、光线与美术基调' }, + voice: { label: '声线', icon: '◉', hint: '音色样本与方言 / 情绪参数' } } const TYPE_KEYS: AssetType[] = ['human', 'scene', 'voice'] /** 每个大分类允许登记的素材类型:既是上传下拉的选项,也是「素材类型」筛选的兜底 */ @@ -995,7 +995,6 @@ export default function AssetLibrary() { return (
平台资产库} actions={} /> @@ -1045,7 +1044,6 @@ export default function AssetLibrary() { ))}
- {typeMeta.eyebrow} {view === 'media' && (

素材墙按 当前类型 过滤:{typeMeta.label}素材 {wall.stats?.by_owner?.[type] || 0} 个。 @@ -1056,22 +1054,22 @@ export default function AssetLibrary() {

- - {VIEW_ITEMS.map((item) => ( - chooseView(item.value)}>{item.label} - ))} -
- } /> + + {VIEW_ITEMS.map((item) => ( + chooseView(item.value)}>{item.label} + ))} +
+ } /> {/* 筛选栏:只有皮肤,布局(等高 / 折行 / 行内标签)全部来自 Ctlbar。 「每页」不在这里——分页条是 page_size 唯一的家(UI规范 §5)。 */} @@ -1453,7 +1451,6 @@ export default function AssetLibrary() { 抽屉而不是模态:这个表单最长有 11 个字段,模态里滚到一半就会把「保存」 挤出可视区;Drawer 的动作条钉在底部,永远点得到。 */} setDrawer(false)} label="编辑平台资产" - eyebrow={editingId ? 'EDIT MASTER' : 'NEW MASTER'} title={ {editingId ? '编辑' : '新建'}{TYPE_META[form.type].label}母版 } @@ -1595,7 +1592,6 @@ export default function AssetLibrary() { {genDrawer && genTarget && ( setGenDrawer(false)} label="生成平台素材" width="w-[min(980px,calc(100vw-64px))] max-mid:w-[min(760px,calc(100vw-24px))] max-short:w-screen" - eyebrow={`${TYPE_META[genTarget.owner_type || type].eyebrow} · GENERATE`} title={genTarget.name} sub={ {genTarget.code || `${type}-${genTarget.id}`} · 现有 {genTarget.media_count || 0} 个素材 @@ -1796,7 +1792,7 @@ export default function AssetLibrary() { 动作为什么要单独确认:这里删的是「母版 + 它的全部媒体版本」, 而项目里引入过的快照副本不受影响 —— 这句话必须写在按钮之前。 */} setConfirmDelete(null)} width={520} - eyebrow="DELETE MASTER" label="确认删除平台母版" + label="确认删除平台母版" title={confirmDelete && <>删除{TYPE_META[confirmDelete.owner_type || type].label}母版?} footer={<> @@ -1810,7 +1806,7 @@ export default function AssetLibrary() { {/* ── 引入到项目:复制成快照,而不是建立引用 ───────────────── */} 0} onClose={() => setImportTargets([])} - eyebrow="IMPORT SNAPSHOT" label="引入到项目资产库" + label="引入到项目资产库" title={<>引入到项目资产库{importTargets.length > 1 ? `(${importTargets.length} 个母版)` : ''}} footer={<> } /> @@ -423,7 +423,7 @@ export default function Dashboard() { - - 流程节点 @@ -520,7 +520,7 @@ export default function Dashboard() {
- + {EVENT_LEVELS.map((lv) => ( setEventLevel(lv.value)}> @@ -627,7 +627,7 @@ function LibraryPicker({ open, type, onType, query, onQuery, rows, loading, erro {pickedRows.length > 0 && (
- 将引入 + 将引入 {pickedRows.map((row: any) => ( b]:text-ui [&>b]:font-bold [&>b]:text-ink [&>b]:mb-[5px] [&>p]:m-0 [&>p]:text-body ' @@ -91,16 +90,16 @@ const HEAD_WRAP = 'min-w-0' /** 手册目录:`id` 与节号一改,这里跟着正文一起变 */ const TOC = [ - ['quick-start', '00 · GET STARTED', '快速开始'], - ['workflow', '01 · PIPELINE', '完整业务流程'], - ['models', '02 · MODEL OPERATIONS', '模型管理中心'], - ['assets', '03 · ASSET MANAGEMENT', '资产管理'], - ['storyboard', '04 · STORYBOARD', '分镜与脚本'], - ['dispatch', '05 · DISPATCH', '任务调度'], - ['review', '06 · QUALITY & REVIEW', '质检与审核'], - ['timeline', '07 · COMPOSE & DELIVER', '时间线与导出'], - ['troubleshooting', '08 · TROUBLESHOOTING', '故障排查'], - ['api', '09 · API REFERENCE', '接口文档'] + ['quick-start', '00', '快速开始'], + ['workflow', '01', '完整业务流程'], + ['models', '02', '模型管理中心'], + ['assets', '03', '资产管理'], + ['storyboard', '04', '分镜与脚本'], + ['dispatch', '05', '任务调度'], + ['review', '06', '质检与审核'], + ['timeline', '07', '时间线与导出'], + ['troubleshooting', '08', '故障排查'], + ['api', '09', '接口文档'] ] as [string, string, string][] /** 点目录只滚本页,不把浏览器历史堆满(返回键应该离开手册,不是退回上一个锚点) */ @@ -114,14 +113,11 @@ export default function Help() { return (
-

- NEX ANIMATION STUDIO · USER GUIDE -

长视频编导平台使用手册

@@ -135,7 +131,7 @@ export default function Help() {
- 00 · GET STARTED + 00

快速开始

@@ -193,7 +189,7 @@ export default function Help() {
- 01 · PIPELINE + 01

完整业务流程

@@ -247,7 +243,7 @@ export default function Help() {
- 02 · MODEL OPERATIONS + 02

模型管理中心

@@ -315,7 +311,7 @@ export default function Help() {
- 03 · ASSET MANAGEMENT + 03

资产管理

@@ -412,7 +408,7 @@ export default function Help() {
- 04 · STORYBOARD + 04

分镜与脚本

@@ -483,7 +479,7 @@ export default function Help() {
- 05 · DISPATCH + 05

任务调度

@@ -533,7 +529,7 @@ export default function Help() {
- 06 · QUALITY & REVIEW + 06

质检与审核

@@ -572,7 +568,7 @@ export default function Help() {
- 07 · COMPOSE & DELIVER + 07

时间线与导出

@@ -633,7 +629,7 @@ export default function Help() {
- 08 · TROUBLESHOOTING + 08

故障排查

@@ -700,7 +696,7 @@ tail -n 200 .local/logs/frontend.log`}
- 09 · API REFERENCE + 09

接口文档

diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx index 69712e2..1c27f56 100644 --- a/frontend/src/pages/Login.tsx +++ b/frontend/src/pages/Login.tsx @@ -66,9 +66,7 @@ export default function Login() {
- 长视频编导平台 - NEX ANIMATION STUDIO - + 长视频编导平台

登录以继续

diff --git a/frontend/src/pages/ModelCenter.tsx b/frontend/src/pages/ModelCenter.tsx index 7565905..27d85ea 100644 --- a/frontend/src/pages/ModelCenter.tsx +++ b/frontend/src/pages/ModelCenter.tsx @@ -515,7 +515,6 @@ export default function ModelCenter() { return (
模型控制台} actions={<> {dispatchLink && ( @@ -579,16 +578,16 @@ export default function ModelCenter() {
- {selectedMeta?.label}} - right={ - - - setKeyword(e.target.value)} /> - - - } /> + {selectedMeta?.label}} + right={ + + + setKeyword(e.target.value)} /> + + + } /> {!currentRows.length ? 当前能力还没有配置。添加后即可在资产生成、分镜与调度中选择。 @@ -651,7 +650,6 @@ export default function ModelCenter() {
{editingId ? '编辑' : '添加'}{rail(form.media_type).label}} actions={<>