chore(webui): migrate vite to v8 toolchain

This commit is contained in:
CJACK
2026-04-06 00:28:36 +08:00
parent d9eee5fd2d
commit a608a4bd95
8 changed files with 552 additions and 1139 deletions

View File

@@ -163,7 +163,7 @@ cp config.example.json config.json
### 方式一:本地运行
**前置要求**Go 1.26+Node.js 20+(仅在需要构建 WebUI 时)
**前置要求**Go 1.26+Node.js `20.19+` 或 `22.12+`(仅在需要构建 WebUI 时)
```bash
# 1. 克隆仓库

View File

@@ -163,7 +163,7 @@ Recommended per deployment mode:
### Option 1: Local Run
**Prerequisites**: Go 1.26+, Node.js 20+ (only if building WebUI locally)
**Prerequisites**: Go 1.26+, Node.js `20.19+` or `22.12+` (only if building WebUI locally)
```bash
# 1. Clone

View File

@@ -9,7 +9,7 @@ Thanks for your interest in contributing to DS2API!
### Prerequisites
- Go 1.26+
- Node.js 20+ (for WebUI development)
- Node.js `20.19+` or `22.12+` (for WebUI development)
- npm (bundled with Node.js)
### Backend Development

View File

@@ -9,7 +9,7 @@
### 前置要求
- Go 1.26+
- Node.js 20+WebUI 开发时)
- Node.js `20.19+``22.12+`WebUI 开发时)
- npm随 Node.js 提供)
### 后端开发

View File

@@ -25,7 +25,7 @@ This guide covers all deployment methods for the current Go-based codebase.
| Dependency | Minimum Version | Notes |
| --- | --- | --- |
| Go | 1.26+ | Build backend |
| Node.js | 20+ | Only needed to build WebUI locally |
| Node.js | `20.19+` or `22.12+` | Only needed to build WebUI locally |
| npm | Bundled with Node.js | Install WebUI dependencies |
Config source (choose one):

View File

@@ -25,7 +25,7 @@
| 依赖 | 最低版本 | 说明 |
| --- | --- | --- |
| Go | 1.26+ | 编译后端 |
| Node.js | 20+ | 仅在需要本地构建 WebUI 时 |
| Node.js | `20.19+``22.12+` | 仅在需要本地构建 WebUI 时 |
| npm | 随 Node.js 提供 | 安装 WebUI 依赖 |
配置来源(任选其一):

1675
webui/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,10 +17,10 @@
"tailwind-merge": "^3.4.0"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^6.0.1",
"autoprefixer": "^10.4.24",
"postcss": "^8.5.6",
"tailwindcss": "^3.4.19",
"vite": "^5.0.0"
"vite": "^8.0.3"
}
}