feat: 优化模板创建界面,添加编辑文件和目录功能,增强用户体验
This commit is contained in:
1 parent
d6d86e5042
commit
4367fd6ed1
3 files changed
+327
-86
No files matched your search
@@ -3,6 +3,7 @@
|
||||
## Project Overview
|
||||
|
||||
Vutron is a preconfigured template for developing cross-platform desktop applications using modern web technologies. The project combines:
|
||||
|
||||
- **Vite** as the build tool and development server
|
||||
- **Vue 3** with TypeScript for the user interface
|
||||
- **Electron** for creating desktop applications
|
||||
@@ -18,17 +19,20 @@ The template provides a ready-to-use development environment with hot-reload, cr
|
||||
The project follows the typical Electron architecture with three main processes:
|
||||
|
||||
### Main Process (`src/main/`)
|
||||
|
||||
- Handles application lifecycle
|
||||
- Manages windows and system integration
|
||||
- Located in `src/main/index.ts`
|
||||
- Also includes utilities, tray functionality, and IPC handlers
|
||||
|
||||
### Preload Process (`src/preload/`)
|
||||
|
||||
- Acts as an isolated bridge between main and renderer processes
|
||||
- Uses `contextBridge` to securely expose APIs to the renderer
|
||||
- Located in `src/preload/index.ts`
|
||||
|
||||
### Renderer Process (`src/renderer/`)
|
||||
|
||||
- Contains the Vue 3 application
|
||||
- Uses Vuetify for UI components
|
||||
- Located in `src/renderer/` with:
|
||||
@@ -42,10 +46,12 @@ The project follows the typical Electron architecture with three main processes:
|
||||
## Building and Running
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- Node.js >= 20.0.0
|
||||
- pnpm package manager (recommended)
|
||||
|
||||
### Development
|
||||
|
||||
```bash
|
||||
# Install dependencies
|
||||
pnpm install
|
||||
@@ -61,6 +67,7 @@ pnpm dev:debug:force
|
||||
```
|
||||
|
||||
### Building
|
||||
|
||||
```bash
|
||||
# Build for all platforms
|
||||
pnpm build:all
|
||||
@@ -78,6 +85,7 @@ pnpm build
|
||||
```
|
||||
|
||||
### Testing
|
||||
|
||||
```bash
|
||||
# Run Playwright tests
|
||||
pnpm test
|
||||
@@ -87,6 +95,7 @@ pnpm test:linux
|
||||
```
|
||||
|
||||
### Linting and Formatting
|
||||
|
||||
```bash
|
||||
# Check for linting issues
|
||||
pnpm lint
|
||||
@@ -153,7 +162,7 @@ pnpm format:fix
|
||||
|
||||
## Development Conventions
|
||||
|
||||
1. **Code Style**:
|
||||
1. **Code Style**:
|
||||
- Uses ESLint with TypeScript and Vue plugin
|
||||
- Formatted with Prettier
|
||||
- Follows Vue 3 Composition API with TypeScript
|
||||
@@ -185,6 +194,7 @@ pnpm format:fix
|
||||
## Internationalization
|
||||
|
||||
The application supports multiple languages with the following locale files:
|
||||
|
||||
- English (`en`)
|
||||
- Korean (`ko`)
|
||||
- Simplified Chinese (`zh-hans`)
|
||||
@@ -200,6 +210,7 @@ The application supports multiple languages with the following locale files:
|
||||
## Electron Integration
|
||||
|
||||
The application integrates with Electron features through:
|
||||
|
||||
- IPC communication for sending messages between processes
|
||||
- Native file dialog support
|
||||
- External link opening
|
||||
@@ -213,8 +224,11 @@ The project includes Playwright for end-to-end testing, with configuration in `p
|
||||
## Build Outputs
|
||||
|
||||
Building creates different distribution formats based on the platform:
|
||||
|
||||
- **macOS**: DMG installer for x64, arm64, and universal architectures
|
||||
- **Windows**: APPX, ZIP, Portable, and NSIS installers (x64)
|
||||
- **Linux**: SNAP, DEB, and RPM packages (x64)
|
||||
|
||||
Artifacts are named with the format `${productName} ${version}_${arch}.${ext}` and stored in the `release/${version}` directory.
|
||||
Artifacts are named with the format `${productName} ${version}_${arch}.${ext}` and stored in the `release/${version}` directory.
|
||||
|
||||
Always respond in 中文
|
||||
Reference in new issue
Block a user