From b99a54ef41f13f09cb61917dd84a0c063f4b99c4 Mon Sep 17 00:00:00 2001 From: SkywalkerJi Date: Thu, 6 Nov 2025 02:16:04 +0900 Subject: [PATCH] fix: Fixed redundant key input fields and corrected formatting on the frontend. (#566) * Eliminate redundant key input fields in the front-end. * go / react Formatting. --- main.go | 3 +- web/src/components/AITradersPage.tsx | 22 --- web/src/components/LoginPage.tsx | 109 ++++++++------- web/src/components/ResetPasswordPage.tsx | 164 ++++++++++++++++------- web/src/components/landing/HeaderBar.tsx | 12 +- web/src/contexts/AuthContext.tsx | 59 ++++---- web/src/i18n/translations.ts | 3 +- web/src/pages/LandingPage.tsx | 8 +- 8 files changed, 221 insertions(+), 159 deletions(-) diff --git a/main.go b/main.go index 3a3f1e68..c805edb4 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ import ( "strings" "syscall" - "github.com/joho/godotenv" + "github.com/joho/godotenv" ) // LeverageConfig 杠杆配置 @@ -225,7 +225,6 @@ func main() { log.Printf("✓ Admin mode enabled. All API endpoints require admin authentication.") } - log.Printf("✓ 配置数据库初始化成功") fmt.Println() diff --git a/web/src/components/AITradersPage.tsx b/web/src/components/AITradersPage.tsx index dc050317..7f621115 100644 --- a/web/src/components/AITradersPage.tsx +++ b/web/src/components/AITradersPage.tsx @@ -1936,28 +1936,6 @@ function ExchangeConfigModal({ /> -
- - setSecretKey(e.target.value)} - placeholder={t('enterSecretKey', language)} - className="w-full px-3 py-2 rounded" - style={{ - background: '#0B0E11', - border: '1px solid #2B3139', - color: '#EAECEF', - }} - required - /> -
- {selectedExchange.id === 'okx' && (