diff --git a/app/signup/page.tsx b/app/signup/page.tsx index 323eda9..dd6506e 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 */ @@ -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); } @@ -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"} 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..608506b 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} - {/* 完成状态标签 */} - -
-
-
- completed -
-
-
+ {/* 编辑和剪辑按钮 */} +
+ {showGotoCutButton && ( + + + + )} +
{/* 操作按钮组 */} {/* diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index b5d4e3e..2890c61 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(() => { @@ -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 }; } 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;