forked from 77media/video-flow
- Added custom scrollbar styles for better UX - Optimized dashboard layout components - Enhanced network timeline functionality - Cleaned up redundant dashboard components - Improved API integration for video flow
137 lines
7.6 KiB
TypeScript
137 lines
7.6 KiB
TypeScript
// 演示数据 - 模拟get_status.txt接口返回的数据结构
|
|
export const mockDashboardData = [
|
|
{
|
|
"task_id": "689d8ba7-837b-4770-8656-5c8e797e88cb",
|
|
"task_name": "generate_character",
|
|
"task_status": "COMPLETED",
|
|
"start_time": "2024-01-15T10:00:00Z",
|
|
"end_time": "2024-01-15T10:02:30Z",
|
|
"duration": 150,
|
|
"task_result": {
|
|
"data": [
|
|
{
|
|
"image_path": "https://c.huiying.video/images/efdd27e7-650a-4b3e-809b-b62557d15561.jpg",
|
|
"character_name": "Li Wei",
|
|
"character_description": "A headshot of an adult East Asian man, appearing to be in his 35s, with short, neatly styled black hair, is centered against a plain light gray background. He is looking directly forward at the camera with a neutral expression. His skin tone is fair to light. He is wearing a black turtleneck shirt, which covers his neck and extends out of the frame. The lighting on his face is even, with subtle shadows that define his facial features.\n role: Protagonist\n age: 32\n gender: male\n race: Asian"
|
|
},
|
|
{
|
|
"image_path": "https://c.huiying.video/images/4f4c3473-4d5c-4070-8d56-92773c1d5115.jpg",
|
|
"character_name": "Woman",
|
|
"character_description": "A medium shot captures an elderly woman, appearing to be in her early seventies, seated in the back passenger side of a vehicle. She has long, dark brown hair that cascades over her right shoulder and down her back. Her skin tone is fair, and she has a gentle smile that reveals her teeth. Her eyes are dark brown, and she has light makeup, including light eyeliner, subtle eyeshadow, and reddish-orange lipstick. She is wearing small, dark green or blue stud earrings. Her top is white, off-the-shoulder, and appears to be made of a light, possibly ruffled, fabric. The background through the car window is blurred, showing a road and hints of greenery and other vehicles in the distance, suggesting the car is in motion or parked outdoors during the daytime. Natural light illuminates her face from the front, highlighting the gentle lines and wrinkles that reflect a lifetime of experiences.\n role: Supporting\n age: 65\n gender: female\n race: Asian"
|
|
},
|
|
{
|
|
"image_path": "https://c.huiying.video/images/78fc87a8-567f-4b09-94d4-b86e3b327efb.jpg",
|
|
"character_name": "Young Li Wei",
|
|
"character_description": "Brief: Not provided. Generated from script analysis.\nRole: Supporting\nGender: male\nRace: Asian\nAge: 19\nPhysique: Slender, with the softer, less-defined build of a young university student. He lacks the hardened physique of his older self.\nKey Visual Anchors: His hand is clenched so tightly around the metal doorknob that his knuckles are white. His face is a canvas of raw, conflicting emotions—fear, guilt, and a desperate need to escape.\nHairstyle: A common haircut for a young man his age; slightly longer and messier on top than his older self, falling across his forehead. It suggests a life without obsessive self-grooming.\nDefault Demeanor: Tense and avoidant. His shoulders are hunched, and his entire body is angled away from the bed, towards the door. He cannot bring himself to look at his mother, his gaze fixed on the hallway ahead."
|
|
}
|
|
],
|
|
"total_count": 3
|
|
}
|
|
},
|
|
{
|
|
"task_id": "bedc9224-cc16-4e54-ab1c-3b0d8c8dbc20",
|
|
"task_name": "generate_sketch",
|
|
"task_status": "COMPLETED",
|
|
"start_time": "2024-01-15T10:02:30Z",
|
|
"end_time": "2024-01-15T10:05:45Z",
|
|
"duration": 195,
|
|
"task_result": {
|
|
"data": [
|
|
{
|
|
"image_path": "https://c.huiying.video/images/5972fab6-4805-46a6-9522-9796a4c2a6bc.jpg",
|
|
"sketch_name": "SC-01: Forest Path"
|
|
},
|
|
{
|
|
"image_path": "https://c.huiying.video/images/e6c687d2-2887-4121-a6dc-02873af8c32b.jpg",
|
|
"sketch_name": "SC-02: Forest Clearing"
|
|
},
|
|
{
|
|
"image_path": "https://c.huiying.video/images/30bf2644-2678-4a98-937f-09c978d8dced.jpg",
|
|
"sketch_name": "SC-03: Hospital Room"
|
|
}
|
|
],
|
|
"total_count": 3
|
|
}
|
|
},
|
|
{
|
|
"task_id": "25d43527-0914-4b04-bd85-30b5ad951f09",
|
|
"task_name": "generate_shot_sketch",
|
|
"task_status": "COMPLETED",
|
|
"start_time": "2024-01-15T10:05:45Z",
|
|
"end_time": "2024-01-15T10:08:20Z",
|
|
"duration": 155,
|
|
"task_result": {
|
|
"data": [
|
|
{
|
|
"url": "https://c.huiying.video/images/ae67291f-dad3-4aaf-9478-a9eb1ba16e96.jpg",
|
|
"description": "[E01-S01-C01]\n* **Shot Type:** Wide Shot\n* **Frame Description:** A sweeping, beautiful wide shot of the [SC-01: Forest Path]. Towering trees frame the shot. Mist hangs in the air, caught by shafts of golden morning light. The scene is serene but cold.\n* **Key Action / Focus:** Establishing the setting as a place of controlled, natural beauty.\n* **Atmosphere / Mood:** Crisp, disciplined, serene.\n* **Cinematography Blueprint:**\n * **Composition:** Lubezki-style wide shot, using a 24mm lens look. Deep depth of field. The composition feels epic and naturalistic.\n * **Camera Motion:** Static lock-off."
|
|
},
|
|
{
|
|
"url": "https://c.huiying.video/images/655d0ecd-0a5a-44dd-8f72-cc0217b9d263.jpg",
|
|
"description": "[E01-S01-C02]\n* **Shot Type:** Medium Full Shot (Tracking)\n* **Frame Description:** [CH-01: Li Wei] in his [COSTUME-01] running gear runs towards and past the camera with perfect, machine-like form. The camera tracks with him smoothly for a moment before he continues down the path.\n* **Key Action / Focus:** Introducing Li Wei's relentless, metronomic running.\n* **Atmosphere / Mood:** Controlled, powerful, determined.\n* **Cinematography Blueprint:**\n * **Composition:** Smooth gimbal tracking shot, keeping Li Wei centered in the frame.\n * **Camera Motion:** Pans and tracks with the subject's movement."
|
|
}
|
|
],
|
|
"total_count": 10
|
|
}
|
|
},
|
|
{
|
|
"task_id": "038ce01c-7ad1-437c-a19b-19ed982d55e9",
|
|
"task_name": "generate_videos",
|
|
"task_status": "RUNNING",
|
|
"start_time": "2024-01-15T10:08:20Z",
|
|
"progress": 65,
|
|
"task_result": {
|
|
"data": [
|
|
{
|
|
"video_id": "edcdf845-2ec0-4ce6-a80d-3b64933be969",
|
|
"description": "Forest path establishing shot with cinematic quality",
|
|
"video_name_prefix": "FJ0",
|
|
"urls": []
|
|
},
|
|
{
|
|
"video_id": "8cbd54ef-9f24-49dc-bb53-9072683ad968",
|
|
"description": "Li Wei running sequence with voice-over",
|
|
"video_name_prefix": "FJ1",
|
|
"urls": [
|
|
"https://video-base-imf.oss-ap-southeast-7.aliyuncs.com/uploads/FJ1-0-20250718060342.mp4",
|
|
"https://video-base-imf.oss-ap-southeast-7.aliyuncs.com/uploads/FJ1-1-20250718060401.mp4"
|
|
]
|
|
},
|
|
{
|
|
"video_id": "f5d1cdfb-25cc-4ab6-a8a7-273d47aa09ff",
|
|
"description": "Close-up of running feet with rhythmic precision",
|
|
"video_name_prefix": "FJ2",
|
|
"urls": [
|
|
"https://video-base-imf.oss-ap-southeast-7.aliyuncs.com/uploads/FJ2-1-20250718060321.mp4"
|
|
]
|
|
}
|
|
],
|
|
"total_count": 8
|
|
}
|
|
},
|
|
{
|
|
"task_id": "face-swap-task-001",
|
|
"task_name": "face_swap_analysis",
|
|
"task_status": "PENDING",
|
|
"task_result": null
|
|
},
|
|
{
|
|
"task_id": "editing-plan-task-001",
|
|
"task_name": "generate_editing_plan",
|
|
"task_status": "PENDING",
|
|
"task_result": null
|
|
}
|
|
];
|
|
|
|
// 项目基本信息
|
|
export const mockProjectInfo = {
|
|
project_id: "0a4a7106-c740-4d2f-a192-f6a8467ce7d8",
|
|
project_name: "AI电影制作演示项目",
|
|
created_at: "2024-01-15T09:30:00Z",
|
|
updated_at: "2024-01-15T10:08:20Z",
|
|
status: "RUNNING",
|
|
mode: "automatic",
|
|
resolution: "1080p",
|
|
language: "Chinese"
|
|
};
|