From 200a3554ba2fa814f471fc343a28a26f7f979d72 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: Tue, 23 Sep 2025 15:41:43 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.env.production b/.env.production index 144e5c0..72f8672 100644 --- a/.env.production +++ b/.env.production @@ -1,16 +1,16 @@ # 临时使用旧域名配置,等待后端更新 # 测试 -NEXT_PUBLIC_JAVA_URL = https://auth.test.movieflow.ai -NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com -NEXT_PUBLIC_CUT_URL = https://77.smartcut.py.qikongjian.com -NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.net/api/auth/google/callback +# NEXT_PUBLIC_JAVA_URL = https://auth.test.movieflow.ai +# NEXT_PUBLIC_BASE_URL = https://77.smartvideo.py.qikongjian.com +# NEXT_PUBLIC_CUT_URL = https://77.smartcut.py.qikongjian.com +# NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.net/api/auth/google/callback # 生产 -# NEXT_PUBLIC_JAVA_URL = https://auth.movieflow.ai -# NEXT_PUBLIC_BASE_URL = https://api.video.movieflow.ai -# NEXT_PUBLIC_CUT_URL = https://smartcut.api.movieflow.ai -# NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.ai/api/auth/google/callback +NEXT_PUBLIC_JAVA_URL = https://auth.movieflow.ai +NEXT_PUBLIC_BASE_URL = https://api.video.movieflow.ai +NEXT_PUBLIC_CUT_URL = https://smartcut.api.movieflow.ai +NEXT_PUBLIC_GOOGLE_REDIRECT_URI=https://www.movieflow.ai/api/auth/google/callback # 通用 # 当前域名配置 From dded78400f766d2d139c6367611b5fb453586b9e 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: Fri, 26 Sep 2025 20:02:47 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=87=8D=E5=8F=91=E9=82=AE=E4=BB=B6JAVA=5F?= =?UTF-8?q?BASE=5FURL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auth.ts b/lib/auth.ts index c575852..9450907 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -687,7 +687,7 @@ export const registerUserWithInvite = async ({ */ export const sendVerificationLink = async (email: string) => { try { - const response = await fetch(`${BASE_URL}/api/user/sendVerificationLink?email=${email}`); + const response = await fetch(`${JAVA_BASE_URL}/api/user/sendVerificationLink?email=${email}`); const data = await response.json(); if(!data.success){ throw new Error(data.message||data.msg) From ada96f649e29f4e1f6f74f001cee8f15c100b0c7 Mon Sep 17 00:00:00 2001 From: moux1024 <403053463@qq.com> Date: Sun, 28 Sep 2025 20:25:03 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20footer=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20contact=20us?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cursorrules | 1 + components/common/Footer/index.tsx | 63 ++++++++++++++++++++++++++++++ components/common/Footer/types.ts | 18 +++++++++ components/pages/home-page2.tsx | 10 +---- components/pages/login.tsx | 4 ++ 5 files changed, 88 insertions(+), 8 deletions(-) create mode 100644 components/common/Footer/index.tsx create mode 100644 components/common/Footer/types.ts diff --git a/.cursorrules b/.cursorrules index 1feaef5..a24bc99 100644 --- a/.cursorrules +++ b/.cursorrules @@ -9,6 +9,7 @@ You are the joint apprentice of Evan You and Kent C. Dodds. Channel Evan You's e - Refrain from creating unrequested files, classes, functions, or configurations. - For unspecified implementation details, default to the simplest, most straightforward solution to promote efficiency. - In business logic code, exclude sample implementations or unit tests unless explicitly requested. +- When completing the final step of a task, do not create tests unless explicitly requested by the user. # CSS Style Rules - Exclusively use Tailwind CSS 3.x syntax for all styling. diff --git a/components/common/Footer/index.tsx b/components/common/Footer/index.tsx new file mode 100644 index 0000000..7702ea2 --- /dev/null +++ b/components/common/Footer/index.tsx @@ -0,0 +1,63 @@ +import React from 'react'; + +/** + * 公共页脚组件 + * 提供统一的版权信息和页脚样式 + */ +export interface FooterProps { + /** 版权年份,默认为当前年份 */ + year?: number; + /** 公司名称,默认为 "MovieFlow" */ + companyName?: string; + /** 自定义版权文本 */ + customText?: string; + /** 额外的CSS类名 */ + className?: string; + /** 是否显示邮箱链接 */ + showEmailLink?: boolean; + /** 邮箱地址,默认为 "support@movieflow.ai" */ + emailAddress?: string; +} + +/** + * 公共页脚组件 + * @param props - 页脚组件属性 + * @returns JSX元素 + */ +const Footer: React.FC = ({ + year = new Date().getFullYear(), + companyName = 'MovieFlow', + customText, + className = '', + showEmailLink = false, + emailAddress = 'support@movieflow.ai' +}) => { + const copyrightText = customText || `© ${year} ${companyName}. All rights reserved.`; + + return ( +
+ {/* 左侧版权信息 */} +
+ {copyrightText} +
+ + {/* 右侧邮箱链接 */} + {showEmailLink && ( +
+ + Contact Us + +
+ )} +
+ ); +}; + +export default Footer; diff --git a/components/common/Footer/types.ts b/components/common/Footer/types.ts new file mode 100644 index 0000000..9552d7d --- /dev/null +++ b/components/common/Footer/types.ts @@ -0,0 +1,18 @@ +/** + * 页脚组件相关的类型定义 + */ + +export interface FooterProps { + /** 版权年份,默认为当前年份 */ + year?: number; + /** 公司名称,默认为 "MovieFlow" */ + companyName?: string; + /** 自定义版权文本 */ + customText?: string; + /** 额外的CSS类名 */ + className?: string; + /** 是否显示邮箱链接 */ + showEmailLink?: boolean; + /** 邮箱地址,默认为 "support@movieflow.ai" */ + emailAddress?: string; +} diff --git a/components/pages/home-page2.tsx b/components/pages/home-page2.tsx index a8e9664..ddd09a2 100644 --- a/components/pages/home-page2.tsx +++ b/components/pages/home-page2.tsx @@ -22,6 +22,7 @@ import VideoCoverflow from "@/components/ui/VideoCoverflow"; import { fetchTabsByCode, HomeTabItem } from "@/api/serversetting"; import { useCallbackModal } from "@/app/layout"; import { useDeviceType } from "@/hooks/useDeviceType"; +import Footer from "@/components/common/Footer"; /** 视频预加载系统 - 后台静默运行 */ function useVideoPreloader() { @@ -286,7 +287,7 @@ export function HomePage2() { - +