refactor: fully embed ComfyUI into BoosAPI, drop external dependency

- Remove comfyui.ts (external proxy to ComfyUI at :8188)
- Remove videoAgent.ts (redundant with comfyuiAgent)
- Remove ComfyUI Python process from Dockerfile (CPU-only, useless)
- Update boosapi_comfy_nodes.py default to localhost BoosAPI
- Clean up index.ts, App.tsx, desktop.ts registrations
- Sidebar: merge '视频工作台'/'视频助手' into single '视频助手' entry

Signed-off-by: boos <boos@boos.lat>
This commit is contained in:
boos
2026-05-16 00:21:18 +08:00
parent 9612bfcb3b
commit bd06698c8e
8 changed files with 14 additions and 449 deletions
+7 -20
View File
@@ -1,15 +1,8 @@
import React from 'react';
export default function ComfyUI() {
const [isDark, setIsDark] = React.useState(true);
React.useEffect(() => {
const el = document.documentElement;
const check = () => setIsDark(el.getAttribute('data-theme') !== 'light');
check();
const mo = new MutationObserver(check);
mo.observe(el, { attributes: true, attributeFilter: ['data-theme'] });
return () => mo.disconnect();
window.location.href = '/comfyui-agent';
}, []);
return (
@@ -18,20 +11,14 @@ export default function ComfyUI() {
width: '100%',
height: 'calc(100vh - 56px)',
display: 'flex',
flexDirection: 'column',
background: isDark ? '#1a1a2e' : '#f5f5f5',
alignItems: 'center',
justifyContent: 'center',
background: 'var(--color-bg, #0f0f1a)',
color: 'var(--color-text-secondary, #888)',
fontSize: '16px',
}}
>
<iframe
src="/comfyui"
style={{
width: '100%',
height: '100%',
border: 'none',
}}
title="ComfyUI"
allow="clipboard-read; clipboard-write"
/>
🔄 正在跳转至 AI 视频助手...
</div>
);
}