From 6b974d2ee7620f32233dac886922e98baa7502eb Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 28 Mar 2023 21:25:12 -0700 Subject: update docs --- src/lib/samples.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/lib/samples.js') diff --git a/src/lib/samples.js b/src/lib/samples.js index 93b9aa24..159ecf6c 100644 --- a/src/lib/samples.js +++ b/src/lib/samples.js @@ -6,6 +6,13 @@ export default { login: `curl "https://coinos.io/api/login" -H "application/json" -d '{ "username": "adam", "password": "hunter2" +}'`, + payments: `curl "https://coinos.io/api/payments" + -H "application/json" + -H "Authorization: Bearer $token" +}'`, + rates: `curl "https://coinos.io/api/rates" + -H "application/json" }'`, invoice: `curl "https://coinos.io/api/invoice" -H "application/json" @@ -19,5 +26,19 @@ export default { }, }'`, fetchInvoice: `curl "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" - -H "application/json"'` + -H "application/json"'`, + invoiceResponse: `{ + "amount":3141 + "tip":0 + "type":"bitcoin" + "prompt":false + "rate":31836.9702667 + "hash":"bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" + "text":"bitcoin:bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj?amount=0.00003141" + "currency":"CAD" + "uid":"a9770421-3f65-11ed-9f57-0242ac2a0004" + "received":0 + "created":1677537428134 +}`, + socketAuth: `echo '{"type":"login","data":{"username":"user","password":"password"}}' | websocat -n https://coinos.io/ws` }; -- cgit v1.2.3 From b51467da14e6a3def3ce12681b5222bf49484cd5 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 28 Mar 2023 22:45:56 -0700 Subject: prettier --- src/lib/samples.js | 2 +- src/lib/translations/lang.json | 2 +- .../(app)/[username]/(profile)/+layout.svelte | 2 +- .../[username]/invoice/[hash]/tip/+page.svelte | 2 +- .../[username]/payments/[...page]/+page.svelte | 4 +-- src/routes/(app)/[username]/reset/+server.js | 2 +- src/routes/(app)/admin/+page.svelte | 2 +- src/routes/(app)/payment/[id]/+page.svelte | 4 +-- src/routes/(app)/send/invoice/[id]/+page.server.js | 2 +- src/routes/(app)/send/invoice/[id]/+page.svelte | 4 +-- src/routes/(app)/support/+page.svelte | 34 ++++++++++------------ src/routes/(static)/docs/+page.svelte | 6 ++-- 12 files changed, 32 insertions(+), 34 deletions(-) (limited to 'src/lib/samples.js') diff --git a/src/lib/samples.js b/src/lib/samples.js index 159ecf6c..14d9e4e0 100644 --- a/src/lib/samples.js +++ b/src/lib/samples.js @@ -40,5 +40,5 @@ export default { "received":0 "created":1677537428134 }`, - socketAuth: `echo '{"type":"login","data":{"username":"user","password":"password"}}' | websocat -n https://coinos.io/ws` + socketAuth: `echo '{"type":"login","data":{"username":"user","password":"password"}}' | websocat -n https://coinos.io/ws` }; diff --git a/src/lib/translations/lang.json b/src/lib/translations/lang.json index fd25a359..cbf1ce4a 100644 --- a/src/lib/translations/lang.json +++ b/src/lib/translations/lang.json @@ -5,5 +5,5 @@ "de": "Deutsch", "pt": "Português", "zh": "中国人", - "fa": "فارسی " + "fa": "فارسی " } diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index 6dfde23a..006bbf72 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -134,7 +134,7 @@ {/if} {#if user && user.username !== subject.username && subject.pubkey} -
+