D130: guanghuclip改造 · 视频预览页 · 去掉手动提示词 · 铸渊生成人类预览 · feedback指向腾讯文档
This commit is contained in:
parent
250ff24ef7
commit
5bb3bb70fd
@ -3,11 +3,423 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>光湖短视频工作台 · guanghuclip.cn</title>
|
||||
<title>光湖 · 视频预览 · guanghuclip.cn</title>
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🎬</text></svg>" />
|
||||
<style>
|
||||
:root {
|
||||
--bg-primary: #0a0e1a;
|
||||
--bg-secondary: #111827;
|
||||
--bg-panel: #0f172a;
|
||||
--bg-card: #1a2438;
|
||||
--accent: #38bdf8;
|
||||
--accent-dim: #0ea5e9;
|
||||
--accent-glow: rgba(56, 189, 248, 0.3);
|
||||
--text-primary: #e2e8f0;
|
||||
--text-secondary: #94a3b8;
|
||||
--text-muted: #64748b;
|
||||
--success: #22c55e;
|
||||
--border: #1e293b;
|
||||
--transition: 0.3s ease;
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 20px 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
.header-left { display: flex; align-items: center; gap: 16px; }
|
||||
.header-logo { font-size: 32px; }
|
||||
.header-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
|
||||
.header-title span { color: var(--accent); }
|
||||
.header-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
|
||||
.header-right { display: flex; gap: 12px; align-items: center; }
|
||||
.header-badge {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
padding: 6px 14px;
|
||||
border-radius: 20px;
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.feedback-btn {
|
||||
background: var(--accent-dim);
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: var(--transition);
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.feedback-btn:hover {
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 20px var(--accent-glow);
|
||||
}
|
||||
|
||||
/* Project Info Bar */
|
||||
.project-bar {
|
||||
padding: 20px 32px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.project-name { font-size: 18px; font-weight: 600; }
|
||||
.project-meta {
|
||||
font-size: 13px;
|
||||
color: var(--text-secondary);
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
}
|
||||
.project-meta span { display: flex; align-items: center; gap: 4px; }
|
||||
.progress-bar {
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
height: 6px;
|
||||
background: var(--border);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--accent-dim), var(--accent));
|
||||
border-radius: 3px;
|
||||
transition: width 0.5s ease;
|
||||
}
|
||||
|
||||
/* Episode Tabs */
|
||||
.episode-tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 12px 32px;
|
||||
overflow-x: auto;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.episode-tab {
|
||||
padding: 8px 16px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-card);
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
transition: var(--transition);
|
||||
}
|
||||
.episode-tab:hover { border-color: var(--accent-dim); color: var(--text-primary); }
|
||||
.episode-tab.active {
|
||||
background: var(--accent-dim);
|
||||
border-color: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
.episode-tab.completed { border-color: var(--success); }
|
||||
.episode-tab.completed::after { content: ' ✅'; }
|
||||
|
||||
/* Video Grid */
|
||||
.main {
|
||||
padding: 24px 32px;
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.scene-section {
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.scene-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.scene-num {
|
||||
background: var(--accent-glow);
|
||||
color: var(--accent);
|
||||
padding: 4px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.scene-title { font-size: 16px; font-weight: 600; }
|
||||
.scene-desc { font-size: 13px; color: var(--text-secondary); margin-left: auto; }
|
||||
|
||||
.shot-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.shot-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
transition: var(--transition);
|
||||
}
|
||||
.shot-card:hover {
|
||||
border-color: var(--accent-dim);
|
||||
box-shadow: 0 0 20px var(--accent-glow);
|
||||
}
|
||||
.shot-card.generated { border-color: var(--success); }
|
||||
.shot-video {
|
||||
width: 100%;
|
||||
aspect-ratio: 16/9;
|
||||
background: #000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.shot-video video { width: 100%; height: 100%; object-fit: cover; }
|
||||
.shot-placeholder {
|
||||
color: var(--text-muted);
|
||||
font-size: 36px;
|
||||
opacity: 0.3;
|
||||
}
|
||||
.shot-info {
|
||||
padding: 12px 14px;
|
||||
}
|
||||
.shot-label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.shot-duration {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
background: var(--bg-panel);
|
||||
padding: 2px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.shot-prompt {
|
||||
font-size: 12px;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.5;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
.shot-status {
|
||||
font-size: 11px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.shot-status.ready { color: var(--success); }
|
||||
.shot-status.pending { color: var(--text-muted); }
|
||||
|
||||
/* Empty State */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 80px 20px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.4; }
|
||||
.empty-title { font-size: 20px; margin-bottom: 8px; color: var(--text-secondary); }
|
||||
.empty-desc { font-size: 14px; }
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
border-top: 1px solid var(--border);
|
||||
margin-top: 40px;
|
||||
}
|
||||
.footer a { color: var(--accent-dim); text-decoration: none; }
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.header { padding: 14px 16px; }
|
||||
.header-title { font-size: 17px; }
|
||||
.episode-tabs { padding: 10px 16px; }
|
||||
.main { padding: 16px; }
|
||||
.shot-grid { grid-template-columns: 1fr; }
|
||||
.project-bar { padding: 14px 16px; flex-direction: column; gap: 10px; align-items: flex-start; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
|
||||
<div class="header">
|
||||
<div class="header-left">
|
||||
<span class="header-logo">🎬</span>
|
||||
<div>
|
||||
<div class="header-title">光湖 · <span>视频预览</span></div>
|
||||
<div class="header-subtitle">guanghuclip.cn · AI短剧平台 · 铸渊 ICE-GL-ZY001 主控</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-right">
|
||||
<span class="header-badge">⚡ 铸渊生成 · 冰朔预览</span>
|
||||
<a href="https://docs.qq.com/aio/DTHhuWW5OQU9VbFVX" target="_blank" class="feedback-btn">
|
||||
📝 反馈意见
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="project-bar" id="projectBar">
|
||||
<span class="project-name" id="projectName">📺 加载中...</span>
|
||||
<span class="project-meta">
|
||||
<span>🎬 <span id="totalShots">0</span> 个分镜</span>
|
||||
<span>⏱️ 每镜 5s</span>
|
||||
</span>
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" id="progressFill" style="width: 0%"></div>
|
||||
</div>
|
||||
<span style="font-size:13px;color:var(--text-secondary)" id="progressLabel">0%</span>
|
||||
</div>
|
||||
|
||||
<div class="episode-tabs" id="episodeTabs">
|
||||
<button class="episode-tab active" data-ep="1">第1集</button>
|
||||
</div>
|
||||
|
||||
<div class="main" id="mainContent">
|
||||
<div class="empty-state">
|
||||
<div class="empty-icon">🎬</div>
|
||||
<div class="empty-title">视频预览加载中...</div>
|
||||
<div class="empty-desc">铸渊正在生成分镜视频,完成后将自动部署到此页面。</div>
|
||||
<div style="margin-top:20px">
|
||||
<a href="https://docs.qq.com/aio/DTHhuWW5OQU9VbFVX" target="_blank" style="color:var(--accent-dim);text-decoration:none;font-size:14px">
|
||||
📋 查看项目进度 →
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>光湖视频AI系统 · 铸渊 ICE-GL-ZY001 生成 · 冰朔 TCS-0002∞ 审核</p>
|
||||
<p style="margin-top:4px">© 国作登字-2026-A-00037559 · <a href="https://docs.qq.com/aio/DTHhuWW5OQU9VbFVX" target="_blank">腾讯文档项目看板</a></p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// ===== 视频数据加载 =====
|
||||
// 铸渊每次生成新视频,更新此 JSON 即可
|
||||
const VIDEO_DATA_URL = '/data/videos.json';
|
||||
|
||||
async function loadVideos() {
|
||||
try {
|
||||
const resp = await fetch(VIDEO_DATA_URL);
|
||||
if (!resp.ok) throw new Error('数据加载失败');
|
||||
return await resp.json();
|
||||
} catch (e) {
|
||||
console.warn('视频数据未就绪,显示空状态', e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function render(data) {
|
||||
if (!data || !data.episodes || data.episodes.length === 0) return;
|
||||
|
||||
const projectName = document.getElementById('projectName');
|
||||
const totalShots = document.getElementById('totalShots');
|
||||
const progressFill = document.getElementById('progressFill');
|
||||
const progressLabel = document.getElementById('progressLabel');
|
||||
const episodeTabs = document.getElementById('episodeTabs');
|
||||
const mainContent = document.getElementById('mainContent');
|
||||
|
||||
// 项目信息
|
||||
projectName.textContent = '📺 ' + (data.project || '未命名项目');
|
||||
|
||||
// 集数标签
|
||||
let tabsHtml = '';
|
||||
data.episodes.forEach((ep, i) => {
|
||||
const completed = ep.scenes.every(s => s.shots.every(sh => sh.videoUrl));
|
||||
tabsHtml += `<button class="episode-tab ` +
|
||||
(i === 0 ? 'active' : '') +
|
||||
(completed ? ' completed' : '') +
|
||||
`" data-ep="${i}">第${ep.number}集</button>`;
|
||||
});
|
||||
episodeTabs.innerHTML = tabsHtml;
|
||||
|
||||
// 默认显示第一集
|
||||
renderEpisode(data.episodes[0]);
|
||||
updateStats(data.episodes[0]);
|
||||
|
||||
// 点击标签切换
|
||||
episodeTabs.addEventListener('click', (e) => {
|
||||
if (!e.target.classList.contains('episode-tab')) return;
|
||||
const epIdx = parseInt(e.target.dataset.ep);
|
||||
document.querySelectorAll('.episode-tab').forEach(t => t.classList.remove('active'));
|
||||
e.target.classList.add('active');
|
||||
renderEpisode(data.episodes[epIdx]);
|
||||
updateStats(data.episodes[epIdx]);
|
||||
});
|
||||
}
|
||||
|
||||
function renderEpisode(episode) {
|
||||
const main = document.getElementById('mainContent');
|
||||
if (!episode) return;
|
||||
|
||||
let html = '';
|
||||
for (const scene of episode.scenes) {
|
||||
html += `<div class="scene-section">`;
|
||||
html += `<div class="scene-header">`;
|
||||
html += `<span class="scene-num">${scene.id}</span>`;
|
||||
html += `<span class="scene-title">${scene.name}</span>`;
|
||||
html += `<span class="scene-desc">${scene.shots.length} 镜 · 每镜 ${scene.shots[0]?.duration || 5}s</span>`;
|
||||
html += `</div>`;
|
||||
html += `<div class="shot-grid">`;
|
||||
|
||||
for (const shot of scene.shots) {
|
||||
const hasVideo = !!shot.videoUrl;
|
||||
html += `<div class="shot-card ${hasVideo ? 'generated' : ''}">`;
|
||||
html += `<div class="shot-video">`;
|
||||
if (hasVideo) {
|
||||
html += `<video src="${shot.videoUrl}" controls playsinline preload="metadata"></video>`;
|
||||
} else {
|
||||
html += `<span class="shot-placeholder">🎬</span>`;
|
||||
}
|
||||
html += `</div>`;
|
||||
html += `<div class="shot-info">`;
|
||||
html += `<div class="shot-label">`;
|
||||
html += `<span>${shot.shotId}</span>`;
|
||||
html += `<span class="shot-duration">${shot.duration || 5}s</span>`;
|
||||
html += `</div>`;
|
||||
html += `<div class="shot-prompt">${shot.prompt || '提示词生成中...'}</div>`;
|
||||
html += `<div class="shot-status ${hasVideo ? 'ready' : 'pending'}">${hasVideo ? '✅ 已生成' : '⏳ 生成中...'}</div>`;
|
||||
html += `</div></div>`;
|
||||
}
|
||||
|
||||
html += `</div></div>`;
|
||||
}
|
||||
main.innerHTML = html;
|
||||
}
|
||||
|
||||
function updateStats(episode) {
|
||||
let total = 0, completed = 0;
|
||||
for (const scene of episode.scenes) {
|
||||
total += scene.shots.length;
|
||||
completed += scene.shots.filter(s => s.videoUrl).length;
|
||||
}
|
||||
document.getElementById('totalShots').textContent = total;
|
||||
const pct = total > 0 ? Math.round((completed / total) * 100) : 0;
|
||||
document.getElementById('progressFill').style.width = pct + '%';
|
||||
document.getElementById('progressLabel').textContent = pct + '% (' + completed + '/' + total + ')';
|
||||
}
|
||||
|
||||
// ===== 启动 =====
|
||||
loadVideos().then(render);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
61
guanghuclip/frontend/public/data/videos.json
Normal file
61
guanghuclip/frontend/public/data/videos.json
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
"project": "付费才能修仙?我的宗门全免费",
|
||||
"updated": "2026-06-11 D130",
|
||||
"tencentDocsUrl": "https://docs.qq.com/aio/DTHhuWW5OQU9VbFVX",
|
||||
"episodes": [
|
||||
{
|
||||
"number": 1,
|
||||
"title": "百宗会招募日",
|
||||
"scenes": [
|
||||
{
|
||||
"id": "1-1",
|
||||
"name": "百宗会开场",
|
||||
"shots": [
|
||||
{ "shotId": "镜1·建立镜头", "duration": 5, "prompt": "修仙世界,百宗会广场,白天阳光明媚。宏大的宗门招募现场,云海仙气,金色光芒。角落里破旧的天道宗牌匾格外刺眼。Seedance动态漫风格。", "videoUrl": null },
|
||||
{ "shotId": "镜2·苏白近景", "duration": 5, "prompt": "18岁白衣少年苏白,站在破烂牌匾下双手叉腰。最寒酸的宗门,最自信的笑容。\"未来的天下第一宗!\"半身镜头。", "videoUrl": null },
|
||||
{ "shotId": "镜3·对比镜头", "duration": 5, "prompt": "灵霄宗鎏金大字、仙盟五百强、长队望不到头。切回天道宗空无一人。风吹落叶。苏白叹气。", "videoUrl": null }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1-2",
|
||||
"name": "灵霄宗",
|
||||
"shots": [
|
||||
{ "shotId": "镜4·红叉", "duration": 5, "prompt": "王执事在鉴定表上画了红叉。\"没钱你修什么仙?\"诸葛风粗麻布衣,指甲掐进掌心。", "videoUrl": null },
|
||||
{ "shotId": "镜5·闪回父母之死", "duration": 5, "prompt": "父母倒在血泊中。欧阳员外鄙夷地笑。阴冷色调,暗影重重。Seedance动态漫风格。", "videoUrl": null },
|
||||
{ "shotId": "镜6·仇恨特写", "duration": 5, "prompt": "诸葛风眼里冒出火苗。\"我必须要赶快成为仙人,为父母报仇!\"暗色背景中燃烧的眼睛。电影级光影。", "videoUrl": null }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1-3",
|
||||
"name": "天道宗收徒",
|
||||
"shots": [
|
||||
{ "shotId": "镜7·问答", "duration": 5, "prompt": "诸葛风走到破烂牌匾前。\"仙师……入宗真的就可以学习仙法吗?\"苏白微笑点头。", "videoUrl": null },
|
||||
{ "shotId": "镜8·震惊反转", "duration": 5, "prompt": "诸葛风看到\"基础银子三十两\"。苏白拍胸脯:\"我们宗门绝不拖欠!\"一道闪电劈开——这宗门倒贴钱!", "videoUrl": null }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"number": 2,
|
||||
"title": "萧灵汐登场",
|
||||
"scenes": [
|
||||
{
|
||||
"id": "2-1",
|
||||
"name": "百宗会",
|
||||
"shots": [
|
||||
{ "shotId": "镜1·萧灵汐出现", "duration": 5, "prompt": "白衣瀑布长发、五官精致身材爆炸的萧灵汐出现在百宗会。她看到了天道宗的广告牌,眼神一亮。", "videoUrl": null },
|
||||
{ "shotId": "镜2·三人相遇", "duration": 5, "prompt": "苏白、诸葛风、萧灵汐三人站在破旧的天道宗牌匾下。\"天道宗……就是这里。\"萧灵汐微微一笑。", "videoUrl": null }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "2-2",
|
||||
"name": "天道宗山头",
|
||||
"shots": [
|
||||
{ "shotId": "镜3·上山", "duration": 5, "prompt": "三人沿着山路走向天道宗山头。苏白走在前面带路,诸葛风和萧灵汐跟在后面。山间的灵气光芒闪烁。", "videoUrl": null },
|
||||
{ "shotId": "镜4·宗门初现", "duration": 5, "prompt": "天道宗山门出现在眼前。虽然简陋,但在夕阳下显得格外温暖。苏白转身,展开双臂。\"欢迎来到天道宗!\"", "videoUrl": null }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user