Add how to create token

This commit is contained in:
2023-12-14 21:07:31 +01:00
parent 2286c6a3eb
commit ecb906e614
21 changed files with 130 additions and 18 deletions

View File

@@ -20,7 +20,7 @@
<script lang="ts">
import type {Player} from "../types/data.ts";
import {statsRepo} from "../repo/repo.ts";
import {t} from "astro-i18n"
import {astroI18n, t} from "astro-i18n"
export let user: Player;
@@ -34,7 +34,10 @@
{#await request}
<p>{t("status.loading")}</p>
{:then data}
<p>Playtime: {data.playtime}h</p>
<p>Playtime: {new Intl.NumberFormat(astroI18n.locale, {
minimumFractionDigits: 2,
maximumFractionDigits: 2
}).format(data.playtime)}h</p>
<p>Fights: {data.fights}</p>
{#if user.perms.includes("CHECK")}
<p>Schematics Checked: {data.acceptedSchematics}</p>