feat: implement menu service for context menu management
feat: add provider API service for managing provider accounts and keys feat: create provider runtime sync service for agent runtime management feat: introduce script execution service for running automation scripts feat: develop script store service for managing script metadata and storage feat: implement theme service for managing application theme settings feat: add updater service for handling application updates feat: create window service for managing application windows and their states
This commit is contained in:
@@ -242,8 +242,8 @@ CSS变量和Tailwind样式自动应用新主题
|
||||
#### 1.1 核心组件
|
||||
| 组件 | 文件路径 | 功能描述 |
|
||||
|------|----------|---------|
|
||||
| **主题服务** | `electron/service/theme-service/index.ts` | 主题切换服务,处理IPC通信 |
|
||||
| **配置服务** | `electron/service/config-service/index.ts` | 配置存储管理,使用config.json文件 |
|
||||
| **主题服务** | `electron/service/theme-service.ts` | 主题切换服务,处理IPC通信 |
|
||||
| **配置服务** | `electron/service/config-service.ts` | 配置存储管理,使用config.json文件 |
|
||||
| **CSS变量系统** | `src/styles/theme/` | 包含light.css、dark.css、index.css |
|
||||
| **主题常量** | `src/lib/constants.ts` | 定义CONFIG_KEYS.THEME_MODE等常量 |
|
||||
| **样式入口** | `src/styles/index.css` | 导入主题样式 |
|
||||
@@ -317,8 +317,8 @@ zn-ai主题系统架构
|
||||
│ ├── Tailwind配置 (tailwind.config.js)
|
||||
│ └── 全局样式 (styles/index.css)
|
||||
├── 服务层
|
||||
│ ├── 主题服务增强 (electron/service/theme-service/)
|
||||
│ ├── 配置服务集成 (electron/service/config-service/)
|
||||
│ ├── 主题服务增强 (electron/service/theme-service.ts)
|
||||
│ ├── 配置服务集成 (electron/service/config-service.ts)
|
||||
│ └── IPC通信优化
|
||||
└── 持久化层
|
||||
├── 配置文件 (userData/config.json)
|
||||
@@ -489,7 +489,7 @@ module.exports = {
|
||||
|
||||
#### 3.5 主题服务增强
|
||||
```typescript
|
||||
// electron/service/theme-service/index.ts 增强
|
||||
// electron/service/theme-service.ts 增强
|
||||
import { ipcMain, BrowserWindow } from 'electron';
|
||||
import { IPC_EVENTS, CONFIG_KEYS } from '@lib/constants';
|
||||
import { ConfigService } from '../config-service';
|
||||
@@ -672,8 +672,8 @@ export class ThemeService {
|
||||
- `electron/api/routes/settings.ts` - 主进程API
|
||||
|
||||
### 2. zn-ai现有文件
|
||||
- `electron/service/theme-service/index.ts` - 现有主题服务
|
||||
- `electron/service/config-service/index.ts` - 配置服务
|
||||
- `electron/service/theme-service.ts` - 现有主题服务
|
||||
- `electron/service/config-service.ts` - 配置服务
|
||||
- `src/styles/theme/` - 现有CSS变量
|
||||
- `src/lib/constants.ts` - 主题相关常量
|
||||
|
||||
@@ -694,4 +694,4 @@ export class ThemeService {
|
||||
**文档版本**:v1.0
|
||||
**创建时间**:2026-04-08
|
||||
**最后更新**:2026-04-08
|
||||
**负责人**:zn-ai开发团队
|
||||
**负责人**:zn-ai开发团队
|
||||
|
||||
Reference in New Issue
Block a user