v0.9.0 user and session management improvement, xterm.js addons
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
// FILE: lixenwraith/chess/internal/server/webserver/web/app.js
|
||||
// Game state management
|
||||
let gameState = {
|
||||
gameId: null,
|
||||
@ -681,6 +680,14 @@ function handleApiError(action, error, response = null) {
|
||||
statusMessage = 'Invalid Request';
|
||||
}
|
||||
break;
|
||||
case 403:
|
||||
serverStatus = 'healthy';
|
||||
if (action === 'move' || action === 'trigger computer move') {
|
||||
statusMessage = 'Slot Claimed';
|
||||
} else {
|
||||
statusMessage = 'Not Authorized';
|
||||
}
|
||||
break;
|
||||
case 404:
|
||||
serverStatus = 'healthy'; // Server is fine, game doesn't exist
|
||||
statusMessage = 'Game Not Found';
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
<!-- FILE: lixenwraith/chess/internal/server/webserver/web/index.html -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
/* FILE: lixenwraith/chess/internal/server/webserver/web/style.css */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
Reference in New Issue
Block a user