You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+48-25Lines changed: 48 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,10 @@ RiSA is an Electron-based desktop application for RSA encryption and decryption
16
16
### Key Components
17
17
-**Settings Management**: Uses `electron-store` for persistent settings with GUI configuration panel
18
18
-**RSA Operations**: Implemented using `node-rsa` library in the main process
19
+
-**Chain Builder**: Sequential operation system for complex workflows (encoding, encryption, HTTP parsing)
20
+
-**HTTP Parser**: URL template-based parsing and building with reusable templates
19
21
-**IPC Communication**: Defined channels in `src/shared/constants.ts` for secure process communication
20
-
-**State Management**: React Context API for settings state across the renderer process
22
+
-**State Management**: React Context API for settings, chains, keys, history, and HTTP templates
21
23
22
24
### Project Structure
23
25
```
@@ -34,30 +36,35 @@ src/
34
36
35
37
### Prerequisites
36
38
- Uses `pnpm` as package manager
37
-
-Requires Node.js and Electron dependencies
39
+
- Node.js 18+ and Electron dependencies required
38
40
39
41
### Building and Development
40
42
```bash
41
43
# Install dependencies
42
44
pnpm install
43
45
44
-
# Development mode (needs to be set up)
45
-
NODE_ENV=development pnpm run dev
46
+
# Development mode (runs both main and renderer processes)
47
+
pnpm run dev
46
48
47
-
# Build for production
49
+
# Build for production (builds main, renderer, and preload)
48
50
pnpm run build
49
51
50
-
# TypeScript compilation
52
+
# Build individual components
53
+
pnpm run build:main # Main process only
54
+
pnpm run build:renderer # Renderer process only
55
+
pnpm run build:preload # Preload script only
56
+
57
+
# Run built application
58
+
pnpm run start
59
+
60
+
# Package for distribution
61
+
pnpm run package # All platforms
62
+
pnpm run package:mac # macOS only
63
+
64
+
# TypeScript type checking
51
65
pnpm exec tsc --noEmit
52
66
```
53
67
54
-
### Current Development Status
55
-
The project is in early development with basic structure set up. Missing components include:
56
-
- Build scripts in package.json
57
-
- Settings page implementation
58
-
- Key manager page implementation
59
-
- Webpack build configuration for both main and renderer processes
60
-
61
68
## Technical Notes
62
69
63
70
### TypeScript Configuration
@@ -69,7 +76,10 @@ The project is in early development with basic structure set up. Missing compone
69
76
All communication between main and renderer processes goes through predefined IPC channels defined in `src/shared/constants.ts`. The main process handles:
0 commit comments