优化适配b9

This commit is contained in:
eafonyang
2026-07-17 17:16:26 +08:00
parent 5696f8233c
commit a32ec980b2
11 changed files with 14 additions and 23 deletions
+3 -12
View File
@@ -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: (
<svg xmlns="http://www.w3.org/2000/svg" width="2em" height="2em" viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none" />
<g fill="currentColor">
<path d="M10 4.5h1v2h-1zm4 0h-1v2h1z" />
<path fillRule="evenodd" d="M7 8.5v-7h10v7h2v11a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3v-11zm2-5h6v5H9zm8 7H7v9a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1z" clipRule="evenodd" />
</g>
</svg>
),
icon: <FolderInput size={28} />,
},
];
@@ -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[] {