diff options
| author | Adam Soltys <[email protected]> | 2026-03-02 22:37:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-02 22:37:05 -0800 |
| commit | 11d358ad0412b794ecf89b4da9f99ac41ed9c3fe (patch) | |
| tree | 61808f5d31df326ad7c3d459e16d4f6085368ad0 /src/routes/(app)/account | |
| parent | c0da099aa48f6bbc168159293bfae9e60daffeda (diff) | |
| download | coinos-ui-11d358ad0412b794ecf89b4da9f99ac41ed9c3fe.tar.gz coinos-ui-11d358ad0412b794ecf89b4da9f99ac41ed9c3fe.zip | |
inline icons
Diffstat (limited to 'src/routes/(app)/account')
| -rw-r--r-- | src/routes/(app)/account/[id]/+page.svelte | 15 | ||||
| -rw-r--r-- | src/routes/(app)/account/[id]/seed/+page.svelte | 6 | ||||
| -rw-r--r-- | src/routes/(app)/account/ark/+page.svelte | 3 | ||||
| -rw-r--r-- | src/routes/(app)/account/bitcoin/+page.svelte | 6 | ||||
| -rw-r--r-- | src/routes/(app)/account/new/+page.svelte | 3 | ||||
| -rw-r--r-- | src/routes/(app)/account/seed/+page.svelte | 3 |
6 files changed, 24 insertions, 12 deletions
diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte index 3880d715..a5aacca5 100644 --- a/src/routes/(app)/account/[id]/+page.svelte +++ b/src/routes/(app)/account/[id]/+page.svelte @@ -1,4 +1,9 @@ <script lang="ts"> + import CryptocurrencyColorBtc from "virtual:icons/cryptocurrency-color/btc"; + import PhLightningFill from "virtual:icons/ph/lightning-fill"; + import PhEyeBold from "virtual:icons/ph/eye-bold"; + import PhTrashBold from "virtual:icons/ph/trash-bold"; + import PhWarningBold from "virtual:icons/ph/warning-bold"; import { page } from "$app/stores"; import Numpad from "$comp/Numpad.svelte"; import Toggle from "$comp/Toggle.svelte"; @@ -139,7 +144,7 @@ {#if account.type === "ark"} <img src="/images/ark.png" class="w-8 h-8 rounded-full object-cover bg-neutral" alt="Ark" /> {:else if seed} - <iconify-icon noobserver icon="cryptocurrency-color:btc" width="32"></iconify-icon> + <CryptocurrencyColorBtc width="32" /> {:else} <img src="/images/icon.png" class="w-8 h-8" alt="Coinos" /> {/if} @@ -199,7 +204,7 @@ <label for="threshold" class="font-bold mb-1 block">{$t("user.settings.threshold")}</label> <button type="button" class="flex w-full" onclick={editThreshold}> <div class="p-4 border rounded-2xl rounded-r-none border-r-0 bg-base-200"> - <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon> + <PhLightningFill class="text-yellow-300" /> </div> <div class="border-l-0 rounded-l-none pl-2 w-full p-4 border rounded-2xl text-left"> {threshold} @@ -218,7 +223,7 @@ <div class="space-y-2"> {#if seed || account.type === "ark"} <button onclick={() => goto(`/account/${id}/seed`)} type="button" class="btn"> - <iconify-icon noobserver icon="ph:eye-bold" width="32"></iconify-icon> + <PhEyeBold width="32" /> <div class="my-auto">{$t("accounts.viewMnemonic")}</div> </button> {/if} @@ -250,7 +255,7 @@ {#if seed || account.type === "ark"} <button onclick={() => (showDeleteConfirm = true)} type="button" class="btn"> - <iconify-icon noobserver icon="ph:trash-bold" width="32" class="text-error"></iconify-icon> + <PhTrashBold width="32" class="text-error" /> <div class="my-auto">{$t("accounts.deleteAccount")}</div> </button> {/if} @@ -304,7 +309,7 @@ onkeydown={(e) => e.key === "Escape" && (showDeleteConfirm = false)} > <div class="bg-base-100 rounded-2xl p-6 max-w-sm w-full space-y-4 text-center" role="none" onclick={(e) => e.stopPropagation()}> - <iconify-icon noobserver icon="ph:warning-bold" width="48" class="text-error"></iconify-icon> + <PhWarningBold width="48" class="text-error" /> <h2 class="text-xl font-semibold">{$t("accounts.deleteAccount")}</h2> <p class="text-secondary">{$t("accounts.deleteConfirm")}</p> <div class="flex gap-2"> diff --git a/src/routes/(app)/account/[id]/seed/+page.svelte b/src/routes/(app)/account/[id]/seed/+page.svelte index 3b7f8c56..b31a3102 100644 --- a/src/routes/(app)/account/[id]/seed/+page.svelte +++ b/src/routes/(app)/account/[id]/seed/+page.svelte @@ -1,4 +1,6 @@ <script lang="ts"> + import PhCopyBold from "virtual:icons/ph/copy-bold"; + import PhArrowLeftBold from "virtual:icons/ph/arrow-left-bold"; import { page } from "$app/stores"; import Mnemonic from "$comp/Mnemonic.svelte"; import { goto } from "$app/navigation"; @@ -69,13 +71,13 @@ <Mnemonic {mnemonic} /> <button onclick={() => copy(mnemonic as string)} type="button" class="btn"> - <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + <PhCopyBold width="32" /> <div class="my-auto">{$t("accounts.copy")}</div> </button> {/if} <button onclick={() => goto(`/account/${id}`)} type="button" class="btn btn-primary"> - <iconify-icon noobserver icon="ph:arrow-left-bold" width="32"></iconify-icon> + <PhArrowLeftBold width="32" /> <div class="my-auto">{$t("accounts.back")}</div> </button> </div> diff --git a/src/routes/(app)/account/ark/+page.svelte b/src/routes/(app)/account/ark/+page.svelte index 61360782..3d200070 100644 --- a/src/routes/(app)/account/ark/+page.svelte +++ b/src/routes/(app)/account/ark/+page.svelte @@ -1,4 +1,5 @@ <script lang="ts"> + import PhFingerprintBold from "virtual:icons/ph/fingerprint-bold"; import { onMount } from "svelte"; import { t } from "$lib/translations"; import Spinner from "$comp/Spinner.svelte"; @@ -121,7 +122,7 @@ </button> {/if} <button type="button" class="btn btn-accent" onclick={unlockWithPasskey}> - <iconify-icon noobserver icon="ph:fingerprint-bold" width="24"></iconify-icon> + <PhFingerprintBold width="24" /> {$t("accounts.unlockWithPasskey")} </button> <a href={`/${user.username}`}> diff --git a/src/routes/(app)/account/bitcoin/+page.svelte b/src/routes/(app)/account/bitcoin/+page.svelte index e856d397..fd4afd81 100644 --- a/src/routes/(app)/account/bitcoin/+page.svelte +++ b/src/routes/(app)/account/bitcoin/+page.svelte @@ -1,4 +1,6 @@ <script lang="ts"> + import PhFilePlusBold from "virtual:icons/ph/file-plus-bold"; + import PhFolderOpenBold from "virtual:icons/ph/folder-open-bold"; import { t } from "$lib/translations"; </script> @@ -9,7 +11,7 @@ <a href="/account/seed" class="block"> <div class="card card-side shadow shadow-base-300 p-8 hover:bg-base-200"> <figure class="w-20 flex items-center justify-center"> - <iconify-icon noobserver icon="ph:file-plus-bold" width="64"></iconify-icon> + <PhFilePlusBold width="64" /> </figure> <div> <div class="text-xl">{$t("accounts.create")}</div> @@ -20,7 +22,7 @@ <a href="/account/import" class="block"> <div class="card card-side shadow shadow-base-300 p-8 hover:bg-base-200"> <figure class="w-20 flex items-center justify-center"> - <iconify-icon noobserver icon="ph:folder-open-bold" width="64"></iconify-icon> + <PhFolderOpenBold width="64" /> </figure> <div> <div class="text-xl">{$t("accounts.import")}</div> diff --git a/src/routes/(app)/account/new/+page.svelte b/src/routes/(app)/account/new/+page.svelte index 4ad1fddb..da9b4c72 100644 --- a/src/routes/(app)/account/new/+page.svelte +++ b/src/routes/(app)/account/new/+page.svelte @@ -1,4 +1,5 @@ <script lang="ts"> + import LogosBitcoin from "virtual:icons/logos/bitcoin"; import { t } from "$lib/translations"; import Spinner from "$comp/Spinner.svelte"; import { bytesToHex } from "@noble/hashes/utils.js"; @@ -52,7 +53,7 @@ <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-5"> <a href="/account/bitcoin" class="block"> <div class="card card-side shadow shadow-base-300 p-8 hover:bg-base-200 gap-4 items-center"> - <iconify-icon noobserver icon="logos:bitcoin" width={48}></iconify-icon> + <LogosBitcoin width={48} /> <div> <div class="text-xl">{$t("accounts.bitcoinOnChain")}</div> <div class="text-secondary"> diff --git a/src/routes/(app)/account/seed/+page.svelte b/src/routes/(app)/account/seed/+page.svelte index 1c970985..342852ca 100644 --- a/src/routes/(app)/account/seed/+page.svelte +++ b/src/routes/(app)/account/seed/+page.svelte @@ -1,4 +1,5 @@ <script lang="ts"> + import PhCopyBold from "virtual:icons/ph/copy-bold"; import Mnemonic from "$comp/Mnemonic.svelte"; import { browser } from "$app/environment"; import { tick, onMount } from "svelte"; @@ -67,7 +68,7 @@ {/if} <button type="button" class="btn" onclick={() => copy($mnemonic)}> - <iconify-icon noobserver icon="ph:copy-bold" width="32"></iconify-icon> + <PhCopyBold width="32" /> <div class="my-auto">{$t("payments.copy")}</div> </button> |
