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/FarmingContests.svelte | 62 ---------------------------------
 1 file changed, 62 deletions(-)
 delete mode 100644 src/lib/sections/FarmingContests.svelte

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

diff --git a/src/lib/sections/FarmingContests.svelte b/src/lib/sections/FarmingContests.svelte
deleted file mode 100644
index 8eef53d..0000000
--- a/src/lib/sections/FarmingContests.svelte
+++ /dev/null
@@ -1,62 +0,0 @@
-<script lang="ts">
-	import type { CleanMemberProfile } from '$lib/APITypes'
-	import Emoji from '$lib/Emoji.svelte'
-	import ListItemWithIcon from '$lib/ListItemWithIcon.svelte'
-	import { skyblockItemToUrl } from '$lib/minecraft/inventory'
-	import { skyblockTime } from '$lib/utils'
-
-	export let data: CleanMemberProfile
-
-	let cachedItemUrls: Record<string, string> = {}
-	function cachedSkyblockItemToUrl(item: string) {
-		if (!cachedItemUrls[item]) cachedItemUrls[item] = skyblockItemToUrl(item)
-		return cachedItemUrls[item]
-	}
-</script>
-
-<div class="info-text primary-info-text">
-	<p>Talked to Jacob: <Emoji value={data.member.farmingContests.talkedToJacob ? '✅' : '❌'} /></p>
-</div>
-<div class="farming-contests-list">
-	{#each data.member.farmingContests.list as farmingContest}
-		<div class="farming-contest">
-			<p class="farming-contest-date">
-				{new Date(
-					skyblockTime(farmingContest.year, farmingContest.month, farmingContest.day)
-				).toUTCString()}
-			</p>
-			<ul>
-				{#each farmingContest.crops as crop}
-					<ListItemWithIcon src={cachedSkyblockItemToUrl(crop.item)}>
-						<b>{crop.amount.toLocaleString()}</b> collected
-						{#if crop.position}
-							<span class="farming-contest-item-placement">
-								(#{crop.position}/{crop.participants})
-							</span>
-						{/if}
-					</ListItemWithIcon>
-				{/each}
-			</ul>
-		</div>
-	{/each}
-</div>
-
-<style>
-	p,
-	ul {
-		margin: 0;
-	}
-
-	.primary-info-text {
-		margin: 0.5em 0;
-	}
-
-	.info-text {
-		color: var(--theme-darker-text);
-	}
-
-	.farming-contest-item-placement,
-	.farming-contest-date {
-		color: var(--theme-darker-text);
-	}
-</style>
-- 
cgit 

