From 96a319240d6982bb1dc1cfa095241bcd01e279e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?=
<7854742+wang_rumeng@user.noreply.gitee.com>
Date: Thu, 3 Jul 2025 05:51:01 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/globals.css | 2 +-
app/layout.tsx | 7 +
components/ai-suggestion-bar.tsx | 4 +-
components/pages/style/work-flow.css | 2 +-
components/pages/work-flow.tsx | 240 ++--
components/pages/work-flow/media-viewer.tsx | 782 +++++++-----
components/pages/work-flow/task-info.tsx | 87 +-
components/pages/work-flow/thumbnail-grid.tsx | 379 +++---
.../pages/work-flow/use-playback-controls.tsx | 46 +-
.../pages/work-flow/use-workflow-data.tsx | 114 +-
components/ui/audio-visualizer.tsx | 32 +-
components/ui/character-tab-content.tsx | 89 +-
components/ui/edit-modal.tsx | 37 +-
components/ui/error-boundary.tsx | 90 ++
components/ui/generate-video-modal.tsx | 2 +-
components/ui/media-properties-modal.tsx | 10 +-
components/ui/music-tab-content.tsx | 136 ++-
components/ui/replace-character-modal.tsx | 24 +-
components/ui/replace-music-modal.tsx | 16 +-
components/ui/replace-video-modal.tsx | 20 +-
components/ui/script-tab-content.tsx | 31 +-
components/ui/settings-tab-content.tsx | 34 +-
components/ui/video-tab-content.tsx | 48 +-
components/work-flow/api.ts | 46 +-
components/work-flow/constants.ts | 266 ++++-
hooks/useWorkFlow.ts | 16 +-
next.config.js | 29 +-
package-lock.json | 1045 ++++++++++++++++-
package.json | 1 +
utils/dev-helper.ts | 152 +++
30 files changed, 2813 insertions(+), 974 deletions(-)
create mode 100644 components/ui/error-boundary.tsx
create mode 100644 utils/dev-helper.ts
diff --git a/app/globals.css b/app/globals.css
index b052a78..8be86cf 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -97,7 +97,7 @@ body {
}
.hide-scrollbar::-webkit-scrollbar {
- display: none;
+ display: none !important;
}
@layer base {
diff --git a/app/layout.tsx b/app/layout.tsx
index 6566ec0..bce797f 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -10,6 +10,12 @@ const OAuthCallbackHandler = dynamic(
{ ssr: false }
);
+// Import dev helper in development environment only
+const DevHelper = dynamic(
+ () => import('@/utils/dev-helper').then(() => ({ default: () => null })),
+ { ssr: false }
+);
+
export const metadata: Metadata = {
title: 'AI Movie Flow - Create Amazing Videos with AI',
description: 'Professional AI-powered video creation platform with advanced editing tools',
@@ -32,6 +38,7 @@ export default function RootLayout({
{children}
+ {process.env.NODE_ENV === 'development' && }