diff --git a/package-lock.json b/package-lock.json index 00a9236..a5cef87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16195,16 +16195,16 @@ } }, "node_modules/typescript": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz", - "integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=12.20" + "node": ">=4.2.0" } }, "node_modules/unbox-primitive": { diff --git a/server.js b/server.js index 4f9f015..1473381 100644 --- a/server.js +++ b/server.js @@ -1,3 +1,5 @@ +import packageJSON from './package.json' with { type: "json" } + import { textFromBoard } from './src/logic.js' import { Board } from './src/backend.js'; @@ -9,6 +11,10 @@ const port = process.env.PORT || 4001; const app = express(); +app.get('/status', (req, res) => { + res.send('OK. Version: ' + packageJSON.version + '\n') +}) + const server = http.createServer(app); const io = new Server(server, { diff --git a/src/index.css b/src/index.css index f26200b..f98973e 100644 --- a/src/index.css +++ b/src/index.css @@ -37,8 +37,8 @@ ol, ul { @media (orientation:landscape) { .game-board .square { - height: 11vh; - width: 11vh; + height: 10vh; + width: 10vh; } .demo-board .square { diff --git a/src/index.js b/src/index.js index 439b69b..833e447 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,7 @@ import Board from './components/Board.js'; import './index.css'; -const ENDPOINT = process.env.REACT_APP_QUICKCHESS_API || "https://api.quickchess.win"; +const ENDPOINT = process.env.REACT_APP_QUICKCHESS_API || "https://quickchess-api.sagev.space"; class NameForm extends React.Component { constructor(props) {