Skip to content

Releases: NingYuanLee/dsh-image-viewer-pro

Release list

v0.1.3

Choose a tag to compare

@NingYuanLee NingYuanLee released this 18 Oct 10:55

0.1.3

Fixed

  • 聊天里的附件图 / read_image 结果在 DSH 中是以 blob: URL 渲染的,旧版把 blob: / data: 排除了,导致真实会话里图片仍走官方仅有「关闭」的预览;现在这些内容图都会被接管。
  • 标题优先取图片 alt(blob 图不再显示 UUID);data: 图隐藏「新标签打开」。
  • 跨域图片被 CORS 拒绝时:下载改为在新标签打开,复制退化为复制图片链接;同源请求仍带会话 cookie。
  • 图集按 DOM 节点而非 src 去重(重复图点第二张不再跳到第一张);链接内图片放行;带修饰键点击保持原生。
  • remote 服务改为 ctx.inject 懒注入;Host 无远程能力时查看器仍可用。
  • 缩放框 Esc 取消、Ctrl/Cmd+滚轮交还浏览器、旋转后重适配、resize 保留手动缩放;关窗中止下载并清理定时器。
  • 无障碍:弹层 aria-label 带文件名、图集计数 aria-live、Tab 焦点陷阱、关闭后焦点归还。
  • engines.dsh 收紧为 >=0.2.1-rc.2 <0.3.0-0;移除无用的 dsh.client.inject;Loader 行 id 与包名一致。

Added

  • screenshots.json(插件市场截图)、GitHub Actions(Node 20 / 22 / 24 测试)。
  • README 中英双语重写:Web / 桌面 profile 安装命令、覆盖范围、规范对齐、已知限制。
  • Release 预打包 tarball,可直接 dsh plugin add <tgz-url> 安装。

Verified

  • headless Chrome + CDP 实机验证:模块注册、blob / data: 图弹层、重复源图集、Esc 取消缩放、Ctrl+滚轮、链接放行全部通过,零控制台错误。

Install

dsh plugin --profile web add github:NingYuanLee/dsh-image-viewer-pro
# or the prebuilt tarball:
dsh plugin --profile web add https://github.com/NingYuanLee/dsh-image-viewer-pro/releases/latest/download/dsh-image-viewer-pro.tgz