新增 bh9 对接 webui

This commit is contained in:
eafonyang
2026-09-24 18:34:55 +08:00
parent 6b3dea2f05
commit 2217adfec9
16 changed files with 353 additions and 374 deletions
+3 -11
View File
@@ -1,7 +1,7 @@
/* ============================================================
BOTTOM NAV — Luxsin X9 Controller (Mobile)
Design: iOS/Android App-style bottom tab bar
5 tabs — labels from locales/bottomNav, language = deviceState.language (同系统页)
3 个入口(社区/主页/我的 AI),文案来自 locales/bottomNav,语言跟随 deviceState.language
- 社区:移动端进入 /community 引导复制链接;桌面(lg+)点击仍 window.open 论坛
- Active tab: cyan icon + top indicator bar
- Inactive: muted icon + label
@@ -13,13 +13,7 @@ import { useIsLgUp } from "@/hooks/useIsLgUp";
import localeZh from "@/locales/data-zh.json";
import localeEn from "@/locales/data-en.json";
import { resolveLocalePack } from "@/locales/resolveLocale";
import {
Activity,
Bot,
Home,
MessageSquare,
Sliders,
} from "lucide-react";
import { Bot, Home, MessageSquare } from "lucide-react";
import { Link, useLocation } from "wouter";
import { useMemo } from "react";
import { bottomNavInnerClass, bottomNavOuterClass } from "@/lib/appShell";
@@ -36,9 +30,7 @@ const FORUM_URL = "https://forum.zidoo.tv/index.php";
const NAV_ITEMS: NavItem[] = [
{ path: "/community", icon: MessageSquare, labelKey: "community" },
{ path: "/eq", icon: Sliders, labelKey: "hpEq" },
{ path: "/", icon: Home, labelKey: "home" },
{ path: "/effects", icon: Activity, labelKey: "effects" },
{ path: "/ai", icon: Bot, labelKey: "myAi" },
];
@@ -66,7 +58,7 @@ export default function BottomNav() {
paddingBottom: "env(safe-area-inset-bottom, 8px)",
}}
>
<div className="flex items-stretch justify-around">
<div className="grid grid-cols-3 items-stretch">
{NAV_ITEMS.map((item) => {
const isActive =
item.path === "/ai"