diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 17:51:24 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 17:51:24 -0800 |
| commit | 13466248004327e9a026cb89f94926f9b060d1c1 (patch) | |
| tree | 47b4972c33809ccdf866b043c92cd3e0ecf5dcd0 /src/routes/(static)/docs | |
| parent | 3aa9ce1b5985397d7f568887ec6f881df13c1034 (diff) | |
| download | coinos-ui-13466248004327e9a026cb89f94926f9b060d1c1.tar.gz coinos-ui-13466248004327e9a026cb89f94926f9b060d1c1.zip | |
linting
Diffstat (limited to 'src/routes/(static)/docs')
| -rw-r--r-- | src/routes/(static)/docs/+page.server.ts | 8 | ||||
| -rw-r--r-- | src/routes/(static)/docs/+page.svelte | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/routes/(static)/docs/+page.server.ts b/src/routes/(static)/docs/+page.server.ts index 93ba544c..ec5ace69 100644 --- a/src/routes/(static)/docs/+page.server.ts +++ b/src/routes/(static)/docs/+page.server.ts @@ -1,7 +1,7 @@ import { auth, get } from "$lib/utils"; export const load = async ({ cookies }) => { - const token = cookies.get("token"); - let ro; - if (token) ro = await get("/ro", auth(cookies)); - return { ro, token }; + const token = cookies.get("token"); + let ro; + if (token) ro = await get("/ro", auth(cookies)); + return { ro, token }; }; diff --git a/src/routes/(static)/docs/+page.svelte b/src/routes/(static)/docs/+page.svelte index 76e487c5..51b1f54e 100644 --- a/src/routes/(static)/docs/+page.svelte +++ b/src/routes/(static)/docs/+page.svelte @@ -2,7 +2,8 @@ import { copyNoNewlines as copy } from "$lib/utils"; import { PUBLIC_DOMAIN, PUBLIC_COINOS_URL } from "$env/static/public"; - import Code from "$comp/Code.svelte"; let { data } = $props(); + import Code from "$comp/Code.svelte"; + let { data } = $props(); let { user, ro, token } = data; @@ -63,7 +64,8 @@ or get one from the /login endpoint. {/if} - Save it in a variable called <b>$token</b> to run the examples. It gives full access to your account so keep it safe. + Save it in a variable called <b>$token</b> to run the examples. It gives full + access to your account so keep it safe. </p> <div @@ -75,8 +77,8 @@ {#if ro} <p class="text-secondary"> - This read-only token has permission to create invoices and fetch - payments but can't be used to make withdrawals + This read-only token has permission to create invoices and fetch payments + but can't be used to make withdrawals </p> <div class="bg-primary text-primary-content rounded-lg p-4 flex gap-4 items-center" |
