Copy FEN to clipboard from the endgame view (#33)

* display fen string under engame data and add hook to copy to clipboard

* split seed data across files
This commit is contained in:
2026-11-03 12:00:35 +01:00
committed by GitHub
parent a5bb1cb670
commit dd060531d3
6 changed files with 104 additions and 26 deletions
+2
View File
@@ -25,10 +25,12 @@ import { LiveSocket } from "phoenix_live_view";
import { hooks as colocatedHooks } from "phoenix-colocated/chesstrainer";
import topbar from "../vendor/topbar";
import { ChessBoard } from "./hooks/chessBoard";
import { CopyFen } from "./hooks/copyFen"
let Hooks = {
...colocatedHooks,
ChessBoard,
CopyFen
};
const csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content");