thzxx
|
5b1caf046c
|
fix: shell.openExternal 添加协议白名单校验
仅允许 http/https 协议,阻止 javascript: 等潜在恶意链接。
|
2026-05-18 13:58:38 +08:00 |
|
thzxx
|
aac6a0b073
|
fix: 预览选择复制、关闭超时、链接跳转、监听器泄漏
1. 预览区无法选择复制 — #preview 添加 user-select: text
2. IPC 监听器重复注册 — 注册前先 removeAllListeners 防止堆叠
3. 关闭确认取消后 5s 超时仍强制关闭 — 新增 cancelClose IPC 清除超时
4. 预览区链接点击离开应用 — 拦截点击,通过 shell.openExternal 打开
5. 预览区链接光标样式 — .markdown-body a 添加 cursor: pointer
|
2026-05-18 13:55:02 +08:00 |
|
thzxx
|
5ff89edd2b
|
清理:移除未使用的 openFiles IPC、优化 setModified 避免每次按键重建标签 DOM
|
2026-05-18 13:31:14 +08:00 |
|
thzxx
|
78f787a2db
|
新增多标签页支持:Ctrl+T 新建、Ctrl+W 关闭、Ctrl+Tab 切换、拖拽多文件打开
|
2026-05-18 13:28:45 +08:00 |
|
thzxx
|
b613384030
|
修复:close超时保护、移除冗余变量、优化文件大小计算、去重formatBytes
|
2026-05-18 13:11:35 +08:00 |
|
thzxx
|
cb29c67f94
|
全面优化:暗色主题、文件监听、未保存提醒、滚动同步、分屏记忆、文件大小显示、删除死代码
|
2026-05-18 13:09:31 +08:00 |
|
thzxx
|
76e1699ee7
|
fix: resolve critical issues found in code review
- Fix marked.js v12 code highlighting (removed deprecated highlight option, use custom renderer.code)
- Fix open-file race condition (handle file association before window ready)
- Fix Tab key undo history (use execCommand/setRangeText instead of direct value assignment)
- Fix drag-drop file path tracking (use IPC readFile instead of FileReader)
- Fix CSP security (remove unsafe-inline from script-src)
- Improve scroll sync (line-based instead of percentage-based)
- Deduplicate file open dialog logic
- Fix .gitignore duplicate entry
|
2026-05-18 10:46:22 +08:00 |
|
thzxx
|
fda3e5987d
|
Initial commit: MarkLite Markdown Reader
|
2026-05-18 10:40:11 +08:00 |
|