From cf84b8336f8130c2bda49f526311e66cf618efbb Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Tue, 26 May 2026 01:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E6=8F=8F=20worker=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=206=E2=86=928=EF=BC=8C=E4=B8=8A=E9=99=90=208?= =?UTF-8?q?=E2=86=9212=EF=BC=88=E9=80=82=E9=85=8D=208GB=20=E5=86=85?= =?UTF-8?q?=E5=AD=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.local | 3 +- frontend/components/auth/LoginClient.tsx | 278 +++++++++++++++-------- web/services/scan_ai_config.py | 4 +- 3 files changed, 181 insertions(+), 104 deletions(-) diff --git a/frontend/.env.local b/frontend/.env.local index 4abb196a..b0a29deb 100644 --- a/frontend/.env.local +++ b/frontend/.env.local @@ -9,7 +9,8 @@ POLYWEATHER_API_BASE_URL=http://127.0.0.1:8000 # 在 Vercel 免费额度下建议配置为 VPS HTTPS 域名,让 AI / METAR / scan 等 # 长耗时请求绕过 Vercel Functions / Fluid Compute。 # 例如:https://api.example.com -NEXT_PUBLIC_POLYWEATHER_API_BASE_URL=http://38.54.27.70:8080 +# 本地开发时注释掉,让 Next.js API Route 代理请求,避免 CORS 问题 +# NEXT_PUBLIC_POLYWEATHER_API_BASE_URL=http://38.54.27.70:8080 # 必填:Supabase 前端公钥(鉴权开启时必须) NEXT_PUBLIC_SUPABASE_URL= diff --git a/frontend/components/auth/LoginClient.tsx b/frontend/components/auth/LoginClient.tsx index 8b2448b9..dabe0420 100644 --- a/frontend/components/auth/LoginClient.tsx +++ b/frontend/components/auth/LoginClient.tsx @@ -236,33 +236,35 @@ export function LoginClient({ nextPath, initialMode }: LoginClientProps) { }; return ( -
+
{/* Left Column (Shared Dark Column with Illustrative Widget) */} -
+
{/* Ambient Glows */} -
-
+
+
+
+ {/* Grid overlay */} -
+
-
- +
+ PolyWeather -
-

+
+

{isEn ? ( <> Weather intelligence and risk management{" "} - + simplified. ) : ( <> 天气信息与风险管理{" "} - + 化繁为简。 @@ -274,103 +276,176 @@ export function LoginClient({ nextPath, initialMode }: LoginClientProps) {

- {/* Sleek Terminal Preview Widget */} -
-
-
- - - {isEn ? "Runway 02L Settlement" : "跑道 02L 官方结算"} - + {/* High-Fidelity Mock Terminal Preview Widget */} +
+
+ {/* Terminal Top Window Controls */} +
+ + + + POLYWEATHER_TERMINAL_v1.7
- LIVE -
- -
-
- {isEn ? "Current Temp:" : "当前气温:"} - 28.8°C -
-
- {isEn ? "UMA Threshold:" : "UMA 结算阈值:"} - 30.0°C -
-
- {isEn ? "Model Probability:" : "模型预测概率:"} - 88.5% -
-
- {isEn ? "Market Price:" : "市场买卖价差:"} - $10.00 -
-
- {/* Sparkline visualization */} -
-
- {[30, 45, 38, 52, 68, 85, 78, 92, 88].map((h, i) => ( -
- ))} +
+
+ + + {isEn ? "Runway 02L Settlement" : "跑道 02L 官方结算"} + +
+ LIVE +
+ + {/* Terminal metrics grid */} +
+
+ {isEn ? "Current Temp" : "当前温度"} + 28.8°C +
+
+ {isEn ? "UMA Threshold" : "结算阈值"} + 30.0°C +
+
+ {isEn ? "Model Blend" : "模型融合"} + 88.5% +
+
+ {isEn ? "Index Price" : "结算指数"} + $9.20 +
+
+ + {/* SVG Interactive Line Chart Preview */} +
+
+ {isEn ? "TEMP TREND (24H)" : "气温趋势 (24小时)"} + Blend vs Obs +
+
+ + {/* Grid Lines */} + + + + + + + + {/* Threshold Line (30.0°C) */} + + 30.0°C UMA + + {/* Gradient Area under Forecast */} + + + {/* Forecast Line (Blue) */} + + + {/* Observation Line (Green Solid, ending at current 170px) */} + + + {/* Current Temp Point */} + + + + {/* Definitions for Gradients */} + + + + + + + +
+ + {/* Footer */} +
+ {isEn ? "PolyWeather institutional analytics suite" : "PolyWeather 机构版天气决策系统"} +
{/* Right Column (Forms) */} -
- {/* Top bar switch */} -
- - {isLogin ? copy.newToPoly : copy.alreadyHave} - - +
+ {/* Subtle mesh background */} +
+ + {/* Top Header Switch */} +
+ {/* Logo on top-left for mobile only */} + + PolyWeather + + +
+ + {isLogin ? copy.newToPoly : copy.alreadyHave} + + +
{/* Center Form Card */} -
-
-

- {isLogin ? copy.welcomeBack : copy.signUpTitle} -

-

- {copy.subtitle} -

+
+
+
+

+ {isLogin ? copy.welcomeBack : copy.signUpTitle} +

+

+ {copy.subtitle} +

+
-
void onEmailSubmit(event)} className="space-y-4"> -
-