diff --git a/api/script_episode.ts b/api/script_episode.ts index 9b84926..e450b27 100644 --- a/api/script_episode.ts +++ b/api/script_episode.ts @@ -62,8 +62,34 @@ export interface ScriptEpisode { } // 新-获取剧集列表 -export const getScriptEpisodeListNew = async (data: any): Promise> => { - return post>('/movie/list_movie_projects', data); +interface ListMovieProjectsParams { + user_id: string; + page: number; + per_page: number; +} + +interface MovieProject { + project_id: string; + name: string; + status: string; + step: string; + final_video_url: string; + final_simple_video_url: string; + last_message: string; + updated_at: string; + created_at: string; +} + +interface ListMovieProjectsResponse { + movie_projects: MovieProject[]; + total: number; + page: number; + per_page: number; + total_pages: number; +} + +export const getScriptEpisodeListNew = async (params: ListMovieProjectsParams): Promise> => { + return post>('/movie/list_movie_projects', params); }; // 获取剧集详情 diff --git a/components/common/ActionButton.tsx b/components/common/ActionButton.tsx index b36b9ee..133071f 100644 --- a/components/common/ActionButton.tsx +++ b/components/common/ActionButton.tsx @@ -22,13 +22,13 @@ export function ActionButton({
-
+
)} - - {/* 到底提示 */} - {!hasMore && episodeList.length > 0 && ( -
-
-
- -
-

All projects loaded

-
-
- )}
)}
diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 350763b..98310c9 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -161,7 +161,7 @@ export function useWorkflowData() { if (taskObject.scenes.total_count > realSketchResultData.length) { loadingText.current = LOADING_TEXT_MAP.sketch(realSketchResultData.length, taskObject.scenes.total_count); } else { - loadingText.current = LOADING_TEXT_MAP.getShotSketchStatus; + loadingText.current = LOADING_TEXT_MAP.getVideoStatus; } } @@ -209,12 +209,6 @@ export function useWorkflowData() { // 收集所有需要更新的状态 let stateUpdates = JSON.stringify(taskCurrent); - // 视频分析 - let analyze_video_completed_count = all_task_data.filter((item: any) => item.task_name === 'generate_analyze_video' && item.task_status !== 'INIT' && item.task_status !== 'RUNNING').length; - let analyze_video_total_count = all_task_data.filter((item: any) => item.task_name === 'generate_analyze_video').length; - if (analyze_video_total_count && analyze_video_completed_count === analyze_video_total_count) { - setCanGoToCut(true); - } for (const task of all_task_data) { // 如果有已完成的数据,同步到状态 @@ -312,6 +306,13 @@ export function useWorkflowData() { } } + // 视频分析 + let analyze_video_completed_count = all_task_data.filter((item: any) => item.task_name === 'generate_analyze_video' && item.task_status !== 'INIT' && item.task_status !== 'RUNNING').length; + let analyze_video_total_count = all_task_data.filter((item: any) => item.task_name === 'generate_analyze_video').length; + if (analyze_video_total_count && analyze_video_completed_count === analyze_video_total_count) { + setCanGoToCut(true); + } + // 粗剪 if (task.task_name === 'generate_final_simple_video') { if (task.task_result && task.task_result.video) { diff --git a/public/assets/cover_image3.jpg b/public/assets/cover_image3.jpg new file mode 100644 index 0000000..961a1ee Binary files /dev/null and b/public/assets/cover_image3.jpg differ