diff options
| author | Adam Soltys <[email protected]> | 2025-01-26 07:51:47 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-26 07:51:47 -0800 |
| commit | 38bcc3e6d10f203213eb5bc014f35e3736acf7a1 (patch) | |
| tree | 0d77bbe6e88de6119eb72dd416c237524dad1dd4 /src | |
| parent | 2d896f2fce81b51d9d8c117140ae5d14361f5814 (diff) | |
| download | coinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.tar.gz coinos-ui-38bcc3e6d10f203213eb5bc014f35e3736acf7a1.zip | |
hide nostr stuff
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/InvoiceData.svelte | 16 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.server.ts | 16 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.svelte | 42 |
3 files changed, 44 insertions, 30 deletions
diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte index 764e0327..8edc9257 100644 --- a/src/components/InvoiceData.svelte +++ b/src/components/InvoiceData.svelte @@ -1,7 +1,7 @@ <script> import Amount from "$comp/Amount.svelte"; - import { btc, f, sat, s, sats, types } from "$lib/utils"; + import { btc, copy, f, sat, s, sats, types } from "$lib/utils"; let { showQr, link, @@ -37,7 +37,11 @@ {#if invoice.type === types.liquid} <div class="flex justify-center p-4 shadow items-center gap-2"> - <iconify-icon noobserver icon="ph:warning-bold" width="48" class="text-warning" + <iconify-icon + noobserver + icon="ph:warning-bold" + width="48" + class="text-warning" ></iconify-icon> <div> <div class="my-auto text-xl text-center text-secondary"> @@ -50,8 +54,14 @@ {/if} {#if !showQr || txt.length <= 120} - <div class="break-all text-center text-secondary text-xl"> + <div + class="break-all text-center text-secondary text-xl flex gap-1 items-center justify-center" + > {txt} + + <button onclick={() => copy(txt)}> + <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + </button> </div> {/if} diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts index 70e7ebdb..e2ab51b1 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.server.ts +++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts @@ -7,12 +7,16 @@ export async function load({ depends, parent }) { const rates = await getRates(); const { subject, user } = await parent(); - const { follows, followers } = await get(`/${subject.pubkey}/count`); - let followList = new Promise((r) => r([])); - if (user) - followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch( - () => [], - ); + // const { follows, followers } = await get(`/${subject.pubkey}/count`); + // let followList = new Promise((r) => r([])); + // if (user) + // followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch( + // () => [], + // ); + + const followList = new Promise((r) => r([])); + const follows = []; + const followers = []; return { follows, followers, followList, rate: rates[subject.currency] }; } diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index 9536d330..afd94ab0 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -125,9 +125,9 @@ <iconify-icon noobserver icon="ph:qr-code-bold" width="32" ></iconify-icon> </div> - <a href={`/${subject.pubkey}/notes`}> - <iconify-icon noobserver icon="ph:note-bold" width="32"></iconify-icon> - </a> + <!-- <a href={`/${subject.pubkey}/notes`}> --> + <!-- <iconify-icon noobserver icon="ph:note-bold" width="32"></iconify-icon> --> + <!-- </a> --> </button> {#if subject.about} @@ -149,24 +149,24 @@ </div> {/if} - <div> - <div class="flex justify-center gap-2"> - <a - href={`/${subject.pubkey}/follows`} - data-sveltekit-preload-data="tap" - rel="nofollow" - ><b>{si(follows, 0, 0)}</b> - <span class="text-secondary">{$t("user.following")}</span></a - > - <a - href={`/${subject.pubkey}/followers`} - data-sveltekit-preload-data="tap" - rel="nofollow" - ><b>{si(followers, 0, 0)}</b> - <span class="text-secondary">{$t("user.followers")}</span></a - > - </div> - </div> + <!-- <div> --> + <!-- <div class="flex justify-center gap-2"> --> + <!-- <a --> + <!-- href={`/${subject.pubkey}/follows`} --> + <!-- data-sveltekit-preload-data="tap" --> + <!-- rel="nofollow" --> + <!-- ><b>{si(follows, 0, 0)}</b> --> + <!-- <span class="text-secondary">{$t("user.following")}</span></a --> + <!-- > --> + <!-- <a --> + <!-- href={`/${subject.pubkey}/followers`} --> + <!-- data-sveltekit-preload-data="tap" --> + <!-- rel="nofollow" --> + <!-- ><b>{si(followers, 0, 0)}</b> --> + <!-- <span class="text-secondary">{$t("user.followers")}</span></a --> + <!-- > --> + <!-- </div> --> + <!-- </div> --> {#if showDetails} <div class="space-y-5 pb-20"> |
