完成极速成品和脚本优化

This commit is contained in:
Azmat@qq.com
2026-08-25 11:13:07 +08:00
parent 00fc454db7
commit e2ec2d14af
46 changed files with 4734 additions and 432 deletions
+8 -1
View File
@@ -72,9 +72,16 @@ function dashStageLabel(project: Project): string {
};
return map[project.current_stage] || "视频生成";
}
function isQuickCreateProject(project: Project) {
if (project.quick_create) return true;
if (project.metadata?.quick_create) return true;
return / · 极速成片$/.test(project.name || "");
}
function dashCardMeta(project: Project, productTitle: string): string {
const shots = project.video_segment_count ?? project.video_segments?.length ?? 0;
return ["专业创作", productTitle, shots ? `${shots}` : null].filter(Boolean).join(" / ");
const mode = isQuickCreateProject(project) ? "极速成片" : "专业创作";
return [mode, productTitle, shots ? `${shots}` : null].filter(Boolean).join(" / ");
}
function EntryIcon({ name }: { name: "wand" | "folder" | "scan" | "replace" }) {