release(main): 同步 dev 最新候选改动
Storage Persistence Guard / storage-persistence-audit (push) Has been cancelled
Client Quality Gates / Shared client and Web (push) Has been cancelled
Client Quality Gates / macOS Desktop (push) Has been cancelled
Client Quality Gates / Shared client and Web (pull_request) Has been cancelled
Client Quality Gates / macOS Desktop (pull_request) Has been cancelled
Storage Persistence Guard / storage-persistence-audit (pull_request) Has been cancelled

This commit is contained in:
Cheng Zhou
2026-07-16 17:15:50 +08:00
parent 32167fba02
commit d5279b124f
393 changed files with 51630 additions and 9711 deletions
+16 -7
View File
@@ -14,8 +14,13 @@ services:
file: docker-compose.yaml
service: backend-init
onlyoffice:
extends:
file: docker-compose.yaml
service: onlyoffice
frontend-dev:
image: node:20-alpine
image: node:22.13-alpine
container_name: ctms_frontend_dev
restart: always
working_dir: /app
@@ -25,16 +30,17 @@ services:
- |
set -e
lock_hash="$$(sha256sum package-lock.json | awk '{print $$1}')"
dependency_hash="$$lock_hash:$$(node --version)"
marker="node_modules/.ctms-package-lock.sha256"
missing_runtime_deps=0
for dep in @tauri-apps/api @tauri-apps/plugin-dialog @tauri-apps/plugin-fs @tauri-apps/plugin-opener; do
for dep in @tauri-apps/api @tauri-apps/plugin-dialog @tauri-apps/plugin-fs @tauri-apps/plugin-opener pdfjs-dist; do
if [ ! -d "node_modules/$$dep" ]; then
missing_runtime_deps=1
fi
done
if [ ! -f "$$marker" ] || [ "$$(cat "$$marker")" != "$$lock_hash" ] || [ "$$missing_runtime_deps" = "1" ]; then
if [ ! -f "$$marker" ] || [ "$$(cat "$$marker")" != "$$dependency_hash" ] || [ "$$missing_runtime_deps" = "1" ]; then
npm ci
printf '%s' "$$lock_hash" > "$$marker"
printf '%s' "$$dependency_hash" > "$$marker"
fi
npm run dev -- --host 0.0.0.0
environment:
@@ -50,7 +56,7 @@ services:
start_period: 5s
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
- frontend_node_modules_node22:/app/node_modules
depends_on:
- backend
networks:
@@ -68,14 +74,17 @@ services:
- ./frontend/public/favicon.ico:/usr/share/nginx/html/favicon.ico:ro
depends_on:
backend:
condition: service_started
condition: service_healthy
frontend-dev:
condition: service_healthy
networks:
- ctms_net
volumes:
frontend_node_modules:
frontend_node_modules_node22:
onlyoffice_data:
onlyoffice_lib:
onlyoffice_logs:
networks:
ctms_net: