From 56f8db3e7570e980ff84f5bea8a3723376e42e2b Mon Sep 17 00:00:00 2001 From: eafonyang Date: Thu, 23 Jul 2026 17:40:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=9F=B3=E9=87=8F=E6=97=8B?= =?UTF-8?q?=E9=92=AE=EF=BC=8C=E4=B8=8D=E5=85=81=E8=AE=B8=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E8=B0=83=E8=8A=82=E9=9F=B3=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/lib/luxsinApi.ts | 5 +++-- client/src/pages/Home.tsx | 16 +++------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/client/src/lib/luxsinApi.ts b/client/src/lib/luxsinApi.ts index 74e9b83..c351129 100644 --- a/client/src/lib/luxsinApi.ts +++ b/client/src/lib/luxsinApi.ts @@ -523,7 +523,7 @@ export function readBootSoundFromState(state: DeviceState | null | undefined): n // Mock data for demo/offline mode // ============================================================ export const MOCK_DEVICE_STATE: DeviceState = { - device: "Luxsin-X9", + device: "Luxsin-B9", version: "1.2.3", mac: "AA:BB:CC:DD:EE:FF", language: 0, @@ -760,7 +760,7 @@ export async function fetchLuxsinAudioCurve( // Share Code API — shareCreate / shareList / shareQuery / shareAccept // ============================================================ -const SHARE_DEVICE_MODELS = ["Luxsin-X9", "Luxsin-X8"] as const; +const SHARE_DEVICE_MODELS = ["Luxsin-X9", "Luxsin-X8", "Luxsin-B9"] as const; export type ShareDeviceModel = (typeof SHARE_DEVICE_MODELS)[number]; @@ -777,6 +777,7 @@ export function resolveShareDeviceModel(device: string): ShareDeviceModel | null const lower = trimmed.toLowerCase(); if (lower.includes("x9")) return "Luxsin-X9"; if (lower.includes("x8")) return "Luxsin-X8"; + if (lower.includes("b9")) return "Luxsin-B9"; return null; } diff --git a/client/src/pages/Home.tsx b/client/src/pages/Home.tsx index 6d30be2..dc3b959 100644 --- a/client/src/pages/Home.tsx +++ b/client/src/pages/Home.tsx @@ -608,25 +608,15 @@ export default function Home() { {/* Right knob */}