Fixes and Upgrade to Astro 5
Some checks failed
SteamWarCI Build failed

This commit is contained in:
2025-01-20 23:04:34 +01:00
parent 628599f019
commit 36931aabb1
11 changed files with 618 additions and 603 deletions

View File

@@ -31,7 +31,7 @@
let request = getRequest();
function getRequest() {
return $statsRepo.getUserStats(user.id)
return $statsRepo.getUserStats(user.uuid)
}
</script>
@@ -46,5 +46,4 @@
{#if user.perms.includes("CHECK")}
<p>{t("dashboard.stats.checked", {checked: data.acceptedSchematics})}</p>
{/if}
{:catch error}
{/await}

View File

@@ -56,7 +56,7 @@
</div>
<div>
<h1 class="text-4xl font-bold">{t("dashboard.title", {name: user.name})}</h1>
<p>{t("dashboard.rank", {rank: t("home.prefix." + user.prefix)})}</p>
<p>{t("dashboard.rank", {rank: t("home.prefix." + (user.prefix || "User"))})}</p>
<Statistics {user} />
</div>
</div>

View File

@@ -22,7 +22,7 @@
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
import { OrbitControls } from "three/addons/controls/OrbitControls.js";
import {onDestroy, onMount} from "svelte";
import { CollectionEntry } from "astro:content";
import type { CollectionEntry } from "astro:content";
interface Props {
pub: CollectionEntry<"publics">;