From b3d3f0edcb4778e7b39452c5aa3ab511474cae2c Mon Sep 17 00:00:00 2001 From: yangy Date: Wed, 13 May 2026 17:42:26 +0800 Subject: [PATCH] Refactor BottomNav and CommunityPage to enhance community forum integration; update navigation logic for mobile and desktop views. Add new localized strings for community page and system settings, including device information and user prompts. --- client/src/components/BottomNav.tsx | 31 +++---- client/src/locales/data-en.json | 34 +++++++- client/src/locales/data-zh-HK.json | 34 +++++++- client/src/locales/data-zh.json | 34 +++++++- client/src/pages/AudioPage.tsx | 70 ++++++++++++---- client/src/pages/CommunityPage.tsx | 120 ++++++++++++++++++++++++---- client/src/pages/EQPage.tsx | 73 ++++++++++------- client/src/pages/Home.tsx | 14 +++- client/src/pages/SystemPage.tsx | 54 +++++++++---- 9 files changed, 372 insertions(+), 92 deletions(-) diff --git a/client/src/components/BottomNav.tsx b/client/src/components/BottomNav.tsx index a2c8c93..32de789 100644 --- a/client/src/components/BottomNav.tsx +++ b/client/src/components/BottomNav.tsx @@ -2,7 +2,7 @@ BOTTOM NAV — Luxsin X9 Controller (Mobile) Design: iOS/Android App-style bottom tab bar 5 tabs — labels from locales/bottomNav, language = deviceState.language (同系统页) - - 社区:仅桌面宽屏(lg ≥1024px)显示,手机等小屏隐藏 + - 社区:移动端进入 /community 引导复制链接;桌面(lg+)点击仍 window.open 论坛 - Active tab: cyan icon + top indicator bar - Inactive: muted icon + label ============================================================ */ @@ -54,12 +54,6 @@ export default function BottomNav() { return (pack.bottomNav ?? localeZh.bottomNav) as BottomNavLocale; }, [deviceState?.language]); - /** 社区入口仅在桌面级视口显示(与 useIsLgUp / Tailwind lg 一致) */ - const visibleNavItems = useMemo( - () => NAV_ITEMS.filter((item) => item.path !== "/community" || isLgUp), - [isLgUp], - ); - return (