feat: 导入改用原生对话框、新增 app-store 单元测试、修复窗口滚动

- handleImport 从 DOM <input> hack 改为 @tauri-apps/plugin-dialog 原生文件选择
- 新增 Rust read_text_file 命令读取文件内容,零外部依赖
- 新增 tests/unit/app-store.test.ts,25 个测试覆盖 CRUD/undo-redo/loadPaths/savePaths
- 修复 AppShell overflow-hidden 导致无法滚动窗口的问题

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 19:01:56 +08:00
parent 41008e9282
commit 775a570d31
6 changed files with 334 additions and 20 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ export function AppShell() {
</div>
<div
className="flex-1 overflow-hidden"
className="flex-1 overflow-auto"
onDragOver={(e) => { e.preventDefault(); e.dataTransfer.dropEffect = 'link'; }}
onDrop={(e) => {
e.preventDefault();