Commit Graph

13 Commits

Author SHA1 Message Date
97af24ab2b refactor(preload): use Proxy for auto IPC routing
Replace manual IPC method mapping with Proxy-based approach.
Method names now automatically route to IPC channels,
eliminating the need to update this file when adding new APIs.

- Uses Proxy to intercept property access
- Static properties (platform) handled separately
- Supports variable argument counts via rest parameters
2026-03-12 16:15:47 +08:00
4ae451fc73 fix ts 2026-03-12 15:59:54 +08:00
51ccd265ba remove spaces 2026-03-12 15:45:40 +08:00
cb6d3f7ee0 fix ts problem 2026-03-12 15:11:41 +08:00
7be6a3ff6a chore: add ESLint v9 config with typescript-eslint
- Add eslint.config.mjs with typescript-eslint integration
- Install typescript-eslint, @typescript-eslint/eslint-plugin, @typescript-eslint/parser
- Fix unused params warning in ipc-handlers.ts
2026-03-12 13:57:38 +08:00
0945d7f0b2 refactor(types): move shared types from renderer to shared directory
- Move type definitions from src/renderer/src/types/ to src/shared/types/
- Add @shared/* path alias to tsconfig.node.json and tsconfig.web.json
- Update all imports from @renderer/types/* to @shared/types/*
- Update AGENTS.md with new directory structure and path alias

This fixes architecture violation where main/preload processes imported
from renderer directory. Types are now properly shared across all processes.
2026-03-12 13:01:58 +08:00
1e9a01b6c1 use rest-api-client 2026-03-12 12:27:16 +08:00
d66dae74e8 fix ts type error 2026-03-12 12:24:34 +08:00
c903733f2c feat(domain): improve domain form UX
- Make name field optional (defaults to domain if empty)
- Simplify domain placeholder and error messages
- Add test connection button for credential validation before save
2026-03-12 12:07:33 +08:00
8b0805bebf fix(main): add safeStorage API compatibility check
- Check if getSelectedStorageBackend exists before calling (Electron 30+)
- Fallback to isEncryptionAvailable() for older Electron versions
- Add try-catch to prevent unhandled promise rejection
2026-03-12 11:03:50 +08:00
184919b562 fix(main): replace electron-store with native fs for ESM compatibility
- Remove electron-store dependency usage (ESM-only)
- Implement JSON file storage using native fs module
- Read/write config.json and secure.json directly
- Maintain same API for domain and version storage
2026-03-12 11:03:49 +08:00
da7f566ecf feat(core): implement Kintone Customize Manager core features
Wave 1 - Foundation:
- Add shared TypeScript type definitions (domain, kintone, version, ipc)
- Implement storage module with safeStorage encryption
- Implement Kintone REST API client with authentication
- Add IPC handlers for all features
- Expose APIs via preload contextBridge
- Setup Zustand stores for state management

Wave 2 - Domain Management:
- Implement Domain store with IPC actions
- Create DomainManager, DomainList, DomainForm components
- Connect UI components to store

Wave 3 - Resource Browsing:
- Create SpaceTree component for browsing spaces/apps
- Create AppDetail component for app configuration view
- Create CodeViewer component with syntax highlighting

Wave 4 - Deployment:
- Create FileUploader drag-and-drop component
- Create DeployDialog with step-by-step deployment flow
- Implement deployment IPC handler with auto-backup

Wave 5 - Version Management:
- Create VersionHistory component
- Implement version storage and rollback logic

Wave 6 - Integration:
- Integrate all components into main App layout
- Update main process entry point
- Configure TypeScript paths for renderer imports
2026-03-12 11:03:48 +08:00
ab7e9b597a init 2026-03-12 11:03:47 +08:00