diff --git a/apps/web/src/app/auth/page.tsx b/apps/web/src/app/auth/page.tsx index dfd7f2a..73ad65e 100644 --- a/apps/web/src/app/auth/page.tsx +++ b/apps/web/src/app/auth/page.tsx @@ -11,130 +11,117 @@ import { env } from "@web/src/env"; const { Title, Text, Paragraph } = Typography; const AuthPage: React.FC = () => { - const { - showLogin, - isLoading, - toggleForm, - handleLogin, - handleRegister - } = useAuthForm(); - const { isAuthenticated } = useAuth(); - const location = useLocation(); - const navigate = useNavigate(); + const { showLogin, isLoading, toggleForm, handleLogin, handleRegister } = + useAuthForm(); + const { isAuthenticated } = useAuth(); + const location = useLocation(); + const navigate = useNavigate(); - useEffect(() => { - if (isAuthenticated) { - const params = new URLSearchParams(location.search); - const redirectUrl = params.get("redirect_url") || "/"; - navigate(redirectUrl, { replace: true }); - } - }, [isAuthenticated, location]); + useEffect(() => { + if (isAuthenticated) { + const params = new URLSearchParams(location.search); + const redirectUrl = params.get("redirect_url") || "/"; + navigate(redirectUrl, { replace: true }); + } + }, [isAuthenticated, location]); - return ( -
- -
-
- {/* Left Panel - Welcome Section */} -
- -
- {env.APP_NAME || '信箱'} -
- - 聆音于微,润心以答,纾难化雨,解忧惟勤 - - {showLogin && ( - - )} -
-
+ return ( +
+ +
+
+ {/* Left Panel - Welcome Section */} +
+ +
+ {env.APP_NAME || "信箱"} +
+ + 聆音于微 润心以答

+ 纾难化雨 解忧惟勤 +
+ {showLogin && ( + + )} +
+
- {/* Right Panel - Form Section */} -
- - - {showLogin ? ( - - - 登录 - - 首次使用?{' '} - - - - - - - ) : ( - - - 注册账号 - - 已有账号?{' '} - - - - - - - )} - -
-
-
-
-
- - ); + {/* Right Panel - Form Section */} +
+ + {showLogin ? ( + + + + 登录 + + + 首次使用?{" "} + + + + + + ) : ( + + + + 注册账号 + + + 已有账号?{" "} + + + + + + )} + +
+
+
+
+
+ ); }; export default AuthPage; diff --git a/apps/web/src/components/layout/main/Footer.tsx b/apps/web/src/components/layout/main/Footer.tsx index 801b6e8..ab52e49 100644 --- a/apps/web/src/components/layout/main/Footer.tsx +++ b/apps/web/src/components/layout/main/Footer.tsx @@ -17,7 +17,7 @@ export function Footer() { {/* 开发组织信息 */}

- 创新高地 软件小组 + 软件与数据小组

提供技术支持 diff --git a/config/browserless.js b/config/browserless.js deleted file mode 100644 index af55b8f..0000000 --- a/config/browserless.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = async ({ page, context }) => { - await page.setViewport({ width: 1920, height: 1080 }); - await page.goto("http://192.168.139.239:8090", { - waitUntil: "networkidle0", - }); - await page.evaluate(() => { - document.documentElement.requestFullscreen(); - }); -};