From e36cd96dc66c41d272073f48bd63cd55f9206e71 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 28 Aug 2025 09:07:31 -0700 Subject: log referer --- src/routes/(static)/login/+page.server.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/routes/(static)') diff --git a/src/routes/(static)/login/+page.server.ts b/src/routes/(static)/login/+page.server.ts index a24abd07..ffe6335d 100644 --- a/src/routes/(static)/login/+page.server.ts +++ b/src/routes/(static)/login/+page.server.ts @@ -11,6 +11,7 @@ export const load = async ({ parent }) => { export const actions = { login: async ({ cookies, request }) => { + console.log(request.headers.get('referer')); const form = await fd(request); let { username, password, token, loginRedirect } = form; const user = { username, password, token }; -- cgit v1.2.3 From ff676c80fb7e7056a9d0178c6d4ddc1c060ff8cc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 8 Sep 2025 10:47:57 -0700 Subject: show registration failure --- src/routes/(static)/register/+page.server.ts | 2 +- src/routes/(static)/register/+page.svelte | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/routes/(static)') diff --git a/src/routes/(static)/register/+page.server.ts b/src/routes/(static)/register/+page.server.ts index 44aa69d3..cddd97ea 100644 --- a/src/routes/(static)/register/+page.server.ts +++ b/src/routes/(static)/register/+page.server.ts @@ -20,6 +20,6 @@ export const actions = { if (loginRedirect === "undefined") loginRedirect = undefined; const user = { picture, username, password }; - await register(user, ip, cookies, loginRedirect); + return register(user, ip, cookies, loginRedirect); }, }; diff --git a/src/routes/(static)/register/+page.svelte b/src/routes/(static)/register/+page.svelte index 43cafe6e..edb63de1 100644 --- a/src/routes/(static)/register/+page.svelte +++ b/src/routes/(static)/register/+page.svelte @@ -263,9 +263,10 @@ - {#if form?.error} + {#if form?.error || form?.message}
- {form.error} + {form?.message} + {form?.error}
{/if} -- cgit v1.2.3 From 71f72613f2540fbe3ee1e68a2fb9a29c6f52b7c3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 9 Sep 2025 14:58:59 -0700 Subject: daisy fixes --- src/app.css | 99 +++++++++++--------------- src/routes/(app)/settings/nostr/+page.svelte | 38 +++++----- src/routes/(app)/settings/profile/+page.svelte | 4 +- src/routes/(static)/login/+page.svelte | 2 +- src/routes/(static)/register/+page.svelte | 2 +- 5 files changed, 66 insertions(+), 79 deletions(-) (limited to 'src/routes/(static)') diff --git a/src/app.css b/src/app.css index c04131bd..fca47b23 100644 --- a/src/app.css +++ b/src/app.css @@ -1,50 +1,59 @@ +/* 1) Load Tailwind first */ @import "tailwindcss"; @tailwind base; @tailwind components; @tailwind utilities; - -@font-face { - font-family: "PublicSans"; - src: url("/fonts/Public_Sans/static/PublicSans-Regular.ttf") - format("truetype"); +/* 2) Register DaisyUI themes */ +@plugin "daisyui" { + themes: lofi --default, black --prefersdark; } -html { - font-family: PublicSans, sans-serif; +@plugin "daisyui/theme" { + name: "lofi"; + default: true; + --gradient: #C3CFE2; + --color-error: #b91c1c; } -::selection { - color: black; - background: #eaf2ff; +@plugin "daisyui/theme" { + name: "black"; + prefersdark: true; + --gradient: #C3CFE2; + --color-secondary: #CCC; + --color-error: #f87171; } -:fullscreen { - background-color: white; -} +/* 3) Tell Tailwind which layers we’ll @apply from */ +@reference utilities; +@reference components; -input:not([type="range"]) { - @apply input +/* 4) Now your custom CSS that uses @apply */ +.btn-menu { + @apply flex justify-center items-center bg-base-100 p-2 rounded-full + w-12 h-12 sm:w-16 sm:h-16 drop-shadow-xl; } -.input { - @apply input-lg input-primary; +@font-face { + font-family: "PublicSans"; + src: url("/fonts/Public_Sans/static/PublicSans-Regular.ttf") format("truetype"); } -textarea { - @apply textarea textarea-lg textarea-primary; -} +html { font-family: PublicSans, sans-serif; } -select { - @apply select select-lg select-primary; -} +::selection { color: black; background: #eaf2ff; } +:fullscreen { background-color: white; } -input:not([type="range"]), textarea, select, .input { - @apply w-full rounded-2xl; -} +/* Note: @apply-ing DaisyUI component classes requires components reference */ +.input { @apply input-lg input-primary h-16 px-4; } + +/* If you want to *turn* native inputs into DaisyUI inputs via @apply: */ +input:not([type="range"]) { @apply input input-lg input-primary h-16 px-4; } +textarea { @apply textarea textarea-lg textarea-primary py-4; } +select { @apply select select-lg select-primary h-16 px-4; } -textarea:focus, textarea:focus-within, .input:focus, .input:focus-within { - @apply outline-offset-0; +input:not([type="range"]), textarea, select, .input { + @apply rounded-2xl w-full; } input.clean, textarea.clean { @@ -56,33 +65,11 @@ input.clean, textarea.clean { box-shadow: none !important; } -.btn { - @apply rounded-2xl btn-lg btn-block outline-none -} - -@plugin "daisyui" { - themes: light --default, dark --prefersdark; -} - -@plugin "daisyui/theme" { - name: "light"; - default: true; - - --gradient: #C3CFE2; - --color-error: #b91c1c; - --color-primary: #000; - --color-secondary: #111; -} - -@plugin "daisyui/theme" { - name: "dark"; - prefersdark: true; - - --gradient: #C3CFE2; - --color-primary: #FFF; - --color-secondary: #CCC; - --color-error: #f87171; -} +button { cursor: pointer !important; } +.btn { @apply rounded-2xl btn-lg btn-block outline-none h-16 cursor-pointer; } -:root, [data-theme="dark"] { +@layer components { + :where(input, textarea, select, .input, .textarea, .select) { + outline-offset: 0 !important; + } } diff --git a/src/routes/(app)/settings/nostr/+page.svelte b/src/routes/(app)/settings/nostr/+page.svelte index 421b590a..9129e8f3 100644 --- a/src/routes/(app)/settings/nostr/+page.svelte +++ b/src/routes/(app)/settings/nostr/+page.svelte @@ -163,25 +163,25 @@
{$t("user.nostrPubkey")}
-
- -
- - - - + +
+
+ + + + +
diff --git a/src/routes/(app)/settings/profile/+page.svelte b/src/routes/(app)/settings/profile/+page.svelte index ec9855d0..3b7de9d3 100644 --- a/src/routes/(app)/settings/profile/+page.svelte +++ b/src/routes/(app)/settings/profile/+page.svelte @@ -116,7 +116,7 @@ > handleFile(e, "picture")} /> @@ -158,7 +158,7 @@ > handleFile(e, "banner")} /> diff --git a/src/routes/(static)/login/+page.svelte b/src/routes/(static)/login/+page.svelte index 1a1f745c..825f6a88 100644 --- a/src/routes/(static)/login/+page.svelte +++ b/src/routes/(static)/login/+page.svelte @@ -124,7 +124,7 @@

{$t("login.signIn")}

{#if form?.error && !form?.message.includes("2fa")} diff --git a/src/routes/(static)/register/+page.svelte b/src/routes/(static)/register/+page.svelte index edb63de1..b0368d47 100644 --- a/src/routes/(static)/register/+page.svelte +++ b/src/routes/(static)/register/+page.svelte @@ -222,7 +222,7 @@

{$t("login.createAccount")}

handleFile(e, "picture")} /> -- cgit v1.2.3 From f4b1f2609cfebe402b3af8c499fd49d3d69fd2fb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 10 Sep 2025 13:22:36 -0700 Subject: test protocol handler link --- src/routes/(static)/docs/+page.svelte | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/routes/(static)') diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index f53787e5..cdc9bc0d 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -169,4 +169,7 @@
+ + Test + Bitcoin link
-- cgit v1.2.3 From b111ddf7e9bb087da4458f5a16feef748a8226b6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 10 Sep 2025 13:44:54 -0700 Subject: test protocol handler link --- src/routes/(static)/docs/+page.svelte | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/routes/(static)') diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index cdc9bc0d..ce139a63 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -172,4 +172,11 @@ Test Bitcoin link +
+
+
+ Bitcoin link 2 +
+
+
-- cgit v1.2.3 From 92f6d0173be74c38b3eddb7133411de8f7714dd5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 10 Sep 2025 13:45:50 -0700 Subject: test protocol handler link --- src/routes/(static)/docs/+page.svelte | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/routes/(static)') diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index ce139a63..cb6bc932 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -179,4 +179,9 @@


+ Bitcoin link 3 +
+
+
+ Bitcoin link 4 -- cgit v1.2.3 From 99ae30548d7bd400f7c17932d04c1326f83047e9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 10 Sep 2025 15:56:12 -0700 Subject: revert tests --- src/routes/(static)/docs/+page.svelte | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/routes/(static)') diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index cb6bc932..f53787e5 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -169,19 +169,4 @@ - - Test - Bitcoin link -
-
-
- Bitcoin link 2 -
-
-
- Bitcoin link 3 -
-
-
- Bitcoin link 4 -- cgit v1.2.3 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/routes/(static)') 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