Commit Graph

5 Commits

Author SHA1 Message Date
DrSmoothl
6ca5a2939e fix: 重构 Radix UI 组件库配置,简化分组结构 2026-03-14 18:24:45 +08:00
DrSmoothl
58d16c6702 fix: 更新 Electron 配置,优化输入输出设置;精简多语言文件中的 ESLint 描述 2026-03-14 18:15:30 +08:00
DrSmoothl
51f2455ee1 将前端 TailwindCSS 版本从v3 升级到 v4 2026-03-14 18:11:37 +08:00
DrSmoothl
b5cc361ce9 feat(electron): add main process, preload, store, protocol, and type definitions
- Add ElectronAPI type definitions and runtime contract (isElectron guard)
- Add electron-store with backend connection data model
- Add centralized API base URL utility (api-base.ts)
- Implement app:// custom protocol with API proxy
- Implement preload script with full contextBridge API
- Complete main process: BrowserWindow config, IPC handlers, window controls
- Register app:// scheme as privileged for secure renderer access
2026-03-03 00:57:50 +08:00
DrSmoothl
e6862e227b feat(electron): scaffold electron-vite project structure
Initialize Wave 1 Electron integration with:
- electron v40.6.1, electron-vite v5.0.0, electron-builder v26.8.1
- Main entry point: electron/main/index.ts with app:// protocol registration
- Preload placeholder: electron/preload/index.ts for Wave 2 IPC
- electron.vite.config.ts with unified renderer chunk splitting strategy
- tsconfig.electron.json with ESNext module support
- Updated package.json with electron dependencies and scripts:
  - electron:dev, electron:build, electron:preview
- All original scripts (dev, build, test, etc) remain unchanged
- TypeScript compilation verified: tsc --noEmit passes
- Ready for Wave 2: IPC bridge and contextBridge exposure
2026-03-03 00:57:50 +08:00