New Code Editor and fun

This commit is contained in:
2023-12-03 19:31:29 +01:00
parent 2abe554059
commit fbd52f3edb
53 changed files with 1330 additions and 489 deletions

View File

@@ -0,0 +1,19 @@
<script lang="ts">
import {statsRepo} from "./repo/repo.ts";
import FightStatsChart from "./FightStatsChart.svelte";
import {t} from "astro-i18n";
let request = getStats();
function getStats() {
return $statsRepo.getFightStats();
}
</script>
{#await request}
<p>{t("status.loading")}</p>
{:then stats}
<FightStatsChart data={stats} />
{:catch error}
<p>error: {error}</p>
{/await}