Skip to content

Releases: sjrslh/dsh-ui-zoom

v0.4.4 · 包体瘦身

Choose a tag to compare

@sjrslh sjrslh released this 22 Oct 00:41

改动

  • npm 包不再包含 scripts/:测试只留在仓库里,由 CI 运行
  • 目的:目录站的静态分析会把 tarball 里的 readFileSync / new Function 记成 fs-read / dynamic-code 能力标签

安装

  • dsh plugin --profile desktop add dsh-ui-zoom
  • 离线:下载下方 dsh-ui-zoom-0.4.4.tgz

v0.4.3 · 首个 OIDC 发布

Choose a tag to compare

@sjrslh sjrslh released this 21 Oct 00:56

本次

  • 第一个通过 Trusted Publishing(GitHub Actions OIDC)发布的版本,没有任何 npm token 参与
  • npm 上带 SLSA Provenance:https://registry.npmjs.org/-/npm/v1/attestations/dsh-ui-zoom@0.4.3

安装

  • dsh plugin --profile desktop add dsh-ui-zoom
  • 离线:下载下方 dsh-ui-zoom-0.4.3.tgz

v0.4.2

Choose a tag to compare

@sjrslh sjrslh released this 21 Oct 00:56

发布流程

  • 新增 publish.yml:推 v* tag 时由 GitHub Actions 用 OIDC 发布到 npm(Provenance 签名)
  • CI 覆盖 Node 18/20/22/24,并跑 zoom.test.mjs
  • README 增加 npm 徽章与反馈段落;开启 Discussions,新增 issue 表单

v0.4.1 · npm 首发

Choose a tag to compare

@sjrslh sjrslh released this 21 Oct 00:16

新增

  • 首次发布到 npm:dsh plugin --profile web add dsh-ui-zoom 现在可用
  • package.json 补 repository / homepage / bugs,npm 页面能正常解析相对图片
  • README 的演示 GIF 改用绝对地址,npm 与 GitHub 都能显示

安装

  • npm:dsh plugin --profile desktop add dsh-ui-zoom
  • 离线:下载下方 dsh-ui-zoom-0.4.1.tgz

v0.4.0 · 蓝色小鲸鱼的缩放插件

Choose a tag to compare

@sjrslh sjrslh released this 20 Oct 23:40

新增

  • Ctrl + = / Ctrl + - 快捷键,和 Ctrl + 0、Ctrl + 滚轮同一套节流与边界
  • 打包产物 dsh-ui-zoom-0.4.0.tgz,可以离线安装:dsh plugin --profile desktop add ./dsh-ui-zoom-0.4.0.tgz

文档

  • README 重写:功能特性、和其他缩放方案的对比、四种安装方式与选择建议、常见问题
  • 新增英文说明 README.en.md 与 CHANGELOG.md

说明

  • 缩放逻辑与 v0.3.2 一致,没有行为变更
  • 安装:dsh plugin --profile desktop add github:sjrslh/dsh-ui-zoom

v0.3.2

Choose a tag to compare

@sjrslh sjrslh released this 19 Oct 10:50

修复

  • 缩放后把消息列表滚到底、继续滚会把整个 DSH 界面推走 / 上移。zoom 作用在 <html> 上会放大根盒子,文档因此多出一截可滚动区;内层列表触底后滚轮链到文档滚动器。现在缩放期间锁住根滚动,100% 时把 <html>/<body> 原来的内联样式原样还原,应用自己的滚动容器不受影响。

改进

  • getBoundingClientRect() 的垫片返回真正的 DOMRect(之前是普通对象,instanceof DOMRect 会失败)。
  • 取 getter 时沿原型链查找,描述符不在对象自身时也能打上垫片。
  • 新增 scripts/zoom.test.mjs:覆盖 150% 下的 innerWidth / innerHeight / clientWidth / clientHeight / getBoundingClientRect / clientX,以及停用插件后样式与度量完整还原。

安装:dsh plugin --profile web add github:sjrslh/dsh-ui-zoom

v0.3.1

Choose a tag to compare

@sjrslh sjrslh released this 19 Oct 10:45

修复

  • 缩放后,内层列表滚到底部再继续滚动时,整个 DSH 界面会被推走 / 上移。
    原因:zoom 作用在 <html> 上会把根盒子按比例放大,文档因此多出一截可滚动区域;内层滚到底后滚轮链到文档滚动器。
    现在缩放期间锁住根滚动(html { overflow: hidden } + overscroll-behavior: none),100% 时释放;应用内部的滚动不受影响。

安装:dsh plugin --profile web add github:sjrslh/dsh-ui-zoom

v0.3.0

Choose a tag to compare

@sjrslh sjrslh released this 18 Oct 15:55

Layout-consistent zoom.

  • Zoom stays renderer-only: CSS zoom on <html> plus a metric shim that divides the values DSH lays out with — window.innerWidth/innerHeight, Element.clientWidth/clientHeight, getBoundingClientRect(), MouseEvent.clientX/clientY — by the zoom factor.
  • That keeps the composer, model picker and reasoning-effort menus in place from 60% to 180%; the shim is removed at 100%.
  • Ctrl+0 resets, the level is remembered in localStorage.
  • No host route and no Electron API, so it works in the desktop app and in plain dsh web.

Install:

dsh plugin --profile web add github:sjrslh/dsh-ui-zoom

v0.2.0

Choose a tag to compare

@sjrslh sjrslh released this 18 Oct 07:54

Native zoom.

  • Zoom now goes through Electron's webContents.setZoomFactor via the host route /dsh-ui-zoom/zoom.
  • CSS zoom is gone: it pushed the composer, model picker and reasoning-effort panel outside the viewport above 100%.
  • Plain dsh web reports supported:false and leaves Ctrl+wheel to the browser.
  • 60%–180%, 10% per step, Ctrl+0 resets, the level is remembered.

Install:

dsh plugin --profile web add github:sjrslh/dsh-ui-zoom

v0.1.0

Choose a tag to compare

@sjrslh sjrslh released this 18 Oct 07:04

First release.

  • Ctrl + wheel page zoom, 60%–180%, remembered across restarts
  • Ctrl + 0 resets to 100%
  • Bottom-right Settings entry that opens the host settings panel

Install from GitHub:

dsh plugin --profile web add github:sjrslh/dsh-ui-zoom