thzxx
|
c773a0d8e6
|
chore: 文件大小限制调整为20MB
|
2026-05-18 17:36:41 +08:00 |
|
thzxx
|
21d7b2da9f
|
fix: BOM处理、异步读取、10MB文件限制、滚动同步精度优化
|
2026-05-18 17:33:09 +08:00 |
|
thzxx
|
1a5ec08728
|
fix: marked兼容、保存竞态、关闭死锁、XSS防护、行号虚拟化、CSP加固
|
2026-05-18 17:23:26 +08:00 |
|
thzxx
|
addf8e4dd1
|
fix: save写入失败时恢复文件监听、窗口销毁安全检查、暗色主题跟随系统偏好
|
2026-05-18 15:50:05 +08:00 |
|
thzxx
|
65451b938c
|
fix: 防御性检查补全
- openFileInTab 增加 isDestroyed() 前置检查
- open-file handler 增加 isDestroyed() 检查
- window:forceClose 增加 isDestroyed() 检查
- close handler 使用 isClosing 防止重入
- cancelClose 重置 isClosing 允许再次关闭
|
2026-05-18 15:24:01 +08:00 |
|
thzxx
|
5428beb6db
|
fix: 单实例锁,双击md文件在已有窗口打开
- 添加 requestSingleInstanceLock() 防止重复启动
- second-instance 事件中提取文件路径,转发给已有窗口
- 复用 getFilePathFromArgs() 解析命令行参数
|
2026-05-18 15:10:28 +08:00 |
|
thzxx
|
07989db28e
|
feat: 限制只能打开 md/txt 文件,新建文件仅保存为 md
- 打开对话框移除「所有文件」选项
- 保存对话框移除 .txt 选项
- 拖拽打开增加扩展名过滤
- 浏览器降级路径同步过滤
|
2026-05-18 14:16:34 +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
|
ffb925c690
|
修复:移除 startWatching 中残留的 isModifiedExternally 引用(运行时 ReferenceError)
|
2026-05-18 13:12:59 +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
|
1d76a81ffa
|
移除原生菜单栏
|
2026-05-18 12:41:16 +08:00 |
|
thzxx
|
c573266670
|
fix: resolve did-finish-load race condition, remove unused import
- Move did-finish-load listener before loadFile() to prevent missing the event
- Remove unused nativeImage import
|
2026-05-18 10:51:38 +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 |
|