forked from 77media/video-flow
66 lines
2.1 KiB
TypeScript
66 lines
2.1 KiB
TypeScript
export const MOCK_SKETCH_URLS = [
|
|
'https://d3phaj0sisr2ct.cloudfront.net/app/gen4/object-reference/welcome-ref-1.jpg',
|
|
'https://d3phaj0sisr2ct.cloudfront.net/app/gen4/object-reference/welcome-ref-2.jpg',
|
|
'https://d3phaj0sisr2ct.cloudfront.net/app/gen4/object-reference/welcome-ref-3.jpg',
|
|
'https://d3phaj0sisr2ct.cloudfront.net/app/gen4/object-reference/welcome-ref-4.jpg',
|
|
];
|
|
|
|
export const MOCK_SKETCH_SCRIPT = [
|
|
'script-123',
|
|
'script-123',
|
|
'script-123',
|
|
'script-123',
|
|
];
|
|
|
|
export const MOCK_VIDEO_URLS = [
|
|
'https://cdn.qikongjian.com/videos/1750385931_99a8fb42-af89-4ae9-841a-a49869f026bd_text_to_video_0.mp4',
|
|
'https://cdn.qikongjian.com/videos/1750389908_37d4fffa-8516-43a3-a423-fc0274f40e8a_text_to_video_0.mp4',
|
|
'https://cdn.qikongjian.com/videos/1750384661_d8e30b79-828e-48cd-9025-ab62a996717c_text_to_video_0.mp4',
|
|
'https://cdn.qikongjian.com/videos/1750320040_4b47996e-7c70-490e-8433-80c7df990fdd_text_to_video_0.mp4',
|
|
];
|
|
|
|
export const MOCK_SKETCH_COUNT = 8;
|
|
|
|
export const MOCK_FINAL_VIDEO = {
|
|
id: 'final-video',
|
|
url: 'https://cdn.qikongjian.com/videos/1750389908_37d4fffa-8516-43a3-a423-fc0274f40e8a_text_to_video_0.mp4',
|
|
thumbnail: 'https://d3phaj0sisr2ct.cloudfront.net/app/gen4/object-reference/welcome-ref-1.jpg',
|
|
};
|
|
|
|
export interface TaskObject {
|
|
projectId: string;
|
|
projectName: string;
|
|
taskId: string;
|
|
taskName: string;
|
|
taskDescription: string;
|
|
taskStatus: string;
|
|
taskProgress: number;
|
|
mode: string;
|
|
resolution: string;
|
|
}
|
|
|
|
export interface SketchItem {
|
|
id: string;
|
|
url: string;
|
|
script: string;
|
|
status: string;
|
|
}
|
|
|
|
export interface VideoItem {
|
|
id: string;
|
|
url: string;
|
|
script: string;
|
|
status: string;
|
|
}
|
|
|
|
export const STEP_MESSAGES = {
|
|
loading: '正在加载任务信息...',
|
|
sketch: (count: number, total: number) => `正在生成分镜草图 ${count + 1}/${total}...`,
|
|
sketchComplete: '分镜草图生成完成',
|
|
character: '正在绘制角色...',
|
|
video: (count: number, total: number) => `正在生成分镜视频 ${count + 1}/${total}...`,
|
|
videoComplete: '分镜视频生成完成',
|
|
audio: '正在生成背景音...',
|
|
final: '正在生成最终成品...',
|
|
complete: '任务完成'
|
|
};
|