From 3e7f4613c7133b3de17e785b8b8461355ef807c6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 12 Sep 2025 10:06:03 -0700 Subject: bounty update --- src/routes/(static)/bounties/+page.server.ts | 34 ++++++++++++++++++++++++---- src/routes/(static)/bounties/+page.svelte | 6 ++--- 2 files changed, 32 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/routes/(static)/bounties/+page.server.ts b/src/routes/(static)/bounties/+page.server.ts index c9d872b0..8378e2f2 100644 --- a/src/routes/(static)/bounties/+page.server.ts +++ b/src/routes/(static)/bounties/+page.server.ts @@ -1,10 +1,36 @@ import { get } from "$lib/utils"; export const load = async () => { const users = [ - { username: "fustler", merchant: "rrdrive", type: "Bakery" }, - { username: "laluna", merchant: "butchersguild", type: "Butcher Shop" }, - { username: "ica547", merchant: "vanlove", type: "Sushi Restaurant" }, - { username: "reverendhodl", merchant: "laughingbean", type: "Cafe" }, + { + username: "fustler", + merchant: "rrdrive", + type: "Bakery", + amount: 1000000, + }, + { + username: "laluna", + merchant: "butchersguild", + type: "Butcher Shop", + amount: 1000000, + }, + { + username: "ica547", + merchant: "vanlove", + type: "Sushi Restaurant", + amount: 1000000, + }, + { + username: "reverendhodl", + merchant: "laughingbean", + type: "Cafe", + amount: 1000000, + }, + { + username: "kimsrepair", + merchant: "kimsrepair", + type: "Kims Repair", + amount: 100000, + }, ]; for (const user of users) { diff --git a/src/routes/(static)/bounties/+page.svelte b/src/routes/(static)/bounties/+page.svelte index db7a012b..695eae3e 100644 --- a/src/routes/(static)/bounties/+page.svelte +++ b/src/routes/(static)/bounties/+page.svelte @@ -7,10 +7,8 @@ let { users } = data; let bounties = [ - "Clothing Store", "Hardware Store", "Gas Station", - "Shoe Repair", "Dollar Store", "Book Store", "Gift Shop", @@ -71,7 +69,7 @@

Previously Awarded

- {#each users as { user, merchant, type }} + {#each users as { user, merchant, type, amount }}
@@ -117,7 +115,7 @@ class="text-yellow-300" /> - {s(1000000, "en-CA")} + {s(amount, "en-CA")}
-- cgit v1.2.3