feat: add Monaco editor, API error handling, and CI/CD
Build and Deploy / build (push) Failing after 32s
Build and Deploy / docker (push) Has been skipped
Build and Deploy / deploy (push) Has been skipped

- Monaco Editor: script editor with syntax highlighting
- API: error handling with ApiError class and token management
- CI/CD: Gitea Actions workflow for build, Docker, and deploy
- Docker: multi-stage build with nginx
- nginx.conf: SPA fallback and API proxy
This commit is contained in:
2026-07-20 17:00:21 +00:00
parent 2f76060c39
commit 6ffa2ecdfb
9 changed files with 686 additions and 197 deletions
+17 -21
View File
@@ -1,25 +1,21 @@
version: '3.8'
services:
baihu:
build:
context: .
dockerfile: docker/Dockerfile
frontend:
image: git.viaeon.com/admin/taskpool-react:latest
ports:
- "8052:8052"
volumes:
- ./data:/app/data
- ./configs:/app/configs
- ./envs:/app/envs
- "3000:80"
depends_on:
- backend
restart: unless-stopped
backend:
image: git.viaeon.com/admin/taskpool:latest
environment:
- TZ=Asia/Shanghai
# 以下环境变量可覆盖配置文件(可选)
# - BH_SERVER_PORT=8052
# - BH_SERVER_HOST=0.0.0.0
# - BH_DB_TYPE=mysql
# - BH_DB_HOST=localhost
# - BH_DB_PORT=3306
# - BH_DB_USER=root
# - BH_DB_PASSWORD=password
# - BH_DB_NAME=baihu
# - BH_DB_TABLE_PREFIX=baihu_
# - BH_SECRET=your_secret_key
- DB_TYPE=sqlite
- DB_PATH=/data/taskpool.db
volumes:
- ./data:/data
ports:
- "8080:8080"
restart: unless-stopped