chore : bump all packages versions

This commit is contained in:
GuillaumeSD
2024-12-29 00:01:08 +01:00
parent 2db361e2f6
commit 0b8d0ad780
10 changed files with 2112 additions and 1149 deletions

View File

@@ -3,7 +3,7 @@ import { useEffect, useState } from "react";
export const useScreenSize = () => {
const [screenSize, setScreenSize] = useState({
width: document?.querySelector(".MuiGrid-root")?.clientWidth ?? 500,
height: window?.innerHeight - 120 ?? 500,
height: window ? window.innerHeight - 120 : 500,
});
useEffect(() => {

View File

@@ -118,7 +118,7 @@ export const moveLineUciToSan = (
try {
const move = game.move(uciMoveParams(moveUci));
return move.san;
} catch (e) {
} catch {
return moveUci;
}
};

View File

@@ -65,10 +65,8 @@ export default function GameDatabase() {
width: 200,
headerAlign: "center",
align: "center",
valueGetter: (params) =>
`${params.row.white.name ?? "Unknown"} (${
params.row.white.rating ?? "?"
})`,
valueGetter: (_, row) =>
`${row.white.name ?? "Unknown"} (${row.white.rating ?? "?"})`,
},
{
field: "result",
@@ -83,10 +81,8 @@ export default function GameDatabase() {
width: 200,
headerAlign: "center",
align: "center",
valueGetter: (params) =>
`${params.row.black.name ?? "Unknown"} (${
params.row.black.rating ?? "?"
})`,
valueGetter: (_, row) =>
`${row.black.name ?? "Unknown"} (${row.black.rating ?? "?"})`,
},
{
field: "eval",
@@ -95,7 +91,7 @@ export default function GameDatabase() {
headerAlign: "center",
align: "center",
width: 100,
valueGetter: (params) => !!params.row.eval,
valueGetter: (_, row) => !!row.eval,
},
{
field: "openEvaluation",
@@ -169,7 +165,6 @@ export default function GameDatabase() {
columns={columns}
disableColumnMenu
hideFooter={true}
autoHeight={true}
localeText={gridLocaleText}
initialState={{
sorting: {

View File

@@ -24,7 +24,7 @@ export default function GameRecap() {
if (game.isInsufficientMaterial()) return "Draw by insufficient material";
if (game.isStalemate()) return "Draw by stalemate";
if (game.isThreefoldRepetition()) return "Draw by threefold repetition";
if (game.isDraw()) "Draw by fifty-move rule";
if (game.isDraw()) return "Draw by fifty-move rule";
return "You resigned";
};