Fix more stuff, particularly event handlers

This commit is contained in:
Jon Staab
2025-02-03 17:21:46 -08:00
parent 8d3433b167
commit 24045a7e2a
150 changed files with 424 additions and 392 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
children?: import("svelte").Snippet
}
let {children}: Props = $props()
const {children}: Props = $props()
const logout = () => pushModal(LogOut)
</script>
@@ -39,7 +39,7 @@
</SecondaryNavItem>
</div>
<div in:fly|local={{delay: 200}}>
<SecondaryNavItem class="text-error hover:text-error" on:click={logout}>
<SecondaryNavItem class="text-error hover:text-error" onclick={logout}>
<Icon icon="exit" /> Log Out
</SecondaryNavItem>
</div>
+1 -1
View File
@@ -123,7 +123,7 @@
{/snippet}
</Field>
<div class="mt-4 flex flex-row items-center justify-between gap-4">
<Button class="btn btn-neutral" on:click={reset}>Discard Changes</Button>
<Button class="btn btn-neutral" onclick={reset}>Discard Changes</Button>
<Button type="submit" class="btn btn-primary">Save Changes</Button>
</div>
</div>
+1 -1
View File
@@ -41,7 +41,7 @@
<p class="text-sm">
Built with 💜 by
<span class="text-primary">
@<Button on:click={openProfile} class="link">hodlbod</Button>
@<Button onclick={openProfile} class="link">hodlbod</Button>
</span>
</p>
<p class="text-xs">
+4 -4
View File
@@ -45,7 +45,7 @@
</div>
</div>
</div>
<Button class="center btn btn-circle btn-neutral -mr-4 -mt-4 h-12 w-12" on:click={startEdit}>
<Button class="center btn btn-circle btn-neutral -mr-4 -mt-4 h-12 w-12" onclick={startEdit}>
<Icon icon="pen-new-square" />
</Button>
</div>
@@ -68,7 +68,7 @@
{#snippet info()}
<p>
Your email and password can only be used to log into {PLATFORM_NAME}.
<Button class="link" on:click={startEject}>Start holding your own keys</Button>
<Button class="link" onclick={startEject}>Start holding your own keys</Button>
</p>
{/snippet}
</FieldInline>
@@ -85,7 +85,7 @@
<Icon icon="link-round" />
<input readonly class="ellipsize flex-grow" value={$session?.pubkey} />
</div>
<Button class="flex items-center" on:click={copyNpub}>
<Button class="flex items-center" onclick={copyNpub}>
<Icon icon="copy" />
</Button>
</label>
@@ -106,7 +106,7 @@
<label class="input input-bordered flex w-full items-center gap-2">
<Icon icon="link-round" />
<input readonly value={$session.secret} class="grow" type="password" />
<Button class="flex items-center" on:click={copyNsec}>
<Button class="flex items-center" onclick={copyNsec}>
<Icon icon="copy" />
</Button>
</label>
+6 -6
View File
@@ -72,14 +72,14 @@
<Button
class="tooltip flex items-center"
data-tip="Stop using this relay"
on:click={() => removeWriteRelay(url)}>
onclick={() => removeWriteRelay(url)}>
<Icon icon="close-circle" />
</Button>
</RelayItem>
{:else}
<p class="text-center text-sm">No relays found</p>
{/each}
<Button class="btn btn-primary mt-2" on:click={addWriteRelay}>
<Button class="btn btn-primary mt-2" onclick={addWriteRelay}>
<Icon icon="add-circle" />
Add Relay
</Button>
@@ -104,14 +104,14 @@
<Button
class="tooltip flex items-center"
data-tip="Stop using this relay"
on:click={() => removeReadRelay(url)}>
onclick={() => removeReadRelay(url)}>
<Icon icon="close-circle" />
</Button>
</RelayItem>
{:else}
<p class="text-center text-sm">No relays found</p>
{/each}
<Button class="btn btn-primary mt-2" on:click={addReadRelay}>
<Button class="btn btn-primary mt-2" onclick={addReadRelay}>
<Icon icon="add-circle" />
Add Relay
</Button>
@@ -137,14 +137,14 @@
<Button
class="tooltip flex items-center"
data-tip="Stop using this relay"
on:click={() => removeInboxRelay(url)}>
onclick={() => removeInboxRelay(url)}>
<Icon icon="close-circle" />
</Button>
</RelayItem>
{:else}
<p class="text-center text-sm">No relays found</p>
{/each}
<Button class="btn btn-primary mt-2" on:click={addInboxRelay}>
<Button class="btn btn-primary mt-2" onclick={addInboxRelay}>
<Icon icon="add-circle" />
Add Relay
</Button>