feat: Establish WebUI build process, update frontend assets, and add CI workflow.

This commit is contained in:
CJACK
2026-02-01 21:17:19 +08:00
parent ce0538fcd9
commit 1a842c28d1
12 changed files with 3477 additions and 277 deletions

22
scripts/build-webui.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# WebUI 构建脚本
# 用法: ./scripts/build-webui.sh
set -e
echo "🔨 Building WebUI..."
cd "$(dirname "$0")/../webui"
# 检查 node_modules
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
fi
# 构建
echo "🏗️ Running build..."
npm run build
echo "✅ WebUI built successfully!"
echo "📁 Output: static/admin/"