From 1c7ce07fc901ed34df7160f523adca8585d8be30 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: Sun, 31 Aug 2025 04:52:07 +0800
Subject: [PATCH 1/5] ai-editor
---
components/pages/work-flow/use-workflow-data.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx
index b5d4e3e..a073b50 100644
--- a/components/pages/work-flow/use-workflow-data.tsx
+++ b/components/pages/work-flow/use-workflow-data.tsx
@@ -115,7 +115,7 @@ export function useWorkflowData() {
const generateEditPlan = useCallback(async (isInit?: boolean) => {
isInit && await getGenerateEditPlan({ project_id: episodeId });
- window.open(`https://smartcut.movieflow.ai/editor/${episodeId}?token=${token}&user_id=${useid}`, '_target');
+ window.open(`https://smartcut.movieflow.ai/ai-editor/${episodeId}?token=${token}&user_id=${useid}`, '_target');
}, [episodeId]);
useEffect(() => {
From b1294dbf5d8db6bc6aec4c1d8385880e5d4ac18e 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: Sun, 31 Aug 2025 05:51:57 +0800
Subject: [PATCH 2/5] aaaaaaa
---
components/SmartChatBox/SmartChatBox.tsx | 4 +--
components/pages/work-flow.tsx | 2 +-
components/pages/work-flow/media-viewer.tsx | 25 ++++++++-----------
.../pages/work-flow/use-workflow-data.tsx | 2 +-
4 files changed, 15 insertions(+), 18 deletions(-)
diff --git a/components/SmartChatBox/SmartChatBox.tsx b/components/SmartChatBox/SmartChatBox.tsx
index ff7a812..90a7e38 100644
--- a/components/SmartChatBox/SmartChatBox.tsx
+++ b/components/SmartChatBox/SmartChatBox.tsx
@@ -1,5 +1,5 @@
import React, { useRef, useCallback, useState, useEffect } from "react";
-import { ChevronsRight, ChevronDown } from 'lucide-react';
+import { ChevronsRight, ChevronDown, X } from 'lucide-react';
import { Switch } from 'antd';
import { MessageRenderer } from "./MessageRenderer";
import { InputBar } from "./InputBar";
@@ -141,7 +141,7 @@ export default function SmartChatBox({
/>
-
setIsSmartChatBoxOpen(false)}
/>
diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx
index fc15f17..e79f7e2 100644
--- a/components/pages/work-flow.tsx
+++ b/components/pages/work-flow.tsx
@@ -147,7 +147,7 @@ const WorkFlow = React.memo(function WorkFlow() {
{/* 智能对话按钮 */}
{/* 背景模糊的视频 */}
@@ -349,20 +350,16 @@ export const MediaViewer = React.memo(function MediaViewer({
{memoizedFinalVideoElement}
- {/* 完成状态标签 */}
-
-
-
+ {/* 编辑和剪辑按钮 */}
+
+ {showGotoCutButton && (
+
+
+
+ )}
+
{/* 操作按钮组 */}
{/*
diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx
index a073b50..2890c61 100644
--- a/components/pages/work-flow/use-workflow-data.tsx
+++ b/components/pages/work-flow/use-workflow-data.tsx
@@ -563,7 +563,7 @@ export function useWorkflowData() {
fallbackToStep,
originalText: state.originalText,
// showGotoCutButton: from && currentLoadingText.includes('Post-production') ? true : false,
- showGotoCutButton: canGoToCut && currentLoadingText.includes('Post-production') ? true : false,
+ showGotoCutButton: canGoToCut ? true : false,
generateEditPlan
};
}
From ee06ee3911f23a1341b0461b4bfe2c89ce197d2b 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: Sun, 31 Aug 2025 06:03:43 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E5=95=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/pages/work-flow.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx
index e79f7e2..608506b 100644
--- a/components/pages/work-flow.tsx
+++ b/components/pages/work-flow.tsx
@@ -147,7 +147,7 @@ const WorkFlow = React.memo(function WorkFlow() {
{/* 智能对话按钮 */}
Date: Sun, 31 Aug 2025 06:51:56 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AD=89=E6=97=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/signup/page.tsx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/app/signup/page.tsx b/app/signup/page.tsx
index 512d643..e6a79bb 100644
--- a/app/signup/page.tsx
+++ b/app/signup/page.tsx
@@ -19,7 +19,7 @@ export default function SignupPage() {
const [confirmPasswordError, setConfirmPasswordError] = useState("");
const [showPassword, setShowPassword] = useState(false);
const [showConfirmPassword, setShowConfirmPassword] = useState(false);
- const [agreeToTerms, setAgreeToTerms] = useState(false);
+ const [agreeToTerms, setAgreeToTerms] = useState(true);
const router = useRouter();
/** Password validation function with English prompts */
@@ -342,10 +342,9 @@ export default function SignupPage() {
!!passwordError ||
!!confirmPasswordError ||
!password ||
- !confirmPassword ||
- !agreeToTerms
+ !confirmPassword
}
- className="flex-1 py-3 rounded-lg cursor-pointer bg-[#C039F6] hover:bg-[#C039F6]/80 text-white font-medium transition-colors disabled:opacity-70"
+ className="flex-1 py-3 rounded-lg cursor-pointer bg-[#C039F6] hover:bg-[#C039F6]/80 text-white font-medium transition-colors disabled:opacity-70 disabled:cursor-not-allowed"
>
{isSubmitting ? "Signing up..." : "Sign Up"}
From fc152ee745c4d37cce669cd450a870a18972f594 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: Sun, 31 Aug 2025 07:05:14 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E9=94=99=E8=AF=AF?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/signup/page.tsx | 2 +-
lib/auth.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/signup/page.tsx b/app/signup/page.tsx
index e6a79bb..c657728 100644
--- a/app/signup/page.tsx
+++ b/app/signup/page.tsx
@@ -124,7 +124,7 @@ export default function SignupPage() {
router.push("/login?registered=true");
} catch (error: any) {
console.error("Signup error:", error);
- setFormError(error.msg || "Registration failed, please try again");
+ setFormError(error.message || "Registration failed, please try again");
} finally {
setIsSubmitting(false);
}
diff --git a/lib/auth.ts b/lib/auth.ts
index 3faeef9..55945ba 100644
--- a/lib/auth.ts
+++ b/lib/auth.ts
@@ -393,7 +393,7 @@ export const registerUser = async ({
const data = await response.json();
console.log('data', data)
if(!data.success){
- throw new Error(data.msg)
+ throw new Error(data.message)
}
return data as {
success: boolean;