重大改进:用原生 JSON 存储替换 electron-store

- 实现 SimpleStore 类,使用原生 fs 操作 JSON 文件
- 解决 "Cannot find module 'conf'" 的依赖问题
- 移除 electron-store 依赖,减少包体积
- 配置文件存储在 ~/.cc-switch/config.json
- 数据格式透明,便于备份和调试
- 修复 TypeScript 类型问题
- 测试通过:构建、打包、运行正常
This commit is contained in:
farion1231
2025-08-07 10:09:17 +08:00
parent 1688f88226
commit edc203a10b
3 changed files with 69 additions and 16 deletions

View File

@@ -30,7 +30,6 @@
"vite": "^5.0.0"
},
"dependencies": {
"electron-store": "^8.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},