From a32ec980b2833ae6750b5d82655e92ee7793bab2 Mon Sep 17 00:00:00 2001 From: eafonyang Date: Fri, 17 Jul 2026 17:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=82=E9=85=8Db9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/locales/data-de.json | 2 +- client/src/locales/data-en.json | 2 +- client/src/locales/data-es.json | 2 +- client/src/locales/data-fr.json | 2 +- client/src/locales/data-zh-HK.json | 2 +- client/src/locales/data-zh.json | 2 +- client/src/pages/IOPage.tsx | 15 +++------------ package.json | 2 +- scripts/deploy.sh | 4 ++-- vite.config.ts | 2 +- vite.legacy.config.ts | 2 +- 11 files changed, 14 insertions(+), 23 deletions(-) diff --git a/client/src/locales/data-de.json b/client/src/locales/data-de.json index 1b49062..ab72013 100644 --- a/client/src/locales/data-de.json +++ b/client/src/locales/data-de.json @@ -55,7 +55,7 @@ "pageTitle": "I/O", "inputSection": "Eingang", "outputSection": "Ausgang", - "inputOptions": ["USB-B", "USB-C", "Koaxial", "Optisch", "Bluetooth", "IIS", "RCA", "USB Driver"], + "inputOptions": ["USB-B", "USB-C", "Koaxial", "Optisch", "Bluetooth", "IIS", "RCA", "Lokaler Eingang"], "outputOptions": ["XLR", "RCA", "XLR/RCA", "Kopfhörer"], "input": { "coaxial": "KOAXIAL", diff --git a/client/src/locales/data-en.json b/client/src/locales/data-en.json index 7dc6acf..573cfcd 100644 --- a/client/src/locales/data-en.json +++ b/client/src/locales/data-en.json @@ -55,7 +55,7 @@ "pageTitle": "I/O", "inputSection": "Input", "outputSection": "Output", - "inputOptions": ["USB-B", "USB-C", "Coaxial", "Optical", "Bluetooth", "IIS", "RCA", "USB Driver"], + "inputOptions": ["USB-B", "USB-C", "Coaxial", "Optical", "Bluetooth", "IIS", "RCA", "Local Input"], "outputOptions": ["XLR", "RCA", "XLR/RCA", "Headset"], "input": { "coaxial": "COAXIAL", diff --git a/client/src/locales/data-es.json b/client/src/locales/data-es.json index b56a111..3b0054c 100644 --- a/client/src/locales/data-es.json +++ b/client/src/locales/data-es.json @@ -55,7 +55,7 @@ "pageTitle": "E/S", "inputSection": "Entrada", "outputSection": "Salida", - "inputOptions": ["USB-B", "USB-C", "Coaxial", "Óptico", "Bluetooth", "IIS", "RCA", "USB Driver"], + "inputOptions": ["USB-B", "USB-C", "Coaxial", "Óptico", "Bluetooth", "IIS", "RCA", "Entrada local"], "outputOptions": ["XLR", "RCA", "XLR/RCA", "Auriculares"], "input": { "coaxial": "COAXIAL", diff --git a/client/src/locales/data-fr.json b/client/src/locales/data-fr.json index c057999..7fc7f8c 100644 --- a/client/src/locales/data-fr.json +++ b/client/src/locales/data-fr.json @@ -55,7 +55,7 @@ "pageTitle": "E/S", "inputSection": "Entrée", "outputSection": "Sortie", - "inputOptions": ["USB-B", "USB-C", "Coaxial", "Optique", "Bluetooth", "IIS", "RCA", "USB Driver"], + "inputOptions": ["USB-B", "USB-C", "Coaxial", "Optique", "Bluetooth", "IIS", "RCA", "Entrée locale"], "outputOptions": ["XLR", "RCA", "XLR/RCA", "Casque"], "input": { "coaxial": "COAXIAL", diff --git a/client/src/locales/data-zh-HK.json b/client/src/locales/data-zh-HK.json index b483b61..2bc2eb6 100644 --- a/client/src/locales/data-zh-HK.json +++ b/client/src/locales/data-zh-HK.json @@ -55,7 +55,7 @@ "pageTitle": "輸入/輸出", "inputSection": "輸入", "outputSection": "輸出", - "inputOptions": ["USB-B", "USB-C", "同軸", "光纖", "藍牙", "IIS", "類比RCA", "USB隨身碟"], + "inputOptions": ["USB-B", "USB-C", "同軸", "光纖", "藍牙", "IIS", "類比RCA", "本地輸入"], "outputOptions": ["XLR", "RCA", "XLR/RCA", "耳機"], "input": { "coaxial": "同軸", "optical": "光纖", "bluetooth": "藍牙", "rca": "類比RCA" }, "output": { "headset": "耳機" } diff --git a/client/src/locales/data-zh.json b/client/src/locales/data-zh.json index db89bf6..4d600ac 100644 --- a/client/src/locales/data-zh.json +++ b/client/src/locales/data-zh.json @@ -55,7 +55,7 @@ "pageTitle": "输入输出", "inputSection": "输入", "outputSection": "输出", - "inputOptions": ["USB-B", "USB-C", "同轴", "光纤", "蓝牙", "IIS", "模拟RCA", "U盘"], + "inputOptions": ["USB-B", "USB-C", "同轴", "光纤", "蓝牙", "IIS", "模拟RCA", "本地输入"], "outputOptions": ["XLR", "RCA", "XLR/RCA", "耳机"], "input": { "coaxial": "同轴", "optical": "光纤", "bluetooth": "蓝牙", "rca": "模拟RCA" }, "output": { "headset": "耳机" } diff --git a/client/src/pages/IOPage.tsx b/client/src/pages/IOPage.tsx index 360c756..acefef2 100644 --- a/client/src/pages/IOPage.tsx +++ b/client/src/pages/IOPage.tsx @@ -8,7 +8,7 @@ import { useDevice } from "@/contexts/DeviceContext"; import { cn } from "@/lib/utils"; import BottomNav from "@/components/BottomNav"; -import { ChevronLeft } from "lucide-react"; +import { ChevronLeft, FolderInput } from "lucide-react"; import { useLocation } from "wouter"; import { useMemo } from "react"; import localeZh from "@/locales/data-zh.json"; @@ -107,16 +107,7 @@ const INPUT_OPTION_DEFS: IOOptionDef[] = [ }, { index: 7, - icon: ( - - - - - - - - - ), + icon: , }, ]; @@ -164,7 +155,7 @@ const OUTPUT_OPTION_DEFS: IOOptionDef[] = [ }, ]; -const FALLBACK_INPUT_LABELS = ["USB-B", "USB-C", "同轴", "光纤", "蓝牙", "IIS", "RCA", "USB Driver"]; +const FALLBACK_INPUT_LABELS = ["USB-B", "USB-C", "同轴", "光纤", "蓝牙", "IIS", "RCA", "本地输入"]; const FALLBACK_OUTPUT_LABELS = ["XLR", "RCA", "XLR/RCA", "耳机"]; function withLabels(defs: IOOptionDef[], labels: string[] | undefined, fallback: string[]): IOOption[] { diff --git a/package.json b/package.json index 967794b..f005317 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "luxsin-x9-ui", + "name": "luxsin-b9-ui", "version": "1.0.0", "type": "module", "license": "MIT", diff --git a/scripts/deploy.sh b/scripts/deploy.sh index bcfd4ff..ac4bfc1 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -31,10 +31,10 @@ EOF # 自动识别项目名称 (x8 / x9),依据脚本所在的项目根目录名 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(basename "$(dirname "$SCRIPT_DIR")")" -PROJECT_NAME="$(echo "$PROJECT_ROOT" | grep -oE '^(x8|x9)')" +PROJECT_NAME="$(echo "$PROJECT_ROOT" | grep -oE '^(x8|x9|b9)')" if [ -z "$PROJECT_NAME" ]; then - echo "错误: 无法从路径 '$PROJECT_ROOT' 识别项目名称 (x8/x9)" + echo "错误: 无法从路径 '$PROJECT_ROOT' 识别项目名称 (x8/x9/b9)" exit 1 fi diff --git a/vite.config.ts b/vite.config.ts index 3b3f293..bfb1e0f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -53,7 +53,7 @@ const plugins = [ const DEPLOY_ENV = process.env.DEPLOY_ENV || "production"; const isProd = process.env.NODE_ENV === "production"; const deployBase = isProd - ? (DEPLOY_ENV === "test" ? "/x9/test/modern/" : "/x9/v2/modern/") + ? (DEPLOY_ENV === "test" ? "/b9/test/modern/" : "/b9/v2/modern/") : "/"; export default defineConfig({ diff --git a/vite.legacy.config.ts b/vite.legacy.config.ts index 7a1ec20..e1b3573 100644 --- a/vite.legacy.config.ts +++ b/vite.legacy.config.ts @@ -47,7 +47,7 @@ function legacySkipModernCssPlugin(): Plugin { const DEPLOY_ENV = process.env.DEPLOY_ENV || "production"; const isProd = process.env.NODE_ENV === "production"; const deployBase = isProd - ? (DEPLOY_ENV === "test" ? "/x9/test/legacy/" : "/x9/v2/legacy/") + ? (DEPLOY_ENV === "test" ? "/b9/test/legacy/" : "/b9/v2/legacy/") : "/"; export default defineConfig({