kl
86c2b8d552
fix: retain original image titles when proxying previews
2026-10-08 13:02:39 +08:00
wylovelyi
6b948fa675
fix( #787 ): make the image-preview title actually derive from the original URL
...
Verified against the bundled viewer.min.js: the `title(image, imageData)` callback
receives the <img> element Viewer.js creates internally (view(): `var image =
document.createElement('img')`), NOT the original <div>. Viewer only forwards the
attributes listed in `inheritedAttributes` (default: crossOrigin, decoding, isMap,
loading, referrerPolicy, sizes, srcset, useMap) when building that <img>, and
`data-original-url` is not in that list. So the previous title function always read
null and the title stayed 'image' -- the fix was a no-op at runtime.
Fix: add `data-original-url` to Viewer's `inheritedAttributes` so the original URL is
forwarded from the thumbnail <img> to the title <img>, letting
`getImageNameFromOriginalUrl` return the real filename (and not the CORS-proxy URL).
Also updates PictureFilePreviewTests to assert `inheritedAttributes` is configured
with data-original-url, locking the regression.
2026-10-08 10:00:00 +00:00
wylovely
80b13dacba
fix( #787 ): derive Viewer title from data-original-url so image preview shows the filename (was empty for <div src>)
2026-09-24 15:27:12 +08:00
wylovely
d332dbed6a
fix( #787 ): derive Viewer title from data-original-url so image preview shows the filename (was empty for <div src>)
2026-09-24 15:27:10 +08:00
kl
cd127fd855
Merge pull request #783 from xushenl/fix/fix-ofd-preview-compatibility
...
fix(ofd):update cnofd viewer for OFD compatibility
2026-09-18 23:12:45 +08:00
木火
bf11e7d3c1
fix(ofd):update cnofd viewer for OFD compatibility
2026-08-27 21:51:03 +08:00
kl
dff27aed42
Merge pull request #782 from kekingcn/codex/fix-custom-watermark-settings
...
fix: 修复 PDF/Word 自定义水印设置不生效
2026-08-25 09:58:47 +08:00
kl
a199b4a7fe
fix: honor custom watermark settings in PDF preview
2026-08-25 08:39:11 +08:00
kl
c4288f7e59
Merge pull request #780 from kekingcn/release/5.0.2
...
Release v5.0.2
v5.0.2
2026-08-14 14:33:28 +08:00
kl
e2bcb67d43
chore(release): prepare v5.0.2
2026-08-14 14:28:41 +08:00
kl
69b234fda2
Merge commit from fork
...
Fix insecure default file deletion
2026-08-14 14:14:37 +08:00
kl
56eceebef8
Merge commit from fork
...
Sandbox HTML preview execution
2026-08-14 14:12:17 +08:00
kl
f852bf844b
fix: secure demo file deletion
2026-08-14 11:12:50 +08:00
kl
583208898f
fix: sandbox HTML preview execution
2026-08-14 11:12:50 +08:00
kl
9c3fd82076
Merge pull request #779 from kekingcn/pdf-jbig2-image-loss
...
fix: refresh ImageIO plugins before PDF conversion
2026-08-11 13:00:24 +08:00
kl
257180eb95
fix: refresh ImageIO plugins before PDF conversion
2026-08-11 12:54:50 +08:00
kl
e134689df3
Merge pull request #771 from kekingcn/release/5.0.1
...
Release v5.0.1
v5.0.1
2026-07-13 17:16:27 +08:00
kl
3a08031929
chore(release): prepare v5.0.1
2026-07-13 17:12:40 +08:00
kl
47745e4d74
Merge commit from fork
2026-07-13 16:53:58 +08:00
kl
332a98b6fa
Add security policy ( #770 )
2026-06-29 14:58:29 +08:00
Spencer.Chang
67c6ba3b13
Optimize LuckyExcel xlsx preview conversion with Web Worker ( #766 )
...
* Optimize LuckyExcel conversion with worker
* Fallback LuckyExcel worker errors to main thread
2026-06-29 11:20:50 +08:00
addwes7
3e16ed9d3b
Add Windows and macOS to CI build matrix and fix cross-platform issues ( #768 )
...
* Add Windows and macOS to CI build matrix and fix cross-platform issues
* run nightly e2e on ubuntu and prevent duplicate artifact upload
2026-06-26 11:38:15 +08:00
kl
32a887aa2c
fix: protect addTask with trust filters ( #767 )
2026-06-24 14:19:20 +08:00
gaoxingzaq
1f60e30f09
优化:区分 HTTP 错误,返回明确原因 ( #752 )
...
* 优化:区分 HTTP 错误,返回明确原因
* 修复 缓存关闭共享的 client,会导致后续请求失败
* 修复 缓存关闭共享的 client,会导致后续请求失败
---------
Co-authored-by: 高雄 <admin@cxcp.com >
2026-05-09 15:04:25 +08:00
Lanwood
4474ab1d57
fix(xlsx): 修复 LuckyExcel 解析数据校验时 matchType 未映射导致的崩溃 ( #730 )
...
* fix(xlsx): 修复 LuckyExcel 解析数据校验时 matchType 未映射导致的崩溃
* fix(xlsx): improve matchType handling in data verification logic
* fix(xlsx): simplify matchType mapping logic in LuckySheet class
---------
Co-authored-by: 何武德 <hewude@ruijie.com.cn >
2026-05-09 15:03:26 +08:00
kl
fd78fe9a6e
test/docs: adjust PDF sidebar config test for conditional default ( #756 )
2026-04-30 18:50:39 +08:00
kl
cdce432740
feat: make pdf sidebar default open configurable ( #755 )
2026-04-30 18:36:40 +08:00
陈精华
4ea1d7468a
Merge pull request #746 from gaoxingzaq/pdfjs2
...
pdf 添加跨域功能 修复pdf 页码和高亮没启用bug
2026-04-29 14:22:00 +08:00
高雄
4cf19d1dbe
优化结构 去掉JQ脚本 内置水印脚本
2026-04-25 08:45:22 +08:00
高雄
3abf864184
修复 pdf无法打印问题 修复pdf打印添加水印问题
2026-04-24 16:42:19 +08:00
陈精华
634babfba4
Merge pull request #751 from gaoxingzaq/redis22
...
修复redis报错
2026-04-21 19:06:55 +08:00
高雄
e7fe1afe19
修复:1、redis报错、统一了所有模式(单机、集群、主从、哨兵)的配置参数:都设置了 retryAttempts, retryInterval, timeout, connectTimeout, idleConnectionTimeout, 连接池大小等。3、地址自动补齐协议前缀:normalizeAddress() 方法自动添加 redis://,用户配置可以省略, 其他等等。
2026-04-21 14:08:16 +08:00
高雄
cd2abb4be1
修复反代后 绝对路径错误
2026-04-17 17:37:03 +08:00
高雄
dd803126dd
修复反代后 绝对路径错误
2026-04-16 17:32:09 +08:00
高雄
633e47b765
修复反代后 绝对路径错误
2026-04-16 17:26:41 +08:00
高雄
c52d80c123
修复水印和高亮 特殊符号会导致解析失败问题
2026-04-16 11:21:59 +08:00
高雄
ee2a27501b
pdf 添加跨域功能 修复pdf 页码和高亮没启用bug
2026-04-15 14:40:41 +08:00
kl
171762d676
Merge pull request #740 from kekingcn/release/5.0.0
...
Release 5.0.0
v5.0.0
2026-04-14 09:13:51 +08:00
kl
76e091900b
Complete 5.0.0 release notes from v4.4.0 diff
2026-04-14 09:07:18 +08:00
kl
bfa4ceab90
Document 5.0.0 default config changes
2026-04-14 09:04:43 +08:00
kl
b18cfa797a
Align release record page with 5.0.0
2026-04-14 09:02:29 +08:00
kl
8a117a41e8
Merge v5.0 notes into 5.0.0 release notes
2026-04-14 09:00:11 +08:00
kl
17ba41320e
Prepare 5.0.0 release
2026-04-14 08:57:01 +08:00
kl
476c0bfefc
Merge pull request #739 from kekingcn/paseo/ai-docs
...
Add AI-friendly repository guide
2026-04-14 08:13:52 +08:00
kl
1c6691d785
Clarify config defaults in AGENTS guide
2026-04-14 08:06:52 +08:00
kl
36ae290cb6
Add AI-friendly repository guide
2026-04-14 07:54:42 +08:00
kl
597715ce33
Merge pull request #738 from kekingcn/paseo/kkfileview
...
Refine archive preview and PDF defaults
2026-04-13 21:09:42 +08:00
kl
a8a08c1dcc
Address PR review feedback
2026-04-13 21:02:59 +08:00
kl
7757729efd
Refine archive preview and PDF defaults
2026-04-13 20:54:27 +08:00
kl
b246bfdac7
Merge pull request #737 from kekingcn/codex/fix-index-form-layout
...
fix: correct index preview form layout
2026-04-11 21:36:37 +08:00