release(XZH-21): publish verified backend phase to main

Bring the XZH-21 backend closing delivering tree (content identical to
a60ea8d on verify/xzh-21, tested at 45/45 by automation) onto main, which
until now held only the empty init commit d45d191.

- note_history aligned to notes.version (V18), pre-save snapshot per version
- unified trash: inbox wired in, category delete migrates/cleans history
- planner batch tags scoped by kind, dashboard taskCounts.due same filter
- RSS restore notice states old articles are not restored
This commit is contained in:
xzh committed 2026-11-11 20:59:09 +08:00
1 parent d45d191640
commit e67c80f39a
169 files changed
+14052

No files matched your search

Executable
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
if [[ ! -f .env ]]; then
echo '请复制 .env.example 为 .env,并填写数据库及初始化账户配置。'
exit 1
fi
set -a
source .env
set +a
if [[ -z "${JAVA_HOME:-}" ]] && [[ -d /Applications/ServBay/package/openjdk/21/21.0.10/zulu-21.jdk/Contents/Home ]]; then
export JAVA_HOME=/Applications/ServBay/package/openjdk/21/21.0.10/zulu-21.jdk/Contents/Home
export PATH="$JAVA_HOME/bin:$PATH"
fi
if [[ ! -d frontend/node_modules ]]; then
npm --prefix frontend ci
fi
backend_pid=''
frontend_pid=''
cleanup() {
[[ -z "$backend_pid" ]] || kill "$backend_pid" 2>/dev/null || true
[[ -z "$frontend_pid" ]] || kill "$frontend_pid" 2>/dev/null || true
}
trap cleanup EXIT INT TERM
mvn -f backend/pom.xml spring-boot:run &
backend_pid=$!
npm --prefix frontend run dev &
frontend_pid=$!
wait "$backend_pid" "$frontend_pid"