diff --git a/README.md b/README.md index 9d0cfca..f773b7a 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,19 @@ A simple website that displays the leaderboard of the GGWP match. The leaderboard can be updated by the admin using a nice control panel. +### Features + +- Made using [Astro](https://astro.build/) with the NodeJS adapter for the endpoints + +- Admins can create various matches and update the leaderboard using the control panel + +- The leaderboard is displayed in a nice table with the player's name, score + +- The leaderboard is updated in real-time using simple server-sent events + +- The database is SQLite with a rooms table that has a `data` column that stores the public JSON + data of the match. + ## Development Install the dependencies: diff --git a/src/components/AdminLogin.tsx b/src/components/AdminLogin.tsx index be2b631..d9c469d 100644 --- a/src/components/AdminLogin.tsx +++ b/src/components/AdminLogin.tsx @@ -16,7 +16,7 @@ export const AdminLogin = ({}) => { return (
-

Accedi al pannello di controllo di una stanza

+

Accedi al pannello di controllo di una gara

{ return (
-

Crea una nuova stanza

+

Crea una nuova gara

setRoomName(e.currentTarget.value)} /> @@ -189,7 +189,7 @@ export const NewRoom = ({}) => { ) } > - Crea Stanza + Crea Gara
) diff --git a/src/pages/[room]/admin.astro b/src/pages/[room]/admin.astro index 82cd0b1..23e5c60 100644 --- a/src/pages/[room]/admin.astro +++ b/src/pages/[room]/admin.astro @@ -7,7 +7,7 @@ import { AdminPage } from '@/components/AdminPage' const { room } = Astro.params if (!room) { - return Astro.redirect('/error?msg=' + encodeURIComponent(`Devi specificare una stanza`)) + return Astro.redirect('/error?msg=' + encodeURIComponent(`Devi specificare una gara`)) } if (Astro.cookies.has('sid')) { diff --git a/src/pages/[room]/index.astro b/src/pages/[room]/index.astro index 916ad20..0fdaa13 100644 --- a/src/pages/[room]/index.astro +++ b/src/pages/[room]/index.astro @@ -4,7 +4,7 @@ import { LiveLeaderboard } from '@/components/LiveLeaderboard' const { room } = Astro.params if (!room) { - return Astro.redirect('/error?msg=' + encodeURIComponent(`Devi specificare una stanza`)) + return Astro.redirect('/error?msg=' + encodeURIComponent(`Devi specificare una gara`)) } ---