Feat: Add splash layer (#29)

Add splash layer, support game start, settings, exit
Modify settings layer, add "go back to splash" and "exit"
Add character threshold for history input
Closes #28
This commit is contained in:
4thfever
2026-01-13 22:00:23 +08:00
committed by GitHub
parent 224e3e76f0
commit 0d34b27fff
9 changed files with 460 additions and 9 deletions

View File

@@ -45,5 +45,13 @@ export const systemApi = {
startGame(config: GameStartConfigDTO) {
return httpClient.post<{ status: string; message: string }>('/api/game/start', config);
},
shutdown() {
return httpClient.post<{ status: string; message: string }>('/api/control/shutdown', {});
},
resetGame() {
return httpClient.post<{ status: string; message: string }>('/api/control/reset', {});
}
};