From 6b7eda750275445f0f6112363a87792fd5584da7 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 1 Jul 2022 16:23:13 -0500 Subject: Show player's sold auctions --- src/lib/sections/Auctions.svelte | 120 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 src/lib/sections/Auctions.svelte (limited to 'src/lib/sections') diff --git a/src/lib/sections/Auctions.svelte b/src/lib/sections/Auctions.svelte new file mode 100644 index 0000000..63fe4a7 --- /dev/null +++ b/src/lib/sections/Auctions.svelte @@ -0,0 +1,120 @@ + + + +
+ {#if showingSoldAuctions} + {#await fetchApi(`playerauctions/${data.member.uuid}`, fetch).then(r => r.json())} + Loading... + {:then auctions} + {#if auctions.length > 0} +
+ {#each auctions as auction} + {#if !onlyThisProfile || auction.sellerProfileUuid == data.profile.uuid} +
+
+ +
+ +

+ {removeFormattingCode(auction.item.display.name)} + x{auction.item.count} +

+ {#if auction.bin} + Bin + {/if} +
+

Coins: {auction.coins.toLocaleString()}

+

{millisecondsToTime(auction.creationTimestamp)} ago

+ Buyer: +
+
+ {/if} + {/each} +
+ {/if} + {/await} + {:else} + + {/if} +
+ + + + -- cgit