feat: 实现游戏核心功能与前端界面

- 添加游戏核心系统:战斗、任务、日志、随机数生成等
- 实现前端主界面、HUD、底部导航和各类卡片组件
- 添加用户认证系统与游戏存档持久化
- 配置项目基础架构与开发环境
- 补充文档说明与Docker部署支持
This commit is contained in:
2026-04-28 22:16:58 +08:00
parent 2e1b58bada
commit e783e6e533
124 changed files with 9759 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
if [ -z "${SESSION_SECRET:-}" ]; then
export SESSION_SECRET="$(node -e "process.stdout.write(require('node:crypto').randomBytes(32).toString('hex'))")"
echo "SESSION_SECRET not set. Generated a temporary secret for this container run." >&2
fi
node dist/scripts/migrate.js
exec node dist/src/server.js