From 054fe6ddee1ecbbf336c1ec9fbce08ebd0a54ebd Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Thu, 15 Dec 2022 18:22:09 -0600
Subject: fix mayor skin + move sections dir

---
 src/lib/sections/Leaderboards.svelte | 46 ------------------------------------
 1 file changed, 46 deletions(-)
 delete mode 100644 src/lib/sections/Leaderboards.svelte

(limited to 'src/lib/sections/Leaderboards.svelte')

diff --git a/src/lib/sections/Leaderboards.svelte b/src/lib/sections/Leaderboards.svelte
deleted file mode 100644
index 817f59a..0000000
--- a/src/lib/sections/Leaderboards.svelte
+++ /dev/null
@@ -1,46 +0,0 @@
-<script lang="ts">
-	import { fetchApi } from '$lib/api'
-
-	import type { CleanMemberProfile } from '$lib/APITypes'
-	import Emoji from '$lib/Emoji.svelte'
-	import { cleanId, formatNumberFromUnit } from '$lib/utils'
-
-	export let data: CleanMemberProfile
-</script>
-
-{#await fetchApi(`player/${data.member.uuid}/${data.profile.uuid}/leaderboards`, fetch).then( r => r.json() )}
-	Loading...
-{:then leaderboards}
-	{#if leaderboards.length > 0}
-		<ul>
-			{#each leaderboards as leaderboard}
-				<li class="leaderboard-item">
-					<a href="/leaderboard/{leaderboard.name}" class="leaderboard-item-anchor">
-						{leaderboard.positionIndex + 1}) <b>{cleanId(leaderboard.name)}</b>: {formatNumberFromUnit(
-							leaderboard.value,
-							leaderboard.unit ?? null
-						)}
-					</a>
-				</li>
-			{/each}
-		</ul>
-	{:else}
-		<p>This player isn't in any leaderboards. <Emoji value="😦" /></p>
-	{/if}
-{/await}
-
-<style>
-	.leaderboard-item-anchor {
-		color: inherit;
-	}
-	.leaderboard-item {
-		list-style-type: none;
-	}
-	ul {
-		padding-left: 0;
-		margin-top: 0.5em;
-	}
-	p {
-		margin: 0.5rem 0;
-	}
-</style>
-- 
cgit 

