纯 HTML/CSS/JS 零依赖原型,与 calliope-web 正式代码隔离,不合并、不部署。 含方案.md、关键画面截图与测试站真实素材。 Co-authored-by: multica-agent <github@multica.ai>
157 lines
11 KiB
HTML
157 lines
11 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>影工坊 · 流水台交互原型(HEL-646,隔离原型)</title>
|
|
<link rel="stylesheet" href="app.css">
|
|
</head>
|
|
<body>
|
|
<svg width="0" height="0" style="position:absolute">
|
|
<defs>
|
|
<symbol id="i-home" viewBox="0 0 24 24"><path d="M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-flow" viewBox="0 0 24 24"><path d="M4 6h5v5H4zM15 13h5v5h-5zM9 8.5h3.5a2 2 0 0 1 2 2V13" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-spark" viewBox="0 0 24 24"><path d="M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8zM18.5 16l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-list" viewBox="0 0 24 24"><path d="M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-agent" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M4 20c1.5-4 4.5-6 8-6s6.5 2 8 6" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-link" viewBox="0 0 24 24"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-gear" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3" fill="none" stroke="currentColor" stroke-width="1.7"/><path d="M12 2.5v3M12 18.5v3M21.5 12h-3M5.5 12h-3M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1M18.7 18.7l-2.1-2.1M7.4 7.4L5.3 5.3" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-play" viewBox="0 0 24 24"><path d="M7 4l13 8-13 8z"/></symbol>
|
|
<symbol id="i-down" viewBox="0 0 24 24"><path d="M6 9l6 6 6-6" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-right" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-sliders" viewBox="0 0 24 24"><path d="M4 7h10M18 7h2M4 17h4M12 17h8" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/><circle cx="16" cy="7" r="2" fill="none" stroke="currentColor" stroke-width="1.8"/><circle cx="10" cy="17" r="2" fill="none" stroke="currentColor" stroke-width="1.8"/></symbol>
|
|
<symbol id="i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6.5" fill="none" stroke="currentColor" stroke-width="1.8"/><path d="M16 16l4 4" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-upload" viewBox="0 0 24 24"><path d="M12 15V4M7 9l5-5 5 5M5 19h14" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-dice" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3" fill="none" stroke="currentColor" stroke-width="1.7"/><circle cx="9" cy="9" r="1.2"/><circle cx="15" cy="15" r="1.2"/><circle cx="15" cy="9" r="1.2"/><circle cx="9" cy="15" r="1.2"/></symbol>
|
|
<symbol id="i-back" viewBox="0 0 24 24"><path d="M15 6l-6 6 6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
</defs>
|
|
</svg>
|
|
|
|
<div class="app">
|
|
<nav class="rail" aria-label="主导航">
|
|
<div class="logo" aria-hidden="true">影</div>
|
|
<button class="rail-btn" data-nav="projects"><svg><use href="#i-home"/></svg><span class="tip">项目</span><span class="sr">项目</span></button>
|
|
<button class="rail-btn" data-nav="flow"><svg><use href="#i-flow"/></svg><span class="tip">创作流程</span><span class="sr">创作流程</span></button>
|
|
<button class="rail-btn" data-nav="desk" aria-current="page"><svg><use href="#i-spark"/></svg><span class="tip">生成台(生图 + 生视频)</span><span class="sr">生成台</span></button>
|
|
<button class="rail-btn" data-nav="tasks"><svg><use href="#i-list"/></svg><span class="tip">全部任务</span><span class="sr">全部任务</span></button>
|
|
<button class="rail-btn" data-nav="agents"><svg><use href="#i-agent"/></svg><span class="tip">智能体</span><span class="sr">智能体</span></button>
|
|
<div class="spacer"></div>
|
|
<button class="rail-btn" data-nav="connections"><svg><use href="#i-link"/></svg><span class="tip">ComfyUI 连接与工作流库</span><span class="sr">连接</span></button>
|
|
<button class="rail-btn" data-nav="settings"><svg><use href="#i-gear"/></svg><span class="tip">模型与设置</span><span class="sr">设置</span></button>
|
|
</nav>
|
|
|
|
<div class="main">
|
|
<header class="topbar">
|
|
<div class="crumb">
|
|
<h1 id="page-title">生成台</h1>
|
|
<button class="capsule" id="scope-btn" aria-haspopup="menu"><span id="scope-label">全部来源</span><svg width="12" height="12"><use href="#i-down"/></svg></button>
|
|
</div>
|
|
<div class="grow"></div>
|
|
<span class="proto-flag hide-sm">隔离原型 · 不连后端</span>
|
|
<label class="switch hide-sm"><input type="checkbox" id="reduce-toggle">减少动态</label>
|
|
<button class="capsule search-btn" id="cmd-btn" title="Ctrl/⌘ + K"><svg width="14" height="14"><use href="#i-search"/></svg><span class="lbl">搜索工作流、项目、任务</span><span class="kbd">Ctrl K</span></button>
|
|
<button class="capsule" id="tray-btn" aria-haspopup="dialog"><span class="dot" id="tray-dot"></span><span id="tray-label">队列空闲</span></button>
|
|
<button class="capsule hide-sm" id="conn-btn" title="生成请求由工作台服务器发往该 ComfyUI"><span class="dot"></span>本机 ComfyUI-4080 · 22 ms</button>
|
|
</header>
|
|
|
|
<!-- 生成台 -->
|
|
<section class="view desk on" id="view-desk" aria-label="生成台">
|
|
<div class="desk-center">
|
|
<div class="context-bar" id="context-bar">
|
|
<button class="btn sm ghost" id="ctx-back"><svg><use href="#i-back"/></svg>返回镜头脚本</button>
|
|
<span>来自 <b>《雨夜便利店》· 镜头 S1</b>,生成结果会回填到该镜头</span>
|
|
</div>
|
|
<div class="filters">
|
|
<div class="seg" role="group" aria-label="按类型筛选">
|
|
<button data-filter="all" aria-pressed="true">全部</button>
|
|
<button data-filter="image" aria-pressed="false">图片</button>
|
|
<button data-filter="video" aria-pressed="false">视频</button>
|
|
<button data-filter="failed" aria-pressed="false">失败</button>
|
|
</div>
|
|
<span class="count" id="feed-count"></span>
|
|
</div>
|
|
<div class="feed" id="feed" role="listbox" aria-label="生成记录(↑↓ 切换)" tabindex="0"></div>
|
|
<div class="composer-wrap">
|
|
<div class="composer" id="composer">
|
|
<div class="slots" id="slots"></div>
|
|
<textarea class="prompt" id="prompt" rows="2" placeholder="描述想要的画面…(Ctrl/⌘ + Enter 生成,/ 快速聚焦)"></textarea>
|
|
<div class="composer-foot">
|
|
<button class="chip wf" id="wf-chip" aria-haspopup="listbox"><svg><use href="#i-flow"/></svg><span class="lbl" id="wf-chip-label"></span><svg><use href="#i-down"/></svg></button>
|
|
<span id="common-chips" style="display:contents"></span>
|
|
<button class="chip opt-chip" id="params-chip"><svg><use href="#i-sliders"/></svg><span id="params-chip-label">全部参数</span></button>
|
|
<div class="submit-group">
|
|
<button class="why" id="why" hidden></button>
|
|
<button class="btn primary gen-btn" id="gen-btn">生成</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<aside class="inspector" id="inspector" aria-label="检视区">
|
|
<div class="insp-tabs">
|
|
<div class="seg" role="tablist">
|
|
<button data-tab="preview" aria-pressed="true">结果</button>
|
|
<button data-tab="params" aria-pressed="false">参数</button>
|
|
</div>
|
|
<div class="grow" style="flex:1"></div>
|
|
<span class="muted" style="font-size:11px" id="insp-hint">↑ ↓ 切换 · 空格播放</span>
|
|
<button class="btn sm ghost insp-close" id="insp-close" style="display:none" aria-label="关闭"><svg><use href="#i-x"/></svg></button>
|
|
</div>
|
|
<div class="insp-body" id="insp-preview"></div>
|
|
<div class="insp-body" id="insp-params" hidden></div>
|
|
</aside>
|
|
</section>
|
|
|
|
<!-- 项目 -->
|
|
<section class="view page" id="view-projects" aria-label="项目"></section>
|
|
<!-- 创作流程 -->
|
|
<section class="view page" id="view-flow" aria-label="创作流程"></section>
|
|
<!-- 其他页占位 -->
|
|
<section class="view page placeholder" id="view-other"></section>
|
|
|
|
<nav class="tabbar" aria-label="主导航(窄屏)">
|
|
<button data-nav="projects"><svg><use href="#i-home"/></svg>项目</button>
|
|
<button data-nav="flow"><svg><use href="#i-flow"/></svg>创作</button>
|
|
<button data-nav="desk" aria-current="page"><svg><use href="#i-spark"/></svg>生成</button>
|
|
<button data-nav="more"><svg><use href="#i-list"/></svg>更多</button>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 工作流面板 -->
|
|
<div class="pop" id="wf-pop" role="dialog" aria-label="选择工作流">
|
|
<div class="pop-search"><svg width="16" height="16"><use href="#i-search"/></svg><input id="wf-search" placeholder="搜索工作流,或输入用途:图生视频、参考图…" autocomplete="off"></div>
|
|
<div class="pop-list" id="wf-list" role="listbox"></div>
|
|
<div class="pop-foot">
|
|
<button class="btn sm" id="import-open"><svg><use href="#i-upload"/></svg>导入 ComfyUI 工作流 JSON…</button>
|
|
<span class="hint"><span class="kbd">↑↓</span>选择 <span class="kbd">Enter</span>使用 <span class="kbd">Esc</span>关闭</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 通用小菜单 -->
|
|
<div class="pop menu" id="menu-pop" role="menu"><div class="pop-list" id="menu-list"></div></div>
|
|
<!-- 任务托盘 -->
|
|
<div class="pop tray" id="tray-pop" role="dialog" aria-label="任务托盘"><div class="pop-list" id="tray-list"></div></div>
|
|
|
|
<!-- 导入抽屉 -->
|
|
<div class="scrim" id="scrim"></div>
|
|
<aside class="drawer" id="drawer" role="dialog" aria-modal="true" aria-labelledby="drawer-title">
|
|
<div class="drawer-head">
|
|
<h2 id="drawer-title">导入 ComfyUI 工作流</h2>
|
|
<button class="btn sm ghost" id="drawer-close" aria-label="关闭"><svg><use href="#i-x"/></svg></button>
|
|
</div>
|
|
<div class="drawer-body" id="drawer-body"></div>
|
|
<div class="drawer-foot" id="drawer-foot"></div>
|
|
</aside>
|
|
|
|
<input type="file" id="file-input" accept="image/png,image/jpeg,image/webp" multiple hidden>
|
|
<input type="file" id="json-input" accept=".json,application/json" hidden>
|
|
<div class="toasts" id="toasts" aria-live="polite"></div>
|
|
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|