diff --git a/client/src/pages/EQPage.tsx b/client/src/pages/EQPage.tsx index 95e47b2..fa9baae 100644 --- a/client/src/pages/EQPage.tsx +++ b/client/src/pages/EQPage.tsx @@ -11,38 +11,24 @@ 7. Total gain card: 总增益 value + AUTO toggle + slider ============================================================ */ import { useDevice } from "@/contexts/DeviceContext"; -import { ChevronLeft, ChevronDown, Minus, Plus, Edit3, Headphones, Search, X, Share2, Copy, Loader2 } from "lucide-react"; +import { ChevronLeft, ChevronDown, Minus, Plus, Edit3, Headphones, Share2 } from "lucide-react"; import { useLocation } from "wouter"; import { useState, useMemo, useEffect, useRef, useCallback } from "react"; import { cn } from "@/lib/utils"; -import { useStrokeDrawAnimation } from "@/lib/useStrokeDrawAnimation"; import BottomNav from "@/components/BottomNav"; import { FeatureGate } from "@/components/FeatureGate"; import { toast } from "sonner"; import { - decodeCustomBase64, - fetchLuxsinAudioBrands, fetchLuxsinAudioCurve, - fetchLuxsinAudioModelList, - fetchLuxsinAudioModels, - type LuxsinAudioBrand, - type LuxsinAudioModelListItem, - type LuxsinAudioModel, type PeqFilter, type PeqApplyPayload, type PeqChangePayload, type PeqPresetBody, type PeqState, } from "@/lib/luxsinApi"; -import * as echarts from "echarts"; import { - getSectionsMatrix, - visualizeResponse, - getChartOps, getFilterType, getFilterShortName, - buildPeqSvgCurveData, - sampleCombinedPeqMagnitudeDb, } from "@/lib/peqAudio"; import localeZh from "@/locales/data-zh.json"; import localeZhHK from "@/locales/data-zh-HK.json"; @@ -59,12 +45,10 @@ import { DEFAULT_BANDS, FLAT_PRESET_FILTERS, PEQ_PRESET_MAX, - CATALOG_TARGETS, type BandParamKind, type PeqEqUi, type PeqCatalogItem, type PeqPresetLocalCache, - type CatalogTarget, } from "./eq/constants"; import { eqInterp, @@ -83,447 +67,18 @@ import { } from "./eq/utils"; import { IOSToggle } from "./eq/components/IOSToggle"; import { CyanSlider } from "./eq/components/CyanSlider"; - - - -function LegendCurveIndicator({ - loading, - color, -}: { - loading: boolean; - color: string; -}) { - if (loading) { - return ( -