Commit Graph

95 Commits

Author SHA1 Message Date
eafonyang cc818fe26e 优化 peq 流程 2026-09-20 14:06:34 +08:00
fucheng b606e7ad4d fix(connect): 连接提示使用 URL 中的设备 IP,去掉写死的 10.0.0.119
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 10:46:50 +08:00
fucheng 16a18dd135 fix(ai): 网络失败时显示友好提示,不再直接展示 Failed to fetch
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 10:00:14 +08:00
eafonyang cc0e9a3334 refactor(ThumbOnlyRangeSlider): 优化滑块拖拽逻辑和事件处理
- 移除原有基于客户端X坐标计算值的函数,改用更精确的偏移计算
- 实现滑块中心位置和偏移值转换函数,确保滑块不会超出轨道边界
- 将原生输入禁用指针事件,由外层容器处理所有指针事件以提升触控体验
- 修复触摸设备上滑块跳跃问题,防止点击轨道时误触导致值突变
- 优化指针事件绑定和释放逻辑,支持多种交互状态切换
- 保持键盘无障碍可用,输入框仍可通过键盘改变值并触发事件

style(BrandDrawer): 修正抽屉高度适配并增加对动态视窗单位的支持

- 将固定高度单位58dvh替换为58vh,并增加max-h-full以限制最大高度
- 利用CSS supports媒体查询,针对支持1dvh单位的浏览器恢复58dvh高度
- 修复在不同设备和浏览器中抽屉显示高度不一致的问题
2026-09-15 17:09:13 +08:00
eafonyang 65209d9577 优化自定义交叉反馈 2026-09-11 19:30:31 +08:00
fucheng a415c6bf2b feat(ai): 大幅提高音量前增加二次确认
避免 AI 突然拉高音量或打开直通,需用户确认后再写入设备。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 16:46:47 +08:00
eafonyang abd9033b49 修复&优化听力补偿模块功能 2026-09-09 18:26:28 +08:00
eafonyang ab5d85841b feat(firmware): 缓存并异步获取固件版本名称以优化UI展示
- 新增固件版本名称本地缓存机制,缓存有效期30分钟,存储于localStorage
- 实现本地读取缓存函数,确保读取失败、无效或过期时返回null
- 实现缓存写入函数,容忍私密模式或配额限制导致的写入失败
- 新增异步获取云端固件版本名称函数,支持开发环境代理和生产环境自动切换
- SystemPage中首选尝试读取本地缓存,命中则直接显示版本名称避免接口请求
- 缓存未命中时异步调用云端接口获取版本名称,失败则使用本地格式兜底显示
- UI中固件版本行新增loading动画指示异步加载状态
- 调整固件版本格式显示函数,自动识别新旧版本号格式展示方式
2026-09-09 14:14:30 +08:00
eafonyang 33a5b8a9b0 feat(api): 新增 UAC 版本支持及相关界面改进
- 在音频参数中加入 uac_ver 字段,支持区分 UAC 2.0 和 UAC 1.0
- 在多语言资源中添加 UAC 版本选项及对应标签(中英文、德语、西班牙语、法语、繁体中文等)
- 在 AudioPage 页面新增 UAC 版本选择组件,支持用户选择不同版本
- 在 SelectPage 中加入 uac_ver 的映射,保证数据正确传递
- 为 UAC 版本选项新增“Custom”自定义项,丰富配置可能性
2026-09-08 14:19:26 +08:00
eafonyang f6f8bee11a feat(eq): 使用平直曲线作为默认预设显示
- 新增 FLAT_BANDS 平直曲线预设,包含10个增益为0的PEAK滤波器
- 默认初始化bandsByMode状态使用FLAT_BANDS替代旧的DEFAULT_BANDS
- 在无远程peq数据或切换耳机时,默认设置为FLAT_BANDS
- 无滤波器时恢复平直曲线并清空原始参考线状态
- 保持FLAT_BANDS预设一致性优化未加载状态的体验
2026-08-28 18:47:24 +08:00
eafonyang bf8a06eff7 fix(EQPage): 取消默认耳机列表展示,避免展示虚假型号
- 设备无数据时清空耳机型号列表和相关预设项
- 取消设置默认耳机名称,选择空值
- 拉取失败时同样保持列表为空,避免误导用户
- 复位当前原始曲线和频段选择状态
2026-08-28 18:23:27 +08:00
eafonyang 083423c4af 移除返回旧版入口和相关代码 2026-08-17 14:56:38 +08:00
eafonyang 3ad409cc91 effect 响度阈值最低支持 -40 2026-08-12 18:54:13 +08:00
eafonyang 5689ecb9e7 首页新增 what‘s new 入口,维护一个 changelog 文档 2026-08-06 14:39:36 +08:00
eafonyang 6bab63ab3d 新增 EQ撤销功能,用户调节的参数不满意可以点击回退到上一次,撤销栈最多存放 30 步 2026-08-06 12:01:47 +08:00
eafonyang 2cd61ea7b5 修复 bug:EQ 页面调节任意参数后,耳机会自动切换到别的耳机 2026-08-06 11:09:33 +08:00
allen2fuc 0c2dcc9a10 应用/回滚 PEQ 后刷新接口失败不应影响主流程结果提示
修复 executeApplyToggle 中 upgradePeqChange 已成功但后续 refreshState
(msgAdd) 因固件不支持或网络抖动而失败时,错误地将整个操作判定为失败、
弹出 "Operation failed" 且不更新本地已应用状态的问题。

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 09:53:49 +08:00
allen2fuc 34b733bfe7 限制 AI 输入长度不超过 1000 字符,超出时提示用户
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 14:02:30 +08:00
eafonyang eb8b70773c 首页音量旋钮,不允许用户主动调节音量 2026-07-23 17:40:27 +08:00
eafonyang 0a216e1cc6 首页显示设备名称 2026-07-17 16:48:14 +08:00
eafonyang b7fdfe0101 version>=29 使用了新的重命名接口、EQ 排序功能 2026-07-07 17:14:52 +08:00
eafonyang 61fc54cd5a 重命名 EQ 名称增加等待时间 2026-07-07 09:48:39 +08:00
allen2fuc 3e7f790d0a 增加回滚和应用时检查dsp_enable 2026-07-06 18:50:27 +08:00
allen2fuc fe08efa74a AI 回滚 EQ 时同样检查 HP-EQ 是否已开启
应用与回滚统一在 peqEnable 未开启时弹出确认框。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 15:06:20 +08:00
allen2fuc 8a358d10e3 0702大更新 2026-07-06 14:50:06 +08:00
allen2fuc 4d8160e273 AI 应用 EQ 前检查 HP-EQ 是否已开启
未开启时弹出确认框,确认后先启用 peqEnable 再应用优化参数。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 14:48:34 +08:00
allen2fuc 62998de6e5 修复 AI 历史会话删除在 App 内无响应的问题
WebView 不支持 window.confirm,改用 AlertDialog 显示删除确认框。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 09:48:21 +08:00
eafonyang 9ed1b6f526 优化图标 2026-07-03 15:58:51 +08:00
eafonyang 94224421a3 优化首页图标,用 lucide-react 代替了蓝牙模块的图标 2026-07-03 11:11:10 +08:00
eafonyang cbb1a45a5e EQ 批量管理窗口支持多语言 2026-07-01 15:16:24 +08:00
eafonyang ac7b5da0f0 当设备未连接时,各页面默认显示英文语言的文本,并在标题追加 (Disconnect) 2026-07-01 11:23:06 +08:00
eafonyang 8283ffcf14 新增氛围灯功能,对 EQ 名称长度做限制 2026-06-30 15:28:53 +08:00
eafonyang 98e8738e79 新增德文/法文/西班牙文 2026-06-22 14:51:49 +08:00
eafonyang 07262e91ba 优化结构目录,新增部署脚本,一键上传s3 和刷新 cdn 2026-06-18 16:12:51 +08:00
eafonyang e16c3ebd9d 清理项目没用的代码,新增 EQ 预设管理界面 2026-06-18 12:01:12 +08:00
eafonyang 0d577f939c 新增 build:test 方便构建线上的测试环境,优化分享码功能的交互 2026-06-17 16:51:43 +08:00
eafonyang a045db235a 拆分 EQPage 页面,新增分享码功能,修复 bug,优化性能 2026-06-15 18:39:07 +08:00
eafonyang 1b0b447eee 修复 bug 2026-06-12 15:58:08 +08:00
eafonyang 56a76e68ef 优化目录 2026-06-10 19:59:25 +08:00
eafonyang fc6f89b5f4 优化 modelCurve 接口的调用时机,加上缓存,减少调用频率 2026-06-10 17:52:38 +08:00
eafonyang f3961cc72a Update project dependencies and configurations; remove deprecated package settings and enhance legacy build support
- Upgrade package manager to pnpm@11.5.2 and remove patched dependencies from package.json.
- Update pnpm-lock.yaml to reflect new dependency versions and remove obsolete entries.
- Refactor Vite configuration to improve legacy build handling, including new plugins for legacy CSS management.
- Remove unused client/index.html file and adjust paths in Vite config for better project structure.
- Enhance DesktopAIShell and EQPage components to support legacy build conditions and improve loading states for raw curves.
2026-06-09 14:24:30 +08:00
eafonyang ccc404b75a style(appShell): 优化应用外壳及底部导航样式与结构
- 在 tailwind 配置中添加应用外壳相关的 safelist 类名
- 替换 App.tsx 中应用外壳容器的类名,去除多余的内边距容器
- 在现代和遗留样式文件中新增移动端全屏、桌面居中列的样式规则
- 新增底部导航外层和内层的样式及响应式布局支持
- appShell.ts 中将样式类改为统一的 x8- 前缀类名
- BottomNav 组件使用新的样式类名以匹配样式调整
- Home 页面 ListRow 组件支持可选缩略图展示,增加界面展示丰富度
2026-06-03 11:52:57 +08:00
eafonyang 28aa90296f 增加兼容低版本内核的页面 2026-06-02 19:55:09 +08:00
yangy ccbafdd720 Refactor EQPage component to enhance PEQ preset management by introducing a local cache for presets, improving frequency normalization and display functions, and updating related state handling methods. Add real-time slider preview for better user experience. 2026-05-29 14:47:33 +08:00
yangy ce55be295a Update Vite configuration to deduplicate React and React-DOM; enhance DeviceContext with syncPeqCatalog method for improved PEQ state management; refactor LuxsinAPI to streamline PEQ filter updates; replace range input with ThumbOnlyRangeSlider in Home component for better user experience. 2026-05-28 15:18:17 +08:00
yangy e6b7dcc89c Refactor AIPage and EQPage components to use lazy loading with PageSuspense for improved performance; update vite.config.ts to adjust chunking strategy and increase chunk size warning limit for better handling of large libraries. 2026-05-27 18:07:36 +08:00
yangy b59a7bb583 修复bug 2026-05-27 15:10:04 +08:00
yangy fe2a0f6b3d Update locale files for English, Traditional Chinese, and Simplified Chinese to clarify volume confirmation prompts by removing references to "headphone" in descriptions, enhancing consistency and user understanding. 2026-05-27 10:50:45 +08:00
yangy 0c9e42b91c Enhance DeviceContext to fetch and manage PEQ state; update EQPage to synchronize PEQ catalog and improve headphone selection logic based on PEQ state changes. Refactor related functions for better state handling and synchronization. 2026-05-26 12:22:45 +08:00
yangy 8fcad50e7d Update locale files for English, Traditional Chinese, and Simplified Chinese to add new confirmation prompts for volume adjustments; refactor Home and EQPage components to integrate volume confirmation dialogs and enhance user interaction for setting volume levels. 2026-05-26 10:20:05 +08:00