feat: add board functionality with articles and comments

- Implemented BoardView for creating and displaying articles with comments.
- Added NationAffairsView for managing national policies and financial settings.
- Created ScoutMessageView for editing recruitment messages.
- Introduced database migrations for board_post and board_comment tables.
This commit is contained in:
2026-01-28 14:44:15 +00:00
parent 87fe1edae1
commit bebb0de3c4
17 changed files with 2847 additions and 0 deletions
+6
View File
@@ -5,6 +5,9 @@ export interface GameApiConfig {
port: number;
trpcPath: string;
eventsPath: string;
uploadPath: string;
uploadDir: string;
uploadPublicUrl: string | null;
profile: string;
scenario: string;
profileName: string;
@@ -34,6 +37,9 @@ export const resolveGameApiConfigFromEnv = (env: NodeJS.ProcessEnv = process.env
port: parseNumberWithFallback(env.GAME_API_PORT, 14000, 'GAME_API_PORT'),
trpcPath: env.GAME_TRPC_PATH ?? env.TRPC_PATH ?? '/trpc',
eventsPath: env.GAME_API_EVENTS_PATH ?? '/events',
uploadPath: env.GAME_UPLOAD_PATH ?? '/uploads',
uploadDir: env.GAME_UPLOAD_DIR ?? 'uploads',
uploadPublicUrl: env.GAME_UPLOAD_PUBLIC_URL ?? null,
profile,
scenario,
profileName,