Repository navigation
v1.7.0:启动与首屏提速、Linux 行情条与主题修复 - #38
Merged
Merged
Conversation
- 图区去掉固定 420px 高度,改由详情面板 flex 分配;副图按图区高度 28%(48–80px)重设,并随窗口 resize 同步 - StockDetail 改为确定高度 clamp(240px, 52vh, 560px),IndexDetail 改为 min(560px, 100vh - 160px),副图不再被 overflow:hidden 裁掉 - 矮视口(max-height: 820px)收紧摘要卡、盘口行高与详情内边距,把空间让给图表
- 新增 useEscapeKey:面板挂载期间监听 Escape,输入法组合中不触发,卸载即摘除 - 两个详情面板接入;补充 spec 与 CLAUDE.md 覆盖说明
- 数据源解析不再把涨跌额截到分(ETF/LOF/可转债最小变动价位是 0.001),改留 4 位压浮点噪声 - 新增 getQuotePrecision:ETF/LOF 固定 3 位,其余沿用值自适配;自选表最新价与涨跌额两列统一使用 - 补充 format 与腾讯解析的测试用例
- 共享 client 用 .no_proxy() 构建:它只访问 NO_PROXY 名单内的境内接口 - 适配器不再保存 client,改为请求时惰性获取,避免代理设置隐式依赖启动顺序
- 7 个本地端口并行探测、150ms 超时;串行 connect_timeout 在防火墙静默丢包的机器上每个都要等满 1 秒 - 探测与调度器启动移到 main.show() 之后,窗口不再等待约 300ms;仍保持「先探测、后调度器」 - 更正代理探测的 Safety 注释与过期说明
- thin LTO + codegen-units=1 + opt-level=s + strip:实测 exe 18.9 MiB → 13.0 MiB(-31%),release 编译 +33% - 不加 panic=abort:后台轮询任务依赖 panic 隔离
- StockDetail/IndexDetail/SettingsPage 改 defineAsyncComponent,klinecharts 移出首屏(首屏 JS 约 -30%) - 空闲时预取 chunk;详情加载占位与面板同高,避免切换时跳动 - 设置页补 loading/error 兜底与自动重试,chunk 失败不再白屏
缺少 connect-src 时 invoke 会先 fetch 失败再退回 postMessage,日志里出现成串 IPC custom protocol failed
- 行情条底板从 body 挪到 #app:Linux/GTK 会把非 resizable 窗口的 min/max 尺寸提示钉死,setSize 只能撑大、收不回内容高度,底部多出 一截;同时修掉底板色被 variables.css 的全局 body 规则覆盖成 surface-0 的问题。Linux 上放开 resizable,并说明代价。 - Windows 上关闭行情条原生的无边框阴影:DWM 的 1px 白边会从透明 圆角处露出来;关掉后按配置尺寸收一次窗口,避免启动时闪一帧更大 的底板。 - Linux 上 tao 把 set_theme(None) 实现成强制浅色而不是跟随系统, 深色桌面上应用永远渲染浅色(#35)。system 模式改为解 pin → 从 portal 读回系统值 → 设回去,并用 THEME_PINNED 记住本进程是否 pin 过,启动时不再重复查询 portal。
- vue 3.5.45、vite 6.4.5、vitest 4.1.12:补丁与安全修复 - @lucide/vue 1.69.0、klinecharts 10.1.0:导出对比无删除 - @vitejs/plugin-vue 6.0.10、happy-dom 21.0.4 - vue-tsc 3.3.14:顺带修 minimatch 公告,npm audit 归零
- rusqlite 0.31 -> 0.41:所用 API 未变,沿用 bundled SQLite - dirs 5 -> 7:仅使用 data_dir(),语义不变 - windows 0.61 -> 0.62:store 构建的 IAsyncOperation::get() 改为 join() - 一并升级 calamine 0.38、rust_xlsxwriter 0.102 及补丁级 crate
tao 在 Linux 上把 set_theme(None) 实现成 set_gtk_application_prefer_dark_theme(false),而 window.theme() 读系统值 要走一次阻塞的 portal 调用 —— 这中间 WebKitGTK 已经按浅色重绘了一帧, 从显式主题切到跟随系统时就会闪一下白(#37)。 system 模式改为先用 dbus 直接读 xdg-desktop-portal,再 set_theme(Some(..)), 不再经过 None;只有 portal 不可用时才退回旧路径。dbus 本来就在 Linux 的 依赖树里(tao 的 dbus feature),声明为直接依赖不增加编译量。
tray-icon 在 Windows 上默认 menu_on_left_click = true,左键抬起后 会先派发 click 事件再 TrackPopupMenu。显示主窗口那次菜单被新获得的 前台焦点顶掉,看不出来;隐藏那次只调 window.hide(),焦点没变,菜单 就留在屏幕上。改为 show_menu_on_left_click(false),菜单只由右键触发。
- 新增 v1.7.0 更新说明 - 同步 package、Cargo、Tauri 配置与 README 版本号到 1.7.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概要
新增
优化
修复
其他
🤖 Generated with Claude Code