mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user