1.0.4
PaperCraft v1.0.4
🐛 修复
- 重构入口文件从 src/main.ts 到根目录 main.ts(之前修复错文件了!)
- 移除所有 console.log 调试输出
- 移除 onunload 中的 detachLeavesOfType(Obsidian 审核要求)
- 移除所有 (x as any) 类型断言,改用类型安全的接口
- 添加 PaperCraftView.refresh() 公共方法
- ThemeApplier 解耦:使用 StyleHost 接口替代具体 plugin 类型
- SettingsTab: 添加类型安全的 cloneSettings() 辅助函数
- 修复 addCommand ID 不应包含 plugin ID 前缀
- README: 顶部添加醒目的英文描述
🔧 重构
- 删除未使用的 src/main.ts
- 修复 saveSettings、revealLeaf 等 Promise 的 await 处理
- 优化 (parent as any).collapsed 改用类型守卫
📦 安装方法
下载 main.js、manifest.json、styles.css 三个文件到 .obsidian/plugins/papercraft/ 目录