diff --git a/web/src/App.tsx b/web/src/App.tsx index af5d884d..b53bcc0c 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -55,11 +55,6 @@ function App() { const { config: systemConfig, loading: configLoading } = useSystemConfig() const [route, setRoute] = useState(window.location.pathname) - // Debug log - useEffect(() => { - console.log('[App] Mounted. Route:', window.location.pathname); - }, []); - // 从URL路径读取初始页面状态(支持刷新保持页面) const getInitialPage = (): Page => { const path = window.location.pathname diff --git a/web/src/components/charts/ChartTabs.tsx b/web/src/components/charts/ChartTabs.tsx index 66923985..d77e8c13 100644 --- a/web/src/components/charts/ChartTabs.tsx +++ b/web/src/components/charts/ChartTabs.tsx @@ -123,7 +123,6 @@ export function ChartTabs({ traderId, selectedSymbol, updateKey, exchangeId }: C // Auto-switch to kline chart when symbol selected externally useEffect(() => { if (selectedSymbol) { - console.log('[ChartTabs] Symbol selected:', selectedSymbol, 'updateKey:', updateKey) setChartSymbol(selectedSymbol) setActiveTab('kline') } @@ -143,8 +142,6 @@ export function ChartTabs({ traderId, selectedSymbol, updateKey, exchangeId }: C } } - console.log('[ChartTabs] rendering, activeTab:', activeTab) - return (
diff --git a/web/src/components/common/DeepVoidBackground.tsx b/web/src/components/common/DeepVoidBackground.tsx index 6ab2357a..bb29f06e 100644 --- a/web/src/components/common/DeepVoidBackground.tsx +++ b/web/src/components/common/DeepVoidBackground.tsx @@ -9,27 +9,35 @@ interface DeepVoidBackgroundProps extends React.HTMLAttributes { export function DeepVoidBackground({ children, className = '', disableAnimation = false, ...props }: DeepVoidBackgroundProps) { return (
- {/* BACKGROUND LAYERS */} + {/* Background layers: use a much lighter static stack when animations are disabled */} + {disableAnimation ? ( + <> +
+
+ + ) : ( + <> + {/* 1. Grain/Noise Texture */} +
- {/* 1. Grain/Noise Texture */} -
+ {/* 2. Grid System */} +
+
+
+
- {/* 2. Grid System */} -
-
-
-
+ {/* 3. Ambient Glow Spots */} +
+
+
+
- {/* 3. Ambient Glow Spots */} -
-
-
-
- - {/* 4. CRT/Scanline Overlay */} -
-
-
+ {/* 4. CRT/Scanline Overlay */} +
+
+
+ + )} {/* Content Layer */}
diff --git a/web/src/components/common/LanguageSwitcher.tsx b/web/src/components/common/LanguageSwitcher.tsx index 28dec7c0..12070979 100644 --- a/web/src/components/common/LanguageSwitcher.tsx +++ b/web/src/components/common/LanguageSwitcher.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Globe } from 'lucide-react' import { useLanguage } from '../../contexts/LanguageContext' import type { Language } from '../../i18n/translations' diff --git a/web/src/components/modals/SetupPage.tsx b/web/src/components/modals/SetupPage.tsx index 45c22fb5..724974a2 100644 --- a/web/src/components/modals/SetupPage.tsx +++ b/web/src/components/modals/SetupPage.tsx @@ -6,7 +6,6 @@ import { OnboardingModeSelector } from '../auth/OnboardingModeSelector' import type { UserMode } from '../../lib/onboarding' import { useLanguage } from '../../contexts/LanguageContext' import { LanguageSwitcher } from '../common/LanguageSwitcher' -import type { Language } from '../../i18n/translations' const labels = { zh: { diff --git a/web/src/components/trader/AITradersPage.tsx b/web/src/components/trader/AITradersPage.tsx index 84bac72f..de26058c 100644 --- a/web/src/components/trader/AITradersPage.tsx +++ b/web/src/components/trader/AITradersPage.tsx @@ -259,7 +259,6 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) { } const handleSaveEditTrader = async (data: CreateTraderRequest) => { - console.log('🔥🔥🔥 handleSaveEditTrader CALLED with data:', data) if (!editingTrader) return try { @@ -287,10 +286,6 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) { show_in_competition: data.show_in_competition, } - console.log('🔥 handleSaveEditTrader - data:', data) - console.log('🔥 handleSaveEditTrader - data.strategy_id:', data.strategy_id) - console.log('🔥 handleSaveEditTrader - request:', request) - await api.updateTrader(editingTrader.trader_id, request) toast.success(t('aiTradersToast.saved', language)) setShowEditModal(false)