Datasets:
Download code/evaluation-code/v0.2-0c2690ae/apps/console/web/src/TopBar.tsx from VEHwang/cocogni4d: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/datasets/VEHwang/cocogni4d/resolve/main/code/evaluation-code/v0.2-0c2690ae/apps/console/web/src/TopBar.tsx
- Command line
-
hf download hf://datasets/VEHwang/cocogni4d/code/evaluation-code/v0.2-0c2690ae/apps/console/web/src/TopBar.tsx
-
curl -L -o TopBar.tsx https://huggingface.co/datasets/VEHwang/cocogni4d/resolve/main/code/evaluation-code/v0.2-0c2690ae/apps/console/web/src/TopBar.tsx
886 Bytes
| export type Console = 'config' | 'segments' | 'questions' | 'verify' | null; | |
| const TABS: [Console, string, string][] = [['config', '生成配置台', '/#/config'], ['verify', '脚本验证', '/#/verify'], ['segments', '剧本验收台', '/#/segments'], ['questions', '渲染验收台', '/evidence/evidence.html']]; | |
| // 样张 v3 的顶栏:logo、三个台页签、批次名,同一行。 | |
| export function TopBar({active, batch}: {active: Console; batch?: string}) { | |
| return <header className="topbar"><a className="logo" href="/#/config"><i />next 审阅台</a> | |
| <nav className="tabs" aria-label="三个台">{TABS.map(([id, label, href]) => <a key={id} className={id === active ? 'tab on' : 'tab'} aria-current={id === active ? 'page' : undefined} href={href}>{label}</a>)}</nav> | |
| <span className="r">{batch && <span className="sel">批次:{batch}</span>}</span></header>; | |
| } | |