diff --git a/bun.lockb b/bun.lockb index c27c0af..be51bbb 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 08238bd..22865da 100644 --- a/package.json +++ b/package.json @@ -15,19 +15,21 @@ "@iconify/svelte": "^4.0.2", "@sveltejs/adapter-node": "^5.2.9", "@sveltejs/adapter-auto": "^3.3.1", - "@sveltejs/kit": "^2.8.4", + "@sveltejs/kit": "^2.8.5", "@sveltejs/vite-plugin-svelte": "^4.0.2", "prettier": "^3.4.1", "prettier-plugin-svelte": "^3.3.2", - "svelte": "^5.2.9", + "svelte": "^5.2.10", "svelte-check": "^4.1.0", "typescript": "^5.7.2", "vite": "^5.4.11" }, "dependencies": { - "@arx/utils": "git+ssh://git@git.arx-ccn.com:222/Arx/ts-utils#v0.0.4", + "@arx/utils": "git+ssh://git@git.arx-ccn.com:222/Arx/ts-utils", + "@gandlaf21/bc-ur": "^1.1.12", "@nostr-dev-kit/ndk": "^2.10.7", "@nostr-dev-kit/ndk-cache-dexie": "^2.5.8", - "@nostr-dev-kit/ndk-svelte": "^2.3.2" + "@nostr-dev-kit/ndk-svelte": "^2.3.2", + "qrcode": "^1.5.4" } } diff --git a/src/app.html b/src/app.html index 3d7a966..5f4d34a 100644 --- a/src/app.html +++ b/src/app.html @@ -4,7 +4,6 @@ - %sveltekit.head% diff --git a/src/components/AnimatedQRCode.svelte b/src/components/AnimatedQRCode.svelte new file mode 100644 index 0000000..be374ed --- /dev/null +++ b/src/components/AnimatedQRCode.svelte @@ -0,0 +1,41 @@ + + +{#if displayedData} + QR Code +{/if} + + \ No newline at end of file diff --git a/src/components/Dialog.svelte b/src/components/Dialog.svelte index 0b4a51b..e27beb8 100644 --- a/src/components/Dialog.svelte +++ b/src/components/Dialog.svelte @@ -4,7 +4,8 @@ let { open = $bindable(false), children, - onClose = $bindable(() => console.log('Closed')) + onClose = $bindable(() => { + }) } = $props(); let dialog: HTMLDialogElement; @@ -15,7 +16,7 @@ onClose()} + onclose={() => { open = false; onClose(); }} use:appendToBody >
@@ -62,6 +63,31 @@ width: 100%; padding: var(--spacing-md); + > :global(.title) { + position: fixed; + display: flex; + width: calc(100% + 2 * var(--spacing-md)); + margin: calc(var(--spacing-md) * -1); + padding: var(--spacing-md); + background: color-mix(in oklab, black 50%, var(--accent)); + z-index: 99999; + + > :global(.close-button) { + position: absolute; + top: var(--spacing-md); + right: calc( + var(--spacing-md) * 2 + 1.5rem + ); + } + + :global(& + *) { + margin-top: calc( + 1.5rem + + var(--spacing-md) * 3 + ); + } + } + > :global(*:not(:last-child)) { margin-bottom: var(--spacing-sm); } diff --git a/src/components/MailboxFolderItems.svelte b/src/components/MailboxFolderItems.svelte index 7842029..7a60191 100644 --- a/src/components/MailboxFolderItems.svelte +++ b/src/components/MailboxFolderItems.svelte @@ -119,7 +119,7 @@
{#if letter.stamps}
- + {letter.stamps} sats
{/if} @@ -148,7 +148,6 @@ moveFolderDialogOpen = false} >

Move Letters to Folder

Select a folder to move the selected letters to:

@@ -172,7 +171,7 @@ {#if letter.stamps}
- + {letter.stamps} sats
{/if} diff --git a/src/components/Tooltip.svelte b/src/components/Tooltip.svelte index de1ff2b..5683fa5 100644 --- a/src/components/Tooltip.svelte +++ b/src/components/Tooltip.svelte @@ -1,5 +1,6 @@