diff --git a/deploy/create_doctrine.sh b/deploy/create_doctrine.sh new file mode 100644 index 0000000..5e46fde --- /dev/null +++ b/deploy/create_doctrine.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +docker run \ + --volume .:/app \ + --rm \ + --interactive \ + --tty \ + php:8.3-cli \ + php /app/src/php/bin/doctrine.php orm:schema-tool:update --force \ No newline at end of file diff --git a/src/js/pages/index.ts b/src/js/pages/index.ts index 600609c..1b395c6 100644 --- a/src/js/pages/index.ts +++ b/src/js/pages/index.ts @@ -1,2 +1,193 @@ import '../../css/common/index.scss'; -import '../common/index'; \ No newline at end of file +import '../common/index'; + +import DataTable, {Api} from "datatables.net-bs5"; +import 'datatables.net-bs5/css/dataTables.bootstrap5.css'; + +const TABLE_AJAX_URL = '/api/dt/keys/available'; +const GAME_GET_URL = '/api/web/game'; +const CLAIM_URL = '/api/web/key/claim'; +function getDetailsHTML(gameData: Game): string +{ + let keyString = ''; + gameData.keys.forEach(key => { + keyString += ` +
Name | + +
---|