Dieser Commit ist enthalten in:
Ursprung
72cf00934a
Commit
c5e2ad9426
@ -20,7 +20,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {t} from "astro-i18n";
|
import {t} from "astro-i18n";
|
||||||
import {statsRepo} from "@repo/stats.ts";
|
import {statsRepo} from "@repo/stats.ts";
|
||||||
import "@styles/table.css";
|
|
||||||
|
|
||||||
export let gamemode: string;
|
export let gamemode: string;
|
||||||
|
|
||||||
@ -36,11 +35,14 @@
|
|||||||
{:then data}
|
{:then data}
|
||||||
<div>
|
<div>
|
||||||
<table>
|
<table>
|
||||||
<tr class="font-bold">
|
<thead>
|
||||||
|
<tr>
|
||||||
<td>{t("elo.place")}</td>
|
<td>{t("elo.place")}</td>
|
||||||
<td>{t("elo.name")}</td>
|
<td>{t("elo.name")}</td>
|
||||||
<td>{t("elo.elo")}</td>
|
<td>{t("elo.elo")}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
{#each data as player, i (player.name)}
|
{#each data as player, i (player.name)}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{`${i + 1}.`}</td>
|
<td>{`${i + 1}.`}</td>
|
||||||
@ -48,9 +50,14 @@
|
|||||||
<td>{player.elo}</td>
|
<td>{player.elo}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{:catch error}
|
{:catch error}
|
||||||
<p>{error.message}</p>
|
<p>{error.message}</p>
|
||||||
{/await}
|
{/await}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import "../styles/table.css";
|
||||||
|
</style>
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren