-
-
Please enter your password
-
-
+
+
+
+ Please enter your password
+
+
+
diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte
index 0cff904f..bd51cb0a 100644
--- a/src/components/Pin.svelte
+++ b/src/components/Pin.svelte
@@ -1,59 +1,63 @@
{#if loaded}
-
+
{/if}
diff --git a/src/components/Pinpad.svelte b/src/components/Pinpad.svelte
index f55dc40d..5db23154 100644
--- a/src/components/Pinpad.svelte
+++ b/src/components/Pinpad.svelte
@@ -1,80 +1,88 @@
-
-
- {#if hide}
-
- {:else}
-
- {/if}
-
-
+
+
+ {#each numPad as value}
+ {#if value === arrow}
+
+ {:else}
+
+ {/if}
+ {/each}
+
+
diff --git a/src/components/Popup.svelte b/src/components/Popup.svelte
index 8fe1d160..5d2b9b6a 100644
--- a/src/components/Popup.svelte
+++ b/src/components/Popup.svelte
@@ -1,38 +1,42 @@
{#if tags}
- {#if tags.user}
-
-
+
+ {:else}
+
{tags.name}
+
{addr(tags)}
+ {/if}
{/if}
diff --git a/src/components/Qr.svelte b/src/components/Qr.svelte
index c67d134e..8a716b14 100644
--- a/src/components/Qr.svelte
+++ b/src/components/Qr.svelte
@@ -1,14 +1,14 @@
screenfull.toggle(qr)}
- on:keydown={() => screenfull.toggle(qr)}
+ class="w-80 mx-auto my-5 cursor-pointer"
+ bind:this={qr}
+ on:click={() => screenfull.toggle(qr)}
+ on:keydown={() => screenfull.toggle(qr)}
>
-
![QR Code]()
+
diff --git a/src/components/Quote.svelte b/src/components/Quote.svelte
index 1e099061..8901dae1 100644
--- a/src/components/Quote.svelte
+++ b/src/components/Quote.svelte
@@ -1,11 +1,11 @@
diff --git a/src/components/RegisterOrLogin.svelte b/src/components/RegisterOrLogin.svelte
index 57e0eeed..5617fc7b 100644
--- a/src/components/RegisterOrLogin.svelte
+++ b/src/components/RegisterOrLogin.svelte
@@ -1,179 +1,191 @@
{#if need2fa}
-
+
{/if}
diff --git a/src/components/Request.svelte b/src/components/Request.svelte
index 44f8516d..f3331954 100644
--- a/src/components/Request.svelte
+++ b/src/components/Request.svelte
@@ -1,34 +1,36 @@
{#if $request}
-
-
-
-
-
-
- {$request.requester.username}
- {$t('payments.readyToPay')}
-
-
-
-
-
-
+
+
+
+
+
+
+ {$request.requester.username}
+ {$t("payments.readyToPay")}
+
+
+
+
+
+
{/if}
diff --git a/src/components/Slider.svelte b/src/components/Slider.svelte
index 3c94d127..b82b6bf9 100644
--- a/src/components/Slider.svelte
+++ b/src/components/Slider.svelte
@@ -1,56 +1,56 @@
diff --git a/src/components/Spinner.svelte b/src/components/Spinner.svelte
index eccf98ce..e9c3348f 100644
--- a/src/components/Spinner.svelte
+++ b/src/components/Spinner.svelte
@@ -1,13 +1,20 @@
diff --git a/src/components/Toggle.svelte b/src/components/Toggle.svelte
index 3516e48b..1e4cf4c4 100644
--- a/src/components/Toggle.svelte
+++ b/src/components/Toggle.svelte
@@ -1,11 +1,17 @@
diff --git a/src/components/index.js b/src/components/index.js
index 53838581..661ad4fa 100644
--- a/src/components/index.js
+++ b/src/components/index.js
@@ -1,40 +1,40 @@
-export { default as Popup } from './Popup.svelte';
-export { default as Code } from './Code.svelte';
-export { default as Slider } from './Slider.svelte';
-export { default as Pinpad } from './Pinpad.svelte';
-export { default as Balance } from './Balance.svelte';
-export { default as Lnurlp } from './Lnurlp.svelte';
-export { default as Lnurlw } from './Lnurlw.svelte';
-export { default as Event } from './Event.svelte';
-export { default as Password } from './Password.svelte';
-export { default as Feed } from './Feed.svelte';
-export { default as Invoice } from './Invoice.svelte';
-export { default as Request } from './Request.svelte';
-export { default as Pin } from './Pin.svelte';
-export { default as Card } from './Card.svelte';
-export { default as Lock } from './Lock.svelte';
-export { default as Calendar } from './Calendar.svelte';
-export { default as Avatar } from './Avatar.svelte';
-export { default as Left } from './Left.svelte';
-export { default as Numpad } from './Numpad.svelte';
-export { default as Spinner } from './Spinner.svelte';
-export { default as Check } from './Check.svelte';
-export { default as Heart } from './Heart.svelte';
-export { default as Quote } from './Quote.svelte';
-export { default as LandingHeader } from './LandingHeader.svelte';
-export { default as LandingHero } from './LandingHero.svelte';
-export { default as LandingInfoCard } from './LandingInfoCard.svelte';
-export { default as HowItWorksCard } from './HowItWorksCard.svelte';
-export { default as FaqCard } from './FaqCard.svelte';
-export { default as Icon } from './Icon.svelte';
-export { default as Image } from './Image.svelte';
-export { default as RegisterOrLogin } from './RegisterOrLogin.svelte';
-export { default as AppHeader } from './AppHeader.svelte';
-export { default as LocaleSelector } from './LocaleSelector.svelte';
-export { default as LoadingSplash } from './LoadingSplash.svelte';
-export { default as PageNotFound } from './404.svelte';
-export { default as About } from './About.svelte';
-export { default as Footer } from './Footer.svelte';
-export { default as Toggle } from './Toggle.svelte';
-export { default as LocationsMap } from './LocationsMap.svelte';
-export { default as Qr } from './Qr.svelte';
+export { default as Popup } from "./Popup.svelte";
+export { default as Code } from "./Code.svelte";
+export { default as Slider } from "./Slider.svelte";
+export { default as Pinpad } from "./Pinpad.svelte";
+export { default as Balance } from "./Balance.svelte";
+export { default as Lnurlp } from "./Lnurlp.svelte";
+export { default as Lnurlw } from "./Lnurlw.svelte";
+export { default as Event } from "./Event.svelte";
+export { default as Password } from "./Password.svelte";
+export { default as Feed } from "./Feed.svelte";
+export { default as Invoice } from "./Invoice.svelte";
+export { default as Request } from "./Request.svelte";
+export { default as Pin } from "./Pin.svelte";
+export { default as Card } from "./Card.svelte";
+export { default as Lock } from "./Lock.svelte";
+export { default as Calendar } from "./Calendar.svelte";
+export { default as Avatar } from "./Avatar.svelte";
+export { default as Left } from "./Left.svelte";
+export { default as Numpad } from "./Numpad.svelte";
+export { default as Spinner } from "./Spinner.svelte";
+export { default as Check } from "./Check.svelte";
+export { default as Heart } from "./Heart.svelte";
+export { default as Quote } from "./Quote.svelte";
+export { default as LandingHeader } from "./LandingHeader.svelte";
+export { default as LandingHero } from "./LandingHero.svelte";
+export { default as LandingInfoCard } from "./LandingInfoCard.svelte";
+export { default as HowItWorksCard } from "./HowItWorksCard.svelte";
+export { default as FaqCard } from "./FaqCard.svelte";
+export { default as Icon } from "./Icon.svelte";
+export { default as Image } from "./Image.svelte";
+export { default as RegisterOrLogin } from "./RegisterOrLogin.svelte";
+export { default as AppHeader } from "./AppHeader.svelte";
+export { default as LocaleSelector } from "./LocaleSelector.svelte";
+export { default as LoadingSplash } from "./LoadingSplash.svelte";
+export { default as PageNotFound } from "./404.svelte";
+export { default as About } from "./About.svelte";
+export { default as Footer } from "./Footer.svelte";
+export { default as Toggle } from "./Toggle.svelte";
+export { default as LocationsMap } from "./LocationsMap.svelte";
+export { default as Qr } from "./Qr.svelte";
diff --git a/src/lib/english.js b/src/lib/english.js
index d6c205d9..52a0da82 100644
--- a/src/lib/english.js
+++ b/src/lib/english.js
@@ -2045,4 +2045,4 @@ youth
zebra
zero
zone
-zoo`.split('\n');
+zoo`.split("\n");
diff --git a/src/lib/invoice.js b/src/lib/invoice.js
index 218972c6..87707c89 100644
--- a/src/lib/invoice.js
+++ b/src/lib/invoice.js
@@ -1,36 +1,37 @@
-import { auth, get, post } from '$lib/utils';
-import { redirect } from '@sveltejs/kit';
+import { auth, get, post } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export default async ({ cookies, request, url }) => {
- let form = await request.formData();
-
- let rates = await get('/rates');
- let amount = parseInt(form.get('amount'));
- let request_id = form.get('request_id');
- if (request_id === 'undefined') request_id = undefined;
-
- let invoice = {
- amount,
- tip: parseInt(form.get('tip')) || 0,
- type: form.get('type'),
- prompt: form.get('prompt') === 'true',
- rate: parseFloat(form.get('rate')) || rates[form.get('currency')],
- request_id
- };
-
- let user = { username: form.get('username'), currency: form.get('currency') };
-
- invoice = await post('/invoice', { invoice, user }, auth(cookies));
- let { id } = invoice;
-
- if (request_id) {
- if (url.pathname.endsWith('tip')) {
- throw redirect(307, `/send/invoice/${id}`);
- }
-
- throw redirect(307, `/${user.username}/request/${request_id}`);
- }
-
- if (invoice.prompt) throw redirect(307, `/${user.username}/invoice/${id}/tip`);
- else throw redirect(307, `/${user.username}/invoice/${id}`);
+ let form = await request.formData();
+
+ let rates = await get("/rates");
+ let amount = parseInt(form.get("amount"));
+ let request_id = form.get("request_id");
+ if (request_id === "undefined") request_id = undefined;
+
+ let invoice = {
+ amount,
+ tip: parseInt(form.get("tip")) || 0,
+ type: form.get("type"),
+ prompt: form.get("prompt") === "true",
+ rate: parseFloat(form.get("rate")) || rates[form.get("currency")],
+ request_id,
+ };
+
+ let user = { username: form.get("username"), currency: form.get("currency") };
+
+ invoice = await post("/invoice", { invoice, user }, auth(cookies));
+ let { id } = invoice;
+
+ if (request_id) {
+ if (url.pathname.endsWith("tip")) {
+ throw redirect(307, `/send/invoice/${id}`);
+ }
+
+ throw redirect(307, `/${user.username}/request/${request_id}`);
+ }
+
+ if (invoice.prompt)
+ throw redirect(307, `/${user.username}/invoice/${id}/tip`);
+ else throw redirect(307, `/${user.username}/invoice/${id}`);
};
diff --git a/src/lib/nostr.js b/src/lib/nostr.js
index c2634c83..5ab87e51 100644
--- a/src/lib/nostr.js
+++ b/src/lib/nostr.js
@@ -1,144 +1,164 @@
-import { get } from 'svelte/store';
-import { Buffer } from 'buffer';
-import { fail, wait, post, stretch } from '$lib/utils';
-import { decrypted, password as pw, passwordPrompt, pin, loginRedirect } from '$lib/store';
-import { goto, invalidate } from '$app/navigation';
-import { getPublicKey, signEvent, getEventHash, nip04, nip06, nip19 } from 'nostr-tools';
-import { mnemonicToEntropy, entropyToMnemonic } from '@scure/bip39';
-import wordlist from '$lib/english';
-import { bech32m } from '@scure/base';
+import { get } from "svelte/store";
+import { Buffer } from "buffer";
+import { fail, wait, post, stretch } from "$lib/utils";
+import {
+ decrypted,
+ password as pw,
+ passwordPrompt,
+ pin,
+ loginRedirect,
+} from "$lib/store";
+import { goto, invalidate } from "$app/navigation";
+import {
+ getPublicKey,
+ signEvent,
+ getEventHash,
+ nip04,
+ nip06,
+ nip19,
+} from "nostr-tools";
+import { mnemonicToEntropy, entropyToMnemonic } from "@scure/bip39";
+import wordlist from "$lib/english";
+import { bech32m } from "@scure/base";
const { generateSeedWords, privateKeyFromSeedWords } = nip06;
const { encode, decode, toWords, fromWords } = bech32m;
export let generate = async (user) => {
- if (!get(pin)?.length === 6) return;
- let password = get(pw);
-
- let salt = crypto.getRandomValues(new Uint8Array(16));
- let mnemonic = generateSeedWords();
- let sk = privateKeyFromSeedWords(mnemonic);
-
- let bytes = new Uint8Array(
- await crypto.subtle.encrypt(
- { name: 'AES-GCM', iv: new Uint8Array(16) },
- await stretch(password, salt),
- Uint8Array.from(Buffer.from(mnemonicToEntropy(mnemonic, wordlist), 'hex'))
- )
- );
-
- user.pubkey = getPublicKey(sk);
- user.cipher = encode('en', toWords(bytes), 180);
- user.salt = Buffer.from(salt).toString('hex');
+ if (!get(pin)?.length === 6) return;
+ let password = get(pw);
+
+ let salt = crypto.getRandomValues(new Uint8Array(16));
+ let mnemonic = generateSeedWords();
+ let sk = privateKeyFromSeedWords(mnemonic);
+
+ let bytes = new Uint8Array(
+ await crypto.subtle.encrypt(
+ { name: "AES-GCM", iv: new Uint8Array(16) },
+ await stretch(password, salt),
+ Uint8Array.from(Buffer.from(mnemonicToEntropy(mnemonic, wordlist), "hex"))
+ )
+ );
+
+ user.pubkey = getPublicKey(sk);
+ user.cipher = encode("en", toWords(bytes), 180);
+ user.salt = Buffer.from(salt).toString("hex");
};
export let encrypt = async ({ message, recipient, user }) => {
- return nip04.encrypt(await getPrivateKey(user), recipient, message);
+ return nip04.encrypt(await getPrivateKey(user), recipient, message);
};
export let decrypt = async ({ event, user }) => {
- let cache = get(decrypted);
- try {
- let { content, pubkey, id } = event;
- if (cache[id]) return cache[id];
- if (pubkey === user.pubkey) pubkey = event.tags[0][1];
-
- let message = await nip04.decrypt(await getPrivateKey(user), pubkey, content);
-
- cache[id] = Buffer.from(message).toString('utf8');
- decrypted.set(cache);
-
- return cache[id];
- } catch (e) {
- // console.log(e);
- }
+ let cache = get(decrypted);
+ try {
+ let { content, pubkey, id } = event;
+ if (cache[id]) return cache[id];
+ if (pubkey === user.pubkey) pubkey = event.tags[0][1];
+
+ let message = await nip04.decrypt(
+ await getPrivateKey(user),
+ pubkey,
+ content
+ );
+
+ cache[id] = Buffer.from(message).toString("utf8");
+ decrypted.set(cache);
+
+ return cache[id];
+ } catch (e) {
+ // console.log(e);
+ }
};
function typedArrayToBuffer(array) {
- return array.buffer.slice(array.byteOffset, array.byteLength + array.byteOffset);
+ return array.buffer.slice(
+ array.byteOffset,
+ array.byteLength + array.byteOffset
+ );
}
export let getMnemonic = async (user) => {
- let { cipher, username, salt } = user;
- let password = get(pw);
+ let { cipher, username, salt } = user;
+ let password = get(pw);
- if (!password) {
- passwordPrompt.set(true);
- }
+ if (!password) {
+ passwordPrompt.set(true);
+ }
- try {
- await post('/password', { password });
- } catch (e) {
- passwordPrompt.set(true);
- }
+ try {
+ await post("/password", { password });
+ } catch (e) {
+ passwordPrompt.set(true);
+ }
- await wait(() => !!get(pw));
- password = get(pw);
+ await wait(() => !!get(pw));
+ password = get(pw);
- let mnemonic, key, seed, entropy, child, privkey;
+ let mnemonic, key, seed, entropy, child, privkey;
- entropy = new Uint8Array(
- await crypto.subtle.decrypt(
- { name: 'AES-GCM', iv: new Uint8Array(16) },
- await stretch(password, Buffer.from(salt, 'hex')),
- Uint8Array.from(fromWords(decode(cipher, 180).words))
- )
- );
+ entropy = new Uint8Array(
+ await crypto.subtle.decrypt(
+ { name: "AES-GCM", iv: new Uint8Array(16) },
+ await stretch(password, Buffer.from(salt, "hex")),
+ Uint8Array.from(fromWords(decode(cipher, 180).words))
+ )
+ );
- return entropyToMnemonic(entropy, wordlist);
+ return entropyToMnemonic(entropy, wordlist);
};
let getPrivateKey = async (user) => {
- return privateKeyFromSeedWords(await getMnemonic(user));
+ return privateKeyFromSeedWords(await getMnemonic(user));
};
export let getNsec = async (user) => {
- return nip19.nsecEncode(await getPrivateKey(user));
+ return nip19.nsecEncode(await getPrivateKey(user));
};
export let sign = async ({ event, user }) => {
- event.id = getEventHash(event);
- event.sig = signEvent(event, await getPrivateKey(user));
+ event.id = getEventHash(event);
+ event.sig = signEvent(event, await getPrivateKey(user));
};
export let send = (event) => {
- return post('/events', { event });
+ return post("/events", { event });
};
export let reEncryptEntropy = async (user, newPassword) => {
- let { cipher, username, salt } = user;
- let password = get(pw);
-
- if (!password) {
- passwordPrompt.set(true);
- }
-
- try {
- await post('/password', { password });
- } catch (e) {
- passwordPrompt.set(true);
- }
-
- await wait(() => !!get(pw));
- password = get(pw);
-
- let mnemonic, key, seed, entropy, child, privkey;
- entropy = Buffer.from(
- await crypto.subtle.decrypt(
- { name: 'AES-GCM', iv: new Uint8Array(16) },
- await stretch(password, Buffer.from(salt, 'hex')),
- Uint8Array.from(fromWords(decode(cipher, 180).words))
- ),
- 'hex'
- ).toString('hex');
-
- let bytes = new Uint8Array(
- await crypto.subtle.encrypt(
- { name: 'AES-GCM', iv: new Uint8Array(16) },
- await stretch(newPassword, Buffer.from(salt, 'hex')),
- Uint8Array.from(Buffer.from(entropy, 'hex'))
- )
- );
-
- return encode('en', toWords(bytes), 180);
+ let { cipher, username, salt } = user;
+ let password = get(pw);
+
+ if (!password) {
+ passwordPrompt.set(true);
+ }
+
+ try {
+ await post("/password", { password });
+ } catch (e) {
+ passwordPrompt.set(true);
+ }
+
+ await wait(() => !!get(pw));
+ password = get(pw);
+
+ let mnemonic, key, seed, entropy, child, privkey;
+ entropy = Buffer.from(
+ await crypto.subtle.decrypt(
+ { name: "AES-GCM", iv: new Uint8Array(16) },
+ await stretch(password, Buffer.from(salt, "hex")),
+ Uint8Array.from(fromWords(decode(cipher, 180).words))
+ ),
+ "hex"
+ ).toString("hex");
+
+ let bytes = new Uint8Array(
+ await crypto.subtle.encrypt(
+ { name: "AES-GCM", iv: new Uint8Array(16) },
+ await stretch(newPassword, Buffer.from(salt, "hex")),
+ Uint8Array.from(Buffer.from(entropy, "hex"))
+ )
+ );
+
+ return encode("en", toWords(bytes), 180);
};
diff --git a/src/lib/punks.js b/src/lib/punks.js
index a87feb1f..e5551062 100644
--- a/src/lib/punks.js
+++ b/src/lib/punks.js
@@ -1,66 +1,66 @@
export default [
- '6e1f1626a9308abd0b7732fecbc7d49366ced46dead63ef3603fb0f4ec7aa53d',
- '96ea95735b61c48c6f465db8ca0246a62539f34c3a977be6338770d92461da89',
- '8c18c036b257d7b9c5a970a786efa04c320f3cf5afa73fa310a6603744d1ee3a',
- 'a7a6187e54e83acdb893d456c8b4ad6877e4738ea9e0d47c9b2070bf2c98a35f',
- '836d72150b6f3033b6220d15ac9d49457d81041a700d12898bd3b8e737b4d265',
- 'e3d1c40538a8aed282a430647e3ff16ff94b64b8ed0a7cf427e8b0e2780a9b2a',
- '2155224ef35cfb4bbdb06d982b42bb9b93d97b2bc691c22c804e1759a0a04882',
- '5f6549ad9dd15dd57c204b1a9b60c68c376e77d7d114cfa13219e6a1a71f901f',
- 'ba8dd5a7070aee7102d4f8bc83ac497091e2e473a0f448a1c513569167dd0791',
- '4f07e1da3685a858970a9f39300564971e97257f5d37b55a6d9882014aecc421',
- '01aa9348244c4b65de3df758d49c98076e17a109aef04bc211abc77cf42dc51d',
- '080574eb9e0613926e0e5d9b667c132e12965a1b1d47218a0b290a2d55c55d2f',
- '08ce4840184f63a779bcd1f91bbcb56a2e8cba75c3ba2dbd290a559a57e4238e',
- '27caa38c14a85ad64b4c4469a34e61a3965a1cbc4cad9a85707da374301c830d',
- 'eccc90741370ba4acc70bc65f4ccc38fddb1327d977c366156018974bc52fe4a',
- '3759946d9e875ac2fc5c51ed850686193bb1e0716219e42efd52f3965993b275',
- 'db5fe28b8ddb9ae5e4f5e0e757ee60bc938bffbdfdd38de807939e212d3c5066',
- '3f8f861e663accee51e68b987705ce647a7446b7f118abc94c632e158acbb44f',
- '43bab95a047112dca6705506f916a97252363a20da4a4c0a5ab7b676e11083fc',
- 'd3018e45c66dd485697f738ad191af98267e6255d562496dd06b1a662e0c7a88',
- '0ec2e8d07e053d686140857493ece653cde52764a60aa1d25651d81811d44a3d',
- '4595bb092682af7177799464364c047fbfa7ede767336734949bce5d085fce15',
- '6524936709e0719f9e28bf1caac91f86f323d1a79f10ab65a03fa9ea2e6b3270',
- '8ba4736edc68da8e5b21c23af4de1f9131f47778c2a5b2a970a799223a9380b3',
- '2aaba839e8546a8cb6d04a81ff5be83ac4e700ca4491607a16ebd60dc4995750',
- '5f88f7f579ce50d7bcf60d6e9556f77acf361ba54caf3eb61dc4f2ca9c94c6a2',
- 'd1ca262272613d7386fecce7f1ad268188940b59ea83fdd1f8d7ab85771e3f43',
- '5211890e4128d8d730802cc75ee105867e8878581d5e72ffc98a0d60027a5398',
- 'c1dececcbd7b623bfaa726392512e6ea110db93a0649dd01bf9e559318514f7c',
- '43ce93c9835e983403a01329918d184832c5516e1b0ea4e0878b4c4def042777',
- 'c84724a398bda8d20436fb0663d059c196628fa71192bb720fa5adf6137bed9b',
- 'f307620a90a36045fa550316d61be4755c1f6c7f3fc81c95fc4d590ac568b2c4',
- '78ae0118856a1f17c13f292628fcf3dccc150c7278578caaceb9f35ca8bc9f55',
- '9d9a9a40c490f05d7dbafde8bf60d68aab7dcb79a7976eef62d1448a4549816b',
- 'f6017bec50563dbbb24b979214ae225f96b01dea5b090b174038ff2842a1c6b1',
- '6dbec748ea87e959390b0df429c005fccffe9e672864f555c14c7a407b940870',
- '11701e76233395ebdba8d1d50334d1a0cc3a158f3452260c9a7b9a067b78d753',
- '7354f3829dd05c838aa16d66b00316f7994797927a4d3b594c8af04a2b4ae86a',
- '14d254333c6240fbdacbbbe261f7ae15be2e83bffcf084f4f59f459bae0a4571',
- '7849ac0f31056265efb0110038f86e61effe17b7db836377d88433b73312e65a',
- '9018be885177c675baf9b36978428d841ca30a9185e11de1a31238a08e3ec1af',
- '777c5715de7423597fea6c03c496ea46414f0508cd96e119261f002965beb805',
- 'b742b7509a97c2b346ea762f0510e8475b30dc988417f0f146ae00a800c6dd56',
- '7af3029a826e6dfba23ad502901a3632ef4ee047bd45d618b1f106717b0af7ea',
- '82390020b2bca461204cc49b20ee6fec1b93dad476726f377785d04040a4d6c3',
- '6bc2990699be7f610c9f6a49bc7a19b034040727bc3de63fee89a1573fe00673',
- '50c7c2e8e8c7f4aabffb195187a1ac1105f5712859f02d491d794ba2d8498e08',
- '5d1d3769cd141603ce907df5dca159e389ca4d75338eddbe1b7db1c0766cbfd6',
- '4d8ad7a761d068b7ef9b058fb4ba924b276e7a45a3ad47a79b767e08e821e038',
- 'd5b5b2167602f7277cdac76cfda8bdad0befcb8ff12df495dfabf40c91d1120c',
- '6f2618272bb0164247e9b0f40b19f020c1c9253510dc658a3cc078d079ef01bf',
- 'fd502d5007bfc62a91eb7a34c1ae23b9de4a20cf5e1bbd86dadc421d7083099c',
- '914813583b901044970b9c7d6dcdfde4344339325f5988d0dd681d377f1243fb',
- '85cb7cf0245613d08b3027f879f58a6db645bf0db107242beb856b340ee49ee8',
- 'd6dbb18d5df5e92c8c74ee59aa86d19dff25a5d0f9d030e84285a686f86804d7',
- '65309f82cd9f9926a578d09e1ad13909f68a06d02b853760731a4225f7aecef4',
- '433519d13f2b64fe82a90cd054797d4779507fea93c1054bd51c35ba846a0f7f',
- '62a55d4d6e4b6f992a1c1840f041585c957affcdbf875202cf9e1db9def05aeb',
- 'e19eb1eeabdeffa04ccd792eb09776690cf2121887b26a7c5d20d66e3e8fd0fb',
- 'a80951fc593035abb2dda045a2076d29a30f5cc470e0a20db39c3ec588ed61d8',
- '4f1b39906714266a7a1936bfa8e08c5d891285dd2b188b4bcd4afb0107671004',
- 'f46310b2e60727af071d09e759814f52f933688a0ff0995c7da373b381e70005',
- '2cc94821f56d21918ba4f2770d97f280e06fd99f4199167e2f4ddc780f404c8a',
- '698a2ca7a09e88fa6594801da037f4dbce6ae841d1d33736aebcf8f6fe104e01',
+ "6e1f1626a9308abd0b7732fecbc7d49366ced46dead63ef3603fb0f4ec7aa53d",
+ "96ea95735b61c48c6f465db8ca0246a62539f34c3a977be6338770d92461da89",
+ "8c18c036b257d7b9c5a970a786efa04c320f3cf5afa73fa310a6603744d1ee3a",
+ "a7a6187e54e83acdb893d456c8b4ad6877e4738ea9e0d47c9b2070bf2c98a35f",
+ "836d72150b6f3033b6220d15ac9d49457d81041a700d12898bd3b8e737b4d265",
+ "e3d1c40538a8aed282a430647e3ff16ff94b64b8ed0a7cf427e8b0e2780a9b2a",
+ "2155224ef35cfb4bbdb06d982b42bb9b93d97b2bc691c22c804e1759a0a04882",
+ "5f6549ad9dd15dd57c204b1a9b60c68c376e77d7d114cfa13219e6a1a71f901f",
+ "ba8dd5a7070aee7102d4f8bc83ac497091e2e473a0f448a1c513569167dd0791",
+ "4f07e1da3685a858970a9f39300564971e97257f5d37b55a6d9882014aecc421",
+ "01aa9348244c4b65de3df758d49c98076e17a109aef04bc211abc77cf42dc51d",
+ "080574eb9e0613926e0e5d9b667c132e12965a1b1d47218a0b290a2d55c55d2f",
+ "08ce4840184f63a779bcd1f91bbcb56a2e8cba75c3ba2dbd290a559a57e4238e",
+ "27caa38c14a85ad64b4c4469a34e61a3965a1cbc4cad9a85707da374301c830d",
+ "eccc90741370ba4acc70bc65f4ccc38fddb1327d977c366156018974bc52fe4a",
+ "3759946d9e875ac2fc5c51ed850686193bb1e0716219e42efd52f3965993b275",
+ "db5fe28b8ddb9ae5e4f5e0e757ee60bc938bffbdfdd38de807939e212d3c5066",
+ "3f8f861e663accee51e68b987705ce647a7446b7f118abc94c632e158acbb44f",
+ "43bab95a047112dca6705506f916a97252363a20da4a4c0a5ab7b676e11083fc",
+ "d3018e45c66dd485697f738ad191af98267e6255d562496dd06b1a662e0c7a88",
+ "0ec2e8d07e053d686140857493ece653cde52764a60aa1d25651d81811d44a3d",
+ "4595bb092682af7177799464364c047fbfa7ede767336734949bce5d085fce15",
+ "6524936709e0719f9e28bf1caac91f86f323d1a79f10ab65a03fa9ea2e6b3270",
+ "8ba4736edc68da8e5b21c23af4de1f9131f47778c2a5b2a970a799223a9380b3",
+ "2aaba839e8546a8cb6d04a81ff5be83ac4e700ca4491607a16ebd60dc4995750",
+ "5f88f7f579ce50d7bcf60d6e9556f77acf361ba54caf3eb61dc4f2ca9c94c6a2",
+ "d1ca262272613d7386fecce7f1ad268188940b59ea83fdd1f8d7ab85771e3f43",
+ "5211890e4128d8d730802cc75ee105867e8878581d5e72ffc98a0d60027a5398",
+ "c1dececcbd7b623bfaa726392512e6ea110db93a0649dd01bf9e559318514f7c",
+ "43ce93c9835e983403a01329918d184832c5516e1b0ea4e0878b4c4def042777",
+ "c84724a398bda8d20436fb0663d059c196628fa71192bb720fa5adf6137bed9b",
+ "f307620a90a36045fa550316d61be4755c1f6c7f3fc81c95fc4d590ac568b2c4",
+ "78ae0118856a1f17c13f292628fcf3dccc150c7278578caaceb9f35ca8bc9f55",
+ "9d9a9a40c490f05d7dbafde8bf60d68aab7dcb79a7976eef62d1448a4549816b",
+ "f6017bec50563dbbb24b979214ae225f96b01dea5b090b174038ff2842a1c6b1",
+ "6dbec748ea87e959390b0df429c005fccffe9e672864f555c14c7a407b940870",
+ "11701e76233395ebdba8d1d50334d1a0cc3a158f3452260c9a7b9a067b78d753",
+ "7354f3829dd05c838aa16d66b00316f7994797927a4d3b594c8af04a2b4ae86a",
+ "14d254333c6240fbdacbbbe261f7ae15be2e83bffcf084f4f59f459bae0a4571",
+ "7849ac0f31056265efb0110038f86e61effe17b7db836377d88433b73312e65a",
+ "9018be885177c675baf9b36978428d841ca30a9185e11de1a31238a08e3ec1af",
+ "777c5715de7423597fea6c03c496ea46414f0508cd96e119261f002965beb805",
+ "b742b7509a97c2b346ea762f0510e8475b30dc988417f0f146ae00a800c6dd56",
+ "7af3029a826e6dfba23ad502901a3632ef4ee047bd45d618b1f106717b0af7ea",
+ "82390020b2bca461204cc49b20ee6fec1b93dad476726f377785d04040a4d6c3",
+ "6bc2990699be7f610c9f6a49bc7a19b034040727bc3de63fee89a1573fe00673",
+ "50c7c2e8e8c7f4aabffb195187a1ac1105f5712859f02d491d794ba2d8498e08",
+ "5d1d3769cd141603ce907df5dca159e389ca4d75338eddbe1b7db1c0766cbfd6",
+ "4d8ad7a761d068b7ef9b058fb4ba924b276e7a45a3ad47a79b767e08e821e038",
+ "d5b5b2167602f7277cdac76cfda8bdad0befcb8ff12df495dfabf40c91d1120c",
+ "6f2618272bb0164247e9b0f40b19f020c1c9253510dc658a3cc078d079ef01bf",
+ "fd502d5007bfc62a91eb7a34c1ae23b9de4a20cf5e1bbd86dadc421d7083099c",
+ "914813583b901044970b9c7d6dcdfde4344339325f5988d0dd681d377f1243fb",
+ "85cb7cf0245613d08b3027f879f58a6db645bf0db107242beb856b340ee49ee8",
+ "d6dbb18d5df5e92c8c74ee59aa86d19dff25a5d0f9d030e84285a686f86804d7",
+ "65309f82cd9f9926a578d09e1ad13909f68a06d02b853760731a4225f7aecef4",
+ "433519d13f2b64fe82a90cd054797d4779507fea93c1054bd51c35ba846a0f7f",
+ "62a55d4d6e4b6f992a1c1840f041585c957affcdbf875202cf9e1db9def05aeb",
+ "e19eb1eeabdeffa04ccd792eb09776690cf2121887b26a7c5d20d66e3e8fd0fb",
+ "a80951fc593035abb2dda045a2076d29a30f5cc470e0a20db39c3ec588ed61d8",
+ "4f1b39906714266a7a1936bfa8e08c5d891285dd2b188b4bcd4afb0107671004",
+ "f46310b2e60727af071d09e759814f52f933688a0ff0995c7da373b381e70005",
+ "2cc94821f56d21918ba4f2770d97f280e06fd99f4199167e2f4ddc780f404c8a",
+ "698a2ca7a09e88fa6594801da037f4dbce6ae841d1d33736aebcf8f6fe104e01",
];
diff --git a/src/lib/samples.js b/src/lib/samples.js
index ac9e2d7e..1a1f5d9c 100644
--- a/src/lib/samples.js
+++ b/src/lib/samples.js
@@ -1,32 +1,32 @@
export default {
- register: `curl "https://coinos.io/api/register" -H "content-type: application/json" -d '{
+ register: `curl "https://coinos.io/api/register" -H "content-type: application/json" -d '{
"user": {
"username": "demo",
"password": "hunter2"
}
}'`,
- login: `curl "https://coinos.io/api/login" -H "content-type: application/json" -d '{
+ login: `curl "https://coinos.io/api/login" -H "content-type: application/json" -d '{
"username": "demo",
"password": "hunter2"
}'`,
- payments: `curl "https://coinos.io/api/payments"
+ payments: `curl "https://coinos.io/api/payments"
-H "content-type: application/json"
-H "Authorization: Bearer $token"
`,
- lightning: `curl "https://coinos.io/api/payments"
+ lightning: `curl "https://coinos.io/api/payments"
-H "content-type: application/json"
-H "Authorization: Bearer $token"
-d '{
"payreq": "lnbc1pj94d8fsp5n77k340ps4m9jn7kp8he8yynpddvurv6mcsrrqpnq5l2jxdxzlwqpp5m96pqhc5nrlk8cqsu9ufdxxa43sarp8vwf9egvm2pg9nl0zu9r8qdq2vdhkjmn0wvxqztgcqpjrzjqwhmav82kntsppmkp8jp4vg4h9nns78tsy8mg7ve4lq5txrkp0h56zlarvqqdtcqqsqqqqqqqqqqp6cq9q9qyysgqzxlypywzphyujm3ga5j5csfcmqvlnae0fgnvymkaaw94eeg7py5rqzysyjkr3ev2snq63qpsc69vf54adkd0szvmvwt5cuadjnuy95sq4xfa40"
}'`,
- bitcoin: `curl "https://coinos.io/api/payments"
+ bitcoin: `curl "https://coinos.io/api/payments"
-H "content-type: application/json"
-H "Authorization: Bearer $token"
-d '{
"amount": 5000,
"hash": "bc1q3unh97w4rmelflrm2hvdwz37d8kray3vn4d5ca"
}'`,
- internal: `HASH=$(curl "https://coinos.io/api/invoice"
+ internal: `HASH=$(curl "https://coinos.io/api/invoice"
-H "content-type: application/json"
-H "Authorization: Bearer $token"
-d '{
@@ -46,10 +46,10 @@ export default {
"amount": 5000,
"hash": $HASH
}'`,
- rates: `curl "https://coinos.io/api/rates"
+ rates: `curl "https://coinos.io/api/rates"
-H "content-type: application/json"
}'`,
- lightningInvoice: `curl "https://coinos.io/api/invoice"
+ lightningInvoice: `curl "https://coinos.io/api/invoice"
-H "content-type: application/json"
-H "Authorization: Bearer $token"
-d '{
@@ -58,7 +58,7 @@ export default {
"type": "lightning"
}
}'`,
- bitcoinAddress: `curl "https://coinos.io/api/invoice"
+ bitcoinAddress: `curl "https://coinos.io/api/invoice"
-H "content-type: application/json"
-H "Authorization: Bearer $token"
-d '{
@@ -67,7 +67,7 @@ export default {
"type": "bitcoin"
}
}'`,
- webhook: `curl "https://coinos.io/api/invoice"
+ webhook: `curl "https://coinos.io/api/invoice"
-H "content-type: application/json"
-H "Authorization: Bearer $token"
-d '{
@@ -77,9 +77,9 @@ export default {
"secret": "webhooksecret"
}
}'`,
- fetchInvoice: `curl "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj"
+ fetchInvoice: `curl "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj"
-H "content-type: application/json"'`,
- invoiceResponse: `{
+ invoiceResponse: `{
"amount":3141
"tip":0
"type":"bitcoin"
@@ -92,5 +92,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/socket.js b/src/lib/socket.js
index 96fde317..d51ab39b 100644
--- a/src/lib/socket.js
+++ b/src/lib/socket.js
@@ -1,50 +1,58 @@
-import { get } from 'svelte/store';
-import { event, invoice, request, newPayment, last, rate, user } from '$lib/store';
-import { success, sat } from '$lib/utils';
-import { PUBLIC_SOCKET } from '$env/static/public';
-import { invalidate } from '$app/navigation';
-import { browser } from '$app/environment';
+import { get } from "svelte/store";
+import {
+ event,
+ invoice,
+ request,
+ newPayment,
+ last,
+ rate,
+ user,
+} from "$lib/store";
+import { success, sat } from "$lib/utils";
+import { PUBLIC_SOCKET } from "$env/static/public";
+import { invalidate } from "$app/navigation";
+import { browser } from "$app/environment";
let socket, token;
-export const auth = () => token && send('login', token);
+export const auth = () => token && send("login", token);
export const send = (type, data) => {
- socket?.readyState === 1 && socket.send(JSON.stringify({ type, data }));
- return true;
+ socket?.readyState === 1 && socket.send(JSON.stringify({ type, data }));
+ return true;
};
export const messages = (data) => ({
- id() {
- last.set(Date.now());
- },
- invoice() {
- invoice.set(data);
- },
- event() {
- event.set(data);
- },
- rate() {
- rate.set(data);
- },
-
- request() {
- request.set(data);
- invalidate('app:invoice');
- },
-
- async payment() {
- let { amount, confirmed } = data;
- invalidate('app:user');
- invalidate('app:invoice');
- invalidate('app:payments');
-
- if (amount > 0) {
- success(`${confirmed ? 'Received' : 'Detected'} ${sat(amount)}!`);
- }
- },
-
- connected: auth
+ id() {
+ last.set(Date.now());
+ },
+ invoice() {
+ invoice.set(data);
+ },
+ event() {
+ event.set(data);
+ },
+ rate() {
+ rate.set(data);
+ },
+
+ request() {
+ request.set(data);
+ invalidate("app:invoice");
+ },
+
+ async payment() {
+ let { amount, confirmed } = data;
+ invalidate("app:user");
+ invalidate("app:invoice");
+ invalidate("app:payments");
+
+ if (amount > 0) {
+ success(`${confirmed ? "Received" : "Detected"} ${sat(amount)}!`);
+ }
+ },
+
+ connected: auth,
});
const initialReconnectDelay = 1000;
@@ -53,39 +61,39 @@ const maxReconnectDelay = 16000;
let currentReconnectDelay = initialReconnectDelay;
export function connect(t) {
- token = t;
+ token = t;
- if (socket) return auth();
+ if (socket) return auth();
- socket = new WebSocket(PUBLIC_SOCKET);
- socket.addEventListener('open', onWebsocketOpen);
- socket.addEventListener('close', onWebsocketClose);
- socket.addEventListener('message', onWebsocketMessage);
+ socket = new WebSocket(PUBLIC_SOCKET);
+ socket.addEventListener("open", onWebsocketOpen);
+ socket.addEventListener("close", onWebsocketClose);
+ socket.addEventListener("message", onWebsocketMessage);
}
export function close() {
- if (socket) socket.close();
+ if (socket) socket.close();
}
function onWebsocketMessage(msg) {
- let { type, data } = JSON.parse(msg.data);
- messages(data)[type] && messages(data)[type]();
+ let { type, data } = JSON.parse(msg.data);
+ messages(data)[type] && messages(data)[type]();
}
function onWebsocketOpen() {
- currentReconnectDelay = initialReconnectDelay;
+ currentReconnectDelay = initialReconnectDelay;
}
function onWebsocketClose() {
- socket = null;
- setTimeout(() => {
- reconnectToWebsocket();
- }, currentReconnectDelay + Math.floor(Math.random() * 3000));
+ socket = null;
+ setTimeout(() => {
+ reconnectToWebsocket();
+ }, currentReconnectDelay + Math.floor(Math.random() * 3000));
}
function reconnectToWebsocket() {
- if (currentReconnectDelay < maxReconnectDelay) {
- currentReconnectDelay *= 2;
- }
- connect(token);
+ if (currentReconnectDelay < maxReconnectDelay) {
+ currentReconnectDelay *= 2;
+ }
+ connect(token);
}
diff --git a/src/lib/store.js b/src/lib/store.js
index 403ee816..2ae8c9b9 100644
--- a/src/lib/store.js
+++ b/src/lib/store.js
@@ -1,56 +1,60 @@
-import { get, writable } from 'svelte/store';
-import { browser } from '$app/environment';
+import { get, writable } from "svelte/store";
+import { browser } from "$app/environment";
const persistSession = (key, defaultValue) => {
- let s = writable(
- browser && sessionStorage.getItem(key) && sessionStorage.getItem(key) !== 'undefined'
- ? JSON.parse(sessionStorage.getItem(key))
- : defaultValue
- );
+ let s = writable(
+ browser &&
+ sessionStorage.getItem(key) &&
+ sessionStorage.getItem(key) !== "undefined"
+ ? JSON.parse(sessionStorage.getItem(key))
+ : defaultValue
+ );
- s.subscribe((v) => {
- browser && sessionStorage.setItem(key, JSON.stringify(v));
- });
+ s.subscribe((v) => {
+ browser && sessionStorage.setItem(key, JSON.stringify(v));
+ });
- return s;
+ return s;
};
const persistLocal = (key, defaultValue) => {
- let s = writable(
- browser && localStorage.getItem(key) && localStorage.getItem(key) !== 'undefined'
- ? JSON.parse(localStorage.getItem(key))
- : defaultValue
- );
+ let s = writable(
+ browser &&
+ localStorage.getItem(key) &&
+ localStorage.getItem(key) !== "undefined"
+ ? JSON.parse(localStorage.getItem(key))
+ : defaultValue
+ );
- s.subscribe((v) => {
- try {
- browser && localStorage.setItem(key, JSON.stringify(v));
- } catch (e) {
- console.log('problem setting key', v);
- console.log(e);
- }
- });
+ s.subscribe((v) => {
+ try {
+ browser && localStorage.setItem(key, JSON.stringify(v));
+ } catch (e) {
+ console.log("problem setting key", v);
+ console.log(e);
+ }
+ });
- return s;
+ return s;
};
-export const animatedRate = persistLocal('rate', 0);
+export const animatedRate = persistLocal("rate", 0);
export const avatar = writable();
export const banner = writable();
-export const colorTheme = writable('from-primary to-gradient');
+export const colorTheme = writable("from-primary to-gradient");
export const event = writable();
export const events = writable({});
export const invoice = writable();
export const last = writable();
export const loginRedirect = writable();
-export const decrypted = persistLocal('decrypted', {});
-export const newPayment = persistLocal('newPayment');
+export const decrypted = persistLocal("decrypted", {});
+export const newPayment = persistLocal("newPayment");
export const password = writable();
export const passwordPrompt = writable();
-export const pin = persistSession('pin');
+export const pin = persistSession("pin");
export const rate = writable();
export const request = writable();
export const requestRedirect = writable();
-export const token = persistSession('token');
+export const token = persistSession("token");
export const user = writable();
export const ndef = writable();
diff --git a/src/lib/ticket.js b/src/lib/ticket.js
index e1ebcb8c..73ef7716 100644
--- a/src/lib/ticket.js
+++ b/src/lib/ticket.js
@@ -1,31 +1,31 @@
-import { auth, get, post } from '$lib/utils';
-import { env } from '$env/dynamic/private';
-import tickets from '$lib/tickets';
+import { auth, get, post } from "$lib/utils";
+import { env } from "$env/dynamic/private";
+import tickets from "$lib/tickets";
export const createTicket = async (cookies, username) => {
- let { ticket } = await get('/ticket');
+ let { ticket } = await get("/ticket");
- let { address } = await post(
- `/${username}/invoice`,
- { invoice: { network: 'liquid' }, user: { username } },
- auth(cookies)
- );
+ let { address } = await post(
+ `/${username}/invoice`,
+ { invoice: { network: "liquid" }, user: { username } },
+ auth(cookies)
+ );
- let { asset } = await post(
- '/assets',
- {
- address,
- name: `Launch Party Ticket ${ticket}`,
- ticker: 'LPT',
- precision: 0,
- asset_amount: '1',
- token_amount: 0,
- domain: 'coinos.io',
- filename: tickets[ticket]
- },
- { authorization: `Bearer ${env.LAUNCH}` }
- );
+ let { asset } = await post(
+ "/assets",
+ {
+ address,
+ name: `Launch Party Ticket ${ticket}`,
+ ticker: "LPT",
+ precision: 0,
+ asset_amount: "1",
+ token_amount: 0,
+ domain: "coinos.io",
+ filename: tickets[ticket],
+ },
+ { authorization: `Bearer ${env.LAUNCH}` }
+ );
- await post('/ticket', { asset }, { authorization: `Bearer ${env.LAUNCH}` });
- return asset;
+ await post("/ticket", { asset }, { authorization: `Bearer ${env.LAUNCH}` });
+ return asset;
};
diff --git a/src/lib/tickets.js b/src/lib/tickets.js
index b0ca0ac0..1f8cbdac 100644
--- a/src/lib/tickets.js
+++ b/src/lib/tickets.js
@@ -1,52 +1,52 @@
export default [
- 'QmPbFkiXNuaQyfwD4W9GcXP7qWaNd6wFd9KCnJir5mes1J',
- 'QmPVjvbaMxSJRpDxMLYTdUWQbknej1vYLckBQ2pAgxZgJN',
- 'QmVasycSFzCYhyXrcvTE7mN3d6W78RFnrhzg5cRF6Dp6Zq',
- 'QmTmnhjpTBjZdeHwXgT9Dftc3uWMW73qsZpZ5ECrTyiKKZ',
- 'QmWDBiyVPyFkzUrEdvy7DSJe1rBQpene1m6quKAtyjBP6a',
- 'QmcxxzQZwgG7SE9QbHNvoTiCi6Dhs9rrz9roqvxm2JQA88',
- 'Qmd9ThEpXLLHimEzRUWEFrAGLSw5PAHzn2SmwfCnjNLwWt',
- 'Qmc7pWw1yxc2ARBWitDMYiyPkWK61NsXXU8oYAQwNAvcx1',
- 'QmX9Hgw1rMFUgBBuq8QfZZDzLjN5xCED19fwFdDeDDqwmr',
- 'QmconCAyNyaagqKvvfKCbG7Eu8c6vCtkv2ivvxMoFN9YwA',
- 'QmWbFmvViy5gx4JdD5sw5YJETet4ZQcXtYgijYnrsnSZ3a',
- 'QmP6QiiJwoqkduZMqdd5e5htHZ4aYHCsvEu7WEEUknKYa5',
- 'QmefHk8hvBUHsuKugntok5u75Q8i886cnPwsj4LZZB6uWg',
- 'QmdrSDK5ByYHxc88hfDu8hQgK5XYFpXSfPorUXdyTbE437',
- 'QmZ6ZycjRzYpsjnLm1Lfgk1fXXDdhcYRkyfmqYJZVGwADy',
- 'QmSkBxS5yLPjB2VPs89oQRZANsoyodK6s8s52E8GKXr2zt',
- 'QmSn8TCPwq3UZ1Z4eyko76CvQo2H2Hyef1NGboDQN22m5i',
- 'QmP6CTH5zrKMzZwtjy7VaK9NXiq4Gw53kmuRjUbJjeovoe',
- 'QmdwT4yvz9Xf8g3t6irKRoh3Wa7MwRQrcUJckQxyQe1Bc5',
- 'QmcwuHH3bD5JExqjDvKqRQ3V5xEVGqs94qPNVDzaCqJa5a',
- 'QmRfVduHwn8sXwSoyfgZpxSi8L7EjP4LMp6fmijo9VApDp',
- 'Qmc4TGj1Ahbg9HJ9WDXDm2bXsNkT4zRDp8Wdw9wqqdEwuH',
- 'QmY8uQiHMWA8ztf2wAurNFW7eiTHQEUiLTQ2vGceMwVqz3',
- 'QmXiXbaD12F4mkbUSQcKhWshkPU4oi29cUawZGnPk86VVU',
- 'QmZaiAGjvBZBw4suz33s9JQNzY2Kshean2mQQPCa6gKMQe',
- 'Qme8bDSdzX7tanPYf672xXW8vPdkLkeSLqLzHJqidRXsYJ',
- 'QmRJirjuUKgh2AMyBF4jNquaXHFPBtDJf3gKFC614hX7qu',
- 'QmdRoSKSgabcrpekNBPB6T47RBtJnCETYE8ry2a3P37MUe',
- 'QmXoqArruHSghrUGW35vVQHPknBG5Cj939iWWHHXU3B616',
- 'QmYCxtDuoHLMAFhNpifUsLU9ptAeFKwyxSiSEJhDQLMZtN',
- 'QmQZQBw8wgzUsrmVDEejdePK23AEJbk9aUracvxLPyHz2x',
- 'QmSsbu7U3i62AQKuYqfisRo5E6nqdMZfHRKWYJgouaXDxD',
- 'QmaP4adVQuWyqtN4QCXeYXj4nr19Je4EqsaTG1zM9ywqFS',
- 'QmPPsvgfXsiN3wNqdAwHAhQVpw6SZWNpry9Na6R2Xb7zXY',
- 'QmR7z6wQmcfZUvRsVK83GRRboyvwZEDQujLwumMY33nAit',
- 'QmQXgkgorDLPUyQpFbW8aLUW6jioQjUKamtXw5UuNCttDg',
- 'QmcwYBeXt1BPfdSrtSrXFpWctRZ7RDHvmKTttC5hPPTSzG',
- 'QmTUexZnw3xPy3YVdUsqJALwTvy2qFax5b3QpJVMvTCJQb',
- 'QmNLkYXFUvctpfeeDTZxruZE2f834EUnYMM6JJUeTcUB4J',
- 'QmT7544UaTPgKFYMCpPE4unXphNGX71BLZBPKLkxAijSmj',
- 'QmTpVR4dqX1QV4fae5pZ1ACtRcANHwEWCLwpMXFmwE95Sm',
- 'Qmdfyps5fW8d8wstXMfpvpei2DTmaADBWgmxLT7e7uan4P',
- 'QmUSK8byipYoG3H97QpmPrHw9vYrvHygyhkiM81XmaKyxS',
- 'QmQUGRvp96LTw5i8Ly9f5LoMvUpeQHCLGNqC88KV74wEHK',
- 'Qma693TFLh9Z1MeBFzhPHi6Yk4tmTcZY2jogwJ8cPkU2B4',
- 'QmNu8FyMpmkFdbCXGRVG8mKJtMvvCoLP8LNzFsxBQwxQeS',
- 'QmWZHE87PKujL1MGLuFgP3D12o5GQxYbvbeTRgr12f1XMu',
- 'QmcZJn8gPGd3poS9yuiNJh6iP4cn9uy5fnypky71r4sSSw',
- 'QmTwrAF4E9ucpdnrUZFj6EfrQamGv7Qyn7ceSx1DUQYceC',
- 'QmexssxU5iTXypgNqrmrQwMDJnTNxyZUxor5wDLnwb5TZp'
+ "QmPbFkiXNuaQyfwD4W9GcXP7qWaNd6wFd9KCnJir5mes1J",
+ "QmPVjvbaMxSJRpDxMLYTdUWQbknej1vYLckBQ2pAgxZgJN",
+ "QmVasycSFzCYhyXrcvTE7mN3d6W78RFnrhzg5cRF6Dp6Zq",
+ "QmTmnhjpTBjZdeHwXgT9Dftc3uWMW73qsZpZ5ECrTyiKKZ",
+ "QmWDBiyVPyFkzUrEdvy7DSJe1rBQpene1m6quKAtyjBP6a",
+ "QmcxxzQZwgG7SE9QbHNvoTiCi6Dhs9rrz9roqvxm2JQA88",
+ "Qmd9ThEpXLLHimEzRUWEFrAGLSw5PAHzn2SmwfCnjNLwWt",
+ "Qmc7pWw1yxc2ARBWitDMYiyPkWK61NsXXU8oYAQwNAvcx1",
+ "QmX9Hgw1rMFUgBBuq8QfZZDzLjN5xCED19fwFdDeDDqwmr",
+ "QmconCAyNyaagqKvvfKCbG7Eu8c6vCtkv2ivvxMoFN9YwA",
+ "QmWbFmvViy5gx4JdD5sw5YJETet4ZQcXtYgijYnrsnSZ3a",
+ "QmP6QiiJwoqkduZMqdd5e5htHZ4aYHCsvEu7WEEUknKYa5",
+ "QmefHk8hvBUHsuKugntok5u75Q8i886cnPwsj4LZZB6uWg",
+ "QmdrSDK5ByYHxc88hfDu8hQgK5XYFpXSfPorUXdyTbE437",
+ "QmZ6ZycjRzYpsjnLm1Lfgk1fXXDdhcYRkyfmqYJZVGwADy",
+ "QmSkBxS5yLPjB2VPs89oQRZANsoyodK6s8s52E8GKXr2zt",
+ "QmSn8TCPwq3UZ1Z4eyko76CvQo2H2Hyef1NGboDQN22m5i",
+ "QmP6CTH5zrKMzZwtjy7VaK9NXiq4Gw53kmuRjUbJjeovoe",
+ "QmdwT4yvz9Xf8g3t6irKRoh3Wa7MwRQrcUJckQxyQe1Bc5",
+ "QmcwuHH3bD5JExqjDvKqRQ3V5xEVGqs94qPNVDzaCqJa5a",
+ "QmRfVduHwn8sXwSoyfgZpxSi8L7EjP4LMp6fmijo9VApDp",
+ "Qmc4TGj1Ahbg9HJ9WDXDm2bXsNkT4zRDp8Wdw9wqqdEwuH",
+ "QmY8uQiHMWA8ztf2wAurNFW7eiTHQEUiLTQ2vGceMwVqz3",
+ "QmXiXbaD12F4mkbUSQcKhWshkPU4oi29cUawZGnPk86VVU",
+ "QmZaiAGjvBZBw4suz33s9JQNzY2Kshean2mQQPCa6gKMQe",
+ "Qme8bDSdzX7tanPYf672xXW8vPdkLkeSLqLzHJqidRXsYJ",
+ "QmRJirjuUKgh2AMyBF4jNquaXHFPBtDJf3gKFC614hX7qu",
+ "QmdRoSKSgabcrpekNBPB6T47RBtJnCETYE8ry2a3P37MUe",
+ "QmXoqArruHSghrUGW35vVQHPknBG5Cj939iWWHHXU3B616",
+ "QmYCxtDuoHLMAFhNpifUsLU9ptAeFKwyxSiSEJhDQLMZtN",
+ "QmQZQBw8wgzUsrmVDEejdePK23AEJbk9aUracvxLPyHz2x",
+ "QmSsbu7U3i62AQKuYqfisRo5E6nqdMZfHRKWYJgouaXDxD",
+ "QmaP4adVQuWyqtN4QCXeYXj4nr19Je4EqsaTG1zM9ywqFS",
+ "QmPPsvgfXsiN3wNqdAwHAhQVpw6SZWNpry9Na6R2Xb7zXY",
+ "QmR7z6wQmcfZUvRsVK83GRRboyvwZEDQujLwumMY33nAit",
+ "QmQXgkgorDLPUyQpFbW8aLUW6jioQjUKamtXw5UuNCttDg",
+ "QmcwYBeXt1BPfdSrtSrXFpWctRZ7RDHvmKTttC5hPPTSzG",
+ "QmTUexZnw3xPy3YVdUsqJALwTvy2qFax5b3QpJVMvTCJQb",
+ "QmNLkYXFUvctpfeeDTZxruZE2f834EUnYMM6JJUeTcUB4J",
+ "QmT7544UaTPgKFYMCpPE4unXphNGX71BLZBPKLkxAijSmj",
+ "QmTpVR4dqX1QV4fae5pZ1ACtRcANHwEWCLwpMXFmwE95Sm",
+ "Qmdfyps5fW8d8wstXMfpvpei2DTmaADBWgmxLT7e7uan4P",
+ "QmUSK8byipYoG3H97QpmPrHw9vYrvHygyhkiM81XmaKyxS",
+ "QmQUGRvp96LTw5i8Ly9f5LoMvUpeQHCLGNqC88KV74wEHK",
+ "Qma693TFLh9Z1MeBFzhPHi6Yk4tmTcZY2jogwJ8cPkU2B4",
+ "QmNu8FyMpmkFdbCXGRVG8mKJtMvvCoLP8LNzFsxBQwxQeS",
+ "QmWZHE87PKujL1MGLuFgP3D12o5GQxYbvbeTRgr12f1XMu",
+ "QmcZJn8gPGd3poS9yuiNJh6iP4cn9uy5fnypky71r4sSSw",
+ "QmTwrAF4E9ucpdnrUZFj6EfrQamGv7Qyn7ceSx1DUQYceC",
+ "QmexssxU5iTXypgNqrmrQwMDJnTNxyZUxor5wDLnwb5TZp",
];
diff --git a/src/lib/translations/index.js b/src/lib/translations/index.js
index 5f4f1754..a07a6dbf 100644
--- a/src/lib/translations/index.js
+++ b/src/lib/translations/index.js
@@ -1,68 +1,71 @@
-import i18n from 'sveltekit-i18n';
-import lang from './lang.json';
+import i18n from "sveltekit-i18n";
+import lang from "./lang.json";
// setup loaders & translations from lang.json data
function createLocaleLoader(localeCode) {
- return {
- locale: localeCode,
- key: '',
- loader: async () => (await import(`../../locales/${localeCode}.json`)).default
- };
+ return {
+ locale: localeCode,
+ key: "",
+ loader: async () =>
+ (await import(`../../locales/${localeCode}.json`)).default,
+ };
}
const availableLocales = Object.keys(lang);
const translations = {};
for (let i = 0; i < availableLocales.length; i++) {
- translations[availableLocales[i]] = { lang };
+ translations[availableLocales[i]] = { lang };
}
const loaders = availableLocales.map(createLocaleLoader);
const config = {
- initLocale: 'en',
- fallbackLocale: 'en',
- translations,
- loaders: [
- {
- locale: 'en',
- key: '',
- loader: async () => (await import('../../locales/en.json')).default
- },
- {
- locale: 'es',
- key: '',
- loader: async () => (await import('../../locales/es.json')).default
- },
- {
- locale: 'fr',
- key: '',
- loader: async () => (await import('../../locales/fr.json')).default
- },
- {
- locale: 'pt',
- key: '',
- loader: async () => (await import('../../locales/pt.json')).default
- },
- {
- locale: 'de',
- key: '',
- loader: async () => (await import('../../locales/de.json')).default
- },
- {
- locale: 'zh',
- key: '',
- loader: async () => (await import('../../locales/zh.json')).default
- },
- {
- locale: 'fa',
- key: '',
- loader: async () => (await import('../../locales/fa.json')).default
- },
- {
- locale: 'el',
- key: '',
- loader: async () => (await import('../../locales/el.json')).default
- }
- ]
+ initLocale: "en",
+ fallbackLocale: "en",
+ translations,
+ loaders: [
+ {
+ locale: "en",
+ key: "",
+ loader: async () => (await import("../../locales/en.json")).default,
+ },
+ {
+ locale: "es",
+ key: "",
+ loader: async () => (await import("../../locales/es.json")).default,
+ },
+ {
+ locale: "fr",
+ key: "",
+ loader: async () => (await import("../../locales/fr.json")).default,
+ },
+ {
+ locale: "pt",
+ key: "",
+ loader: async () => (await import("../../locales/pt.json")).default,
+ },
+ {
+ locale: "de",
+ key: "",
+ loader: async () => (await import("../../locales/de.json")).default,
+ },
+ {
+ locale: "zh",
+ key: "",
+ loader: async () => (await import("../../locales/zh.json")).default,
+ },
+ {
+ locale: "fa",
+ key: "",
+ loader: async () => (await import("../../locales/fa.json")).default,
+ },
+ {
+ locale: "el",
+ key: "",
+ loader: async () => (await import("../../locales/el.json")).default,
+ },
+ ],
};
-export const { t, loading, locales, locale, loadTranslations } = new i18n(config);
+export const { t, loading, locales, locale, loadTranslations } = new i18n(
+ config
+);
diff --git a/src/lib/translations/lang.json b/src/lib/translations/lang.json
index 0acc1de6..d18a67e3 100644
--- a/src/lib/translations/lang.json
+++ b/src/lib/translations/lang.json
@@ -1,10 +1,10 @@
{
- "en": "English",
- "fr": "Français",
- "es": "Español",
- "de": "Deutsch",
- "pt": "Português",
- "zh": "中国人",
- "fa": "فارسی ",
- "el": "Ελληνικά"
+ "en": "English",
+ "fr": "Français",
+ "es": "Español",
+ "de": "Deutsch",
+ "pt": "Português",
+ "zh": "中国人",
+ "fa": "فارسی ",
+ "el": "Ελληνικά"
}
diff --git a/src/lib/upload.js b/src/lib/upload.js
index 92f5290f..552e4a7a 100644
--- a/src/lib/upload.js
+++ b/src/lib/upload.js
@@ -1,19 +1,19 @@
export const upload = async (file, type, progress, token) => {
- let url = `/api/upload/${type}`;
- let formData = new FormData();
- formData.append('file', file);
+ let url = `/api/upload/${type}`;
+ let formData = new FormData();
+ formData.append("file", file);
- return new Promise((resolve, reject) => {
- let ajax = new XMLHttpRequest();
- ajax.addEventListener('load', () => {
- if (ajax.readyState === ajax.DONE) {
- if (ajax.status === 200) resolve(ajax.response);
- else reject(new Error(`Upload failed: ${ajax.response}`));
- }
- });
- ajax.upload.addEventListener('progress', progress, false);
- ajax.open('POST', url);
- // ajax.setRequestHeader('Authorization', `Bearer ${token}`);
- ajax.send(formData);
- });
+ return new Promise((resolve, reject) => {
+ let ajax = new XMLHttpRequest();
+ ajax.addEventListener("load", () => {
+ if (ajax.readyState === ajax.DONE) {
+ if (ajax.status === 200) resolve(ajax.response);
+ else reject(new Error(`Upload failed: ${ajax.response}`));
+ }
+ });
+ ajax.upload.addEventListener("progress", progress, false);
+ ajax.open("POST", url);
+ // ajax.setRequestHeader('Authorization', `Bearer ${token}`);
+ ajax.send(formData);
+ });
};
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 9b3e5592..c0df81ae 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -1,266 +1,282 @@
-import { browser } from '$app/environment';
-import { toast } from '@zerodevx/svelte-toast';
-import { goto } from '$app/navigation';
-import { PUBLIC_COINOS_URL } from '$env/static/public';
-import { page } from '$app/stores';
-import { get as getStore } from 'svelte/store';
+import { browser } from "$app/environment";
+import { toast } from "@zerodevx/svelte-toast";
+import { goto } from "$app/navigation";
+import { PUBLIC_COINOS_URL } from "$env/static/public";
+import { page } from "$app/stores";
+import { get as getStore } from "svelte/store";
export function scroll(section) {
- if (getStore(page).url.pathname !== '/') goto('/');
- setTimeout(() => section.scrollIntoView({ behavior: 'smooth' }), 500);
+ if (getStore(page).url.pathname !== "/") goto("/");
+ setTimeout(() => section.scrollIntoView({ behavior: "smooth" }), 500);
}
-let base = browser ? '' : PUBLIC_COINOS_URL;
+let base = browser ? "" : PUBLIC_COINOS_URL;
-export let punk = (k) => Math.floor((parseInt(k.slice(-2), 16) / 256) * 64) + 1 + '.webp';
+export let punk = (k) =>
+ Math.floor((parseInt(k.slice(-2), 16) / 256) * 64) + 1 + ".webp";
export let g = (url, fetch, headers) =>
- fetch(base + url, { headers })
- .then((r) => r.text())
- .then((body) => {
- try {
- return JSON.parse(body);
- } catch (e) {
- throw new Error(body);
- }
- });
+ fetch(base + url, { headers })
+ .then((r) => r.text())
+ .then((body) => {
+ try {
+ return JSON.parse(body);
+ } catch (e) {
+ throw new Error(body);
+ }
+ });
export let get = (url, headers = {}) => {
- return fetch(base + url, { headers })
- .then(async (r) => {
- if (r.ok) return r.text();
- throw new Error(await r.text());
- })
- .then((body) => {
- try {
- return JSON.parse(body);
- } catch (e) {
- return body;
- }
- });
-}
+ return fetch(base + url, { headers })
+ .then(async (r) => {
+ if (r.ok) return r.text();
+ throw new Error(await r.text());
+ })
+ .then((body) => {
+ try {
+ return JSON.parse(body);
+ } catch (e) {
+ return body;
+ }
+ });
+};
export let post = (url, body, headers) => {
- headers = { ...headers, 'content-type': 'application/json', accept: 'application/json' };
- return fetch(base + url, { method: 'POST', body: JSON.stringify(body), headers })
- .then(async (r) => {
- if (r.ok) return r.text();
- let text = await r.text();
-
- let message;
- try {
- ({ message } = JSON.parse(text));
- } catch (e) {}
-
- if (message) throw new Error(message);
- throw new Error(text);
- })
- .then((body) => {
- try {
- body = JSON.parse(body);
- } catch (e) {
- throw new Error(body);
- }
-
- if (body.error instanceof Error) throw body.error;
- if (body instanceof Error) throw body;
- if (body.name === 'Error') throw new Error(body.message);
-
- return body;
- });
+ headers = {
+ ...headers,
+ "content-type": "application/json",
+ accept: "application/json",
+ };
+ return fetch(base + url, {
+ method: "POST",
+ body: JSON.stringify(body),
+ headers,
+ })
+ .then(async (r) => {
+ if (r.ok) return r.text();
+ let text = await r.text();
+
+ let message;
+ try {
+ ({ message } = JSON.parse(text));
+ } catch (e) {}
+
+ if (message) throw new Error(message);
+ throw new Error(text);
+ })
+ .then((body) => {
+ try {
+ body = JSON.parse(body);
+ } catch (e) {
+ throw new Error(body);
+ }
+
+ if (body.error instanceof Error) throw body.error;
+ if (body instanceof Error) throw body;
+ if (body.name === "Error") throw new Error(body.message);
+
+ return body;
+ });
};
export let copy = (text) => {
- navigator.clipboard.writeText(text);
- success('Copied!');
+ navigator.clipboard.writeText(text);
+ success("Copied!");
};
export let copyNoNewlines = (text) => {
- let stripped = text.replace(/\n/g, ' ').replace(/\s+/g, ' ');
- navigator.clipboard.writeText(stripped);
- success('Copied!');
+ let stripped = text.replace(/\n/g, " ").replace(/\s+/g, " ");
+ navigator.clipboard.writeText(stripped);
+ success("Copied!");
};
export function reverseFormat(val, locale) {
- let parts = new Intl.NumberFormat(locale).formatToParts(1111.1);
- let group = parts.find((part) => part.type === 'group').value;
- let decimal = parts.find((part) => part.type === 'decimal').value;
- let reversedVal = val.replace(new RegExp('\\' + group, 'g'), '');
- reversedVal = reversedVal.replace(new RegExp('\\' + decimal, 'g'), '.');
- return Number.isNaN(reversedVal) ? 0 : +reversedVal;
+ let parts = new Intl.NumberFormat(locale).formatToParts(1111.1);
+ let group = parts.find((part) => part.type === "group").value;
+ let decimal = parts.find((part) => part.type === "decimal").value;
+ let reversedVal = val.replace(new RegExp("\\" + group, "g"), "");
+ reversedVal = reversedVal.replace(new RegExp("\\" + decimal, "g"), ".");
+ return Number.isNaN(reversedVal) ? 0 : +reversedVal;
}
export let protectedRoutes = [/customers/, /settings/, /payments/];
export let success = (m) => {
- toast.pop();
- toast.push(m, {
- theme: {
- '--toastBarBackground': '#F5F7FA'
- }
- });
+ toast.pop();
+ toast.push(m, {
+ theme: {
+ "--toastBarBackground": "#F5F7FA",
+ },
+ });
};
export let warning = (m) => {
- toast.pop();
- toast.push(m, {
- theme: {
- '--toastBarBackground': '#FFCE22'
- }
- });
+ toast.pop();
+ toast.push(m, {
+ theme: {
+ "--toastBarBackground": "#FFCE22",
+ },
+ });
};
export let fail = (m) => {
- toast.pop();
- toast.push(m, {
- theme: {
- '--toastBarBackground': '#E93535'
- }
- });
+ toast.pop();
+ toast.push(m, {
+ theme: {
+ "--toastBarBackground": "#E93535",
+ },
+ });
};
export let info = (m) => {
- toast.pop();
- toast.push(m, {
- theme: {
- '--toastBarBackground': 'white'
- }
- });
+ toast.pop();
+ toast.push(m, {
+ theme: {
+ "--toastBarBackground": "white",
+ },
+ });
};
export let login = async (user, cookies, ip) => {
- let maxAge = 380 * 24 * 60 * 60;
-
- let res = await fetch(base + '/login', {
- method: 'POST',
- body: JSON.stringify(user),
- headers: {
- 'content-type': 'application/json',
- accept: 'application/json',
- 'cf-connecting-ip': ip
- }
- });
- if (res.status === 401) {
- let text = await res.text();
- if (text.startsWith('2fa')) throw new Error('2fa');
- }
-
- let { token } = await res.json();
- if (!token) throw new Error('Login failed');
-
- let expires = new Date();
- expires.setSeconds(expires.getSeconds() + maxAge);
-
- let opts = { path: '/', expires };
- cookies.set('username', user.username, opts);
- cookies.set('token', token, opts);
+ let maxAge = 380 * 24 * 60 * 60;
+
+ let res = await fetch(base + "/login", {
+ method: "POST",
+ body: JSON.stringify(user),
+ headers: {
+ "content-type": "application/json",
+ accept: "application/json",
+ "cf-connecting-ip": ip,
+ },
+ });
+ if (res.status === 401) {
+ let text = await res.text();
+ if (text.startsWith("2fa")) throw new Error("2fa");
+ }
+
+ let { token } = await res.json();
+ if (!token) throw new Error("Login failed");
+
+ let expires = new Date();
+ expires.setSeconds(expires.getSeconds() + maxAge);
+
+ let opts = { path: "/", expires };
+ cookies.set("username", user.username, opts);
+ cookies.set("token", token, opts);
};
-export let auth = (cookies) => ({ authorization: `Bearer ${cookies.get('token')}` });
+export let auth = (cookies) => ({
+ authorization: `Bearer ${cookies.get("token")}`,
+});
export let fiat = (amount, rate) => (amount * rate) / sats;
export let fd = async (req) => {
- let obj = Object.fromEntries(await req.formData());
- for (let k in obj)
- (obj[k] === 'undefined' && (obj[k] = undefined)) || (obj[k] === 'false' && (obj[k] = false));
- return obj;
+ let obj = Object.fromEntries(await req.formData());
+ for (let k in obj)
+ (obj[k] === "undefined" && (obj[k] = undefined)) ||
+ (obj[k] === "false" && (obj[k] = false));
+ return obj;
};
export let f = (s, currency) =>
- new Intl.NumberFormat('en-US', {
- style: 'currency',
- currency
- })
- .format(s)
- .replace('CA', '');
-
-export let s = (s) => new Intl.NumberFormat('en-US', { maximumFractionDigits: 0 }).format(s);
+ new Intl.NumberFormat("en-US", {
+ style: "currency",
+ currency,
+ })
+ .format(s)
+ .replace("CA", "");
+
+export let s = (s) =>
+ new Intl.NumberFormat("en-US", { maximumFractionDigits: 0 }).format(s);
export let sat = (s) => {
- s = Math.abs(s);
- let p = Math.floor(Math.log(s) / Math.LN10 + 0.000000001);
- let d = Math.floor((p + 1) / 3);
-
- return (
- '⚡️' +
- (parseInt(s) > 0
- ? new Intl.NumberFormat('en-US', { maximumFractionDigits: 2 }).format(s / Math.pow(1000, d)) +
- ['', 'K', 'M', 'G', 'T', 'P', 'E', 'Z'][d]
- : 0
- ).toString()
- );
+ s = Math.abs(s);
+ let p = Math.floor(Math.log(s) / Math.LN10 + 0.000000001);
+ let d = Math.floor((p + 1) / 3);
+
+ return (
+ "⚡️" +
+ (parseInt(s) > 0
+ ? new Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(
+ s / Math.pow(1000, d)
+ ) + ["", "K", "M", "G", "T", "P", "E", "Z"][d]
+ : 0
+ ).toString()
+ );
};
export let sats = 100000000;
-export let back = () => browser && (history.length ? history.go(-1) : goto('/'));
-export let focus = (el) => browser && screen.width > 1280 && setTimeout(() => el.focus(), 1);
+export let back = () =>
+ browser && (history.length ? history.go(-1) : goto("/"));
+export let focus = (el) =>
+ browser && screen.width > 1280 && setTimeout(() => el.focus(), 1);
export let sleep = (n) => new Promise((r) => setTimeout(r, n));
export let wait = async (f, n = 100, s = 300) => {
- let i = 0;
- while (!(await f()) && i < s) (await sleep(n)) && i++;
- if (i >= s) throw new Error('timeout');
- return f();
+ let i = 0;
+ while (!(await f()) && i < s) (await sleep(n)) && i++;
+ if (i >= s) throw new Error("timeout");
+ return f();
};
export let stretch = async (password, salt) =>
- crypto.subtle.deriveKey(
- {
- name: 'PBKDF2',
- salt,
- iterations: 100000,
- hash: 'SHA-256'
- },
- await crypto.subtle.importKey(
- 'raw',
- new TextEncoder().encode(password),
- { name: 'PBKDF2' },
- false,
- ['deriveBits', 'deriveKey']
- ),
- { name: 'AES-GCM', length: 256 },
- true,
- ['encrypt', 'decrypt']
- );
+ crypto.subtle.deriveKey(
+ {
+ name: "PBKDF2",
+ salt,
+ iterations: 100000,
+ hash: "SHA-256",
+ },
+ await crypto.subtle.importKey(
+ "raw",
+ new TextEncoder().encode(password),
+ { name: "PBKDF2" },
+ false,
+ ["deriveBits", "deriveKey"]
+ ),
+ { name: "AES-GCM", length: 256 },
+ true,
+ ["encrypt", "decrypt"]
+ );
function get_bigrams(string) {
- var s = string.toLowerCase();
- var v = s.split('');
- for (var i = 0; i < v.length; i++) {
- v[i] = s.slice(i, i + 2);
- }
- return v;
+ var s = string.toLowerCase();
+ var v = s.split("");
+ for (var i = 0; i < v.length; i++) {
+ v[i] = s.slice(i, i + 2);
+ }
+ return v;
}
export function ss(str1, str2) {
- if (str1.length > 0 && str2.length > 0) {
- var pairs1 = get_bigrams(str1);
- var pairs2 = get_bigrams(str2);
- var union = pairs1.length + pairs2.length;
- var hits = 0;
- for (var x = 0; x < pairs1.length; x++) {
- for (var y = 0; y < pairs2.length; y++) {
- if (pairs1[x] == pairs2[y]) hit_count++;
- }
- }
- if (hits > 0) return (2.0 * hits) / union;
- }
-
- return 0.0;
+ if (str1.length > 0 && str2.length > 0) {
+ var pairs1 = get_bigrams(str1);
+ var pairs2 = get_bigrams(str2);
+ var union = pairs1.length + pairs2.length;
+ var hits = 0;
+ for (var x = 0; x < pairs1.length; x++) {
+ for (var y = 0; y < pairs2.length; y++) {
+ if (pairs1[x] == pairs2[y]) hit_count++;
+ }
+ }
+ if (hits > 0) return (2.0 * hits) / union;
+ }
+
+ return 0.0;
}
export let types = {
- bitcoin: 'bitcoin',
- lightning: 'lightning',
- internal: 'internal',
- fund: 'fund',
- classic: 'classic'
+ bitcoin: "bitcoin",
+ lightning: "lightning",
+ internal: "internal",
+ fund: "fund",
+ classic: "classic",
};
-export let ease = (t) => (t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t);
-
- export function shuffleArray(array) {
- for (let i = array.length - 1; i > 0; i--) {
- const j = Math.floor(Math.random() * (i + 1));
- [array[i], array[j]] = [array[j], array[i]];
- }
- }
+export let ease = (t) =>
+ t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
+export function shuffleArray(array) {
+ for (let i = array.length - 1; i > 0; i--) {
+ const j = Math.floor(Math.random() * (i + 1));
+ [array[i], array[j]] = [array[j], array[i]];
+ }
+}
diff --git a/src/locales/de.json b/src/locales/de.json
index 73fa778e..652ee218 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -1,300 +1,300 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Diese Seite konnte nicht gefunden werden."
- },
- "about": {
- "header": "Über uns",
- "p1": "Coinos ist eine Open-Source-Bitcoin-Bezahl-App. Im September 2012 starteten wir die Entwicklung in Vancouver, um lokalen Händlern eine bequeme Möglichkeit zu bieten, Bitcoin-Zahlungen zu akzeptieren.",
- "p2": "Sie können den Quellcode herunterladen, um die Coinos-App mit Ihrem eigenen Bitcoin- und Lightning-Node zu verbinden. Gerne helfen wir Ihnen dabei, ein wertvoller Dienstleister sowie Zahlungsanbieter für Ihre Kunden zu werden.",
- "p3": "Transaktionen zwischen Nutzerkonten auf unserem Server werden Off-Chain durchgeführt. Diese werden sofort abgewickelt und sind völlig kostenlos sowie unlimitiert.",
- "team": {
- "header": "Das Team",
- "adam": {
- "name": "Adam Soltys",
- "position": "Chief Technical Officer",
- "bio": "Adam ist ein Webentwickler und Bitcoin-Enthusiast, der davon überzeugt ist, dass hartes Geld der Schlüssel zur Steigerung des globalen Wohlstands ist. Er lebt mit seiner Frau Chelsea und seinen zwei Kindern in North Vancouver."
- },
- "secondl1ght": {
- "name": "secondl1ght",
- "position": "Web Developer",
- "bio": "Secondl1ght hat sich das Programmieren selbst beigebracht, ist kopfüber in den Bitcoin-Kaninchenbau gesprungen und hat seinen Fiat-Job aufgegeben, um sich voll und ganz auf die Bitcoin-Entwicklung zu konzentrieren. Er wirkt bei Open-Source-Projekten mit, ist ein Verfechter der Privatsphäre und ein Freiheitsliebhaber."
- },
+ "404": {
+ "404": "404",
+ "pageNotFound": "Diese Seite konnte nicht gefunden werden."
+ },
+ "about": {
+ "header": "Über uns",
+ "p1": "Coinos ist eine Open-Source-Bitcoin-Bezahl-App. Im September 2012 starteten wir die Entwicklung in Vancouver, um lokalen Händlern eine bequeme Möglichkeit zu bieten, Bitcoin-Zahlungen zu akzeptieren.",
+ "p2": "Sie können den Quellcode herunterladen, um die Coinos-App mit Ihrem eigenen Bitcoin- und Lightning-Node zu verbinden. Gerne helfen wir Ihnen dabei, ein wertvoller Dienstleister sowie Zahlungsanbieter für Ihre Kunden zu werden.",
+ "p3": "Transaktionen zwischen Nutzerkonten auf unserem Server werden Off-Chain durchgeführt. Diese werden sofort abgewickelt und sind völlig kostenlos sowie unlimitiert.",
+ "team": {
+ "header": "Das Team",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Chief Technical Officer",
+ "bio": "Adam ist ein Webentwickler und Bitcoin-Enthusiast, der davon überzeugt ist, dass hartes Geld der Schlüssel zur Steigerung des globalen Wohlstands ist. Er lebt mit seiner Frau Chelsea und seinen zwei Kindern in North Vancouver."
+ },
+ "secondl1ght": {
+ "name": "secondl1ght",
+ "position": "Web Developer",
+ "bio": "Secondl1ght hat sich das Programmieren selbst beigebracht, ist kopfüber in den Bitcoin-Kaninchenbau gesprungen und hat seinen Fiat-Job aufgegeben, um sich voll und ganz auf die Bitcoin-Entwicklung zu konzentrieren. Er wirkt bei Open-Source-Projekten mit, ist ein Verfechter der Privatsphäre und ein Freiheitsliebhaber."
+ },
- "karnage": {
- "name": "Karnage",
- "position": "Product Designer",
- "bio": "Meine Mission ist es, Startup-Gründern zum Erfolg zu verhelfen. Ich entwickle Produkte, die dabei helfen, dieses Ziel zu erreichen."
- },
- "shauna": {
- "name": "Shauna",
- "position": "Operations & Marketing",
- "bio": "Strategie- & Projektmanagement. Unser Universalgenie in allen Bereichen. Findet immer Zeit, um sich auf einen Kaffee zu treffen."
- },
- "cole": {
- "name": "Cole",
- "position": "Bitcoin Experte",
- "bio": "Als zertifizierter Bitcoin-Experte ist Cole ein engagierter Mensch mit großer Leidenschaft für Freiheit. Er entdeckte Bitcoin im Jahr 2016 und beschäftigte sich eingehend damit. Jetzt möchte er das Lightning-Netzwerk so vielen Nutzern wie möglich näherbringen."
- },
- "john": {
- "name": "John Barratt",
- "position": "Full Stack Web Developer",
- "bio": "Wenn er nicht gerade programmiert, findet man John in der Natur beim Entdecken der vielen, großartigen Wanderwege, die BC zu bieten hat."
- }
- },
- "locations": {
- "header": "Standorte",
- "description": "Hier finden Sie einige Unternehmen, welche bereits Zahlungen mit Bitcoin über Coinos akzeptieren. Wir hoffen, dass Ihr Unternehmen das nächste sein wird!"
- }
- },
- "error": {
- "header": "Error",
- "message": "Bitte versuchen Sie es erneut oder kontaktieren Sie unseren Support.",
- "signIn": "Bitte melden Sie sich an, um fortzufahren."
- },
- "faq": {
- "header": "FAQ",
- "why": {
- "question": "Warum Bitcoin akzeptieren?",
- "answer": "Mit Bitcoin sparen Händler bei den Gebühren, Verbraucher gewinnen an Privatsphäre und Sparer an Kaufkraft. Wir bewerben Ihr Geschäft bei einer begeisterten Gemeinschaft, die bevorzugt in Geschäften einkauft, die Bitcoin akzeptieren."
- },
- "cost": {
- "question": "Was kostet das?",
- "answer": "Zahlungen auf Ihr Konto zu erhalten ist kostenlos. Auszahlungen an externe Wallets verursachen eine geringe Gebühr, die je nach Netzwerkbedingungen variiert. Wir berechnen 0,1% für die Umwandlung zwischen Lightning und On-Chain Bitcoin. Das Senden zu anderen Coinos-Konten ist kostenlos."
- },
- "individuals": {
- "question": "Wer kann es nutzen?",
- "answer": "Jeder, überall auf der Welt. Coinos ist sowohl für Einzelpersonen als auch für Unternehmen geeignet."
- },
- "compatibility": {
- "question": "Benötige ich ein spezielles Gerät oder eine spezielle Software?",
- "answer": "Nein, Coinos ist eine Web-App, die überall funktioniert, wo es Internet gibt. Händler könnten es auf einem Tablet verwenden oder einen QR-Code anbieten, den Kunden mit ihrem Handy scannen können."
- },
- "safety": {
- "question": "Wann wird mein Guthaben beglichen?",
- "answer": "Lightning-Zahlungen werden sofort beglichen. Sie können Ihr Guthaben innerhalb von Sekunden auf eine andere Wallet übertragen. On-Chain Einzahlungen dauern im Durchschnitt 5-10 Minuten zur Bestätigung."
- },
- "pos": {
- "question": "Kann Coinos mit meinem vorhandenen PoS integriert werden?",
- "answer": "Wir empfehlen, Verkäufe in Ihrem vorhandenen PoS als Bartransaktionen einzugeben."
- },
- "accounting": {
- "question": "Was ist mit der Buchhaltung?",
- "answer": "Wir zeigen alle Zahlungen in Ihrer lokalen Währung an und ermöglichen es Ihnen, nach Datum zu filtern, sodass Sie Ihr Einkommen wie gewohnt melden können. Sie können den Verlauf Ihres Kontos in eine CSV-Datei exportieren. Wenn Sie Bitcoin mit Gewinn verkaufen, möchten Sie vielleicht Kapitalerträge melden."
- },
- "offramp": {
- "question": "Kann ich den erhaltenen Bitcoin in meine lokale Währung umwandeln?",
- "answer": "Sie können Ihre Gelder jederzeit an eine Börse oder einen Makler abziehen, um Ihren Bitcoin zu verkaufen und eine Banküberweisung zu erhalten. Wir könnten bereit sein, direkte Abrechnungen per E-Transfer für ausgewählte kanadische Händler anzubieten."
- },
- "bitcoin": {
- "question": "Was kann ich mit Bitcoin machen?",
- "answer": "Geben Sie es bei anderen Händlern aus oder decken Sie damit Ihre Ausgaben, indem Sie Ihr Personal, Ihre Lieferanten und Ihren Vermieter dazu bringen, es zu akzeptieren."
- }
- },
- "footer": {
- "company": "Unternehmen",
- "followUs": "Folge uns",
- "github": "GitHub",
- "jobs": "Jobs",
- "support": "Support",
- "telegram": "Telegram",
- "twitter": "Twitter",
- "news": "Neuigkeiten"
- },
- "howItWorks": {
- "header": "So funktioniert's",
- "step1": {
- "header": "1. Erstellen Sie Ihr Konto",
- "description": "Sie benötigen nur einen Benutzernamen und ein Passwort - und schon geht's los!"
- },
- "step2": {
- "header": "2. Zahlungen anfordern",
- "description": "Ganz gleich, wie Sie es normalerweise machen würden, allerdings mit Bitcoin."
- },
- "step3": {
- "header": "3. Das war's!",
- "description": "Bezahlen Sie mit Ihrem Bitcoin-Bestand bei anderen Händlern oder sparen Sie diese für schlechtere Zeiten - Sie allein haben die Wahl."
- }
- },
- "invoice": {
- "addTip": "Trinkgeld hinzufügen",
- "addTipq": "Trinkgeld hinzufügen?",
- "done": "Fertig",
- "paymentSuccessful": "Zahlung erhalten!",
- "invoice": "Rechnung",
- "total": "Gesamtbetrag",
- "tip": "Trinkgeld"
- },
- "jobs": {
- "header": "Jobs",
- "subheader": "Offene Stellen",
- "pitch1": "Wir sind stets auf der Suche nach Entwicklern, die unser wachsendes Team verstärken möchten (Vollzeit oder Teilzeit, Homeoffice möglich).",
- "pitch2": "Möchten Sie mit uns an Open-Source-Bitcoin-Projekten arbeiten? Dann werfen Sie doch einen Blick auf unsere offenen Stellen auf",
- "github": "GitHub",
- "pitch3": "Wenn wir Ihr Interesse geweckt haben, würden wir uns freuen, von Ihnen zu hören. Schicken Sie uns gerne Ihren Lebenslauf an"
- },
- "landing": {
- "header_before_icon": "Der",
- "header_with_icon": "einfachste",
- "header_after_icon": "Weg um Bitcoin in Ihrem Unternehmen zu akzeptieren.",
- "subheader": "Erweitern Sie Ihren Kundenstamm und Ihren Umsatz, indem Sie Bitcoin mit einer einfach zu bedienenden Web-App akzeptieren. Keine Software oder Hardware ist dafür erforderlich.",
- "info1": {
- "title": "Sofortzahlungen über Lightning",
- "description": "Unmittelbar nachdem die Zahlung von Ihrem Kunden abgeschlossen wurde, ist diese auch bei Ihnen ersichtlich. Sie müssen sich weder um Rücklastschriften kümmern, noch auf Banküberweisungen warten. Sekundenschnelle Abrechnung - und das Beste daran: Es fallen keine 3% Kreditkartenbearbeitungsgebühren an."
- },
- "info2": {
- "title": "Einfache Handhabung",
- "description1": "Geben Sie einfach einen Betrag in Ihrer Landeswährung ein, teilen Sie den QR-Code mit Ihrem Kunden und schon sind Sie fertig.",
- "description2": "Wir nehmen Ihnen die ganze Arbeit ab, damit Sie sich auf Ihr Geschäft konzentrieren können.",
- "description3": "Sie haben jederzeit die Möglichkeit, selbst über Ihr Geld zu verfügen und es sofort abzuheben."
- },
- "info3": {
- "title": "Gestalten Sie Ihre Übersicht nach Ihrem Geschmack",
- "description": "Passen Sie die Übersicht dem Branding Ihres Unternehmens an oder nutzen Sie unser Standard-Design."
- }
- },
- "login": {
- "optional": "Optional",
- "token": "2FA Token",
- "username": "Benutzername",
- "password": "Passwort",
- "email": "E-Mail",
- "passwordRecommendation": "Wir empfehlen ein langes, zufälliges Passwort, welches mit einem Passwortgenerator erstellt wurde.",
- "forgotUserOrPassword": "Benutzername oder Passwort vergessen?",
- "haveAccount": "Bereits registriert?",
- "noAccount": "Noch nicht registriert?",
- "register": "Registrieren",
- "signIn": "Einloggen",
- "failed": "Login fehlgeschlagen"
- },
- "nav": {
- "profile": "Profil",
- "startInSeconds": "Jetzt loslegen",
- "account": "Konto",
- "signIn": "Einloggen",
- "signOut": "Ausloggen",
- "dashboard": "Übersicht",
- "settings": "Einstellungen",
- "support": "Support"
- },
- "newSiteHeader": "Kommen Sie zu unserer
Eröffnungsfeier in Vancouver am 26. Oktober! Auf der Suche nach der alten Coinos-Version? Besuchen Sie
classic.coinos.io",
- "news": {
- "header": "News",
- "subheader": "Letzte Updates",
- "update1": ""
- },
- "user": {
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Rechnung",
- "unfollow": "Nicht mehr folgen",
- "following": "Folgen",
- "follow": "Folgen",
- "remove": "Entfernen",
- "scanToPayBTC": "Den QR-Code scannen um mit Bitcoin zu zahlen",
- "this": "Das",
- "lightningAddress": "Lightning Adresse",
- "dashboard": {
- "go": "Los",
- "dashboard": "Übersicht",
- "accountBalance": "Kontostand",
- "bitcoinPrice": "Bitcoin Preis:",
- "conversionFeeWarning": "Es wird eine Abhebungsgebühr von 1% des Gesambetrags erhoben.",
- "dataFromBinance": "Daten von
Binance.",
- "fetchingRate": "Abfragen...",
- "optionalNote": "Notiz (optional)",
- "send": "Senden",
- "receive": "Erhalten",
- "withdraw": "Senden",
- "deposit": "Einzahlung",
- "voucher": "Beleg"
- },
- "receive": {
- "lessThan1BTCWarning": "Bitte geben Sie einen Betrag unter 1 Bitcoin ein.",
- "showQR": "QR-Code zeigen"
- },
- "send": {
- "contacts": "Kontakte",
- "scan": "Scannen",
- "paste": "Einfügen",
- "next": "Weiter",
- "placeholder": "Geben Sie eine Bitcoin-Adresse, eine Lightning-Rechnung oder einen Coinos-Benutzernamen ein"
- },
- "settings": {
- "bannerImage": "Logo",
- "profileImage": "Profilbild",
- "oneTimeCode": "Code eingeben",
- "accountId": "Kontoverbindung",
- "header": "Einstellungen",
- "ACCOUNT": "KONTO",
- "POINT_OF_SALE": "VERKAUFSSTELLE",
- "SECURITY": "SICHERHEIT",
- "locale": "Sprache",
- "username": "Benutzername",
- "email": "E-Mail",
- "newPassword": "Neues Passwort",
- "businessAddress": "Unternehmensadresse",
- "emailNotifications": "E-Mail-Benachrichtigungen",
- "emailNotificationsDescription": "Sie werden per E-Mail benachrichtigt, wenn eine Änderung auf Ihrem Konto vorgenommen wurde oder Ihnen jemand Zahlungen sendet.",
- "smsNotifications": "SMS-Benachrichtigungen",
- "smsNotificationsDescription": "Coinos wird Benachrichtigungen per SMS zusenden, wenn diese Funktion aktiviert ist.",
- "theme": "Farbdesign",
- "themeDescription": "Wählen Sie aus unseren Standard-Farbdesigns.",
- "localCurrency": "Landeswährung",
- "btcUnit": "Bitcoin anzeigen in:",
- "bitcoin": "Bitcoin",
- "satoshis": "Satoshis",
- "securityPIN": "Sicherheitscode",
- "securityPINDescription": "Legen Sie einen Sicherheitscode fest, der zum Entsperren Ihrer Einstellungen und zum Senden ausgehender Zahlungen verwendet wird.",
- "setPIN": "Set PIN",
- "autoLock": "Timer für automatische Sperre",
- "autoLockDescription": "Ihr Konto wird nach einer bestimmten Zeit automatisch in einen sicheren Modus versetzt:",
- "twofa": "2-Faktor Authentifizierung",
- "twofaDescription": "Erhöhen Sie das Sicherheitslevel Ihres Geräts, indem Sie die 2-Faktor-Authentifizierung aktivieren.",
- "twofaSetup": "2FA einrichten",
- "twofaDisable": "2FA deaktivieren",
- "select": "Auswählen",
- "verifyPIN": "Sicherheitscode verifizieren",
- "enablePIN": "PIN aktivieren",
- "disablePIN": "PIN deaktivieren"
- },
- "support": {
- "header": "Support",
- "email": "E-Mail",
- "accountName": "Kontoname",
- "message": "Nachricht",
- "send": "Senden"
- }
- },
- "payments": {
- "header": "Transaktionen",
- "AMOUNT": "GESAMTBETRAG",
- "TYPE": "TYP",
- "TIME": "ZEIT",
- "sent": "Gesendet",
- "received": "Erhalten",
- "empty": "Noch keine Transaktionen erhalten.",
- "send": "Senden",
- "next": "Weiter",
- "sendersChoice": "Absender",
- "sendTo": "Senden an",
- "to": "an",
- "pay": "Bezahlen",
- "requesting": "ersucht um",
- "sentInvoiceTo": "Rechnung senden an",
- "sentRequestTo": "Anfrage senden an",
- "pleasePay": "Bitte bezahlen Sie",
- "day": "Tag",
- "week": "Woche",
- "month": "Monat",
- "all": "Alles",
- "export": "Exportieren",
- "invoice": "Rechnung",
- "readyToPay": "Steht zur Zahlung bereit",
- "describeOrder": "Benutzen Sie dieses Feld um Ihre Bestellung zu beschreiben",
- "requestAnInvoice": "Rechnung anfordern",
- "submit": "Übermitteln",
- "isRequesting": "Anfragen",
- "awaiting": "Warten auf"
- }
+ "karnage": {
+ "name": "Karnage",
+ "position": "Product Designer",
+ "bio": "Meine Mission ist es, Startup-Gründern zum Erfolg zu verhelfen. Ich entwickle Produkte, die dabei helfen, dieses Ziel zu erreichen."
+ },
+ "shauna": {
+ "name": "Shauna",
+ "position": "Operations & Marketing",
+ "bio": "Strategie- & Projektmanagement. Unser Universalgenie in allen Bereichen. Findet immer Zeit, um sich auf einen Kaffee zu treffen."
+ },
+ "cole": {
+ "name": "Cole",
+ "position": "Bitcoin Experte",
+ "bio": "Als zertifizierter Bitcoin-Experte ist Cole ein engagierter Mensch mit großer Leidenschaft für Freiheit. Er entdeckte Bitcoin im Jahr 2016 und beschäftigte sich eingehend damit. Jetzt möchte er das Lightning-Netzwerk so vielen Nutzern wie möglich näherbringen."
+ },
+ "john": {
+ "name": "John Barratt",
+ "position": "Full Stack Web Developer",
+ "bio": "Wenn er nicht gerade programmiert, findet man John in der Natur beim Entdecken der vielen, großartigen Wanderwege, die BC zu bieten hat."
+ }
+ },
+ "locations": {
+ "header": "Standorte",
+ "description": "Hier finden Sie einige Unternehmen, welche bereits Zahlungen mit Bitcoin über Coinos akzeptieren. Wir hoffen, dass Ihr Unternehmen das nächste sein wird!"
+ }
+ },
+ "error": {
+ "header": "Error",
+ "message": "Bitte versuchen Sie es erneut oder kontaktieren Sie unseren Support.",
+ "signIn": "Bitte melden Sie sich an, um fortzufahren."
+ },
+ "faq": {
+ "header": "FAQ",
+ "why": {
+ "question": "Warum Bitcoin akzeptieren?",
+ "answer": "Mit Bitcoin sparen Händler bei den Gebühren, Verbraucher gewinnen an Privatsphäre und Sparer an Kaufkraft. Wir bewerben Ihr Geschäft bei einer begeisterten Gemeinschaft, die bevorzugt in Geschäften einkauft, die Bitcoin akzeptieren."
+ },
+ "cost": {
+ "question": "Was kostet das?",
+ "answer": "Zahlungen auf Ihr Konto zu erhalten ist kostenlos. Auszahlungen an externe Wallets verursachen eine geringe Gebühr, die je nach Netzwerkbedingungen variiert. Wir berechnen 0,1% für die Umwandlung zwischen Lightning und On-Chain Bitcoin. Das Senden zu anderen Coinos-Konten ist kostenlos."
+ },
+ "individuals": {
+ "question": "Wer kann es nutzen?",
+ "answer": "Jeder, überall auf der Welt. Coinos ist sowohl für Einzelpersonen als auch für Unternehmen geeignet."
+ },
+ "compatibility": {
+ "question": "Benötige ich ein spezielles Gerät oder eine spezielle Software?",
+ "answer": "Nein, Coinos ist eine Web-App, die überall funktioniert, wo es Internet gibt. Händler könnten es auf einem Tablet verwenden oder einen QR-Code anbieten, den Kunden mit ihrem Handy scannen können."
+ },
+ "safety": {
+ "question": "Wann wird mein Guthaben beglichen?",
+ "answer": "Lightning-Zahlungen werden sofort beglichen. Sie können Ihr Guthaben innerhalb von Sekunden auf eine andere Wallet übertragen. On-Chain Einzahlungen dauern im Durchschnitt 5-10 Minuten zur Bestätigung."
+ },
+ "pos": {
+ "question": "Kann Coinos mit meinem vorhandenen PoS integriert werden?",
+ "answer": "Wir empfehlen, Verkäufe in Ihrem vorhandenen PoS als Bartransaktionen einzugeben."
+ },
+ "accounting": {
+ "question": "Was ist mit der Buchhaltung?",
+ "answer": "Wir zeigen alle Zahlungen in Ihrer lokalen Währung an und ermöglichen es Ihnen, nach Datum zu filtern, sodass Sie Ihr Einkommen wie gewohnt melden können. Sie können den Verlauf Ihres Kontos in eine CSV-Datei exportieren. Wenn Sie Bitcoin mit Gewinn verkaufen, möchten Sie vielleicht Kapitalerträge melden."
+ },
+ "offramp": {
+ "question": "Kann ich den erhaltenen Bitcoin in meine lokale Währung umwandeln?",
+ "answer": "Sie können Ihre Gelder jederzeit an eine Börse oder einen Makler abziehen, um Ihren Bitcoin zu verkaufen und eine Banküberweisung zu erhalten. Wir könnten bereit sein, direkte Abrechnungen per E-Transfer für ausgewählte kanadische Händler anzubieten."
+ },
+ "bitcoin": {
+ "question": "Was kann ich mit Bitcoin machen?",
+ "answer": "Geben Sie es bei anderen Händlern aus oder decken Sie damit Ihre Ausgaben, indem Sie Ihr Personal, Ihre Lieferanten und Ihren Vermieter dazu bringen, es zu akzeptieren."
+ }
+ },
+ "footer": {
+ "company": "Unternehmen",
+ "followUs": "Folge uns",
+ "github": "GitHub",
+ "jobs": "Jobs",
+ "support": "Support",
+ "telegram": "Telegram",
+ "twitter": "Twitter",
+ "news": "Neuigkeiten"
+ },
+ "howItWorks": {
+ "header": "So funktioniert's",
+ "step1": {
+ "header": "1. Erstellen Sie Ihr Konto",
+ "description": "Sie benötigen nur einen Benutzernamen und ein Passwort - und schon geht's los!"
+ },
+ "step2": {
+ "header": "2. Zahlungen anfordern",
+ "description": "Ganz gleich, wie Sie es normalerweise machen würden, allerdings mit Bitcoin."
+ },
+ "step3": {
+ "header": "3. Das war's!",
+ "description": "Bezahlen Sie mit Ihrem Bitcoin-Bestand bei anderen Händlern oder sparen Sie diese für schlechtere Zeiten - Sie allein haben die Wahl."
+ }
+ },
+ "invoice": {
+ "addTip": "Trinkgeld hinzufügen",
+ "addTipq": "Trinkgeld hinzufügen?",
+ "done": "Fertig",
+ "paymentSuccessful": "Zahlung erhalten!",
+ "invoice": "Rechnung",
+ "total": "Gesamtbetrag",
+ "tip": "Trinkgeld"
+ },
+ "jobs": {
+ "header": "Jobs",
+ "subheader": "Offene Stellen",
+ "pitch1": "Wir sind stets auf der Suche nach Entwicklern, die unser wachsendes Team verstärken möchten (Vollzeit oder Teilzeit, Homeoffice möglich).",
+ "pitch2": "Möchten Sie mit uns an Open-Source-Bitcoin-Projekten arbeiten? Dann werfen Sie doch einen Blick auf unsere offenen Stellen auf",
+ "github": "GitHub",
+ "pitch3": "Wenn wir Ihr Interesse geweckt haben, würden wir uns freuen, von Ihnen zu hören. Schicken Sie uns gerne Ihren Lebenslauf an"
+ },
+ "landing": {
+ "header_before_icon": "Der",
+ "header_with_icon": "einfachste",
+ "header_after_icon": "Weg um Bitcoin in Ihrem Unternehmen zu akzeptieren.",
+ "subheader": "Erweitern Sie Ihren Kundenstamm und Ihren Umsatz, indem Sie Bitcoin mit einer einfach zu bedienenden Web-App akzeptieren. Keine Software oder Hardware ist dafür erforderlich.",
+ "info1": {
+ "title": "Sofortzahlungen über Lightning",
+ "description": "Unmittelbar nachdem die Zahlung von Ihrem Kunden abgeschlossen wurde, ist diese auch bei Ihnen ersichtlich. Sie müssen sich weder um Rücklastschriften kümmern, noch auf Banküberweisungen warten. Sekundenschnelle Abrechnung - und das Beste daran: Es fallen keine 3% Kreditkartenbearbeitungsgebühren an."
+ },
+ "info2": {
+ "title": "Einfache Handhabung",
+ "description1": "Geben Sie einfach einen Betrag in Ihrer Landeswährung ein, teilen Sie den QR-Code mit Ihrem Kunden und schon sind Sie fertig.",
+ "description2": "Wir nehmen Ihnen die ganze Arbeit ab, damit Sie sich auf Ihr Geschäft konzentrieren können.",
+ "description3": "Sie haben jederzeit die Möglichkeit, selbst über Ihr Geld zu verfügen und es sofort abzuheben."
+ },
+ "info3": {
+ "title": "Gestalten Sie Ihre Übersicht nach Ihrem Geschmack",
+ "description": "Passen Sie die Übersicht dem Branding Ihres Unternehmens an oder nutzen Sie unser Standard-Design."
+ }
+ },
+ "login": {
+ "optional": "Optional",
+ "token": "2FA Token",
+ "username": "Benutzername",
+ "password": "Passwort",
+ "email": "E-Mail",
+ "passwordRecommendation": "Wir empfehlen ein langes, zufälliges Passwort, welches mit einem Passwortgenerator erstellt wurde.",
+ "forgotUserOrPassword": "Benutzername oder Passwort vergessen?",
+ "haveAccount": "Bereits registriert?",
+ "noAccount": "Noch nicht registriert?",
+ "register": "Registrieren",
+ "signIn": "Einloggen",
+ "failed": "Login fehlgeschlagen"
+ },
+ "nav": {
+ "profile": "Profil",
+ "startInSeconds": "Jetzt loslegen",
+ "account": "Konto",
+ "signIn": "Einloggen",
+ "signOut": "Ausloggen",
+ "dashboard": "Übersicht",
+ "settings": "Einstellungen",
+ "support": "Support"
+ },
+ "newSiteHeader": "Kommen Sie zu unserer
Eröffnungsfeier in Vancouver am 26. Oktober! Auf der Suche nach der alten Coinos-Version? Besuchen Sie
classic.coinos.io",
+ "news": {
+ "header": "News",
+ "subheader": "Letzte Updates",
+ "update1": ""
+ },
+ "user": {
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Rechnung",
+ "unfollow": "Nicht mehr folgen",
+ "following": "Folgen",
+ "follow": "Folgen",
+ "remove": "Entfernen",
+ "scanToPayBTC": "Den QR-Code scannen um mit Bitcoin zu zahlen",
+ "this": "Das",
+ "lightningAddress": "Lightning Adresse",
+ "dashboard": {
+ "go": "Los",
+ "dashboard": "Übersicht",
+ "accountBalance": "Kontostand",
+ "bitcoinPrice": "Bitcoin Preis:",
+ "conversionFeeWarning": "Es wird eine Abhebungsgebühr von 1% des Gesambetrags erhoben.",
+ "dataFromBinance": "Daten von
Binance.",
+ "fetchingRate": "Abfragen...",
+ "optionalNote": "Notiz (optional)",
+ "send": "Senden",
+ "receive": "Erhalten",
+ "withdraw": "Senden",
+ "deposit": "Einzahlung",
+ "voucher": "Beleg"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "Bitte geben Sie einen Betrag unter 1 Bitcoin ein.",
+ "showQR": "QR-Code zeigen"
+ },
+ "send": {
+ "contacts": "Kontakte",
+ "scan": "Scannen",
+ "paste": "Einfügen",
+ "next": "Weiter",
+ "placeholder": "Geben Sie eine Bitcoin-Adresse, eine Lightning-Rechnung oder einen Coinos-Benutzernamen ein"
+ },
+ "settings": {
+ "bannerImage": "Logo",
+ "profileImage": "Profilbild",
+ "oneTimeCode": "Code eingeben",
+ "accountId": "Kontoverbindung",
+ "header": "Einstellungen",
+ "ACCOUNT": "KONTO",
+ "POINT_OF_SALE": "VERKAUFSSTELLE",
+ "SECURITY": "SICHERHEIT",
+ "locale": "Sprache",
+ "username": "Benutzername",
+ "email": "E-Mail",
+ "newPassword": "Neues Passwort",
+ "businessAddress": "Unternehmensadresse",
+ "emailNotifications": "E-Mail-Benachrichtigungen",
+ "emailNotificationsDescription": "Sie werden per E-Mail benachrichtigt, wenn eine Änderung auf Ihrem Konto vorgenommen wurde oder Ihnen jemand Zahlungen sendet.",
+ "smsNotifications": "SMS-Benachrichtigungen",
+ "smsNotificationsDescription": "Coinos wird Benachrichtigungen per SMS zusenden, wenn diese Funktion aktiviert ist.",
+ "theme": "Farbdesign",
+ "themeDescription": "Wählen Sie aus unseren Standard-Farbdesigns.",
+ "localCurrency": "Landeswährung",
+ "btcUnit": "Bitcoin anzeigen in:",
+ "bitcoin": "Bitcoin",
+ "satoshis": "Satoshis",
+ "securityPIN": "Sicherheitscode",
+ "securityPINDescription": "Legen Sie einen Sicherheitscode fest, der zum Entsperren Ihrer Einstellungen und zum Senden ausgehender Zahlungen verwendet wird.",
+ "setPIN": "Set PIN",
+ "autoLock": "Timer für automatische Sperre",
+ "autoLockDescription": "Ihr Konto wird nach einer bestimmten Zeit automatisch in einen sicheren Modus versetzt:",
+ "twofa": "2-Faktor Authentifizierung",
+ "twofaDescription": "Erhöhen Sie das Sicherheitslevel Ihres Geräts, indem Sie die 2-Faktor-Authentifizierung aktivieren.",
+ "twofaSetup": "2FA einrichten",
+ "twofaDisable": "2FA deaktivieren",
+ "select": "Auswählen",
+ "verifyPIN": "Sicherheitscode verifizieren",
+ "enablePIN": "PIN aktivieren",
+ "disablePIN": "PIN deaktivieren"
+ },
+ "support": {
+ "header": "Support",
+ "email": "E-Mail",
+ "accountName": "Kontoname",
+ "message": "Nachricht",
+ "send": "Senden"
+ }
+ },
+ "payments": {
+ "header": "Transaktionen",
+ "AMOUNT": "GESAMTBETRAG",
+ "TYPE": "TYP",
+ "TIME": "ZEIT",
+ "sent": "Gesendet",
+ "received": "Erhalten",
+ "empty": "Noch keine Transaktionen erhalten.",
+ "send": "Senden",
+ "next": "Weiter",
+ "sendersChoice": "Absender",
+ "sendTo": "Senden an",
+ "to": "an",
+ "pay": "Bezahlen",
+ "requesting": "ersucht um",
+ "sentInvoiceTo": "Rechnung senden an",
+ "sentRequestTo": "Anfrage senden an",
+ "pleasePay": "Bitte bezahlen Sie",
+ "day": "Tag",
+ "week": "Woche",
+ "month": "Monat",
+ "all": "Alles",
+ "export": "Exportieren",
+ "invoice": "Rechnung",
+ "readyToPay": "Steht zur Zahlung bereit",
+ "describeOrder": "Benutzen Sie dieses Feld um Ihre Bestellung zu beschreiben",
+ "requestAnInvoice": "Rechnung anfordern",
+ "submit": "Übermitteln",
+ "isRequesting": "Anfragen",
+ "awaiting": "Warten auf"
+ }
}
diff --git a/src/locales/el.json b/src/locales/el.json
index d94c2627..198ce457 100644
--- a/src/locales/el.json
+++ b/src/locales/el.json
@@ -1,298 +1,298 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Η σελίδα δεν βρέθηκε."
- },
- "about": {
- "header": "Σχετικά με",
- "team": {
- "header": "Η Oμάδα",
- "adam": {
- "name": "Adam Soltys",
- "position": "Επικεφαλής Τεχνικός Διευθυντής",
- "bio": "Ο Adam είναι προγραμματιστής ιστού και λάτρης του bitcoin που πιστεύει ότι το ισχυρό νόμισμα είναι το κλειδί για την αύξηση της παγκόσμιας ευημερίας. Ζει στο Βόρειο Vancouver με τη σύζυγό του Chelsea και τα δύο παιδιά του."
- },
- "cole": {
- "name": "Cole",
- "position": "Πιστοποιημένος Eπαγγελματίας Bitcoin",
- "bio": "Ο Cole είναι ένα άτομο με πάθος για ελευθερία. Ήρθε σε επαφή με το bitcoin το 2016 και το μελέτησε σε βάθος. Τώρα θέλει να εισαγάγει το δίκτυο lightning σε όσο το δυνατόν περισσότερους χρήστες."
- }
- },
- "locations": {
- "header": "Τοποθεσίες",
- "description": "Ακολουθούν ορισμένες επιχειρήσεις που δέχονται bitcoin με Coinos. Ελπίζουμε ότι η δική σας θα είναι η επόμενη!"
- }
- },
- "error": {
- "header": "Σφάλμα",
- "message": "Παρακαλώ δοκιμάστε ξανά ή επικοινωνήστε με την υποστήριξη.",
- "signIn": "Συνδεθείτε για να συνεχίσετε."
- },
- "faq": {
- "header": "Συχνές Ερωτήσεις",
- "why": {
- "question": "Γιατί να δεχτώ Bitcoin;",
- "answer": "Με το Bitcoin, οι εμπόροι εξοικονομούν σε τέλη, οι καταναλωτές αποκτούν ιδιωτικότητα και οι αποταμιευτές αυξάνουν την αγοραστική τους δύναμη. Θα προωθήσουμε την επιχείρησή σας σε μια ενθουσιασμένη κοινότητα που προτιμά να ψωνίζει σε μέρη που δέχονται Bitcoin."
- },
- "cost": {
- "question": "Πόσο κοστίζει;",
- "answer": "Η λήψη πληρωμών στον λογαριασμό σας είναι δωρεάν. Οι αναλήψεις σε εξωτερικά πορτοφόλια έχουν μικρή χρέωση που διαφέρει ανάλογα με τις συνθήκες του δικτύου. Χρεώνουμε 0,1% για τη μετατροπή μεταξύ lightning και on-chain Bitcoin. Η αποστολή σε άλλους λογαριασμούς Coinos είναι δωρεάν."
- },
- "individuals": {
- "question": "Ποιος μπορεί να το χρησιμοποιήσει;",
- "answer": "Οποιοσδήποτε, οπουδήποτε στον κόσμο. Το Coinos είναι κατάλληλο τόσο για ιδιώτες όσο και για επιχειρήσεις."
- },
- "compatibility": {
- "question": "Χρειάζομαι κάποια ειδική συσκευή ή λογισμικό;",
- "answer": "Όχι, το Coinos είναι μια εφαρμογή ιστού που λειτουργεί οπουδήποτε υπάρχει Ίντερνετ. Οι εμπόροι μπορεί να το χρησιμοποιούν σε tablet ή να παρέχουν έναν κώδικα QR για τους πελάτες να σκανάρουν με το τηλέφωνό τους."
- },
- "safety": {
- "question": "Πότε εξοφλούνται τα χρήματά μου;",
- "answer": "Οι πληρωμές μέσω Lightning εξοφλούνται άμεσα. Μπορείτε να αναλάβετε το υπόλοιπό σας σε άλλο πορτοφόλι μέσα σε δευτερόλεπτα. Οι καταθέσεις on-chain χρειάζονται κατά μέσο όρο 5-10 λεπτά για επιβεβαίωση."
- },
- "pos": {
- "question": "Μπορεί το Coinos να ενσωματωθεί στο υπάρχον PoS μου;",
- "answer": "Συνιστούμε να καταχωρίσετε τις πωλήσεις στο υπάρχον PoS σας ως συναλλαγές μετρητών."
- },
- "accounting": {
- "question": "Τι γίνεται με τη λογιστική;",
- "answer": "Εμφανίζουμε όλες τις πληρωμές σε όρους του τοπικού σας νομίσματος και σας επιτρέπουμε να φιλτράρετε ανά ημερομηνία, ώστε να μπορείτε να δηλώνετε το εισόδημά σας κανονικά. Μπορείτε να εξαγάγετε το ιστορικό του λογαριασμού σας σε ένα αρχείο csv. Εάν πουλήσετε Bitcoin με κέρδος, μπορεί να επιθυμείτε να αναφέρετε τα κερδηφόρα κεφάλαια."
- },
- "offramp": {
- "question": "Μπορώ να μετατρέψω το Bitcoin που λαμβάνω στο τοπικό μου νόμισμα;",
- "answer": "Μπορείτε να αναλάβετε τα χρήματά σας ανά πάσα στιγμή σε ένα χρηματιστήριο ή σε έναν μεσίτη για να πουλήσετε το Bitcoin σας και να λάβετε μια τραπεζική μεταφορά. Ίσως είμαστε πρόθυμοι να προσφέρουμε άμεσες εκκαθαρίσεις μέσω E-Transfer για επιλεγμένους καναδικούς εμπόρους."
- },
- "bitcoin": {
- "question": "Τι μπορώ να κάνω με το Bitcoin;",
- "answer": "Ξοδέψτε το σε άλλους εμπόρους ή καλύψτε τις δαπάνες σας παίρνοντας το προσωπικό σας, τους προμηθευτές σας και τον ιδιοκτήτη να το δεχτούν."
- }
+ "404": {
+ "404": "404",
+ "pageNotFound": "Η σελίδα δεν βρέθηκε."
},
- "footer": {
- "company": "Εταιρία",
- "followUs": "Ακολουθησε μας",
- "github": "GitHub",
- "linktree": "Linktree",
- "jobs": "Linktree",
- "support": "Υποστήριξη",
- "telegram": "Telegram",
- "twitter": "Twitter",
- "documentation": "Τεκμηρίωση"
- },
- "howItWorks": {
- "header": "Πως δουλεύει",
- "step1": {
- "header": "1. Δημιουργήστε τον λογαριασμό σας",
- "description": "Ένα όνομα χρήστη και κωδικός πρόσβασης είναι όλα όσα χρειάζεστε για να ξεκινήσετε."
- },
- "step2": {
- "header": "2. Ζητήστε πληρωμές",
- "description": "Ότι θα κάνατε συνήθως, αλλά με το bitcoin."
- },
- "step3": {
- "header": "3. Αυτό είναι όλο!",
- "description": "Ξοδέψτε το νόμισμά σας αμέσως ή αποθηκεύστε το και δείτε το να αυξάνεται, η επιλογή είναι δική σας."
- }
- },
- "invoice": {
- "addTip": "Προσθήκη φιλοδωρήματος",
- "addTipq": "Προσθήκη φιλοδωρήματος;",
- "done": "Εγινε",
- "paymentSuccessful": "Η πληρωμή ελήφθη!",
- "invoice": "Τιμολόγιο",
- "total": "Σύνολο",
- "tip": "Φιλοδώρημα"
- },
- "jobs": {
- "header": "Δουλειές",
- "subheader": "Τρέχουσες θέσεις εργασίας",
- "pitch1": "«Η Coinos αναζητά ενεργά προγραμματιστές για να ενταχθούν στην αναπτυσσόμενη ομάδα μας (πλήρους ή μερικής απασχόλησης, απομακρυσμένη εργασία αποδεκτή) ",
- "pitch2": "Είστε ενθουσιασμενοι που εργάζεστε σε bitcoin ανοιχτού κώδικα; Τότε ρίξτε μια ματιά στα αποθετήρια μας στο",
- "github": "GitHub",
- "pitch3": "Αν πιστεύετε ότι μπορείτε να ασκήσετε επιρροή, θα θέλαμε να σας ακούσουμε. Στείλτε μας το βιογραφικό σας στ"
- },
- "landing": {
- "header_before_icon": "Ο",
- "header_with_icon": "πιο εύκολος",
- "header_after_icon": "τρόπος για να ξεκινήσετε με το bitcoin ",
- "subheader": "Ένα απλό αλλά ισχυρό πορτοφόλι ιστού για όλους. Δεν απαιτείται software ή hardware",
- "info1": {
- "title": "Άμεσες πληρωμές μέσω Lightning",
- "description": "Διευκολύνουμε τους εμπόρους να λαμβάνουν πληρωμές λιανικής. Χωρίς αναμονή για τραπεζικούς διακανονισμούς ή ανησυχία για αντιστροφές χρεώσεων "
- },
- "info2": {
- "title": "Απλό στη χρήση",
- "description1": "Απλώς πληκτρολογήστε ένα ποσό στο τοπικό σας νόμισμα, μοιραστείτε τον κωδικό QR και τελειώσατε.",
- "description2": "Αναλαμβάνουμε τη δύσκολη δουλειά, ώστε να μπορείτε να επικεντρωθείτε στην επιχείρησή σας.",
- "description3": "Έχετε πάντα τη δυνατότητα να αναλάβετε τη διαχείριση των χρημάτων σας, κάνοντας ανάληψη άμεσα και ανά πάσα στιγμή "
- },
- "info3": {
- "title": "Φτιάξτε το με τον δικό σας τρόπο!",
- "description": "Προσαρμόστε την εμφάνιση και την αίσθηση της σελίδας του προφίλ σας ή διατηρήστε την ως προεπιλογή - εξαρτάται αποκλειστικά από εσάς "
- }
- },
- "login": {
- "optional": "Προαιρετικό",
- "token": "2FA Token",
- "username": "Όνομα χρήστη",
- "password": "Κωδικός πρόσβασης",
- "email": "Διεύθυνση Ηλεκτρονικού Ταχυδρομείου",
- "passwordRecommendation": "Συνιστούμε ένα μεγάλο, τυχαίο κωδικό πρόσβασης που δημιουργείται με έναν διαχειριστή κωδικών πρόσβασης ",
- "forgotUserOrPassword": "Ξεχάσατε το όνομα χρήστη ή τον κωδικό πρόσβασης;",
- "haveAccount": "Εχετε ήδη λογαριασμό;",
- "noAccount": "Δεν έχετε λογαριασμό;",
- "register": "Έγγραφη",
- "signIn": "Σύνδεση",
- "failed": "Η σύνδεση απέτυχ"
- },
- "nav": {
- "profile": "Προφίλ",
- "startInSeconds": "Ξεκινήστε σε δευτερόλεπτα",
- "account": "Λογαριασμός",
- "signIn": "Σύνδεση",
- "signOut": "Αποσύνδεση",
- "dashboard": "Πίνακας Ελέγχου",
- "settings": "Ρυθμίσεις",
- "support": "Υποστήριξ"
- },
- "news": {
- "header": "Νέα",
- "subheader": "Τελευταίες ενημερώσεις"
- },
- "user": {
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Τιμολόγιο",
- "unfollow": "Κατάργηση παρακολούθησης",
- "following": "Ακολουθείτε",
- "follow": "Ακολουθήστε",
- "followers": "Ακόλουθοι",
- "remove": "Αφαίρεση",
- "noNotes": "Δεν υπάρχουν σημειώσεις ακόμα",
- "message": "Μήνυμα",
- "messages": "Μηνύματα",
- "feed": "Ροή",
- "notes": "Σημειώσεις",
- "pay": "Πληρωμή",
- "scanToPayBTC": "Σάρωση για πληρωμή με bitcoin",
- "this": "Αυτό",
- "lightningAddress": "διεύθυνση lightning",
- "dashboard": {
- "go": "Πηγαίνετε",
- "dashboard": "Πίνακας Ελέγχου",
- "accountBalance": "Υπόλοιπο Λογαριασμού",
- "bitcoinPrice": "Τιμή bitcoin:",
- "conversionFeeWarning": "Θα χρεωθείτε με χρέωση ανάληψης 1% επί του ποσού ",
- "send": "Αποστολή",
- "receive": "Λήψη",
- "withdraw": "Αποστολή",
- "deposit": "Κατάθεση",
- "voucher": "Κουπόν"
- },
- "receive": {
- "lessThan1BTCWarning": "Παρακαλώ εισάγετε ένα ποσό μικρότερο από 1 bitcoin ",
- "showQR": "Εμφάνιση Q"
- },
- "send": {
- "contacts": "Επαφές",
- "scan": "Σάρωση",
- "paste": "Επικόλληση",
- "next": "Επόμενο",
- "placeholder": "Επικολλήστε μια διεύθυνση bitcoin, ένα τιμολόγιο lighting ή ένα όνομα χρήστη coino"
- },
- "settings": {
- "saveSettings": "Αποθήκευση ρυθμίσεων",
- "bannerImage": "Εικόνα Banner",
- "profileImage": "Εικόνα Προφίλ",
- "oneTimeCode": "Εισαγάγετε κωδικό μίας χρήσης",
- "accountId": "Μυστικός λογαριασμός",
- "header": "Ρυθμίσεις",
- "ACCOUNT": "ΛΟΓΑΡΙΑΣΜΟΣ",
- "POINT_OF_SALE": "ΠΡΟΤΙΜΗΣΕΙΣ",
- "SECURITY": "ΑΣΦΑΛΕΙΑ",
- "locale": "Γλώσσα",
- "username": "Όνομα χρήστη",
- "email": "Ηλεκτρονικό Ταχυδρομεί",
- "newPassword": "Αλλαγή κωδικού",
- "about": "Σχετικά με",
- "aboutPlaceholder": "Λίγα πράγματα για εσάς ή τη διεύθυνση και τις ώρες της επιχείρησής σας",
- "emailNotifications": "Ειδοποιήσεις ηλεκτρονικού ταχυδρομείου",
- "emailNotificationsDescription": "Λάβετε ειδοποιήσεις μέσω ηλεκτρονικού ταχυδρομείου όταν συμβαίνει μια αλλαγή στο λογαριασμό σας ή όταν οι άνθρωποι σας στέλνουν πληρωμές ",
- "smsNotifications": "Ειδοποιήσεις SMS",
- "smsNotificationsDescription": "Το Coinos θα σας στείλει ειδοποιήσεις κειμένου όταν αυτές είναι ενεργοποιημένες ",
- "theme": "Χρωματικό θέμα",
- "tipPrompt": "Προτροπή για φιλοδώρημα",
- "tipPromptDescription": "Ρωτήστε τους ανθρώπους εάν θέλουν να προσθέσουν ένα φιλοδώρημα πριν πληρώσουν τα τιμολόγιά τους",
- "displayName": "Εμφανιζόμενο όνομα",
- "themeDescription": "Επιλέξτε από τα προεπιλεγμένα χρωματικά θέματα.",
- "localCurrency": "Νόμισμα",
- "btcUnit": "Εμφάνιση bitcoin σε:",
- "bitcoin": "bitcoin",
- "minutes": "λεπτά",
- "hour": "ώρα",
- "hours": "ώρες",
- "satoshis": "Satoshis",
- "securityPIN": "PIN Ασφαλείας",
- "securityPINDescription": "Ορίστε μια καρφίτσα ασφαλείας που θα χρησιμοποιείται για το ξεκλείδωμα των ρυθμίσεών σας και για την αποστολή εξερχόμενων πληρωμών ",
- "setPIN": "Ορισμός PIN",
- "autoLock": "Αυτόματο κλείδωμα χρονοδιακόπτη",
- "autoLockDescription": "Ο λογαριασμός σας θα μεταβεί σε ασφαλή λειτουργία, απαιτώντας από εσάς να εισαγάγετε ξανά τα διαπιστευτήριά σας μετά από μια καθορισμένη ώρα:",
- "twofa": "Έλεγχος ταυτότητας 2 παραγόντων",
- "twofaDescription": "Προσθέστε ένα επιπλέον επίπεδο ασφάλειας στη συσκευή σας ενεργοποιώντας τον έλεγχο ταυτότητας 2 παραγόντων ",
- "twofaSetup": "Ρύθμιση 2FA",
- "twofaDisable": "Απενεργοποίηση 2FA",
- "select": "Επιλογή",
- "verifyPIN": "Επαλήθευση PIN",
- "enablePIN": "Ενεργοποίηση PIN",
- "disablePIN": "Απενεργοποίηση PI"
- },
- "support": {
- "header": "Υποστήριξη",
- "email": "Ηλεκτρονικό Ταχυδρομείο",
- "accountName": "Ονομα λογαριασμού",
- "message": "Μήνυμα",
- "send": "Αποστολ"
- }
- },
- "payments": {
- "amount": "Ποσό",
- "date": "Ημερομηνία",
- "id": "Ταυτότητα συναλλαγής",
- "details": "Λεπτομέρειες Συναλλαγής",
- "header": "Πληρωμές",
- "preimage": "Απόδειξη πληρωμής",
- "type": "Τύπος",
- "time": "Χρόνος",
- "sent": "Απεστάλει",
- "received": "Παραλήφθηκε",
- "empty": "Αποστολή",
- "send": "Επόμενο",
- "next": "Επιλογή αποστολέα",
- "sendersChoice": "Αποστολή σε",
- "sendTo": "προς",
- "to": "προς",
- "pay": "Πληρωμή",
- "requesting": "απαιτείται",
- "sentInvoiceTo": "Εστάλει τιμολόγιο σε",
- "sentRequestTo": "Αίτημα εστάλει!",
- "pleasePay": "Παρακαλώ πληρώστε",
- "day": "Ημέρα",
- "week": "Εβδομάδ",
- "month": "Μήνας",
- "all": "Ολα",
- "export": "Εξαγωγή",
- "invoice": "Τιμολόγιο",
- "readyToPay": "είναι έτοιμο για πληρωμή",
- "describeOrder": "Χρησιμοποιήστε αυτό το πεδίο για να περιγράψετε την παραγγελία σας",
- "requestAnInvoice": "Αίτημα Τιμολογίου",
- "submit": "Υποβολή",
- "isRequesting": "απαιτείται",
- "invoiceFrom": "Τιμολόγιο από",
- "awaiting": "Αναμονή",
- "tapAnywhere": "Πατήστε οπουδήποτε για να συνεχίσετε",
- "from": "από",
- "redeem": "Εξαργύρωση",
- "redeemed": "Εξαργυρώθηκε",
- "redeemedBy": "Εξαργυρώθηκε από",
- "sendMessage": "Γράψτε ένα μήνυμα..."
- }
+ "about": {
+ "header": "Σχετικά με",
+ "team": {
+ "header": "Η Oμάδα",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Επικεφαλής Τεχνικός Διευθυντής",
+ "bio": "Ο Adam είναι προγραμματιστής ιστού και λάτρης του bitcoin που πιστεύει ότι το ισχυρό νόμισμα είναι το κλειδί για την αύξηση της παγκόσμιας ευημερίας. Ζει στο Βόρειο Vancouver με τη σύζυγό του Chelsea και τα δύο παιδιά του."
+ },
+ "cole": {
+ "name": "Cole",
+ "position": "Πιστοποιημένος Eπαγγελματίας Bitcoin",
+ "bio": "Ο Cole είναι ένα άτομο με πάθος για ελευθερία. Ήρθε σε επαφή με το bitcoin το 2016 και το μελέτησε σε βάθος. Τώρα θέλει να εισαγάγει το δίκτυο lightning σε όσο το δυνατόν περισσότερους χρήστες."
+ }
+ },
+ "locations": {
+ "header": "Τοποθεσίες",
+ "description": "Ακολουθούν ορισμένες επιχειρήσεις που δέχονται bitcoin με Coinos. Ελπίζουμε ότι η δική σας θα είναι η επόμενη!"
+ }
+ },
+ "error": {
+ "header": "Σφάλμα",
+ "message": "Παρακαλώ δοκιμάστε ξανά ή επικοινωνήστε με την υποστήριξη.",
+ "signIn": "Συνδεθείτε για να συνεχίσετε."
+ },
+ "faq": {
+ "header": "Συχνές Ερωτήσεις",
+ "why": {
+ "question": "Γιατί να δεχτώ Bitcoin;",
+ "answer": "Με το Bitcoin, οι εμπόροι εξοικονομούν σε τέλη, οι καταναλωτές αποκτούν ιδιωτικότητα και οι αποταμιευτές αυξάνουν την αγοραστική τους δύναμη. Θα προωθήσουμε την επιχείρησή σας σε μια ενθουσιασμένη κοινότητα που προτιμά να ψωνίζει σε μέρη που δέχονται Bitcoin."
+ },
+ "cost": {
+ "question": "Πόσο κοστίζει;",
+ "answer": "Η λήψη πληρωμών στον λογαριασμό σας είναι δωρεάν. Οι αναλήψεις σε εξωτερικά πορτοφόλια έχουν μικρή χρέωση που διαφέρει ανάλογα με τις συνθήκες του δικτύου. Χρεώνουμε 0,1% για τη μετατροπή μεταξύ lightning και on-chain Bitcoin. Η αποστολή σε άλλους λογαριασμούς Coinos είναι δωρεάν."
+ },
+ "individuals": {
+ "question": "Ποιος μπορεί να το χρησιμοποιήσει;",
+ "answer": "Οποιοσδήποτε, οπουδήποτε στον κόσμο. Το Coinos είναι κατάλληλο τόσο για ιδιώτες όσο και για επιχειρήσεις."
+ },
+ "compatibility": {
+ "question": "Χρειάζομαι κάποια ειδική συσκευή ή λογισμικό;",
+ "answer": "Όχι, το Coinos είναι μια εφαρμογή ιστού που λειτουργεί οπουδήποτε υπάρχει Ίντερνετ. Οι εμπόροι μπορεί να το χρησιμοποιούν σε tablet ή να παρέχουν έναν κώδικα QR για τους πελάτες να σκανάρουν με το τηλέφωνό τους."
+ },
+ "safety": {
+ "question": "Πότε εξοφλούνται τα χρήματά μου;",
+ "answer": "Οι πληρωμές μέσω Lightning εξοφλούνται άμεσα. Μπορείτε να αναλάβετε το υπόλοιπό σας σε άλλο πορτοφόλι μέσα σε δευτερόλεπτα. Οι καταθέσεις on-chain χρειάζονται κατά μέσο όρο 5-10 λεπτά για επιβεβαίωση."
+ },
+ "pos": {
+ "question": "Μπορεί το Coinos να ενσωματωθεί στο υπάρχον PoS μου;",
+ "answer": "Συνιστούμε να καταχωρίσετε τις πωλήσεις στο υπάρχον PoS σας ως συναλλαγές μετρητών."
+ },
+ "accounting": {
+ "question": "Τι γίνεται με τη λογιστική;",
+ "answer": "Εμφανίζουμε όλες τις πληρωμές σε όρους του τοπικού σας νομίσματος και σας επιτρέπουμε να φιλτράρετε ανά ημερομηνία, ώστε να μπορείτε να δηλώνετε το εισόδημά σας κανονικά. Μπορείτε να εξαγάγετε το ιστορικό του λογαριασμού σας σε ένα αρχείο csv. Εάν πουλήσετε Bitcoin με κέρδος, μπορεί να επιθυμείτε να αναφέρετε τα κερδηφόρα κεφάλαια."
+ },
+ "offramp": {
+ "question": "Μπορώ να μετατρέψω το Bitcoin που λαμβάνω στο τοπικό μου νόμισμα;",
+ "answer": "Μπορείτε να αναλάβετε τα χρήματά σας ανά πάσα στιγμή σε ένα χρηματιστήριο ή σε έναν μεσίτη για να πουλήσετε το Bitcoin σας και να λάβετε μια τραπεζική μεταφορά. Ίσως είμαστε πρόθυμοι να προσφέρουμε άμεσες εκκαθαρίσεις μέσω E-Transfer για επιλεγμένους καναδικούς εμπόρους."
+ },
+ "bitcoin": {
+ "question": "Τι μπορώ να κάνω με το Bitcoin;",
+ "answer": "Ξοδέψτε το σε άλλους εμπόρους ή καλύψτε τις δαπάνες σας παίρνοντας το προσωπικό σας, τους προμηθευτές σας και τον ιδιοκτήτη να το δεχτούν."
+ }
+ },
+ "footer": {
+ "company": "Εταιρία",
+ "followUs": "Ακολουθησε μας",
+ "github": "GitHub",
+ "linktree": "Linktree",
+ "jobs": "Linktree",
+ "support": "Υποστήριξη",
+ "telegram": "Telegram",
+ "twitter": "Twitter",
+ "documentation": "Τεκμηρίωση"
+ },
+ "howItWorks": {
+ "header": "Πως δουλεύει",
+ "step1": {
+ "header": "1. Δημιουργήστε τον λογαριασμό σας",
+ "description": "Ένα όνομα χρήστη και κωδικός πρόσβασης είναι όλα όσα χρειάζεστε για να ξεκινήσετε."
+ },
+ "step2": {
+ "header": "2. Ζητήστε πληρωμές",
+ "description": "Ότι θα κάνατε συνήθως, αλλά με το bitcoin."
+ },
+ "step3": {
+ "header": "3. Αυτό είναι όλο!",
+ "description": "Ξοδέψτε το νόμισμά σας αμέσως ή αποθηκεύστε το και δείτε το να αυξάνεται, η επιλογή είναι δική σας."
+ }
+ },
+ "invoice": {
+ "addTip": "Προσθήκη φιλοδωρήματος",
+ "addTipq": "Προσθήκη φιλοδωρήματος;",
+ "done": "Εγινε",
+ "paymentSuccessful": "Η πληρωμή ελήφθη!",
+ "invoice": "Τιμολόγιο",
+ "total": "Σύνολο",
+ "tip": "Φιλοδώρημα"
+ },
+ "jobs": {
+ "header": "Δουλειές",
+ "subheader": "Τρέχουσες θέσεις εργασίας",
+ "pitch1": "«Η Coinos αναζητά ενεργά προγραμματιστές για να ενταχθούν στην αναπτυσσόμενη ομάδα μας (πλήρους ή μερικής απασχόλησης, απομακρυσμένη εργασία αποδεκτή) ",
+ "pitch2": "Είστε ενθουσιασμενοι που εργάζεστε σε bitcoin ανοιχτού κώδικα; Τότε ρίξτε μια ματιά στα αποθετήρια μας στο",
+ "github": "GitHub",
+ "pitch3": "Αν πιστεύετε ότι μπορείτε να ασκήσετε επιρροή, θα θέλαμε να σας ακούσουμε. Στείλτε μας το βιογραφικό σας στ"
+ },
+ "landing": {
+ "header_before_icon": "Ο",
+ "header_with_icon": "πιο εύκολος",
+ "header_after_icon": "τρόπος για να ξεκινήσετε με το bitcoin ",
+ "subheader": "Ένα απλό αλλά ισχυρό πορτοφόλι ιστού για όλους. Δεν απαιτείται software ή hardware",
+ "info1": {
+ "title": "Άμεσες πληρωμές μέσω Lightning",
+ "description": "Διευκολύνουμε τους εμπόρους να λαμβάνουν πληρωμές λιανικής. Χωρίς αναμονή για τραπεζικούς διακανονισμούς ή ανησυχία για αντιστροφές χρεώσεων "
+ },
+ "info2": {
+ "title": "Απλό στη χρήση",
+ "description1": "Απλώς πληκτρολογήστε ένα ποσό στο τοπικό σας νόμισμα, μοιραστείτε τον κωδικό QR και τελειώσατε.",
+ "description2": "Αναλαμβάνουμε τη δύσκολη δουλειά, ώστε να μπορείτε να επικεντρωθείτε στην επιχείρησή σας.",
+ "description3": "Έχετε πάντα τη δυνατότητα να αναλάβετε τη διαχείριση των χρημάτων σας, κάνοντας ανάληψη άμεσα και ανά πάσα στιγμή "
+ },
+ "info3": {
+ "title": "Φτιάξτε το με τον δικό σας τρόπο!",
+ "description": "Προσαρμόστε την εμφάνιση και την αίσθηση της σελίδας του προφίλ σας ή διατηρήστε την ως προεπιλογή - εξαρτάται αποκλειστικά από εσάς "
+ }
+ },
+ "login": {
+ "optional": "Προαιρετικό",
+ "token": "2FA Token",
+ "username": "Όνομα χρήστη",
+ "password": "Κωδικός πρόσβασης",
+ "email": "Διεύθυνση Ηλεκτρονικού Ταχυδρομείου",
+ "passwordRecommendation": "Συνιστούμε ένα μεγάλο, τυχαίο κωδικό πρόσβασης που δημιουργείται με έναν διαχειριστή κωδικών πρόσβασης ",
+ "forgotUserOrPassword": "Ξεχάσατε το όνομα χρήστη ή τον κωδικό πρόσβασης;",
+ "haveAccount": "Εχετε ήδη λογαριασμό;",
+ "noAccount": "Δεν έχετε λογαριασμό;",
+ "register": "Έγγραφη",
+ "signIn": "Σύνδεση",
+ "failed": "Η σύνδεση απέτυχ"
+ },
+ "nav": {
+ "profile": "Προφίλ",
+ "startInSeconds": "Ξεκινήστε σε δευτερόλεπτα",
+ "account": "Λογαριασμός",
+ "signIn": "Σύνδεση",
+ "signOut": "Αποσύνδεση",
+ "dashboard": "Πίνακας Ελέγχου",
+ "settings": "Ρυθμίσεις",
+ "support": "Υποστήριξ"
+ },
+ "news": {
+ "header": "Νέα",
+ "subheader": "Τελευταίες ενημερώσεις"
+ },
+ "user": {
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Τιμολόγιο",
+ "unfollow": "Κατάργηση παρακολούθησης",
+ "following": "Ακολουθείτε",
+ "follow": "Ακολουθήστε",
+ "followers": "Ακόλουθοι",
+ "remove": "Αφαίρεση",
+ "noNotes": "Δεν υπάρχουν σημειώσεις ακόμα",
+ "message": "Μήνυμα",
+ "messages": "Μηνύματα",
+ "feed": "Ροή",
+ "notes": "Σημειώσεις",
+ "pay": "Πληρωμή",
+ "scanToPayBTC": "Σάρωση για πληρωμή με bitcoin",
+ "this": "Αυτό",
+ "lightningAddress": "διεύθυνση lightning",
+ "dashboard": {
+ "go": "Πηγαίνετε",
+ "dashboard": "Πίνακας Ελέγχου",
+ "accountBalance": "Υπόλοιπο Λογαριασμού",
+ "bitcoinPrice": "Τιμή bitcoin:",
+ "conversionFeeWarning": "Θα χρεωθείτε με χρέωση ανάληψης 1% επί του ποσού ",
+ "send": "Αποστολή",
+ "receive": "Λήψη",
+ "withdraw": "Αποστολή",
+ "deposit": "Κατάθεση",
+ "voucher": "Κουπόν"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "Παρακαλώ εισάγετε ένα ποσό μικρότερο από 1 bitcoin ",
+ "showQR": "Εμφάνιση Q"
+ },
+ "send": {
+ "contacts": "Επαφές",
+ "scan": "Σάρωση",
+ "paste": "Επικόλληση",
+ "next": "Επόμενο",
+ "placeholder": "Επικολλήστε μια διεύθυνση bitcoin, ένα τιμολόγιο lighting ή ένα όνομα χρήστη coino"
+ },
+ "settings": {
+ "saveSettings": "Αποθήκευση ρυθμίσεων",
+ "bannerImage": "Εικόνα Banner",
+ "profileImage": "Εικόνα Προφίλ",
+ "oneTimeCode": "Εισαγάγετε κωδικό μίας χρήσης",
+ "accountId": "Μυστικός λογαριασμός",
+ "header": "Ρυθμίσεις",
+ "ACCOUNT": "ΛΟΓΑΡΙΑΣΜΟΣ",
+ "POINT_OF_SALE": "ΠΡΟΤΙΜΗΣΕΙΣ",
+ "SECURITY": "ΑΣΦΑΛΕΙΑ",
+ "locale": "Γλώσσα",
+ "username": "Όνομα χρήστη",
+ "email": "Ηλεκτρονικό Ταχυδρομεί",
+ "newPassword": "Αλλαγή κωδικού",
+ "about": "Σχετικά με",
+ "aboutPlaceholder": "Λίγα πράγματα για εσάς ή τη διεύθυνση και τις ώρες της επιχείρησής σας",
+ "emailNotifications": "Ειδοποιήσεις ηλεκτρονικού ταχυδρομείου",
+ "emailNotificationsDescription": "Λάβετε ειδοποιήσεις μέσω ηλεκτρονικού ταχυδρομείου όταν συμβαίνει μια αλλαγή στο λογαριασμό σας ή όταν οι άνθρωποι σας στέλνουν πληρωμές ",
+ "smsNotifications": "Ειδοποιήσεις SMS",
+ "smsNotificationsDescription": "Το Coinos θα σας στείλει ειδοποιήσεις κειμένου όταν αυτές είναι ενεργοποιημένες ",
+ "theme": "Χρωματικό θέμα",
+ "tipPrompt": "Προτροπή για φιλοδώρημα",
+ "tipPromptDescription": "Ρωτήστε τους ανθρώπους εάν θέλουν να προσθέσουν ένα φιλοδώρημα πριν πληρώσουν τα τιμολόγιά τους",
+ "displayName": "Εμφανιζόμενο όνομα",
+ "themeDescription": "Επιλέξτε από τα προεπιλεγμένα χρωματικά θέματα.",
+ "localCurrency": "Νόμισμα",
+ "btcUnit": "Εμφάνιση bitcoin σε:",
+ "bitcoin": "bitcoin",
+ "minutes": "λεπτά",
+ "hour": "ώρα",
+ "hours": "ώρες",
+ "satoshis": "Satoshis",
+ "securityPIN": "PIN Ασφαλείας",
+ "securityPINDescription": "Ορίστε μια καρφίτσα ασφαλείας που θα χρησιμοποιείται για το ξεκλείδωμα των ρυθμίσεών σας και για την αποστολή εξερχόμενων πληρωμών ",
+ "setPIN": "Ορισμός PIN",
+ "autoLock": "Αυτόματο κλείδωμα χρονοδιακόπτη",
+ "autoLockDescription": "Ο λογαριασμός σας θα μεταβεί σε ασφαλή λειτουργία, απαιτώντας από εσάς να εισαγάγετε ξανά τα διαπιστευτήριά σας μετά από μια καθορισμένη ώρα:",
+ "twofa": "Έλεγχος ταυτότητας 2 παραγόντων",
+ "twofaDescription": "Προσθέστε ένα επιπλέον επίπεδο ασφάλειας στη συσκευή σας ενεργοποιώντας τον έλεγχο ταυτότητας 2 παραγόντων ",
+ "twofaSetup": "Ρύθμιση 2FA",
+ "twofaDisable": "Απενεργοποίηση 2FA",
+ "select": "Επιλογή",
+ "verifyPIN": "Επαλήθευση PIN",
+ "enablePIN": "Ενεργοποίηση PIN",
+ "disablePIN": "Απενεργοποίηση PI"
+ },
+ "support": {
+ "header": "Υποστήριξη",
+ "email": "Ηλεκτρονικό Ταχυδρομείο",
+ "accountName": "Ονομα λογαριασμού",
+ "message": "Μήνυμα",
+ "send": "Αποστολ"
+ }
+ },
+ "payments": {
+ "amount": "Ποσό",
+ "date": "Ημερομηνία",
+ "id": "Ταυτότητα συναλλαγής",
+ "details": "Λεπτομέρειες Συναλλαγής",
+ "header": "Πληρωμές",
+ "preimage": "Απόδειξη πληρωμής",
+ "type": "Τύπος",
+ "time": "Χρόνος",
+ "sent": "Απεστάλει",
+ "received": "Παραλήφθηκε",
+ "empty": "Αποστολή",
+ "send": "Επόμενο",
+ "next": "Επιλογή αποστολέα",
+ "sendersChoice": "Αποστολή σε",
+ "sendTo": "προς",
+ "to": "προς",
+ "pay": "Πληρωμή",
+ "requesting": "απαιτείται",
+ "sentInvoiceTo": "Εστάλει τιμολόγιο σε",
+ "sentRequestTo": "Αίτημα εστάλει!",
+ "pleasePay": "Παρακαλώ πληρώστε",
+ "day": "Ημέρα",
+ "week": "Εβδομάδ",
+ "month": "Μήνας",
+ "all": "Ολα",
+ "export": "Εξαγωγή",
+ "invoice": "Τιμολόγιο",
+ "readyToPay": "είναι έτοιμο για πληρωμή",
+ "describeOrder": "Χρησιμοποιήστε αυτό το πεδίο για να περιγράψετε την παραγγελία σας",
+ "requestAnInvoice": "Αίτημα Τιμολογίου",
+ "submit": "Υποβολή",
+ "isRequesting": "απαιτείται",
+ "invoiceFrom": "Τιμολόγιο από",
+ "awaiting": "Αναμονή",
+ "tapAnywhere": "Πατήστε οπουδήποτε για να συνεχίσετε",
+ "from": "από",
+ "redeem": "Εξαργύρωση",
+ "redeemed": "Εξαργυρώθηκε",
+ "redeemedBy": "Εξαργυρώθηκε από",
+ "sendMessage": "Γράψτε ένα μήνυμα..."
+ }
}
diff --git a/src/locales/en.json b/src/locales/en.json
index c0efade3..db25b3fb 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -1,48 +1,48 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Page not found."
- },
- "about": {
- "header": "About",
- "team": {
- "header": "The Team",
- "adam": {
- "name": "Adam Soltys",
- "position": "Founder and CTO",
- "bio": "Adam is a software engineer who believes that the adoption of sound money will drive global prosperity. He lives in North Vancouver with his wife, daughter, and son."
- },
- "cole": {
- "name": "Cole",
- "position": "Business Development",
- "bio": "Cole is a driven individual with a passion for freedom. He came across bitcoin in 2016 and studied it in depth. Now he wants to introduce the lightning network to as many users as possible."
- }
- },
- "locations": {
- "header": "Locations",
- "description": "Here are some businesses that are accepting bitcoin with Coinos. We hope that yours will be next!"
- }
- },
- "error": {
- "header": "Error",
- "message": "Please try again or contact support.",
- "signIn": "Please sign in to continue.",
+ "404": {
+ "404": "404",
+ "pageNotFound": "Page not found."
+ },
+ "about": {
+ "header": "About",
+ "team": {
+ "header": "The Team",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Founder and CTO",
+ "bio": "Adam is a software engineer who believes that the adoption of sound money will drive global prosperity. He lives in North Vancouver with his wife, daughter, and son."
+ },
+ "cole": {
+ "name": "Cole",
+ "position": "Business Development",
+ "bio": "Cole is a driven individual with a passion for freedom. He came across bitcoin in 2016 and studied it in depth. Now he wants to introduce the lightning network to as many users as possible."
+ }
+ },
+ "locations": {
+ "header": "Locations",
+ "description": "Here are some businesses that are accepting bitcoin with Coinos. We hope that yours will be next!"
+ }
+ },
+ "error": {
+ "header": "Error",
+ "message": "Please try again or contact support.",
+ "signIn": "Please sign in to continue.",
"unrecognizedInput": "Unrecognized input"
- },
- "faq": {
- "header": "FAQ",
- "cost": {
- "question": "What does it cost?",
- "answer": "Receiving payments into your account is free. Withdrawals to external wallets incur a small fee that varies depending on network conditions."
- },
- "compatibility": {
- "question": "Do I need any special device or software?",
- "answer": "No, Coinos works anywhere that has Internet. Merchants might use it on a tablet or put up a QR code for customers to scan with their phone."
- },
- "safety": {
- "question": "When do my funds settle?",
- "answer": "Lightning payments are settled instantly. You can withdraw your balance to another wallet within seconds. On-chain deposits take 5-10 minutes to confirm on average."
- },
+ },
+ "faq": {
+ "header": "FAQ",
+ "cost": {
+ "question": "What does it cost?",
+ "answer": "Receiving payments into your account is free. Withdrawals to external wallets incur a small fee that varies depending on network conditions."
+ },
+ "compatibility": {
+ "question": "Do I need any special device or software?",
+ "answer": "No, Coinos works anywhere that has Internet. Merchants might use it on a tablet or put up a QR code for customers to scan with their phone."
+ },
+ "safety": {
+ "question": "When do my funds settle?",
+ "answer": "Lightning payments are settled instantly. You can withdraw your balance to another wallet within seconds. On-chain deposits take 5-10 minutes to confirm on average."
+ },
"pos": {
"question": "Can Coinos integrate with my existing PoS?",
"answer": "We recommend entering sales into your existing PoS as cash transactions."
@@ -51,218 +51,218 @@
"question": "What can I do with Bitcoin?",
"answer": "Spend it at other merchants or pay your expenses with it by getting your staff, suppliers and landlord to take it."
}
- },
- "footer": {
- "company": "Company",
- "followUs": "Follow Us",
- "github": "GitHub",
- "linktree": "Linktree",
- "jobs": "Jobs",
- "support": "Support",
- "telegram": "Telegram",
- "twitter": "Twitter",
- "documentation": "Documentation"
- },
- "howItWorks": {
- "header": "How it works",
- "step1": {
- "header": "1. Create your account",
- "description": "A username and password is all you need to get started."
- },
- "step2": {
- "header": "2. Ask for payments",
- "description": "The same as you normally would, but with bitcoin."
- },
- "step3": {
- "header": "3. That's all!",
- "description": "Spend your coin immediately or watch it grow in value."
- }
- },
- "invoice": {
- "addTip": "Add a tip",
- "addTipq": "Add a tip?",
- "done": "Done",
- "paymentSuccessful": "Payment received!",
- "invoice": "Invoice",
- "total": "Total",
- "tip": "Tip"
- },
- "jobs": {
- "header": "Jobs",
- "subheader": "Current Openings",
- "pitch1": "Coinos is actively looking for developers to join our growing team (full-time or part-time, remote working OK).",
- "pitch2": "Excited about working on open source bitcoin? Then take a look at our repositories on",
- "github": "GitHub",
- "pitch3": "If you think you can make an impact, we'd love to hear from you. Send us your resume to"
- },
- "landing": {
- "header_before_icon": "The",
- "header_with_icon": "easiest",
- "header_after_icon": "way to get started with bitcoin.",
- "subheader": "A free web wallet and payment page for everyone.",
- "info1": {
- "title": "Instant payments via Lightning",
- "description": "We make it easy for merchants to receive retail payments. No waiting for bank settlements or worrying about chargebacks. Instant settlement, in seconds. Say goodbye to 3% card fees."
- },
- "info2": {
- "title": "Simple to use",
- "description1": "Just enter an amount in your local currency, share the QR code and you’re done.",
- "description2": "We do all the heavy lifting so you can focus on your business.",
- "description3": "You always have the option of taking custody of your funds by withdrawing instantly at any time."
- },
- "info3": {
- "title": "Brand it your way!",
- "description": "Customize your profile page look and feel, or keep it on default - it's totally up to you."
- }
- },
- "login": {
- "optional": "Optional",
- "token": "2FA Token",
- "username": "Username",
- "password": "Password",
- "email": "Email",
- "passwordRecommendation": "We recommend using a long, random password if you intend to keep funds in your account.",
- "forgotUserOrPassword": "Forgot Username or Password?",
- "haveAccount": "Already have an account?",
- "noAccount": "Don't have an account?",
- "register": "Register",
- "signIn": "Sign In",
- "failed": "Login failed"
- },
- "nav": {
+ },
+ "footer": {
+ "company": "Company",
+ "followUs": "Follow Us",
+ "github": "GitHub",
+ "linktree": "Linktree",
+ "jobs": "Jobs",
+ "support": "Support",
+ "telegram": "Telegram",
+ "twitter": "Twitter",
+ "documentation": "Documentation"
+ },
+ "howItWorks": {
+ "header": "How it works",
+ "step1": {
+ "header": "1. Create your account",
+ "description": "A username and password is all you need to get started."
+ },
+ "step2": {
+ "header": "2. Ask for payments",
+ "description": "The same as you normally would, but with bitcoin."
+ },
+ "step3": {
+ "header": "3. That's all!",
+ "description": "Spend your coin immediately or watch it grow in value."
+ }
+ },
+ "invoice": {
+ "addTip": "Add a tip",
+ "addTipq": "Add a tip?",
+ "done": "Done",
+ "paymentSuccessful": "Payment received!",
+ "invoice": "Invoice",
+ "total": "Total",
+ "tip": "Tip"
+ },
+ "jobs": {
+ "header": "Jobs",
+ "subheader": "Current Openings",
+ "pitch1": "Coinos is actively looking for developers to join our growing team (full-time or part-time, remote working OK).",
+ "pitch2": "Excited about working on open source bitcoin? Then take a look at our repositories on",
+ "github": "GitHub",
+ "pitch3": "If you think you can make an impact, we'd love to hear from you. Send us your resume to"
+ },
+ "landing": {
+ "header_before_icon": "The",
+ "header_with_icon": "easiest",
+ "header_after_icon": "way to get started with bitcoin.",
+ "subheader": "A free web wallet and payment page for everyone.",
+ "info1": {
+ "title": "Instant payments via Lightning",
+ "description": "We make it easy for merchants to receive retail payments. No waiting for bank settlements or worrying about chargebacks. Instant settlement, in seconds. Say goodbye to 3% card fees."
+ },
+ "info2": {
+ "title": "Simple to use",
+ "description1": "Just enter an amount in your local currency, share the QR code and you’re done.",
+ "description2": "We do all the heavy lifting so you can focus on your business.",
+ "description3": "You always have the option of taking custody of your funds by withdrawing instantly at any time."
+ },
+ "info3": {
+ "title": "Brand it your way!",
+ "description": "Customize your profile page look and feel, or keep it on default - it's totally up to you."
+ }
+ },
+ "login": {
+ "optional": "Optional",
+ "token": "2FA Token",
+ "username": "Username",
+ "password": "Password",
+ "email": "Email",
+ "passwordRecommendation": "We recommend using a long, random password if you intend to keep funds in your account.",
+ "forgotUserOrPassword": "Forgot Username or Password?",
+ "haveAccount": "Already have an account?",
+ "noAccount": "Don't have an account?",
+ "register": "Register",
+ "signIn": "Sign In",
+ "failed": "Login failed"
+ },
+ "nav": {
"about": "About",
"docs": "Docs",
"messages": "Messages",
"funds": "Funds",
"map": "Map",
"merch": "Swag",
- "profile": "Profile",
- "startInSeconds": "Start in Seconds",
- "account": "Account",
- "signIn": "Sign In",
- "signOut": "Sign out",
- "dashboard": "Dashboard",
- "settings": "Settings",
- "support": "Support"
- },
- "news": {
- "header": "News",
- "subheader": "Latest Updates"
- },
- "user": {
+ "profile": "Profile",
+ "startInSeconds": "Start in Seconds",
+ "account": "Account",
+ "signIn": "Sign In",
+ "signOut": "Sign out",
+ "dashboard": "Dashboard",
+ "settings": "Settings",
+ "support": "Support"
+ },
+ "news": {
+ "header": "News",
+ "subheader": "Latest Updates"
+ },
+ "user": {
"profilePage": "Profile page",
"nostrPubkey": "Nostr pubkey",
"requestPayment": "Request Payment",
"welcome": "Welcome! Your account balance is empty. You can start by making a deposit or by asking someone to pay you.",
"showBalance": "Show Balance",
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Invoice",
- "unfollow": "Unfollow",
- "following": "Following",
- "follow": "Follow",
- "followers": "Followers",
- "remove": "Remove",
- "noNotes": "No notes yet",
- "message": "Message",
- "messages": "Messages",
- "feed": "Feed",
- "notes": "Notes",
- "pay": "Pay",
- "scanToPayBTC": "Scan to pay with bitcoin",
- "this": "This",
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Invoice",
+ "unfollow": "Unfollow",
+ "following": "Following",
+ "follow": "Follow",
+ "followers": "Followers",
+ "remove": "Remove",
+ "noNotes": "No notes yet",
+ "message": "Message",
+ "messages": "Messages",
+ "feed": "Feed",
+ "notes": "Notes",
+ "pay": "Pay",
+ "scanToPayBTC": "Scan to pay with bitcoin",
+ "this": "This",
"lightningAddress": "Lightning address",
- "dashboard": {
- "go": "Go",
- "dashboard": "Dashboard",
- "accountBalance": "Account Balance",
- "conversionFeeWarning": "You will be charged a 1% withdrawal fee on the amount.",
- "fetchingRate": "fetching rate...",
- "send": "Send",
- "receive": "Receive",
- "withdraw": "Send",
- "deposit": "Deposit",
- "voucher": "Voucher"
- },
- "receive": {
- "lessThan1BTCWarning": "Please enter an amount less than 1 bitcoin.",
- "showQR": "Show QR"
- },
- "send": {
+ "dashboard": {
+ "go": "Go",
+ "dashboard": "Dashboard",
+ "accountBalance": "Account Balance",
+ "conversionFeeWarning": "You will be charged a 1% withdrawal fee on the amount.",
+ "fetchingRate": "fetching rate...",
+ "send": "Send",
+ "receive": "Receive",
+ "withdraw": "Send",
+ "deposit": "Deposit",
+ "voucher": "Voucher"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "Please enter an amount less than 1 bitcoin.",
+ "showQR": "Show QR"
+ },
+ "send": {
"makeQR": "QR",
- "contacts": "Contacts",
- "scan": "Scan",
- "paste": "Paste",
- "next": "Next",
- "placeholder": "Paste a bitcoin address, lightning invoice or coinos username"
- },
- "settings": {
+ "contacts": "Contacts",
+ "scan": "Scan",
+ "paste": "Paste",
+ "next": "Next",
+ "placeholder": "Paste a bitcoin address, lightning invoice or coinos username"
+ },
+ "settings": {
"seedPhrase": "Seed phrase",
"nostrKeys": "Nostr key",
- "nostrDescription": "Your nostr key is used to sign and decrypt messages, keep it safe or someone may be able to impersonate you.",
+ "nostrDescription": "Your nostr key is used to sign and decrypt messages, keep it safe or someone may be able to impersonate you.",
"seedDescription": "This 12 word seed phrase is used to derive your nostr private key and your self-custodial wallet keys which determine your auto-withdrawal addresses. Back it up and don't let anyone see it.",
"emailDescription": "For password resets and notifications",
"hideNsec": "Hide nostr secret key",
"revealNsec": "Reveal nostr secret key",
"hideSeed": "Hide seed phrase",
"revealSeed": "Reveal seed phrase",
- "saveSettings": "Save Settings",
- "bannerImage": "Banner Image",
- "profileImage": "Profile Image",
- "oneTimeCode": "Enter one-time code",
- "accountId": "Account Secret",
- "header": "Settings",
- "ACCOUNT": "ACCOUNT",
- "POINT_OF_SALE": "PREFERENCES",
- "SECURITY": "SECURITY",
- "locale": "Language",
- "username": "Username",
- "email": "Email",
- "newPassword": "Change Password",
- "about": "About",
- "aboutPlaceholder": "A little something about you or your business address and hours",
- "emailNotifications": "Email Notifications",
- "emailNotificationsDescription": "Get notified via email when a change occurs on your account or when people send you payments.",
- "smsNotifications": "SMS Notifications",
- "smsNotificationsDescription": "Coinos will send you text notifications when this is enabled.",
- "theme": "Color Theme",
- "tipPrompt": "Prompt for tips",
- "tipPromptDescription": "Ask people if they want to add a tip before paying their invoices",
- "displayName": "Display name",
- "themeDescription": "Select from the default color themes.",
- "localCurrency": "Currency",
- "btcUnit": "Display bitcoin in:",
- "bitcoin": "bitcoin",
- "minutes": "minutes",
- "hour": "hour",
- "hours": "hours",
- "satoshis": "Satoshis",
- "securityPIN": "Security PIN",
- "securityPINDescription": "Set a security pin that will be used to unlock your settings and to send outgoing payments.",
- "setPIN": "Set PIN",
- "autoLock": "Timeout",
- "autoLockDescription": "Time after which your PIN needs to be re-entered:",
- "twofa": "2-Factor Authentication",
- "twofaDescription": "Add an extra level of security to your device by enabling 2-factor authentication.",
- "twofaSetup": "Set up 2FA",
- "twofaDisable": "Disable 2FA",
- "select": "Select",
- "verifyPIN": "Verify PIN",
- "enablePIN": "Enable PIN",
- "disablePIN": "Disable PIN",
+ "saveSettings": "Save Settings",
+ "bannerImage": "Banner Image",
+ "profileImage": "Profile Image",
+ "oneTimeCode": "Enter one-time code",
+ "accountId": "Account Secret",
+ "header": "Settings",
+ "ACCOUNT": "ACCOUNT",
+ "POINT_OF_SALE": "PREFERENCES",
+ "SECURITY": "SECURITY",
+ "locale": "Language",
+ "username": "Username",
+ "email": "Email",
+ "newPassword": "Change Password",
+ "about": "About",
+ "aboutPlaceholder": "A little something about you or your business address and hours",
+ "emailNotifications": "Email Notifications",
+ "emailNotificationsDescription": "Get notified via email when a change occurs on your account or when people send you payments.",
+ "smsNotifications": "SMS Notifications",
+ "smsNotificationsDescription": "Coinos will send you text notifications when this is enabled.",
+ "theme": "Color Theme",
+ "tipPrompt": "Prompt for tips",
+ "tipPromptDescription": "Ask people if they want to add a tip before paying their invoices",
+ "displayName": "Display name",
+ "themeDescription": "Select from the default color themes.",
+ "localCurrency": "Currency",
+ "btcUnit": "Display bitcoin in:",
+ "bitcoin": "bitcoin",
+ "minutes": "minutes",
+ "hour": "hour",
+ "hours": "hours",
+ "satoshis": "Satoshis",
+ "securityPIN": "Security PIN",
+ "securityPINDescription": "Set a security pin that will be used to unlock your settings and to send outgoing payments.",
+ "setPIN": "Set PIN",
+ "autoLock": "Timeout",
+ "autoLockDescription": "Time after which your PIN needs to be re-entered:",
+ "twofa": "2-Factor Authentication",
+ "twofaDescription": "Add an extra level of security to your device by enabling 2-factor authentication.",
+ "twofaSetup": "Set up 2FA",
+ "twofaDisable": "Disable 2FA",
+ "select": "Select",
+ "verifyPIN": "Verify PIN",
+ "enablePIN": "Enable PIN",
+ "disablePIN": "Disable PIN",
"publishNip5": "Publish nostr identity",
"nip5a": "Use",
"nip5b": "as your publicly verified nostr address"
- },
- "support": {
- "header": "Support",
- "email": "Email",
- "accountName": "Account Name",
- "message": "Message",
- "send": "Send"
- }
- },
- "payments": {
+ },
+ "support": {
+ "header": "Support",
+ "email": "Email",
+ "accountName": "Account Name",
+ "message": "Message",
+ "send": "Send"
+ }
+ },
+ "payments": {
"create": "Create",
"fund": "Fund",
"addFunds": "Add Funds",
@@ -277,46 +277,46 @@
"total": "Total",
"gainLoss": "Gain/Loss",
"presentValue": "Present Value",
- "amount": "Amount",
- "date": "Date",
- "id": "Transaction ID",
- "details": "Transaction Details",
- "header": "Payments",
- "preimage": "Proof of payment",
- "type": "Type",
- "time": "Time",
- "sent": "Sent",
- "received": "Received",
- "empty": "No transactions yet.",
- "send": "Send",
- "next": "Next",
- "sendTo": "Send to",
- "to": "to",
- "pay": "Pay",
- "requesting": "is requesting",
- "sentInvoiceTo": "Sent invoice to",
- "sentRequestTo": "Request sent!",
- "pleasePay": "Please pay",
- "day": "Day",
- "week": "Week",
- "month": "Month",
- "all": "All",
- "export": "Export",
- "invoice": "Invoice",
- "readyToPay": "is ready to pay",
- "describeOrder": "Use this field to describe your order",
- "requestAnInvoice": "Request Invoice",
- "submit": "Submit",
- "isRequesting": "is requesting",
- "invoiceFrom": "Invoice from",
- "awaiting": "Awaiting",
- "tapAnywhere": "Tap anywhere to continue",
- "from": "from",
- "redeem": "Redeem",
- "redeemed": "Redeemed",
- "redeemedBy": "Redeemed by",
- "sendMessage": "Write a message...",
+ "amount": "Amount",
+ "date": "Date",
+ "id": "Transaction ID",
+ "details": "Transaction Details",
+ "header": "Payments",
+ "preimage": "Proof of payment",
+ "type": "Type",
+ "time": "Time",
+ "sent": "Sent",
+ "received": "Received",
+ "empty": "No transactions yet.",
+ "send": "Send",
+ "next": "Next",
+ "sendTo": "Send to",
+ "to": "to",
+ "pay": "Pay",
+ "requesting": "is requesting",
+ "sentInvoiceTo": "Sent invoice to",
+ "sentRequestTo": "Request sent!",
+ "pleasePay": "Please pay",
+ "day": "Day",
+ "week": "Week",
+ "month": "Month",
+ "all": "All",
+ "export": "Export",
+ "invoice": "Invoice",
+ "readyToPay": "is ready to pay",
+ "describeOrder": "Use this field to describe your order",
+ "requestAnInvoice": "Request Invoice",
+ "submit": "Submit",
+ "isRequesting": "is requesting",
+ "invoiceFrom": "Invoice from",
+ "awaiting": "Awaiting",
+ "tapAnywhere": "Tap anywhere to continue",
+ "from": "from",
+ "redeem": "Redeem",
+ "redeemed": "Redeemed",
+ "redeemedBy": "Redeemed by",
+ "sendMessage": "Write a message...",
"fundsClaimed": "Funds claimed!",
"print": "Print"
- }
+ }
}
diff --git a/src/locales/es.json b/src/locales/es.json
index e506696c..29508b27 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -1,36 +1,36 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Pagina no encontrada."
- },
- "about": {
- "header": "Sobre Nosotros",
- "p1": "Coinos es una aplicación de pagos en bitcoin de código abierto. Este desarrollo comenzó en septiembre de 2012 en Vancouver como una forma de proporcionar a los comerciantes locales una forma conveniente de aceptar pagos con bitcoin.",
- "p2": "Descarga el código fuente para ejecutar una instancia y conectarla a tu propio nodo bitcoin y lightning. Te ayudaremos a convertirte en un excelente custodio y proveedor de pagos para tu comunidad.",
- "p3": "Las transferencias de bitcoin entre usuarios en nuestro servidor se realizan off-chain, por lo que son completamente gratuitas, instantáneas e ilimitadas.",
- "team": {
- "header": "Nuestro Equipo",
- "adam": {
- "name": "Adam Soltys",
- "position": "Director de Tecnología",
- "bio": "Adam es un desarrollador web y un entusiasta de bitcoin que cree que el dinero sólido es clave para aumentar la prosperidad global. Vive en la ciudad de North Vancouver con su esposa Chelsea y sus dos hijos."
- },
- "cole": {
- "name": "Cole",
- "position": "Profesional de Bitcoin",
- "bio": "Como profesional certificado de Bitcoin, Cole es una persona motivada y apasionada por la libertad. Conoció el bitcoin en 2016 y lo estudió en profundidad. Ahora quiere presentarle la Red Lightning a tantos usuarios como sea posible."
- }
- },
- "locations": {
- "header": "Locaciones",
- "description": "Aquí algunas empresas que aceptan bitcoin con Coinos. ¡Esperamos que el tuyo sea el próximo!"
- }
- },
- "error": {
- "header": "Error",
- "message": "Vuelva a intentarlo o póngase en contacto con el soporte.",
- "signIn": "Por favor inicie sesión para continuar."
- },
+ "404": {
+ "404": "404",
+ "pageNotFound": "Pagina no encontrada."
+ },
+ "about": {
+ "header": "Sobre Nosotros",
+ "p1": "Coinos es una aplicación de pagos en bitcoin de código abierto. Este desarrollo comenzó en septiembre de 2012 en Vancouver como una forma de proporcionar a los comerciantes locales una forma conveniente de aceptar pagos con bitcoin.",
+ "p2": "Descarga el código fuente para ejecutar una instancia y conectarla a tu propio nodo bitcoin y lightning. Te ayudaremos a convertirte en un excelente custodio y proveedor de pagos para tu comunidad.",
+ "p3": "Las transferencias de bitcoin entre usuarios en nuestro servidor se realizan off-chain, por lo que son completamente gratuitas, instantáneas e ilimitadas.",
+ "team": {
+ "header": "Nuestro Equipo",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Director de Tecnología",
+ "bio": "Adam es un desarrollador web y un entusiasta de bitcoin que cree que el dinero sólido es clave para aumentar la prosperidad global. Vive en la ciudad de North Vancouver con su esposa Chelsea y sus dos hijos."
+ },
+ "cole": {
+ "name": "Cole",
+ "position": "Profesional de Bitcoin",
+ "bio": "Como profesional certificado de Bitcoin, Cole es una persona motivada y apasionada por la libertad. Conoció el bitcoin en 2016 y lo estudió en profundidad. Ahora quiere presentarle la Red Lightning a tantos usuarios como sea posible."
+ }
+ },
+ "locations": {
+ "header": "Locaciones",
+ "description": "Aquí algunas empresas que aceptan bitcoin con Coinos. ¡Esperamos que el tuyo sea el próximo!"
+ }
+ },
+ "error": {
+ "header": "Error",
+ "message": "Vuelva a intentarlo o póngase en contacto con el soporte.",
+ "signIn": "Por favor inicie sesión para continuar."
+ },
"faq": {
"header": "FAQ",
"why": {
@@ -70,222 +70,222 @@
"answer": "Gástalo en otros comerciantes o paga tus gastos con él al conseguir que tu personal, proveedores y arrendador lo acepten."
}
},
- "footer": {
- "company": "Empresa",
- "followUs": "Síguenos",
- "github": "GitHub",
- "jobs": "Trabaje con nosotros",
- "support": "Soporte",
- "telegram": "Telegram",
- "twitter": "Twitter",
- "news": "Noticias"
- },
- "howItWorks": {
- "header": "Cómo funciona",
- "step1": {
- "header": "1. Crea tu cuenta",
- "description": "Un nombre de usuario y una contraseña es todo lo que necesita para comenzar."
- },
- "step2": {
- "header": "2. Cobra tus pagos",
- "description": "Lo mismo que harías normalmente, pero con bitcoin."
- },
- "step3": {
- "header": "3. ¡Eso es todo!",
- "description": "Haz pagos con otros comerciantes o guarda tu bitcoin para días difíciles, la elección es tuya."
- }
- },
- "invoice": {
- "addTip": "Añadir propina",
- "addTipq": "Añadir propina?",
- "done": "Hecho",
- "paymentSuccessful": "¡Pago recibido!",
- "invoice": "Factura",
- "total": "Total",
- "tip": "Propina"
- },
- "jobs": {
- "header": "Trabaje con nosotros",
- "subheader": "Ofertas de Trabajo",
- "pitch1": "Coinos está activamente buscando desarrolladores para unirse a nuestro equipo en crecimiento (tiempo completo o medio tiempo, trabajo remoto OK).",
- "pitch2": "¿Emocionado por trabajar en bitcoin de código abierto? Entonces eche un vistazo a nuestros repositorios en",
- "github": "GitHub",
- "pitch3": "Si crees que puedes generar impacto, nos encantaría saber de ti. Envíanos tu currículum a"
- },
- "landing": {
- "header_before_icon": "La",
- "header_with_icon": "manera",
- "header_after_icon": "más fácil de aceptar bitcoins en tu tienda.",
- "subheader": "Aumenta tu número de clientes e ingresos al aceptar bitcoin con una aplicación web fácil de usar. No requiere software ni hardware.",
- "info1": {
- "title": "Pagos instantáneos a través de Lightning",
- "description": "El momento en que su cliente envía un pago, este llega inmediatamente. Sin esperar liquidaciones bancarias ni preocuparse por cargos extras. Liquidación instantánea, en segundos. Diga adiós a los cargos del 3% de las tarifas en tarjetas de crédito."
- },
- "info2": {
- "title": "Fácil de usar",
- "description1": "Solo ingrese una cantidad en su moneda local, comparta el código QR y listo.",
- "description2": "Hacemos todo el trabajo pesado para que pueda concentrarse en su negocio.",
- "description3": "Siempre tiene la opción de tomar la custodia de sus fondos al retirarlos instantáneamente en cualquier momento."
- },
- "info3": {
- "title": "Maneja tu marca a tu manera!",
- "description": "Personalice la apariencia y el estilo del punto de venta de tu negocio a tu gusto: depende totalmente de ti."
- }
- },
- "login": {
- "optional": "Opcional",
- "token": "Token 2FA",
- "username": "Usuario",
- "password": "Contraseña",
- "email": "Correo",
- "passwordRecommendation": "Recomendamos una contraseña larga y aleatoria generada con un administrador de contraseñas.",
- "forgotUserOrPassword": "¿Olvidaste tu nombre de usuario o contraseña?",
- "haveAccount": "¿Ya tienes una cuenta?",
- "noAccount": "¿No tienes una cuenta?",
- "register": "Registro",
- "signIn": "Registrarse",
- "failed": "Fallo en Inicio"
- },
- "nav": {
- "profile": "Perfil",
- "startInSeconds": "Comience en segundos",
- "account": "Cuenta",
- "signIn": "Registrarse",
- "signOut": "Desconectar",
- "dashboard": "Panel",
- "settings": "Ajustes",
- "support": "Soporte"
- },
- "newSiteHeader": "Acompañanos en nuestra
launch party en Vancouver el 26 de Octubre! Buscando la version anterior de coinos? Visita
classic.coinos.io",
- "news": {
- "header": "Noticias",
- "subheader": "Últimas Actualizaciones",
- "update1": ""
- },
- "user": {
+ "footer": {
+ "company": "Empresa",
+ "followUs": "Síguenos",
+ "github": "GitHub",
+ "jobs": "Trabaje con nosotros",
+ "support": "Soporte",
+ "telegram": "Telegram",
+ "twitter": "Twitter",
+ "news": "Noticias"
+ },
+ "howItWorks": {
+ "header": "Cómo funciona",
+ "step1": {
+ "header": "1. Crea tu cuenta",
+ "description": "Un nombre de usuario y una contraseña es todo lo que necesita para comenzar."
+ },
+ "step2": {
+ "header": "2. Cobra tus pagos",
+ "description": "Lo mismo que harías normalmente, pero con bitcoin."
+ },
+ "step3": {
+ "header": "3. ¡Eso es todo!",
+ "description": "Haz pagos con otros comerciantes o guarda tu bitcoin para días difíciles, la elección es tuya."
+ }
+ },
+ "invoice": {
+ "addTip": "Añadir propina",
+ "addTipq": "Añadir propina?",
+ "done": "Hecho",
+ "paymentSuccessful": "¡Pago recibido!",
+ "invoice": "Factura",
+ "total": "Total",
+ "tip": "Propina"
+ },
+ "jobs": {
+ "header": "Trabaje con nosotros",
+ "subheader": "Ofertas de Trabajo",
+ "pitch1": "Coinos está activamente buscando desarrolladores para unirse a nuestro equipo en crecimiento (tiempo completo o medio tiempo, trabajo remoto OK).",
+ "pitch2": "¿Emocionado por trabajar en bitcoin de código abierto? Entonces eche un vistazo a nuestros repositorios en",
+ "github": "GitHub",
+ "pitch3": "Si crees que puedes generar impacto, nos encantaría saber de ti. Envíanos tu currículum a"
+ },
+ "landing": {
+ "header_before_icon": "La",
+ "header_with_icon": "manera",
+ "header_after_icon": "más fácil de aceptar bitcoins en tu tienda.",
+ "subheader": "Aumenta tu número de clientes e ingresos al aceptar bitcoin con una aplicación web fácil de usar. No requiere software ni hardware.",
+ "info1": {
+ "title": "Pagos instantáneos a través de Lightning",
+ "description": "El momento en que su cliente envía un pago, este llega inmediatamente. Sin esperar liquidaciones bancarias ni preocuparse por cargos extras. Liquidación instantánea, en segundos. Diga adiós a los cargos del 3% de las tarifas en tarjetas de crédito."
+ },
+ "info2": {
+ "title": "Fácil de usar",
+ "description1": "Solo ingrese una cantidad en su moneda local, comparta el código QR y listo.",
+ "description2": "Hacemos todo el trabajo pesado para que pueda concentrarse en su negocio.",
+ "description3": "Siempre tiene la opción de tomar la custodia de sus fondos al retirarlos instantáneamente en cualquier momento."
+ },
+ "info3": {
+ "title": "Maneja tu marca a tu manera!",
+ "description": "Personalice la apariencia y el estilo del punto de venta de tu negocio a tu gusto: depende totalmente de ti."
+ }
+ },
+ "login": {
+ "optional": "Opcional",
+ "token": "Token 2FA",
+ "username": "Usuario",
+ "password": "Contraseña",
+ "email": "Correo",
+ "passwordRecommendation": "Recomendamos una contraseña larga y aleatoria generada con un administrador de contraseñas.",
+ "forgotUserOrPassword": "¿Olvidaste tu nombre de usuario o contraseña?",
+ "haveAccount": "¿Ya tienes una cuenta?",
+ "noAccount": "¿No tienes una cuenta?",
+ "register": "Registro",
+ "signIn": "Registrarse",
+ "failed": "Fallo en Inicio"
+ },
+ "nav": {
+ "profile": "Perfil",
+ "startInSeconds": "Comience en segundos",
+ "account": "Cuenta",
+ "signIn": "Registrarse",
+ "signOut": "Desconectar",
+ "dashboard": "Panel",
+ "settings": "Ajustes",
+ "support": "Soporte"
+ },
+ "newSiteHeader": "Acompañanos en nuestra
launch party en Vancouver el 26 de Octubre! Buscando la version anterior de coinos? Visita
classic.coinos.io",
+ "news": {
+ "header": "Noticias",
+ "subheader": "Últimas Actualizaciones",
+ "update1": ""
+ },
+ "user": {
"requestPayment": "Solicitar pago",
"welcome": "¡Bienvenido! El saldo de su cuenta está vacío. Puede comenzar haciendo un depósito o pidiéndole a alguien que le pague.",
"showBalance": "Mostrar saldo",
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Factura",
- "unfollow": "Dejar de seguir",
- "following": "Siguiendo",
- "followers": "Seguidores",
- "follow": "Seguir",
- "remove": "Eliminar",
- "scanToPayBTC": "Escanear para pagar con bitcoin",
- "this": "Esta",
- "lightningAddress": "Dirección lightning",
- "dashboard": {
- "go": "Ir",
- "dashboard": "Panel",
- "accountBalance": "Saldo de la cuenta",
- "bitcoinPrice": "Precio de Bitcoin:",
- "conversionFeeWarning": "Se le cobrará una tarifa de retiro del 1% sobre el monto.",
- "dataFromBinance": "Datos de
Binance.",
- "fetchingRate": "calculando tasa...",
- "optionalNote": "Nota (Opcional)",
- "send": "Enviar",
- "receive": "Recibir",
- "withdraw": "Retirar",
- "deposit": "Depositar",
- "voucher": "Comprobante"
- },
- "receive": {
- "lessThan1BTCWarning": "Introduzca una cantidad inferior a 1 bitcoin.",
- "showQR": "Mostrar código QR"
- },
- "send": {
- "contacts": "Contactos",
- "scan": "Escanear",
- "paste": "Pegar",
- "next": "Siguiente",
- "placeholder": "Asigne una dirección de bitcoin, una factura lightning o un usuario de coinos"
- },
- "settings": {
- "saveSettings": "Guardar ajustes",
- "tipPrompt": "Solicitar propinas",
- "tipPromptDescription": "Pregunta a las personas si quieren agregar una propina antes de pagar sus facturas",
- "bannerImage": "Imagen del Banner",
- "profileImage": "Imagen de perfil",
- "oneTimeCode": "Ingrese el código de un solo uso",
- "accountId": "Id Cuenta",
- "header": "Ajustes",
- "ACCOUNT": "CUENTA",
- "POINT_OF_SALE": "PUNTO DE VENTA",
- "SECURITY": "SEGURIDAD",
- "locale": "Idioma",
- "username": "Usuario",
- "email": "Correo",
- "newPassword": "Nueva contraseña",
- "businessAddress": "Dirección Negocio",
- "emailNotifications": "Notificaciones de Correo Electrónico",
- "emailNotificationsDescription": "Reciba notificaciones por correo electrónico cuando se produzca un cambio en su cuenta o cuando las personas le envíen pagos.",
- "smsNotifications": "Notificaciones SMS",
- "smsNotificationsDescription": "Coinos enviará notificaciones de texto cuando esto esté habilitado.",
- "theme": "Color Tema",
- "themeDescription": "Seleccione entre los temas de color predeterminados.",
- "localCurrency": "Moneda Local",
- "btcUnit": "Ver bitcoin en:",
- "bitcoin": "bitcoin",
- "satoshis": "Satoshis",
- "securityPIN": "PIN de Seguridad",
- "securityPINDescription": "Establezca un pin de seguridad para desbloquear la configuración y enviar pagos.",
- "setPIN": "Establecer PIN",
- "autoLock": "Temporizador de bloqueo automático",
- "autoLockDescription": "Su cuenta entrará en modo seguro automáticamente después del tiempo especificado:",
- "twofa": "Autenticación de 2 factores",
- "twofaDescription": "Agregue una capa extra de seguridad a su dispositivo habilitando la autenticación de 2 factores.",
- "twofaSetup": "Configurar 2FA",
- "twofaDisable": "Deshabilitar 2FA",
- "select": "Seleccionar",
- "verifyPIN": "Verificar PIN",
- "enablePIN": "Habilitar PIN",
- "disablePIN": "Deshabilitar PIN"
- },
- "support": {
- "header": "Soporte",
- "email": "Correo",
- "accountName": "Nombre Cuenta",
- "message": "Mensaje",
- "send": "Enviar"
- }
- },
- "payments": {
- "header": "Transacciones",
- "AMOUNT": "CANTIDAD",
- "TYPE": "TIPO",
- "TIME": "HORA",
- "sent": "Enviado",
- "received": "Recibido",
- "empty": "Aún no hay transacciones.",
- "send": "Enviado",
- "next": "Siguiente",
- "sendersChoice": "Elección del remitente",
- "sendTo": "Enviar a",
- "to": "para",
- "pay": "Pagar",
- "requesting": "está solicitando",
- "sentInvoiceTo": "Enviar factura a",
- "sentRequestTo": "Enviar solicitud a",
- "pleasePay": "Por favor pague",
- "day": "Día",
- "week": "Semana",
- "month": "Mes",
- "all": "Todo",
- "export": "Exportar",
- "invoice": "Factura",
- "readyToPay": "está listo para pagar",
- "describeOrder": "Utilice este campo para describir su orden",
- "requestAnInvoice": "Solicitar factura",
- "submit": "Enviar",
- "isRequesting": "está solicitando",
- "awaiting": "Esperando",
- "tapAnywhere": "Toca en cualquier lugar",
- "from": "de",
- "redeem": "Redimir",
- "redeemed": "Redimido",
- "redeemedBy": "Redimido por"
- }
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Factura",
+ "unfollow": "Dejar de seguir",
+ "following": "Siguiendo",
+ "followers": "Seguidores",
+ "follow": "Seguir",
+ "remove": "Eliminar",
+ "scanToPayBTC": "Escanear para pagar con bitcoin",
+ "this": "Esta",
+ "lightningAddress": "Dirección lightning",
+ "dashboard": {
+ "go": "Ir",
+ "dashboard": "Panel",
+ "accountBalance": "Saldo de la cuenta",
+ "bitcoinPrice": "Precio de Bitcoin:",
+ "conversionFeeWarning": "Se le cobrará una tarifa de retiro del 1% sobre el monto.",
+ "dataFromBinance": "Datos de
Binance.",
+ "fetchingRate": "calculando tasa...",
+ "optionalNote": "Nota (Opcional)",
+ "send": "Enviar",
+ "receive": "Recibir",
+ "withdraw": "Retirar",
+ "deposit": "Depositar",
+ "voucher": "Comprobante"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "Introduzca una cantidad inferior a 1 bitcoin.",
+ "showQR": "Mostrar código QR"
+ },
+ "send": {
+ "contacts": "Contactos",
+ "scan": "Escanear",
+ "paste": "Pegar",
+ "next": "Siguiente",
+ "placeholder": "Asigne una dirección de bitcoin, una factura lightning o un usuario de coinos"
+ },
+ "settings": {
+ "saveSettings": "Guardar ajustes",
+ "tipPrompt": "Solicitar propinas",
+ "tipPromptDescription": "Pregunta a las personas si quieren agregar una propina antes de pagar sus facturas",
+ "bannerImage": "Imagen del Banner",
+ "profileImage": "Imagen de perfil",
+ "oneTimeCode": "Ingrese el código de un solo uso",
+ "accountId": "Id Cuenta",
+ "header": "Ajustes",
+ "ACCOUNT": "CUENTA",
+ "POINT_OF_SALE": "PUNTO DE VENTA",
+ "SECURITY": "SEGURIDAD",
+ "locale": "Idioma",
+ "username": "Usuario",
+ "email": "Correo",
+ "newPassword": "Nueva contraseña",
+ "businessAddress": "Dirección Negocio",
+ "emailNotifications": "Notificaciones de Correo Electrónico",
+ "emailNotificationsDescription": "Reciba notificaciones por correo electrónico cuando se produzca un cambio en su cuenta o cuando las personas le envíen pagos.",
+ "smsNotifications": "Notificaciones SMS",
+ "smsNotificationsDescription": "Coinos enviará notificaciones de texto cuando esto esté habilitado.",
+ "theme": "Color Tema",
+ "themeDescription": "Seleccione entre los temas de color predeterminados.",
+ "localCurrency": "Moneda Local",
+ "btcUnit": "Ver bitcoin en:",
+ "bitcoin": "bitcoin",
+ "satoshis": "Satoshis",
+ "securityPIN": "PIN de Seguridad",
+ "securityPINDescription": "Establezca un pin de seguridad para desbloquear la configuración y enviar pagos.",
+ "setPIN": "Establecer PIN",
+ "autoLock": "Temporizador de bloqueo automático",
+ "autoLockDescription": "Su cuenta entrará en modo seguro automáticamente después del tiempo especificado:",
+ "twofa": "Autenticación de 2 factores",
+ "twofaDescription": "Agregue una capa extra de seguridad a su dispositivo habilitando la autenticación de 2 factores.",
+ "twofaSetup": "Configurar 2FA",
+ "twofaDisable": "Deshabilitar 2FA",
+ "select": "Seleccionar",
+ "verifyPIN": "Verificar PIN",
+ "enablePIN": "Habilitar PIN",
+ "disablePIN": "Deshabilitar PIN"
+ },
+ "support": {
+ "header": "Soporte",
+ "email": "Correo",
+ "accountName": "Nombre Cuenta",
+ "message": "Mensaje",
+ "send": "Enviar"
+ }
+ },
+ "payments": {
+ "header": "Transacciones",
+ "AMOUNT": "CANTIDAD",
+ "TYPE": "TIPO",
+ "TIME": "HORA",
+ "sent": "Enviado",
+ "received": "Recibido",
+ "empty": "Aún no hay transacciones.",
+ "send": "Enviado",
+ "next": "Siguiente",
+ "sendersChoice": "Elección del remitente",
+ "sendTo": "Enviar a",
+ "to": "para",
+ "pay": "Pagar",
+ "requesting": "está solicitando",
+ "sentInvoiceTo": "Enviar factura a",
+ "sentRequestTo": "Enviar solicitud a",
+ "pleasePay": "Por favor pague",
+ "day": "Día",
+ "week": "Semana",
+ "month": "Mes",
+ "all": "Todo",
+ "export": "Exportar",
+ "invoice": "Factura",
+ "readyToPay": "está listo para pagar",
+ "describeOrder": "Utilice este campo para describir su orden",
+ "requestAnInvoice": "Solicitar factura",
+ "submit": "Enviar",
+ "isRequesting": "está solicitando",
+ "awaiting": "Esperando",
+ "tapAnywhere": "Toca en cualquier lugar",
+ "from": "de",
+ "redeem": "Redimir",
+ "redeemed": "Redimido",
+ "redeemedBy": "Redimido por"
+ }
}
diff --git a/src/locales/fa.json b/src/locales/fa.json
index fb5a4418..22a506d7 100644
--- a/src/locales/fa.json
+++ b/src/locales/fa.json
@@ -1,282 +1,282 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Page not found."
- },
- "about": {
- "header": "About",
- "p1": "Coinos is an open source bitcoin payment app. Development started in Vancouver in September 2012 as a way to provide local merchants with a convenient way to accept bitcoin payments.",
- "p2": "You can download the source code to run an instance and connect it to your own bitcoin and lightning nodes. We'll help you get started being a benevolent custodian and payments provider for your community.",
- "p3": "Account transfers amongst users on our server are done off-chain so they're completely free, instant, and unlimited.",
- "team": {
- "header": "The Team",
- "adam": {
- "name": "Adam Soltys",
- "position": "Chief Technical Officer",
- "bio": "Adam is a web developer and bitcoin enthusiast who believes sound money is key to increasing global prosperity. He lives in North Vancouver with his wife Chelsea and two children."
- },
- "cole": {
- "name": "Cole",
- "position": "Certified Bitcoin Professional",
- "bio": "Cole is a driven individual with a passion for freedom. He came across bitcoin in 2016 and studied it in depth. Now he wants to introduce the lightning network to as many users as possible."
- }
- },
- "locations": {
- "header": "Locations",
- "description": "Here are some businesses that are accepting bitcoin with Coinos. We hope that yours will be next!"
- }
- },
- "error": {
- "header": "Error",
- "message": "Please try again or contact support.",
- "signIn": "Please sign in to continue."
- },
- "faq": {
- "header": "FAQ",
- "cost": {
- "question": "What does it cost?",
- "answer": "It's free to register an account and receive payments. We charge a 0.1% conversion fee if you withdraw regular bitcoin to lightning or vice versa."
- },
- "compatibility": {
- "question": "Do I need any special device or software?",
- "answer": "No. Coinos is web based, so as long as you have an internet connection and a web browser, it works anywhere. Retail merchants might use it on a phone or a tablet."
- },
- "safety": {
- "question": "When do my funds settle?",
- "answer": "Lightning payments are settled instantly. You can withdraw your balance to another wallet or exchange immediately once funds are received."
- }
- },
- "footer": {
- "company": "Company",
- "followUs": "Follow Us",
- "github": "GitHub",
- "linktree": "Linktree",
- "jobs": "Jobs",
- "support": "Support",
- "telegram": "Telegram",
- "twitter": "Twitter",
- "documentation": "Documentation"
- },
- "howItWorks": {
- "header": "How it works",
- "step1": {
- "header": "1. Create your account",
- "description": "A username and password is all you need to get started."
- },
- "step2": {
- "header": "2. Ask for payments",
- "description": "The same as you normally would, but with bitcoin."
- },
- "step3": {
- "header": "3. That's all!",
- "description": "Spend your coin immediately or save it and watch it grow, the choice is yours."
- }
- },
- "invoice": {
- "addTip": "Add a tip",
- "addTipq": "Add a tip?",
- "done": "Done",
- "paymentSuccessful": "Payment received!",
- "invoice": "Invoice",
- "total": "Total",
- "tip": "Tip"
- },
- "jobs": {
- "header": "Jobs",
- "subheader": "Current Openings",
- "pitch1": "Coinos is actively looking for developers to join our growing team (full-time or part-time, remote working OK).",
- "pitch2": "Excited about working on open source bitcoin? Then take a look at our repositories on",
- "github": "GitHub",
- "pitch3": "If you think you can make an impact, we'd love to hear from you. Send us your resume to"
- },
- "landing": {
- "header_before_icon": "The",
- "header_with_icon": "easiest",
- "header_after_icon": "way to get started with bitcoin.",
- "subheader": "A simple but powerful web wallet for everyone. No software or hardware required.",
- "info1": {
- "title": "Instant payments via Lightning",
- "description": "We make it easy for merchants to receive retail payments. No waiting for bank settlements or worrying about chargebacks. Instant settlement, in seconds. Say goodbye to 3% credit card processing fees."
- },
- "info2": {
- "title": "Simple to use",
- "description1": "Just enter an amount in your local currency, share the QR code and you’re done.",
- "description2": "We do all the heavy lifting so you can focus on your business.",
- "description3": "You always have the option of taking custody of your funds by withdrawing instantly at any time."
- },
- "info3": {
- "title": "Brand it your way!",
- "description": "Customize your profile page look and feel, or keep it on default - it's totally up to you."
- }
- },
- "login": {
- "optional": "Optional",
- "token": "2FA Token",
- "username": "Username",
- "password": "Password",
- "email": "Email",
- "passwordRecommendation": "We recommend a long, random password generated with a password manager.",
- "forgotUserOrPassword": "Forgot Username or Password?",
- "haveAccount": "Already have an account?",
- "noAccount": "Don't have an account?",
- "register": "Register",
- "signIn": "Sign In",
- "failed": "Login failed"
- },
- "nav": {
- "profile": "Profile",
- "startInSeconds": "Start in Seconds",
- "account": "Account",
- "signIn": "Sign In",
- "signOut": "Sign Out",
- "dashboard": "Dashboard",
- "settings": "Settings",
- "support": "Support"
- },
- "newSiteHeader": "Join us at our
launch party in Vancouver on October 26! Looking for the old coinos? Visit
classic.coinos.io",
- "news": {
- "header": "News",
- "subheader": "Latest Updates",
- "update1": ""
- },
- "user": {
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Invoice",
- "unfollow": "Unfollow",
- "following": "Following",
- "follow": "Follow",
- "followers": "Followers",
- "remove": "Remove",
- "noNotes": "No notes yet",
- "message": "Message",
- "messages": "Messages",
- "feed": "Feed",
- "notes": "Notes",
- "pay": "Pay",
- "scanToPayBTC": "Scan to pay with bitcoin",
- "this": "This",
- "lightningAddress": "Lightning address",
- "dashboard": {
- "go": "Go",
- "dashboard": "Dashboard",
- "accountBalance": "Account Balance",
- "bitcoinPrice": "bitcoin Price:",
- "conversionFeeWarning": "You will be charged a 1% withdrawal fee on the amount.",
- "dataFromBinance": "Data from
Binance.",
- "fetchingRate": "fetching rate...",
- "optionalNote": "Note (Optional)",
- "send": "Send",
- "receive": "Receive",
- "withdraw": "Send",
- "deposit": "Deposit",
- "voucher": "Voucher"
- },
- "receive": {
- "lessThan1BTCWarning": "Please enter an amount less than 1 bitcoin.",
- "showQR": "Show QR"
- },
- "send": {
- "contacts": "Contacts",
- "scan": "Scan",
- "paste": "Paste",
- "next": "Next",
- "placeholder": "Paste a bitcoin address, lightning invoice or coinos username"
- },
- "settings": {
- "saveSettings": "Save Settings",
- "bannerImage": "Banner Image",
- "profileImage": "Profile Image",
- "oneTimeCode": "Enter one-time code",
- "accountId": "Account Secret",
- "header": "Settings",
- "ACCOUNT": "ACCOUNT",
- "POINT_OF_SALE": "PREFERENCES",
- "SECURITY": "SECURITY",
- "locale": "Language",
- "username": "Username",
- "email": "Email",
- "newPassword": "Change Password",
- "about": "About",
- "aboutPlaceholder": "A little something about you or your business address and hours",
- "emailNotifications": "Email Notifications",
- "emailNotificationsDescription": "Get notified via email when a change occurs on your account or when people send you payments.",
- "smsNotifications": "SMS Notifications",
- "smsNotificationsDescription": "Coinos will send you text notifications when this is enabled.",
- "theme": "Color Theme",
- "tipPrompt": "Prompt for tips",
- "tipPromptDescription": "Ask people if they want to add a tip before paying their invoices",
- "displayName": "Display name",
- "themeDescription": "Select from the default color themes.",
- "localCurrency": "Currency",
- "btcUnit": "Display bitcoin in:",
- "bitcoin": "bitcoin",
- "minutes": "minutes",
- "hour": "hour",
- "hours": "hours",
- "satoshis": "Satoshis",
- "securityPIN": "Security PIN",
- "securityPINDescription": "Set a security pin that will be used to unlock your settings and to send outgoing payments.",
- "setPIN": "Set PIN",
- "autoLock": "Auto-Lock Timer",
- "autoLockDescription": "Your account will go into a secure mode, requiring you to re-enter your credentials after a specified time:",
- "twofa": "2-Factor Authentication",
- "twofaDescription": "Add an extra level of security to your device by enabling 2-factor authentication.",
- "twofaSetup": "Set up 2FA",
- "twofaDisable": "Disable 2FA",
- "select": "Select",
- "verifyPIN": "Verify PIN",
- "enablePIN": "Enable PIN",
- "disablePIN": "Disable PIN"
- },
- "support": {
- "header": "Support",
- "email": "Email",
- "accountName": "Account Name",
- "message": "Message",
- "send": "Send"
- }
- },
- "payments": {
- "amount": "Amount",
- "date": "Date",
- "id": "Transaction ID",
- "details": "Transaction Details",
- "header": "Payments",
- "preimage": "Proof of payment",
- "type": "Type",
- "time": "Time",
- "sent": "Sent",
- "received": "Received",
- "empty": "No transactions yet.",
- "send": "Send",
- "next": "Next",
- "sendersChoice": "Sender's choice",
- "sendTo": "Send to",
- "to": "to",
- "pay": "Pay",
- "requesting": "is requesting",
- "sentInvoiceTo": "Sent invoice to",
- "sentRequestTo": "Request sent!",
- "pleasePay": "Please pay",
- "day": "Day",
- "week": "Week",
- "month": "Month",
- "all": "All",
- "export": "Export",
- "invoice": "Invoice",
- "readyToPay": "is ready to pay",
- "describeOrder": "Use this field to describe your order",
- "requestAnInvoice": "Request Invoice",
- "submit": "Submit",
- "isRequesting": "is requesting",
- "invoiceFrom": "Invoice from",
- "awaiting": "Awaiting",
- "tapAnywhere": "Tap anywhere to continue",
- "from": "from",
- "redeem": "Redeem",
- "redeemed": "Redeemed",
- "redeemedBy": "Redeemed by",
- "sendMessage": "Write a message..."
- }
+ "404": {
+ "404": "404",
+ "pageNotFound": "Page not found."
+ },
+ "about": {
+ "header": "About",
+ "p1": "Coinos is an open source bitcoin payment app. Development started in Vancouver in September 2012 as a way to provide local merchants with a convenient way to accept bitcoin payments.",
+ "p2": "You can download the source code to run an instance and connect it to your own bitcoin and lightning nodes. We'll help you get started being a benevolent custodian and payments provider for your community.",
+ "p3": "Account transfers amongst users on our server are done off-chain so they're completely free, instant, and unlimited.",
+ "team": {
+ "header": "The Team",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Chief Technical Officer",
+ "bio": "Adam is a web developer and bitcoin enthusiast who believes sound money is key to increasing global prosperity. He lives in North Vancouver with his wife Chelsea and two children."
+ },
+ "cole": {
+ "name": "Cole",
+ "position": "Certified Bitcoin Professional",
+ "bio": "Cole is a driven individual with a passion for freedom. He came across bitcoin in 2016 and studied it in depth. Now he wants to introduce the lightning network to as many users as possible."
+ }
+ },
+ "locations": {
+ "header": "Locations",
+ "description": "Here are some businesses that are accepting bitcoin with Coinos. We hope that yours will be next!"
+ }
+ },
+ "error": {
+ "header": "Error",
+ "message": "Please try again or contact support.",
+ "signIn": "Please sign in to continue."
+ },
+ "faq": {
+ "header": "FAQ",
+ "cost": {
+ "question": "What does it cost?",
+ "answer": "It's free to register an account and receive payments. We charge a 0.1% conversion fee if you withdraw regular bitcoin to lightning or vice versa."
+ },
+ "compatibility": {
+ "question": "Do I need any special device or software?",
+ "answer": "No. Coinos is web based, so as long as you have an internet connection and a web browser, it works anywhere. Retail merchants might use it on a phone or a tablet."
+ },
+ "safety": {
+ "question": "When do my funds settle?",
+ "answer": "Lightning payments are settled instantly. You can withdraw your balance to another wallet or exchange immediately once funds are received."
+ }
+ },
+ "footer": {
+ "company": "Company",
+ "followUs": "Follow Us",
+ "github": "GitHub",
+ "linktree": "Linktree",
+ "jobs": "Jobs",
+ "support": "Support",
+ "telegram": "Telegram",
+ "twitter": "Twitter",
+ "documentation": "Documentation"
+ },
+ "howItWorks": {
+ "header": "How it works",
+ "step1": {
+ "header": "1. Create your account",
+ "description": "A username and password is all you need to get started."
+ },
+ "step2": {
+ "header": "2. Ask for payments",
+ "description": "The same as you normally would, but with bitcoin."
+ },
+ "step3": {
+ "header": "3. That's all!",
+ "description": "Spend your coin immediately or save it and watch it grow, the choice is yours."
+ }
+ },
+ "invoice": {
+ "addTip": "Add a tip",
+ "addTipq": "Add a tip?",
+ "done": "Done",
+ "paymentSuccessful": "Payment received!",
+ "invoice": "Invoice",
+ "total": "Total",
+ "tip": "Tip"
+ },
+ "jobs": {
+ "header": "Jobs",
+ "subheader": "Current Openings",
+ "pitch1": "Coinos is actively looking for developers to join our growing team (full-time or part-time, remote working OK).",
+ "pitch2": "Excited about working on open source bitcoin? Then take a look at our repositories on",
+ "github": "GitHub",
+ "pitch3": "If you think you can make an impact, we'd love to hear from you. Send us your resume to"
+ },
+ "landing": {
+ "header_before_icon": "The",
+ "header_with_icon": "easiest",
+ "header_after_icon": "way to get started with bitcoin.",
+ "subheader": "A simple but powerful web wallet for everyone. No software or hardware required.",
+ "info1": {
+ "title": "Instant payments via Lightning",
+ "description": "We make it easy for merchants to receive retail payments. No waiting for bank settlements or worrying about chargebacks. Instant settlement, in seconds. Say goodbye to 3% credit card processing fees."
+ },
+ "info2": {
+ "title": "Simple to use",
+ "description1": "Just enter an amount in your local currency, share the QR code and you’re done.",
+ "description2": "We do all the heavy lifting so you can focus on your business.",
+ "description3": "You always have the option of taking custody of your funds by withdrawing instantly at any time."
+ },
+ "info3": {
+ "title": "Brand it your way!",
+ "description": "Customize your profile page look and feel, or keep it on default - it's totally up to you."
+ }
+ },
+ "login": {
+ "optional": "Optional",
+ "token": "2FA Token",
+ "username": "Username",
+ "password": "Password",
+ "email": "Email",
+ "passwordRecommendation": "We recommend a long, random password generated with a password manager.",
+ "forgotUserOrPassword": "Forgot Username or Password?",
+ "haveAccount": "Already have an account?",
+ "noAccount": "Don't have an account?",
+ "register": "Register",
+ "signIn": "Sign In",
+ "failed": "Login failed"
+ },
+ "nav": {
+ "profile": "Profile",
+ "startInSeconds": "Start in Seconds",
+ "account": "Account",
+ "signIn": "Sign In",
+ "signOut": "Sign Out",
+ "dashboard": "Dashboard",
+ "settings": "Settings",
+ "support": "Support"
+ },
+ "newSiteHeader": "Join us at our
launch party in Vancouver on October 26! Looking for the old coinos? Visit
classic.coinos.io",
+ "news": {
+ "header": "News",
+ "subheader": "Latest Updates",
+ "update1": ""
+ },
+ "user": {
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Invoice",
+ "unfollow": "Unfollow",
+ "following": "Following",
+ "follow": "Follow",
+ "followers": "Followers",
+ "remove": "Remove",
+ "noNotes": "No notes yet",
+ "message": "Message",
+ "messages": "Messages",
+ "feed": "Feed",
+ "notes": "Notes",
+ "pay": "Pay",
+ "scanToPayBTC": "Scan to pay with bitcoin",
+ "this": "This",
+ "lightningAddress": "Lightning address",
+ "dashboard": {
+ "go": "Go",
+ "dashboard": "Dashboard",
+ "accountBalance": "Account Balance",
+ "bitcoinPrice": "bitcoin Price:",
+ "conversionFeeWarning": "You will be charged a 1% withdrawal fee on the amount.",
+ "dataFromBinance": "Data from
Binance.",
+ "fetchingRate": "fetching rate...",
+ "optionalNote": "Note (Optional)",
+ "send": "Send",
+ "receive": "Receive",
+ "withdraw": "Send",
+ "deposit": "Deposit",
+ "voucher": "Voucher"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "Please enter an amount less than 1 bitcoin.",
+ "showQR": "Show QR"
+ },
+ "send": {
+ "contacts": "Contacts",
+ "scan": "Scan",
+ "paste": "Paste",
+ "next": "Next",
+ "placeholder": "Paste a bitcoin address, lightning invoice or coinos username"
+ },
+ "settings": {
+ "saveSettings": "Save Settings",
+ "bannerImage": "Banner Image",
+ "profileImage": "Profile Image",
+ "oneTimeCode": "Enter one-time code",
+ "accountId": "Account Secret",
+ "header": "Settings",
+ "ACCOUNT": "ACCOUNT",
+ "POINT_OF_SALE": "PREFERENCES",
+ "SECURITY": "SECURITY",
+ "locale": "Language",
+ "username": "Username",
+ "email": "Email",
+ "newPassword": "Change Password",
+ "about": "About",
+ "aboutPlaceholder": "A little something about you or your business address and hours",
+ "emailNotifications": "Email Notifications",
+ "emailNotificationsDescription": "Get notified via email when a change occurs on your account or when people send you payments.",
+ "smsNotifications": "SMS Notifications",
+ "smsNotificationsDescription": "Coinos will send you text notifications when this is enabled.",
+ "theme": "Color Theme",
+ "tipPrompt": "Prompt for tips",
+ "tipPromptDescription": "Ask people if they want to add a tip before paying their invoices",
+ "displayName": "Display name",
+ "themeDescription": "Select from the default color themes.",
+ "localCurrency": "Currency",
+ "btcUnit": "Display bitcoin in:",
+ "bitcoin": "bitcoin",
+ "minutes": "minutes",
+ "hour": "hour",
+ "hours": "hours",
+ "satoshis": "Satoshis",
+ "securityPIN": "Security PIN",
+ "securityPINDescription": "Set a security pin that will be used to unlock your settings and to send outgoing payments.",
+ "setPIN": "Set PIN",
+ "autoLock": "Auto-Lock Timer",
+ "autoLockDescription": "Your account will go into a secure mode, requiring you to re-enter your credentials after a specified time:",
+ "twofa": "2-Factor Authentication",
+ "twofaDescription": "Add an extra level of security to your device by enabling 2-factor authentication.",
+ "twofaSetup": "Set up 2FA",
+ "twofaDisable": "Disable 2FA",
+ "select": "Select",
+ "verifyPIN": "Verify PIN",
+ "enablePIN": "Enable PIN",
+ "disablePIN": "Disable PIN"
+ },
+ "support": {
+ "header": "Support",
+ "email": "Email",
+ "accountName": "Account Name",
+ "message": "Message",
+ "send": "Send"
+ }
+ },
+ "payments": {
+ "amount": "Amount",
+ "date": "Date",
+ "id": "Transaction ID",
+ "details": "Transaction Details",
+ "header": "Payments",
+ "preimage": "Proof of payment",
+ "type": "Type",
+ "time": "Time",
+ "sent": "Sent",
+ "received": "Received",
+ "empty": "No transactions yet.",
+ "send": "Send",
+ "next": "Next",
+ "sendersChoice": "Sender's choice",
+ "sendTo": "Send to",
+ "to": "to",
+ "pay": "Pay",
+ "requesting": "is requesting",
+ "sentInvoiceTo": "Sent invoice to",
+ "sentRequestTo": "Request sent!",
+ "pleasePay": "Please pay",
+ "day": "Day",
+ "week": "Week",
+ "month": "Month",
+ "all": "All",
+ "export": "Export",
+ "invoice": "Invoice",
+ "readyToPay": "is ready to pay",
+ "describeOrder": "Use this field to describe your order",
+ "requestAnInvoice": "Request Invoice",
+ "submit": "Submit",
+ "isRequesting": "is requesting",
+ "invoiceFrom": "Invoice from",
+ "awaiting": "Awaiting",
+ "tapAnywhere": "Tap anywhere to continue",
+ "from": "from",
+ "redeem": "Redeem",
+ "redeemed": "Redeemed",
+ "redeemedBy": "Redeemed by",
+ "sendMessage": "Write a message..."
+ }
}
diff --git a/src/locales/fr.json b/src/locales/fr.json
index b79f5d54..ad5478f6 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -1,312 +1,312 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Page non trouvée."
- },
- "about": {
- "header": "À Propos",
- "locations": {
- "header": "Établissements",
- "description": "Il y a des entreprises qui acceptent bitcoin utilisant le point de vente coinos. Si vous utilisez notre appli, s'il vous plait
fais-le-nous savoir!"
- },
- "team": {
- "header": "L'Équipe",
- "adam": {
- "name": "Adam Soltys",
- "position": "Officier Technique Principal",
- "bio": "Adam est développeur web et passionné de bitcoin. Il croit que l'argent sûr est la clé pour augmenter la prospérité planétaire. Il habite en Vancouver de Nord avec sa femme Chelsea et deux enfants."
- },
- "cole": {
- "name": "Cole Goodwin",
- "position": "Professionel de Bitcoin",
- "bio": "Cole est un professionel de bitcoin diplômé et un homme motivé avec passion pour la liberté. Il a découvert bitcoin en 2016 et l'a etudié en détail. Maintenant, il veux introduire le réseau Lightning à autant d'utilisateurs que possible."
- }
- }
- },
- "error": {
- "header": "Erreur",
- "message": "S'il vous plait réessayez ou contactez l'assistance.",
- "signIn": "Vous devez connecter pour continuer.",
- "unrecognizedInput": "Donnée non reconnu"
- },
- "faq": {
- "header": "FAQ",
- "cost": {
- "question": "Combien cela coûte-t-il?",
- "answer": "Recevoir des paiements sur votre compte est gratuit. Les retraits vers des portefeuilles externes entraînent des frais minimes qui varient en fonction des conditions du réseau. Nous facturons 0,1% pour convertir entre le Bitcoin lightning et le Bitcoin on-chain. Envoyer à d'autres comptes Coinos est gratuit."
- },
- "compatibility": {
- "question": "Ai-je besoin d'un dispositif ou d'un logiciel spécial?",
- "answer": "Non, Coinos est une application web qui fonctionne partout où il y a Internet. Les commerçants pourraient l'utiliser sur une tablette ou afficher un code QR pour que les clients puissent le scanner avec leur téléphone."
- },
- "safety": {
- "question": "Quand mes fonds sont-ils réglés?",
- "answer": "Les paiements lightning sont réglés instantanément. Vous pouvez retirer votre solde vers un autre portefeuille en quelques secondes. Les dépôts on-chain prennent en moyenne 5-10 minutes pour être confirmés."
- },
- "pos": {
- "question": "Coinos peut-il s'intégrer à mon PoS existant?",
- "answer": "Nous recommandons d'entrer les ventes dans votre PoS existant comme des transactions en espèces."
- },
- "bitcoin": {
- "question": "Que puis-je faire avec le Bitcoin?",
- "answer": "Dépensez-le chez d'autres commerçants ou payez vos dépenses avec en incitant votre personnel, vos fournisseurs et votre propriétaire à l'accepter."
- }
- },
- "footer": {
- "followUs": "Suivez-Nous",
- "twitter": "Twitter",
- "github": "GitHub",
- "company": "Entreprise",
- "telegram": "Telegram",
- "support": "Assistance",
- "jobs": "Jobs",
- "linktree": "Linktree",
- "documentation": "Documentation"
- },
- "howItWorks": {
- "header": "Comment cela Fonctionne",
- "step1": {
- "header": "1. Créez votre compte",
- "description": "Un nom d'utilateur et mot de passe est tout ce dont vous avez besoin pour commencer."
- },
- "step2": {
- "header": "2. Demande pour des paiements",
- "description": "Comme vous faisiez normalement, mais avec bitcoin."
- },
- "step3": {
- "header": "3. C'est tout!",
- "description": "Vous pouvez convertir en monnaie local n'importe quand."
- }
- },
- "landing": {
- "header_before_icon": "Le",
- "header_with_icon": "façon",
- "header_after_icon": "le plus façile d'accepter bitcoin dans votre magasin.",
- "subheader": "Agrandir votre clientèle et chiffre d'affaires en acceptant bitcoin avec un point de vente façile à utiliser et géré. Logiciel et matériel informatique non obligatoire.",
- "info1": {
- "title": "Paiements instantanés avec Lightning",
- "description": "Le moment où votre client envoie un paiment, c'est là. Vous ne devez pas attendre les décisions des banques ou vous inquiéter pour des rejets de débit. Décisions instantanées, en secondes. Dites au revoir aux frais de transactions de 3% des cartes de crédit."
- },
- "info2": {
- "title": "Simple à utiliser, en garde par défaut",
- "description1": "Juste entrer une quantité, partager le code QR et c'est tout!",
- "description2": "Tes comptes sont en garde par défaut, qui élimine le nécessité de comprendre comment bitcoin/lightning fonctionnent. Nous réalisons le plus gros du travail pour que vous puissiez vous concentrer sur votre entreprise.",
- "description3": "Vous avez toujours l'option de
gérer vos clés."
- },
- "info3": {
- "title": "Personalisez-le comme vous voulez",
- "description": "Personalisez votre point de vente, ou utilisez les réglages par défaut - c'est votre chois."
- }
- },
- "login": {
- "username": "Nom d'utilisateur",
- "password": "Mot de passe",
- "email": "Courriel",
- "passwordRecommendation": "Nous recommendons un mot de passe long et aléatoire, généré par un gestionnaire de mots de passe.",
- "forgotUserOrPassword": "Oublié votre nom d'utilisateur ou mot de passe ?",
- "haveAccount": "Avez-vous déjà un compte ?",
- "noAccount": "Pas encore de compte ?",
- "register": "Enregistrer",
- "signIn": "Connexion",
- "failed": "Echec de Connexion",
- "optional": "Optionnel",
- "token": "Jeton 2FA"
- },
- "nav": {
- "startInSeconds": "Commence en Secondes",
- "account": "Compte",
- "signIn": "Connexion",
- "signOut": "Déconnexion",
- "dashboard": "Tableau de bord",
- "settings": "Préférences",
- "support": "Assistance",
- "profile": "Profil",
- "map": "Carte",
- "merch": "Marchandise",
- "about": "À Propos",
- "docs": "Documents",
- "messages": "Messages",
- "funds": "Fonds"
- },
- "invoice": {
- "addTip": "Ajoutez un pourboire",
- "addTipq": "Ajouter un pourboire?",
- "done": "Fini",
- "paymentSuccessful": "Paiement réussi!",
- "invoice": "Facture",
- "total": "Total",
- "tip": "Pourboire"
- },
- "jobs": {
- "header": "Emplois",
- "subheader": "Postes disponibles actuels",
- "pitch1": "coinos recherche pour des développeurs pour joindre notre équipe croissant (temps plein ou partiel, télétravail OK)",
- "pitch2": "Avez-vous hâte de travailler sur bitcoin open source? Regardez sur nos dépôts sur",
- "github": "GitHub",
- "pitch3": "Si vous pensez que vous pouvez exercer une influence positive, nous voulons que vous contribuez. Envoyer votre CV à"
- },
- "user": {
- "follow": "Suivre",
- "remove": "Enlève",
- "scanToPayBTC": "Scanner pour payer avec bitcoin",
- "dashboard": {
- "dashboard": "Tableau de bord",
- "accountBalance": "Solde",
- "conversionFeeWarning": "Il y a des frais de 1% pour convertir entre bitcoin, Liquid et Lightning.",
- "fetchingRate": "cherchant taut de change...",
- "send": "Envoie",
- "withdraw": "Retire",
- "go": "Allez",
- "receive": "Reçois un Paiement",
- "deposit": "Déposer",
- "voucher": "Bon"
- },
- "receive": {
- "lessThan1BTCWarning": "S'il vous plaît utilisez moins d'un bitcoin.",
- "showQR": "Voire le QR code"
- },
- "settings": {
- "header": "Préférences",
- "ACCOUNT": "COMPTE",
- "POINT_OF_SALE": "POINT DE VENTE",
- "SECURITY": "SÉCURITÉ",
- "locale": "Langue",
- "username": "Nom d'Utilisateur",
- "email": "Courriel",
- "newPassword": "Nouveau Mot de Passe",
- "emailNotifications": "Notifications par Courriel",
- "emailNotificationsDescription": "Nous pouvons vous notifier par courriel quand votre compte change ou quand vous recevez des paiements",
- "smsNotifications": "Notifications par SMS",
- "smsNotificationsDescription": "Nous vous envoyons des notifications par texte quand c'est activé",
- "theme": "Thème",
- "themeDescription": "Sélectionnez des thèmes dèfauts.",
- "localCurrency": "Monnaie Local",
- "btcUnit": "Voire bitcoin en:",
- "bitcoin": "bitcoin",
- "satoshis": "Satoshis",
- "securityPIN": "NIP de Sécurité",
- "securityPINDescription": "Choisir un NIP de sécurité qui sera necessaire pour ouvrir tes préférences et pour envoyer des paiements sortants.",
- "setPIN": "Choisir Votre NIP",
- "autoLock": "Auto-Verouillage",
- "autoLockDescription": "Ta conte activera une mode sécuritaire après une durée spécifiée:",
- "twofa": "Authentification à 2 Facteurs",
- "twofaDescription": "Ajoutez un autre niveau de sécurité par activez l'authentication à deux facteurs.",
- "twofaSetup": "Activer A2F",
- "bannerImage": "Image de Bandeau",
- "profileImage": "Image de Profil",
- "oneTimeCode": "Entrez mot de passe à usage unique",
- "accountId": "Secret de conte",
- "twofaDisable": "Désactivez A2F",
- "about": "À Propos",
- "aboutPlaceholder": "Un description court de vous ou votre entreprise (adresse, bio, etc.)",
- "select": "Choisir",
- "verifyPIN": "Verifiez votre NIP",
- "enablePIN": "Activer NIP",
- "disablePIN": "Désactiver NIP",
- "saveSettings": "Sauvegarder Paramètres",
- "tipPrompt": "Demande pour Pourboires",
- "tipPromptDescription": "Demander les gens s'ils voulent ajouter un pourboire avant payer leurs factures",
- "displayName": "Nom d'Utilisateur",
- "minutes": "minutes",
- "hour": "heure",
- "hours": "heures",
- "hideSeed": "Cache phrase mnémotechnique",
- "revealSeed": "Montre phrase mnémotechnique"
- },
- "support": {
- "header": "Assistance",
- "email": "Courriel",
- "accountName": "Nom d'utilisateur",
- "message": "Message",
- "send": "Envoie"
- },
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Facture",
- "unfollow": "Ne plus suivre",
- "following": "Vous suivez",
- "this": "Cette",
- "lightningAddress": "Adresse de lightning",
- "send": {
- "contacts": "Contacts",
- "scan": "Scannez",
- "paste": "Collez",
- "next": "Prochain",
- "placeholder": "Collez une adresse de bitcoin, facture de lightning ou nom d'utilisateur coinos",
- "makeQR": "QR"
- },
- "requestPayment": "Demander un Paiement",
- "welcome": "Bienvenue! Le solde de votre conte est vide. Vous pouvez commencer par déposer ou recevoir un paiement.",
- "showBalance": "Montrer Solde",
- "followers": "Abonnés",
- "noNotes": "Pas de notes",
- "message": "Envoyer",
- "messages": "Messages",
- "feed": "Flux",
- "notes": "Notes",
- "pay": "Payer",
- "profilePage": "Page de profil",
- "nostrPubkey": "Clé publique nostr"
- },
- "news": {
- "header": "Nouvelles",
- "subheader": "Dernières Informations"
- },
- "payments": {
- "addFunds": "Ajouter d'argent",
- "takeFunds": "Prendre d'argent",
- "show": "Démontrer",
- "hide": "Cacher",
- "qr": "QR",
- "copyLink": "Copier le Lien",
- "copyText": "Copier le Texte",
- "openLink": "Ouvrer le Portefeuille",
- "moreOptions": "Plus d'options",
- "total": "Total",
- "gainLoss": "Hausse/Perte",
- "presentValue": "Valuer au présent",
- "amount": "Quantité",
- "date": "Date",
- "id": "ID de Transaction",
- "details": "Détails de Transaction",
- "header": "Paiements",
- "preimage": "Preuve de paiement",
- "type": "Type",
- "time": "Heure",
- "sent": "Envoyé",
- "received": "Reçu",
- "empty": "Vous n'avez pas de transactions.",
- "send": "Envoyer",
- "next": "Prochain",
- "sendTo": "Envoyer à",
- "to": "à",
- "pay": "Payer",
- "requesting": "demande",
- "sentInvoiceTo": "Envoyé une facture à",
- "sentRequestTo": "Demande envoyé!",
- "pleasePay": "S'il vous plait payez",
- "day": "Jour",
- "week": "Semaine",
- "month": "Mois",
- "all": "Toutes",
- "export": "Exporter",
- "invoice": "Facture",
- "readyToPay": "est prêt a payer",
- "describeOrder": "Utiliser ce champ pour décrire votre commande",
- "requestAnInvoice": "Demander une facture",
- "submit": "Soumettre",
- "isRequesting": "demande",
- "invoiceFrom": "Facture de",
- "awaiting": "Attendant",
- "tapAnywhere": "Taper n'importe où pour continuer",
- "from": "de",
- "redeem": "Racheter",
- "redeemed": "Racheté",
- "redeemedBy": "Racheté par",
- "sendMessage": "Écrire une message...",
- "fundsClaimed": "Les fonds sont réclamés!",
- "print": "Imprime",
- "create": "Crée",
- "fund": "Finance"
- }
+ "404": {
+ "404": "404",
+ "pageNotFound": "Page non trouvée."
+ },
+ "about": {
+ "header": "À Propos",
+ "locations": {
+ "header": "Établissements",
+ "description": "Il y a des entreprises qui acceptent bitcoin utilisant le point de vente coinos. Si vous utilisez notre appli, s'il vous plait
fais-le-nous savoir!"
+ },
+ "team": {
+ "header": "L'Équipe",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Officier Technique Principal",
+ "bio": "Adam est développeur web et passionné de bitcoin. Il croit que l'argent sûr est la clé pour augmenter la prospérité planétaire. Il habite en Vancouver de Nord avec sa femme Chelsea et deux enfants."
+ },
+ "cole": {
+ "name": "Cole Goodwin",
+ "position": "Professionel de Bitcoin",
+ "bio": "Cole est un professionel de bitcoin diplômé et un homme motivé avec passion pour la liberté. Il a découvert bitcoin en 2016 et l'a etudié en détail. Maintenant, il veux introduire le réseau Lightning à autant d'utilisateurs que possible."
+ }
+ }
+ },
+ "error": {
+ "header": "Erreur",
+ "message": "S'il vous plait réessayez ou contactez l'assistance.",
+ "signIn": "Vous devez connecter pour continuer.",
+ "unrecognizedInput": "Donnée non reconnu"
+ },
+ "faq": {
+ "header": "FAQ",
+ "cost": {
+ "question": "Combien cela coûte-t-il?",
+ "answer": "Recevoir des paiements sur votre compte est gratuit. Les retraits vers des portefeuilles externes entraînent des frais minimes qui varient en fonction des conditions du réseau. Nous facturons 0,1% pour convertir entre le Bitcoin lightning et le Bitcoin on-chain. Envoyer à d'autres comptes Coinos est gratuit."
+ },
+ "compatibility": {
+ "question": "Ai-je besoin d'un dispositif ou d'un logiciel spécial?",
+ "answer": "Non, Coinos est une application web qui fonctionne partout où il y a Internet. Les commerçants pourraient l'utiliser sur une tablette ou afficher un code QR pour que les clients puissent le scanner avec leur téléphone."
+ },
+ "safety": {
+ "question": "Quand mes fonds sont-ils réglés?",
+ "answer": "Les paiements lightning sont réglés instantanément. Vous pouvez retirer votre solde vers un autre portefeuille en quelques secondes. Les dépôts on-chain prennent en moyenne 5-10 minutes pour être confirmés."
+ },
+ "pos": {
+ "question": "Coinos peut-il s'intégrer à mon PoS existant?",
+ "answer": "Nous recommandons d'entrer les ventes dans votre PoS existant comme des transactions en espèces."
+ },
+ "bitcoin": {
+ "question": "Que puis-je faire avec le Bitcoin?",
+ "answer": "Dépensez-le chez d'autres commerçants ou payez vos dépenses avec en incitant votre personnel, vos fournisseurs et votre propriétaire à l'accepter."
+ }
+ },
+ "footer": {
+ "followUs": "Suivez-Nous",
+ "twitter": "Twitter",
+ "github": "GitHub",
+ "company": "Entreprise",
+ "telegram": "Telegram",
+ "support": "Assistance",
+ "jobs": "Jobs",
+ "linktree": "Linktree",
+ "documentation": "Documentation"
+ },
+ "howItWorks": {
+ "header": "Comment cela Fonctionne",
+ "step1": {
+ "header": "1. Créez votre compte",
+ "description": "Un nom d'utilateur et mot de passe est tout ce dont vous avez besoin pour commencer."
+ },
+ "step2": {
+ "header": "2. Demande pour des paiements",
+ "description": "Comme vous faisiez normalement, mais avec bitcoin."
+ },
+ "step3": {
+ "header": "3. C'est tout!",
+ "description": "Vous pouvez convertir en monnaie local n'importe quand."
+ }
+ },
+ "landing": {
+ "header_before_icon": "Le",
+ "header_with_icon": "façon",
+ "header_after_icon": "le plus façile d'accepter bitcoin dans votre magasin.",
+ "subheader": "Agrandir votre clientèle et chiffre d'affaires en acceptant bitcoin avec un point de vente façile à utiliser et géré. Logiciel et matériel informatique non obligatoire.",
+ "info1": {
+ "title": "Paiements instantanés avec Lightning",
+ "description": "Le moment où votre client envoie un paiment, c'est là. Vous ne devez pas attendre les décisions des banques ou vous inquiéter pour des rejets de débit. Décisions instantanées, en secondes. Dites au revoir aux frais de transactions de 3% des cartes de crédit."
+ },
+ "info2": {
+ "title": "Simple à utiliser, en garde par défaut",
+ "description1": "Juste entrer une quantité, partager le code QR et c'est tout!",
+ "description2": "Tes comptes sont en garde par défaut, qui élimine le nécessité de comprendre comment bitcoin/lightning fonctionnent. Nous réalisons le plus gros du travail pour que vous puissiez vous concentrer sur votre entreprise.",
+ "description3": "Vous avez toujours l'option de
gérer vos clés."
+ },
+ "info3": {
+ "title": "Personalisez-le comme vous voulez",
+ "description": "Personalisez votre point de vente, ou utilisez les réglages par défaut - c'est votre chois."
+ }
+ },
+ "login": {
+ "username": "Nom d'utilisateur",
+ "password": "Mot de passe",
+ "email": "Courriel",
+ "passwordRecommendation": "Nous recommendons un mot de passe long et aléatoire, généré par un gestionnaire de mots de passe.",
+ "forgotUserOrPassword": "Oublié votre nom d'utilisateur ou mot de passe ?",
+ "haveAccount": "Avez-vous déjà un compte ?",
+ "noAccount": "Pas encore de compte ?",
+ "register": "Enregistrer",
+ "signIn": "Connexion",
+ "failed": "Echec de Connexion",
+ "optional": "Optionnel",
+ "token": "Jeton 2FA"
+ },
+ "nav": {
+ "startInSeconds": "Commence en Secondes",
+ "account": "Compte",
+ "signIn": "Connexion",
+ "signOut": "Déconnexion",
+ "dashboard": "Tableau de bord",
+ "settings": "Préférences",
+ "support": "Assistance",
+ "profile": "Profil",
+ "map": "Carte",
+ "merch": "Marchandise",
+ "about": "À Propos",
+ "docs": "Documents",
+ "messages": "Messages",
+ "funds": "Fonds"
+ },
+ "invoice": {
+ "addTip": "Ajoutez un pourboire",
+ "addTipq": "Ajouter un pourboire?",
+ "done": "Fini",
+ "paymentSuccessful": "Paiement réussi!",
+ "invoice": "Facture",
+ "total": "Total",
+ "tip": "Pourboire"
+ },
+ "jobs": {
+ "header": "Emplois",
+ "subheader": "Postes disponibles actuels",
+ "pitch1": "coinos recherche pour des développeurs pour joindre notre équipe croissant (temps plein ou partiel, télétravail OK)",
+ "pitch2": "Avez-vous hâte de travailler sur bitcoin open source? Regardez sur nos dépôts sur",
+ "github": "GitHub",
+ "pitch3": "Si vous pensez que vous pouvez exercer une influence positive, nous voulons que vous contribuez. Envoyer votre CV à"
+ },
+ "user": {
+ "follow": "Suivre",
+ "remove": "Enlève",
+ "scanToPayBTC": "Scanner pour payer avec bitcoin",
+ "dashboard": {
+ "dashboard": "Tableau de bord",
+ "accountBalance": "Solde",
+ "conversionFeeWarning": "Il y a des frais de 1% pour convertir entre bitcoin, Liquid et Lightning.",
+ "fetchingRate": "cherchant taut de change...",
+ "send": "Envoie",
+ "withdraw": "Retire",
+ "go": "Allez",
+ "receive": "Reçois un Paiement",
+ "deposit": "Déposer",
+ "voucher": "Bon"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "S'il vous plaît utilisez moins d'un bitcoin.",
+ "showQR": "Voire le QR code"
+ },
+ "settings": {
+ "header": "Préférences",
+ "ACCOUNT": "COMPTE",
+ "POINT_OF_SALE": "POINT DE VENTE",
+ "SECURITY": "SÉCURITÉ",
+ "locale": "Langue",
+ "username": "Nom d'Utilisateur",
+ "email": "Courriel",
+ "newPassword": "Nouveau Mot de Passe",
+ "emailNotifications": "Notifications par Courriel",
+ "emailNotificationsDescription": "Nous pouvons vous notifier par courriel quand votre compte change ou quand vous recevez des paiements",
+ "smsNotifications": "Notifications par SMS",
+ "smsNotificationsDescription": "Nous vous envoyons des notifications par texte quand c'est activé",
+ "theme": "Thème",
+ "themeDescription": "Sélectionnez des thèmes dèfauts.",
+ "localCurrency": "Monnaie Local",
+ "btcUnit": "Voire bitcoin en:",
+ "bitcoin": "bitcoin",
+ "satoshis": "Satoshis",
+ "securityPIN": "NIP de Sécurité",
+ "securityPINDescription": "Choisir un NIP de sécurité qui sera necessaire pour ouvrir tes préférences et pour envoyer des paiements sortants.",
+ "setPIN": "Choisir Votre NIP",
+ "autoLock": "Auto-Verouillage",
+ "autoLockDescription": "Ta conte activera une mode sécuritaire après une durée spécifiée:",
+ "twofa": "Authentification à 2 Facteurs",
+ "twofaDescription": "Ajoutez un autre niveau de sécurité par activez l'authentication à deux facteurs.",
+ "twofaSetup": "Activer A2F",
+ "bannerImage": "Image de Bandeau",
+ "profileImage": "Image de Profil",
+ "oneTimeCode": "Entrez mot de passe à usage unique",
+ "accountId": "Secret de conte",
+ "twofaDisable": "Désactivez A2F",
+ "about": "À Propos",
+ "aboutPlaceholder": "Un description court de vous ou votre entreprise (adresse, bio, etc.)",
+ "select": "Choisir",
+ "verifyPIN": "Verifiez votre NIP",
+ "enablePIN": "Activer NIP",
+ "disablePIN": "Désactiver NIP",
+ "saveSettings": "Sauvegarder Paramètres",
+ "tipPrompt": "Demande pour Pourboires",
+ "tipPromptDescription": "Demander les gens s'ils voulent ajouter un pourboire avant payer leurs factures",
+ "displayName": "Nom d'Utilisateur",
+ "minutes": "minutes",
+ "hour": "heure",
+ "hours": "heures",
+ "hideSeed": "Cache phrase mnémotechnique",
+ "revealSeed": "Montre phrase mnémotechnique"
+ },
+ "support": {
+ "header": "Assistance",
+ "email": "Courriel",
+ "accountName": "Nom d'utilisateur",
+ "message": "Message",
+ "send": "Envoie"
+ },
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Facture",
+ "unfollow": "Ne plus suivre",
+ "following": "Vous suivez",
+ "this": "Cette",
+ "lightningAddress": "Adresse de lightning",
+ "send": {
+ "contacts": "Contacts",
+ "scan": "Scannez",
+ "paste": "Collez",
+ "next": "Prochain",
+ "placeholder": "Collez une adresse de bitcoin, facture de lightning ou nom d'utilisateur coinos",
+ "makeQR": "QR"
+ },
+ "requestPayment": "Demander un Paiement",
+ "welcome": "Bienvenue! Le solde de votre conte est vide. Vous pouvez commencer par déposer ou recevoir un paiement.",
+ "showBalance": "Montrer Solde",
+ "followers": "Abonnés",
+ "noNotes": "Pas de notes",
+ "message": "Envoyer",
+ "messages": "Messages",
+ "feed": "Flux",
+ "notes": "Notes",
+ "pay": "Payer",
+ "profilePage": "Page de profil",
+ "nostrPubkey": "Clé publique nostr"
+ },
+ "news": {
+ "header": "Nouvelles",
+ "subheader": "Dernières Informations"
+ },
+ "payments": {
+ "addFunds": "Ajouter d'argent",
+ "takeFunds": "Prendre d'argent",
+ "show": "Démontrer",
+ "hide": "Cacher",
+ "qr": "QR",
+ "copyLink": "Copier le Lien",
+ "copyText": "Copier le Texte",
+ "openLink": "Ouvrer le Portefeuille",
+ "moreOptions": "Plus d'options",
+ "total": "Total",
+ "gainLoss": "Hausse/Perte",
+ "presentValue": "Valuer au présent",
+ "amount": "Quantité",
+ "date": "Date",
+ "id": "ID de Transaction",
+ "details": "Détails de Transaction",
+ "header": "Paiements",
+ "preimage": "Preuve de paiement",
+ "type": "Type",
+ "time": "Heure",
+ "sent": "Envoyé",
+ "received": "Reçu",
+ "empty": "Vous n'avez pas de transactions.",
+ "send": "Envoyer",
+ "next": "Prochain",
+ "sendTo": "Envoyer à",
+ "to": "à",
+ "pay": "Payer",
+ "requesting": "demande",
+ "sentInvoiceTo": "Envoyé une facture à",
+ "sentRequestTo": "Demande envoyé!",
+ "pleasePay": "S'il vous plait payez",
+ "day": "Jour",
+ "week": "Semaine",
+ "month": "Mois",
+ "all": "Toutes",
+ "export": "Exporter",
+ "invoice": "Facture",
+ "readyToPay": "est prêt a payer",
+ "describeOrder": "Utiliser ce champ pour décrire votre commande",
+ "requestAnInvoice": "Demander une facture",
+ "submit": "Soumettre",
+ "isRequesting": "demande",
+ "invoiceFrom": "Facture de",
+ "awaiting": "Attendant",
+ "tapAnywhere": "Taper n'importe où pour continuer",
+ "from": "de",
+ "redeem": "Racheter",
+ "redeemed": "Racheté",
+ "redeemedBy": "Racheté par",
+ "sendMessage": "Écrire une message...",
+ "fundsClaimed": "Les fonds sont réclamés!",
+ "print": "Imprime",
+ "create": "Crée",
+ "fund": "Finance"
+ }
}
diff --git a/src/locales/pt.json b/src/locales/pt.json
index f4fb5408..dcf6ecdb 100644
--- a/src/locales/pt.json
+++ b/src/locales/pt.json
@@ -1,36 +1,36 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Página não encontrada."
- },
- "about": {
- "header": "Sobre",
- "p1": "O Coinos é uma aplicação de pagamento de bitcoin de código aberto. O desenvolvimento começou em Vancouver em Setembro de 2012 como forma de fornecer aos comerciantes locais uma forma conveniente de aceitar pagamentos de bitcoin.",
- "p2": "Você pode baixar o código fonte para executar uma instância e ligá-lo aos seus próprios nós de bitcoin e da Lightning Network. Vamos ajudá-lo a começar a ser um depositário benevolente e fornecedor de pagamentos para a sua comunidade..",
- "p3": "As transferências de conta entre utilizadores no nosso servidor são feitas off-chain, por isso são completamente gratuitas, instantâneas e ilimitadas.",
- "team": {
- "header": "O time",
- "adam": {
- "name": "Adam Soltys",
- "position": "Responsável Técnico Principal",
- "bio": "Adam é um desenvolvedor web e um entusiasta do bitcoin que acredita que o dinheiro sólido é a chave para aumentar a prosperidade global. Ele vive em North Vancouver com a sua esposa Chelsea e dois filhos."
- },
- "cole": {
- "name": "Cole",
- "position": "Profissional Certificado de Bitcoin",
- "bio": "Cole é um indivíduo motivado com uma paixão pela liberdade. Encontrou-se com o bitcoin em 2016 e estudou-o em profundidade. Agora quer introduzir a rede lightning ao maior número de utilizadores possível."
- }
- },
- "locations": {
- "header": "Locais",
- "description": "Aqui estão algumas empresas que estão aceitando bitcoin com a Coinos. Esperamos que o seu seja o próximo!"
- }
- },
- "error": {
- "header": "Erro",
- "message": "Por favor tente novamente ou contate o suporte.",
- "signIn": "Por favor, faça o login para continuar."
- },
+ "404": {
+ "404": "404",
+ "pageNotFound": "Página não encontrada."
+ },
+ "about": {
+ "header": "Sobre",
+ "p1": "O Coinos é uma aplicação de pagamento de bitcoin de código aberto. O desenvolvimento começou em Vancouver em Setembro de 2012 como forma de fornecer aos comerciantes locais uma forma conveniente de aceitar pagamentos de bitcoin.",
+ "p2": "Você pode baixar o código fonte para executar uma instância e ligá-lo aos seus próprios nós de bitcoin e da Lightning Network. Vamos ajudá-lo a começar a ser um depositário benevolente e fornecedor de pagamentos para a sua comunidade..",
+ "p3": "As transferências de conta entre utilizadores no nosso servidor são feitas off-chain, por isso são completamente gratuitas, instantâneas e ilimitadas.",
+ "team": {
+ "header": "O time",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Responsável Técnico Principal",
+ "bio": "Adam é um desenvolvedor web e um entusiasta do bitcoin que acredita que o dinheiro sólido é a chave para aumentar a prosperidade global. Ele vive em North Vancouver com a sua esposa Chelsea e dois filhos."
+ },
+ "cole": {
+ "name": "Cole",
+ "position": "Profissional Certificado de Bitcoin",
+ "bio": "Cole é um indivíduo motivado com uma paixão pela liberdade. Encontrou-se com o bitcoin em 2016 e estudou-o em profundidade. Agora quer introduzir a rede lightning ao maior número de utilizadores possível."
+ }
+ },
+ "locations": {
+ "header": "Locais",
+ "description": "Aqui estão algumas empresas que estão aceitando bitcoin com a Coinos. Esperamos que o seu seja o próximo!"
+ }
+ },
+ "error": {
+ "header": "Erro",
+ "message": "Por favor tente novamente ou contate o suporte.",
+ "signIn": "Por favor, faça o login para continuar."
+ },
"faq": {
"header": "FAQ",
"why": {
@@ -70,240 +70,240 @@
"answer": "Gástalo en otros comerciantes o paga tus gastos con él al conseguir que tu personal, proveedores y arrendador lo acepten."
}
},
- "footer": {
- "company": "Empresa",
- "followUs": "Siga-nos",
- "github": "GitHub",
- "linktree": "Linktree",
- "jobs": "Empregos",
- "support": "Suporte",
- "telegram": "Telegram",
- "twitter": "Twitter",
- "documentation": "Documentação"
- },
- "howItWorks": {
- "header": "Como funciona",
- "step1": {
- "header": "1. Crie sua conta",
- "description": "Um nome de usuário e senha é tudo o que você precisa para começar."
- },
- "step2": {
- "header": "2. Solicite pagamentos",
- "description": "O mesmo que você normalmente faria, mas com bitcoin."
- },
- "step3": {
- "header": "3. Pronto!",
- "description": "Gaste sua moeda imediatamente ou guarde-a e veja-a crescer, a escolha é sua."
- }
- },
- "invoice": {
- "addTip": "Adicionar gorjeta",
- "addTipq": "Adicionar gorjeta?",
- "done": "Feito",
- "paymentSuccessful": "Pagamento recebido!",
- "invoice": "Fatura",
- "total": "Total",
- "tip": "Gorjeta"
- },
- "jobs": {
- "header": "Vagas de emprego",
- "subheader": "Atualmente abertas",
- "pitch1": "Coinos está procurando ativamente desenvolvedores para se juntar à nossa crescente equipe (tempo integral ou meio-período, trabalho remoto OK).",
- "pitch2": "Entusiasmado com o trabalho em bitcoin open source? Então dê uma olhada em nossos repositórios em",
- "github": "GitHub",
- "pitch3": "Se você acha que pode causar um impacto, gostaríamos muito de ouvir de você. Envie-nos seu currículo para"
- },
- "landing": {
- "header_before_icon": "O",
- "header_with_icon": "jeito mais fácil",
- "header_after_icon": "de iniciar no Bitcoin.",
- "subheader": "Uma carteira web simples, mas poderosa para todos. Não requer software nem hardware.",
- "info1": {
- "title": "Pagamentos instantâneos via Lightning",
- "description": "Facilitamos para os comerciantes o recebimento de pagamentos de varejo. Nada de esperar por liquidações bancárias ou se preocupar com chargebacks. Liquidação instantânea, em segundos. Diga adeus a 3% de taxas de processamento de cartão de crédito.."
- },
- "info2": {
- "title": "Simples de usar",
- "description1": "Basta inserir a quantia em sua moeda local, compartilhar o QR code e pronto..",
- "description2": "Nós fazemos todo o trabalho pesado para que você possa se concentrar no seu negócio.",
- "description3": "Você sempre tem a opção de tomar para sí a custódia de seus fundos, retirando-se imediatamente a qualquer momento."
- },
- "info3": {
- "title": "Personalise do seu jeito!",
- "description": "Personalize a aparência de sua página de perfil, ou mantenha o padrão - você escolhe."
- }
- },
- "login": {
- "optional": "Opcional",
- "token": "2FA Token",
- "username": "Usuário",
- "password": "Senha",
- "email": "Email",
- "passwordRecommendation": "Recomendamos uma senha longa e aleatória gerada com um gerenciador de senhas.",
- "forgotUserOrPassword": "Esqueceu o usuário ou senha?",
- "haveAccount": "Já tem uma conta?",
- "noAccount": "Não tem uma conta?",
- "register": "Registre",
- "signIn": "Entrar",
- "failed": "Falha no login"
- },
- "nav": {
- "profile": "Perfil",
- "startInSeconds": "Inicie em segundos",
- "account": "Conta",
- "signIn": "Entrar",
- "signOut": "Sair",
- "dashboard": "Painel de controle",
- "settings": "Ajustes",
- "support": "Suporte"
- },
- "newSiteHeader": "Join us at our
launch party in Vancouver on October 26! Looking for the old coinos? Visit
classic.coinos.io",
- "news": {
- "header": "Notícias",
- "subheader": "Últimos Updates",
- "update1": ""
- },
- "user": {
+ "footer": {
+ "company": "Empresa",
+ "followUs": "Siga-nos",
+ "github": "GitHub",
+ "linktree": "Linktree",
+ "jobs": "Empregos",
+ "support": "Suporte",
+ "telegram": "Telegram",
+ "twitter": "Twitter",
+ "documentation": "Documentação"
+ },
+ "howItWorks": {
+ "header": "Como funciona",
+ "step1": {
+ "header": "1. Crie sua conta",
+ "description": "Um nome de usuário e senha é tudo o que você precisa para começar."
+ },
+ "step2": {
+ "header": "2. Solicite pagamentos",
+ "description": "O mesmo que você normalmente faria, mas com bitcoin."
+ },
+ "step3": {
+ "header": "3. Pronto!",
+ "description": "Gaste sua moeda imediatamente ou guarde-a e veja-a crescer, a escolha é sua."
+ }
+ },
+ "invoice": {
+ "addTip": "Adicionar gorjeta",
+ "addTipq": "Adicionar gorjeta?",
+ "done": "Feito",
+ "paymentSuccessful": "Pagamento recebido!",
+ "invoice": "Fatura",
+ "total": "Total",
+ "tip": "Gorjeta"
+ },
+ "jobs": {
+ "header": "Vagas de emprego",
+ "subheader": "Atualmente abertas",
+ "pitch1": "Coinos está procurando ativamente desenvolvedores para se juntar à nossa crescente equipe (tempo integral ou meio-período, trabalho remoto OK).",
+ "pitch2": "Entusiasmado com o trabalho em bitcoin open source? Então dê uma olhada em nossos repositórios em",
+ "github": "GitHub",
+ "pitch3": "Se você acha que pode causar um impacto, gostaríamos muito de ouvir de você. Envie-nos seu currículo para"
+ },
+ "landing": {
+ "header_before_icon": "O",
+ "header_with_icon": "jeito mais fácil",
+ "header_after_icon": "de iniciar no Bitcoin.",
+ "subheader": "Uma carteira web simples, mas poderosa para todos. Não requer software nem hardware.",
+ "info1": {
+ "title": "Pagamentos instantâneos via Lightning",
+ "description": "Facilitamos para os comerciantes o recebimento de pagamentos de varejo. Nada de esperar por liquidações bancárias ou se preocupar com chargebacks. Liquidação instantânea, em segundos. Diga adeus a 3% de taxas de processamento de cartão de crédito.."
+ },
+ "info2": {
+ "title": "Simples de usar",
+ "description1": "Basta inserir a quantia em sua moeda local, compartilhar o QR code e pronto..",
+ "description2": "Nós fazemos todo o trabalho pesado para que você possa se concentrar no seu negócio.",
+ "description3": "Você sempre tem a opção de tomar para sí a custódia de seus fundos, retirando-se imediatamente a qualquer momento."
+ },
+ "info3": {
+ "title": "Personalise do seu jeito!",
+ "description": "Personalize a aparência de sua página de perfil, ou mantenha o padrão - você escolhe."
+ }
+ },
+ "login": {
+ "optional": "Opcional",
+ "token": "2FA Token",
+ "username": "Usuário",
+ "password": "Senha",
+ "email": "Email",
+ "passwordRecommendation": "Recomendamos uma senha longa e aleatória gerada com um gerenciador de senhas.",
+ "forgotUserOrPassword": "Esqueceu o usuário ou senha?",
+ "haveAccount": "Já tem uma conta?",
+ "noAccount": "Não tem uma conta?",
+ "register": "Registre",
+ "signIn": "Entrar",
+ "failed": "Falha no login"
+ },
+ "nav": {
+ "profile": "Perfil",
+ "startInSeconds": "Inicie em segundos",
+ "account": "Conta",
+ "signIn": "Entrar",
+ "signOut": "Sair",
+ "dashboard": "Painel de controle",
+ "settings": "Ajustes",
+ "support": "Suporte"
+ },
+ "newSiteHeader": "Join us at our
launch party in Vancouver on October 26! Looking for the old coinos? Visit
classic.coinos.io",
+ "news": {
+ "header": "Notícias",
+ "subheader": "Últimos Updates",
+ "update1": ""
+ },
+ "user": {
"requestPayment": "Gerar fatura",
"welcome": "Bem-vindo! O saldo da sua conta está vazio. Você pode começar fazendo um depósito ou recebendo um pagamento.",
"showBalance": "Mostrar Saldo",
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Fatura",
- "unfollow": "Deixar de seguir",
- "following": "Seguindo",
- "follow": "Seguir",
- "followers": "Seguidores",
- "remove": "Remover",
- "noNotes": "Nenhuma nota ainda",
- "message": "Mensagem",
- "messages": "Mensagens",
- "feed": "Feed",
- "notes": "Notas",
- "pay": "Pagar",
- "scanToPayBTC": "Escaneie para pagar com bitcoin",
- "this": "Este",
- "lightningAddress": "Endereço lightning",
- "dashboard": {
- "go": "Ir",
- "dashboard": "Painel de controle",
- "accountBalance": "Saldo na conta",
- "bitcoinPrice": "Preço do bitcoin:",
- "conversionFeeWarning": "Será cobrada uma taxa de retirada de 1% sobre o valor.",
- "dataFromBinance": "Data from
Binance.",
- "fetchingRate": "buscando taxa...",
- "optionalNote": "Nota (Opcional)",
- "send": "Enviar",
- "receive": "Receber",
- "withdraw": "Enviar",
- "deposit": "Deposit",
- "voucher": "Voucher"
- },
- "receive": {
- "lessThan1BTCWarning": "Favor inserir uma quantidade inferior a 1 bitcoin.",
- "showQR": "Mostrar QR code"
- },
- "send": {
- "contacts": "Contatos",
- "scan": "Escanear",
- "paste": "Colar",
- "next": "Continuar",
- "placeholder": "Colar um endereço de bitcoin, fatura lightning ou nome de usuário na coinos"
- },
- "settings": {
- "saveSettings": "Salvar ajustes",
- "bannerImage": "Imagem do banner",
- "profileImage": "Imagem do perfil",
- "oneTimeCode": "Entre com o código único",
- "accountId": "ID da conta",
- "header": "Ajustes",
- "ACCOUNT": "CONTA",
- "POINT_OF_SALE": "PREFERÊNCIAS",
- "SECURITY": "SEGURANÇA",
- "locale": "Idioma",
- "username": "Usuário",
- "email": "Email",
- "newPassword": "Alterar senhar",
- "about": "Sobre",
- "aboutPlaceholder": "Um pouco sobre você ou seu endereço comercial e horários",
- "emailNotifications": "Notificações por email",
- "emailNotificationsDescription": "Ser notificado por e-mail quando ocorrer uma mudança em sua conta ou quando as pessoas lhe enviarem pagamentos.",
- "smsNotifications": "Notificações por SMS",
- "smsNotificationsDescription": "A Coinos lhe enviará notificações por SMS quando isto estiver habilitado.",
- "theme": "Cor do tema",
- "tipPrompt": "Mostrar opção gorjetas",
- "tipPromptDescription": "Pergunte às pessoas se elas querem acrescentar uma gorjeta antes de pagar sua fatura",
- "displayName": "Mostrar nome",
- "themeDescription": "Selecionar entre os temas de cor padrão.",
- "localCurrency": "Moeda",
- "btcUnit": "Mostrar bitcoin em:",
- "bitcoin": "bitcoin",
- "minutes": "minutos",
- "hour": "hora",
- "hours": "horas",
- "satoshis": "Satoshis",
- "securityPIN": "PIN de segurança",
- "securityPINDescription": "Estabeleça um PIN de segurança que será usado para desbloquear suas configurações e para enviar pagamentos.",
- "setPIN": "Insira o PIN",
- "autoLock": "Bloqueio automático",
- "autoLockDescription": "Sua conta entrará em um modo seguro, exigindo que você reentre suas credenciais após um tempo especificado:",
- "twofa": "Eutenticação de 2 fatores",
- "twofaDescription": "Adicione um nível extra de segurança ao seu dispositivo, permitindo autenticação de 2 fatores.",
- "twofaSetup": "Habilitar o 2FA",
- "twofaDisable": "Desabilitar o 2FA",
- "select": "Selecionar",
- "verifyPIN": "Verificar PIN",
- "enablePIN": "Habilitar PIN",
- "disablePIN": "Desabilitar PIN"
- },
- "support": {
- "header": "Suporte",
- "email": "Email",
- "accountName": "Usuário",
- "message": "Mensagem",
- "send": "Enviar"
- }
- },
- "payments": {
- "amount": "Quantidade",
- "date": "Data",
- "id": "ID de transação",
- "details": "Details da transação",
- "header": "Pagamentos",
- "preimage": "Prova de pagamento",
- "type": "Tipo",
- "time": "Hora",
- "sent": "Enviado",
- "received": "Recebido",
- "empty": "Nenhuma transação ainda.",
- "send": "Enviar",
- "next": "Continuar",
- "sendersChoice": "A escolha do remetente",
- "sendTo": "Enviar para",
- "to": "para",
- "pay": "Pagar",
- "requesting": "solicitando",
- "sentInvoiceTo": "Fatura enviada para",
- "sentRequestTo": "Solicitação enviada!",
- "pleasePay": "Por favor pague",
- "day": "Dia",
- "week": "Semana",
- "month": "Mês",
- "all": "Todos",
- "export": "Exportar",
- "invoice": "Fatura",
- "readyToPay": "está pronta para pagar",
- "describeOrder": "Use este campo para descrever seu pedido",
- "requestAnInvoice": "Solicitar Fatura",
- "submit": "O envio",
- "isRequesting": "foi solicitado",
- "invoiceFrom": "Fatura de",
- "awaiting": "Aguardando",
- "tapAnywhere": "Toque em qualquer lugar para continuar",
- "from": "de",
- "redeem": "Resgatar",
- "redeemed": "Resgatado",
- "redeemedBy": "Resgatado por",
- "sendMessage": "Escreva uma mensagem..."
- }
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Fatura",
+ "unfollow": "Deixar de seguir",
+ "following": "Seguindo",
+ "follow": "Seguir",
+ "followers": "Seguidores",
+ "remove": "Remover",
+ "noNotes": "Nenhuma nota ainda",
+ "message": "Mensagem",
+ "messages": "Mensagens",
+ "feed": "Feed",
+ "notes": "Notas",
+ "pay": "Pagar",
+ "scanToPayBTC": "Escaneie para pagar com bitcoin",
+ "this": "Este",
+ "lightningAddress": "Endereço lightning",
+ "dashboard": {
+ "go": "Ir",
+ "dashboard": "Painel de controle",
+ "accountBalance": "Saldo na conta",
+ "bitcoinPrice": "Preço do bitcoin:",
+ "conversionFeeWarning": "Será cobrada uma taxa de retirada de 1% sobre o valor.",
+ "dataFromBinance": "Data from
Binance.",
+ "fetchingRate": "buscando taxa...",
+ "optionalNote": "Nota (Opcional)",
+ "send": "Enviar",
+ "receive": "Receber",
+ "withdraw": "Enviar",
+ "deposit": "Deposit",
+ "voucher": "Voucher"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "Favor inserir uma quantidade inferior a 1 bitcoin.",
+ "showQR": "Mostrar QR code"
+ },
+ "send": {
+ "contacts": "Contatos",
+ "scan": "Escanear",
+ "paste": "Colar",
+ "next": "Continuar",
+ "placeholder": "Colar um endereço de bitcoin, fatura lightning ou nome de usuário na coinos"
+ },
+ "settings": {
+ "saveSettings": "Salvar ajustes",
+ "bannerImage": "Imagem do banner",
+ "profileImage": "Imagem do perfil",
+ "oneTimeCode": "Entre com o código único",
+ "accountId": "ID da conta",
+ "header": "Ajustes",
+ "ACCOUNT": "CONTA",
+ "POINT_OF_SALE": "PREFERÊNCIAS",
+ "SECURITY": "SEGURANÇA",
+ "locale": "Idioma",
+ "username": "Usuário",
+ "email": "Email",
+ "newPassword": "Alterar senhar",
+ "about": "Sobre",
+ "aboutPlaceholder": "Um pouco sobre você ou seu endereço comercial e horários",
+ "emailNotifications": "Notificações por email",
+ "emailNotificationsDescription": "Ser notificado por e-mail quando ocorrer uma mudança em sua conta ou quando as pessoas lhe enviarem pagamentos.",
+ "smsNotifications": "Notificações por SMS",
+ "smsNotificationsDescription": "A Coinos lhe enviará notificações por SMS quando isto estiver habilitado.",
+ "theme": "Cor do tema",
+ "tipPrompt": "Mostrar opção gorjetas",
+ "tipPromptDescription": "Pergunte às pessoas se elas querem acrescentar uma gorjeta antes de pagar sua fatura",
+ "displayName": "Mostrar nome",
+ "themeDescription": "Selecionar entre os temas de cor padrão.",
+ "localCurrency": "Moeda",
+ "btcUnit": "Mostrar bitcoin em:",
+ "bitcoin": "bitcoin",
+ "minutes": "minutos",
+ "hour": "hora",
+ "hours": "horas",
+ "satoshis": "Satoshis",
+ "securityPIN": "PIN de segurança",
+ "securityPINDescription": "Estabeleça um PIN de segurança que será usado para desbloquear suas configurações e para enviar pagamentos.",
+ "setPIN": "Insira o PIN",
+ "autoLock": "Bloqueio automático",
+ "autoLockDescription": "Sua conta entrará em um modo seguro, exigindo que você reentre suas credenciais após um tempo especificado:",
+ "twofa": "Eutenticação de 2 fatores",
+ "twofaDescription": "Adicione um nível extra de segurança ao seu dispositivo, permitindo autenticação de 2 fatores.",
+ "twofaSetup": "Habilitar o 2FA",
+ "twofaDisable": "Desabilitar o 2FA",
+ "select": "Selecionar",
+ "verifyPIN": "Verificar PIN",
+ "enablePIN": "Habilitar PIN",
+ "disablePIN": "Desabilitar PIN"
+ },
+ "support": {
+ "header": "Suporte",
+ "email": "Email",
+ "accountName": "Usuário",
+ "message": "Mensagem",
+ "send": "Enviar"
+ }
+ },
+ "payments": {
+ "amount": "Quantidade",
+ "date": "Data",
+ "id": "ID de transação",
+ "details": "Details da transação",
+ "header": "Pagamentos",
+ "preimage": "Prova de pagamento",
+ "type": "Tipo",
+ "time": "Hora",
+ "sent": "Enviado",
+ "received": "Recebido",
+ "empty": "Nenhuma transação ainda.",
+ "send": "Enviar",
+ "next": "Continuar",
+ "sendersChoice": "A escolha do remetente",
+ "sendTo": "Enviar para",
+ "to": "para",
+ "pay": "Pagar",
+ "requesting": "solicitando",
+ "sentInvoiceTo": "Fatura enviada para",
+ "sentRequestTo": "Solicitação enviada!",
+ "pleasePay": "Por favor pague",
+ "day": "Dia",
+ "week": "Semana",
+ "month": "Mês",
+ "all": "Todos",
+ "export": "Exportar",
+ "invoice": "Fatura",
+ "readyToPay": "está pronta para pagar",
+ "describeOrder": "Use este campo para descrever seu pedido",
+ "requestAnInvoice": "Solicitar Fatura",
+ "submit": "O envio",
+ "isRequesting": "foi solicitado",
+ "invoiceFrom": "Fatura de",
+ "awaiting": "Aguardando",
+ "tapAnywhere": "Toque em qualquer lugar para continuar",
+ "from": "de",
+ "redeem": "Resgatar",
+ "redeemed": "Resgatado",
+ "redeemedBy": "Resgatado por",
+ "sendMessage": "Escreva uma mensagem..."
+ }
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 8fc41c38..cd606216 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -1,290 +1,290 @@
{
- "404": {
- "404": "404",
- "pageNotFound": "Page not found."
- },
- "about": {
- "header": "About",
- "p1": "Coinos is an open source bitcoin payment app. Development started in Vancouver in September 2012 as a way to provide local merchants with a convenient way to accept bitcoin payments.",
- "p2": "You can download the source code to run an instance and connect it to your own bitcoin and lightning nodes. We'll help you get started being a benevolent custodian and payments provider for your community.",
- "p3": "Account transfers amongst users on our server are done off-chain so they're completely free, instant, and unlimited.",
- "team": {
- "header": "The Team",
- "adam": {
- "name": "Adam Soltys",
- "position": "Chief Technical Officer",
- "bio": "Adam is a web developer and bitcoin enthusiast who believes sound money is key to increasing global prosperity. He lives in North Vancouver with his wife Chelsea and two children."
- },
- "shauna": {
- "name": "Shauna",
- "position": "Operations & Marketing",
- "bio": "Strategic & Project Management. Jack of all Trades. Can always find time to meet for coffee."
- },
- "cole": {
- "name": "Cole",
- "position": "Certified Bitcoin Professional",
- "bio": "Cole is a driven individual with a passion for freedom. He came across bitcoin in 2016 and studied it in depth. Now he wants to introduce the lightning network to as many users as possible."
- },
- "john": {
- "name": "John Barratt",
- "position": "Full Stack Web Developer",
- "bio": "When not coding you can find John out in the woods hiking all the great trails that BC has to offer."
- }
- },
- "locations": {
- "header": "Locations",
- "description": "Here are some businesses that are accepting bitcoin with Coinos. We hope that yours will be next!"
- }
- },
- "error": {
- "header": "Error",
- "message": "Please try again or contact support.",
- "signIn": "Please sign in to continue."
- },
- "faq": {
- "header": "FAQ",
- "cost": {
- "question": "What does it cost?",
- "answer": "It's free to register an account and receive payments over the lightning network. We charge a 0.1% fee to convert from lightning to bitcoin."
- },
- "compatibility": {
- "question": "Do I need any special device or software?",
- "answer": "No. Coinos is web-based, so as long as you have an internet connection, you can use it on any device. Retail merchants might use it on a phone or a tablet."
- },
- "safety": {
- "question": "When do my funds settle?",
- "answer": "Lightning payments are settled instantly. You can withdraw your balance to another wallet or exchange right after payments are received."
- }
- },
- "footer": {
- "company": "Company",
- "followUs": "Follow Us",
- "github": "GitHub",
- "jobs": "Jobs",
- "support": "Support",
- "telegram": "Telegram",
- "twitter": "Twitter",
- "documentation": "Documentation"
- },
- "howItWorks": {
- "header": "How it works",
- "step1": {
- "header": "1. Create your account",
- "description": "A username and password is all you need to get started."
- },
- "step2": {
- "header": "2. Ask for payments",
- "description": "The same as you normally would, but with bitcoin."
- },
- "step3": {
- "header": "3. That's all!",
- "description": "Spend your coin at other merchants or save it for a rainy day, the choice is yours."
- }
- },
- "invoice": {
- "addTip": "Add a tip",
- "addTipq": "Add a tip?",
- "done": "Done",
- "paymentSuccessful": "Payment received!",
- "invoice": "Invoice",
- "total": "Total",
- "tip": "Tip"
- },
- "jobs": {
- "header": "Jobs",
- "subheader": "Current Openings",
- "pitch1": "Coinos is actively looking for developers to join our growing team (full-time or part-time, remote working OK).",
- "pitch2": "Excited about working on open source bitcoin? Then take a look at our repositories on",
- "github": "GitHub",
- "pitch3": "If you think you can make an impact, we'd love to hear from you. Send us your resume to"
- },
- "landing": {
- "header_before_icon": "The",
- "header_with_icon": "easiest",
- "header_after_icon": "way to accept bitcoin in your store.",
- "subheader": "Grow your customer base and revenue by accepting bitcoin with an easy-to-use web app. No software or hardware required.",
- "info1": {
- "title": "Instant payments via Lightning",
- "description": "The moment your customer sends a payment, it’s there. No waiting for bank settlements or worrying about chargebacks. Instant settlement, in seconds. Say goodbye to 3% credit card processing fees."
- },
- "info2": {
- "title": "Simple to use",
- "description1": "Just enter an amount in your local currency, share the QR code and you’re done.",
- "description2": "We do all the heavy lifting so you can focus on your business.",
- "description3": "You always have the option of taking custody of your funds by withdrawing instantly at any time."
- },
- "info3": {
- "title": "Brand it your way!",
- "description": "Customize your point of sale look and feel, or keep it on default - it's totally up to you."
- }
- },
- "login": {
- "optional": "Optional",
- "token": "2FA Token",
- "username": "Username",
- "password": "Password",
- "email": "Email",
- "passwordRecommendation": "We recommend a long, random password generated with a password manager.",
- "forgotUserOrPassword": "Forgot Username or Password?",
- "haveAccount": "Already have an account?",
- "noAccount": "Don't have an account?",
- "register": "Register",
- "signIn": "Sign In",
- "failed": "Login failed"
- },
- "nav": {
- "profile": "Profile",
- "startInSeconds": "Start in Seconds",
- "account": "Account",
- "signIn": "Sign In",
- "signOut": "Sign Out",
- "dashboard": "Dashboard",
- "settings": "Settings",
- "support": "Support"
- },
- "newSiteHeader": "Join us at our
launch party in Vancouver on October 26! Looking for the old coinos? Visit
classic.coinos.io",
- "news": {
- "header": "News",
- "subheader": "Latest Updates",
- "update1": ""
- },
- "user": {
- "bitcoin": "Bitcoin",
- "lightning": "Lightning",
- "invoice": "Invoice",
- "unfollow": "Unfollow",
- "following": "Following",
- "follow": "Follow",
- "followers": "Followers",
- "remove": "Remove",
- "noNotes": "No notes yet",
- "message": "Message",
- "messages": "Messages",
- "feed": "Feed",
- "notes": "Notes",
- "pay": "Pay",
- "scanToPayBTC": "Scan to pay with bitcoin",
- "this": "This",
- "lightningAddress": "Lightning address",
- "dashboard": {
- "go": "Go",
- "dashboard": "Dashboard",
- "accountBalance": "Account Balance",
- "bitcoinPrice": "bitcoin Price:",
- "conversionFeeWarning": "You will be charged a 1% withdrawal fee on the amount.",
- "dataFromBinance": "Data from
Binance.",
- "fetchingRate": "fetching rate...",
- "optionalNote": "Note (Optional)",
- "send": "Send",
- "receive": "Receive",
- "withdraw": "Send",
- "deposit": "Deposit",
- "voucher": "Voucher"
- },
- "receive": {
- "lessThan1BTCWarning": "Please enter an amount less than 1 bitcoin.",
- "showQR": "Show QR"
- },
- "send": {
- "contacts": "Contacts",
- "scan": "Scan",
- "paste": "Paste",
- "next": "Next",
- "placeholder": "Paste a bitcoin address, lightning invoice or coinos username"
- },
- "settings": {
- "bannerImage": "Banner Image",
- "profileImage": "Profile Image",
- "oneTimeCode": "Enter one-time code",
- "accountId": "Account Secret",
- "header": "Settings",
- "ACCOUNT": "ACCOUNT",
- "POINT_OF_SALE": "PREFERENCES",
- "SECURITY": "SECURITY",
- "locale": "Language",
- "username": "Username",
- "email": "Email",
- "newPassword": "Change Password",
- "about": "About",
- "aboutPlaceholder": "A little something about you or your business address and hours",
- "emailNotifications": "Email Notifications",
- "emailNotificationsDescription": "Get notified via email when a change occurs on your account or when people send you payments.",
- "smsNotifications": "SMS Notifications",
- "smsNotificationsDescription": "Coinos will send you text notifications when this is enabled.",
- "theme": "Color Theme",
- "tipPrompt": "Prompt for tips",
- "tipPromptDescription": "Ask people if they want to add a tip before paying their invoices",
- "displayName": "Display name",
- "themeDescription": "Select from the default color themes.",
- "localCurrency": "Currency",
- "btcUnit": "Display bitcoin in:",
- "bitcoin": "bitcoin",
- "minutes": "minutes",
- "hour": "hour",
- "hours": "hours",
- "satoshis": "Satoshis",
- "securityPIN": "Security PIN",
- "securityPINDescription": "Set a security pin that will be used to unlock your settings and to send outgoing payments.",
- "setPIN": "Set PIN",
- "autoLock": "Auto-Lock Timer",
- "autoLockDescription": "Your account will go into a secure mode, requiring you to re-enter your credentials after a specified time:",
- "twofa": "2-Factor Authentication",
- "twofaDescription": "Add an extra level of security to your device by enabling 2-factor authentication.",
- "twofaSetup": "Set up 2FA",
- "twofaDisable": "Disable 2FA",
- "select": "Select",
- "verifyPIN": "Verify PIN",
- "enablePIN": "Enable PIN",
- "disablePIN": "Disable PIN"
- },
- "support": {
- "header": "Support",
- "email": "Email",
- "accountName": "Account Name",
- "message": "Message",
- "send": "Send"
- }
- },
- "payments": {
- "amount": "Amount",
- "date": "Date",
- "id": "Transaction ID",
- "details": "Transaction Details",
- "header": "Payments",
- "preimage": "Proof of payment",
- "type": "Type",
- "time": "Time",
- "sent": "Sent",
- "received": "Received",
- "empty": "No transactions yet.",
- "send": "Send",
- "next": "Next",
- "sendersChoice": "Sender's choice",
- "sendTo": "Send to",
- "to": "to",
- "pay": "Pay",
- "requesting": "is requesting",
- "sentInvoiceTo": "Sent invoice to",
- "sentRequestTo": "Request sent!",
- "pleasePay": "Please pay",
- "day": "Day",
- "week": "Week",
- "month": "Month",
- "all": "All",
- "export": "Export",
- "invoice": "Invoice",
- "readyToPay": "is ready to pay",
- "describeOrder": "Use this field to describe your order",
- "requestAnInvoice": "Request Invoice",
- "submit": "Submit",
- "isRequesting": "is requesting",
- "invoiceFrom": "Invoice from",
- "awaiting": "Awaiting",
- "tapAnywhere": "Tap anywhere to continue",
- "from": "from",
- "redeem": "Redeem",
- "redeemed": "Redeemed",
- "redeemedBy": "Redeemed by",
- "sendMessage": "Write a message..."
- }
+ "404": {
+ "404": "404",
+ "pageNotFound": "Page not found."
+ },
+ "about": {
+ "header": "About",
+ "p1": "Coinos is an open source bitcoin payment app. Development started in Vancouver in September 2012 as a way to provide local merchants with a convenient way to accept bitcoin payments.",
+ "p2": "You can download the source code to run an instance and connect it to your own bitcoin and lightning nodes. We'll help you get started being a benevolent custodian and payments provider for your community.",
+ "p3": "Account transfers amongst users on our server are done off-chain so they're completely free, instant, and unlimited.",
+ "team": {
+ "header": "The Team",
+ "adam": {
+ "name": "Adam Soltys",
+ "position": "Chief Technical Officer",
+ "bio": "Adam is a web developer and bitcoin enthusiast who believes sound money is key to increasing global prosperity. He lives in North Vancouver with his wife Chelsea and two children."
+ },
+ "shauna": {
+ "name": "Shauna",
+ "position": "Operations & Marketing",
+ "bio": "Strategic & Project Management. Jack of all Trades. Can always find time to meet for coffee."
+ },
+ "cole": {
+ "name": "Cole",
+ "position": "Certified Bitcoin Professional",
+ "bio": "Cole is a driven individual with a passion for freedom. He came across bitcoin in 2016 and studied it in depth. Now he wants to introduce the lightning network to as many users as possible."
+ },
+ "john": {
+ "name": "John Barratt",
+ "position": "Full Stack Web Developer",
+ "bio": "When not coding you can find John out in the woods hiking all the great trails that BC has to offer."
+ }
+ },
+ "locations": {
+ "header": "Locations",
+ "description": "Here are some businesses that are accepting bitcoin with Coinos. We hope that yours will be next!"
+ }
+ },
+ "error": {
+ "header": "Error",
+ "message": "Please try again or contact support.",
+ "signIn": "Please sign in to continue."
+ },
+ "faq": {
+ "header": "FAQ",
+ "cost": {
+ "question": "What does it cost?",
+ "answer": "It's free to register an account and receive payments over the lightning network. We charge a 0.1% fee to convert from lightning to bitcoin."
+ },
+ "compatibility": {
+ "question": "Do I need any special device or software?",
+ "answer": "No. Coinos is web-based, so as long as you have an internet connection, you can use it on any device. Retail merchants might use it on a phone or a tablet."
+ },
+ "safety": {
+ "question": "When do my funds settle?",
+ "answer": "Lightning payments are settled instantly. You can withdraw your balance to another wallet or exchange right after payments are received."
+ }
+ },
+ "footer": {
+ "company": "Company",
+ "followUs": "Follow Us",
+ "github": "GitHub",
+ "jobs": "Jobs",
+ "support": "Support",
+ "telegram": "Telegram",
+ "twitter": "Twitter",
+ "documentation": "Documentation"
+ },
+ "howItWorks": {
+ "header": "How it works",
+ "step1": {
+ "header": "1. Create your account",
+ "description": "A username and password is all you need to get started."
+ },
+ "step2": {
+ "header": "2. Ask for payments",
+ "description": "The same as you normally would, but with bitcoin."
+ },
+ "step3": {
+ "header": "3. That's all!",
+ "description": "Spend your coin at other merchants or save it for a rainy day, the choice is yours."
+ }
+ },
+ "invoice": {
+ "addTip": "Add a tip",
+ "addTipq": "Add a tip?",
+ "done": "Done",
+ "paymentSuccessful": "Payment received!",
+ "invoice": "Invoice",
+ "total": "Total",
+ "tip": "Tip"
+ },
+ "jobs": {
+ "header": "Jobs",
+ "subheader": "Current Openings",
+ "pitch1": "Coinos is actively looking for developers to join our growing team (full-time or part-time, remote working OK).",
+ "pitch2": "Excited about working on open source bitcoin? Then take a look at our repositories on",
+ "github": "GitHub",
+ "pitch3": "If you think you can make an impact, we'd love to hear from you. Send us your resume to"
+ },
+ "landing": {
+ "header_before_icon": "The",
+ "header_with_icon": "easiest",
+ "header_after_icon": "way to accept bitcoin in your store.",
+ "subheader": "Grow your customer base and revenue by accepting bitcoin with an easy-to-use web app. No software or hardware required.",
+ "info1": {
+ "title": "Instant payments via Lightning",
+ "description": "The moment your customer sends a payment, it’s there. No waiting for bank settlements or worrying about chargebacks. Instant settlement, in seconds. Say goodbye to 3% credit card processing fees."
+ },
+ "info2": {
+ "title": "Simple to use",
+ "description1": "Just enter an amount in your local currency, share the QR code and you’re done.",
+ "description2": "We do all the heavy lifting so you can focus on your business.",
+ "description3": "You always have the option of taking custody of your funds by withdrawing instantly at any time."
+ },
+ "info3": {
+ "title": "Brand it your way!",
+ "description": "Customize your point of sale look and feel, or keep it on default - it's totally up to you."
+ }
+ },
+ "login": {
+ "optional": "Optional",
+ "token": "2FA Token",
+ "username": "Username",
+ "password": "Password",
+ "email": "Email",
+ "passwordRecommendation": "We recommend a long, random password generated with a password manager.",
+ "forgotUserOrPassword": "Forgot Username or Password?",
+ "haveAccount": "Already have an account?",
+ "noAccount": "Don't have an account?",
+ "register": "Register",
+ "signIn": "Sign In",
+ "failed": "Login failed"
+ },
+ "nav": {
+ "profile": "Profile",
+ "startInSeconds": "Start in Seconds",
+ "account": "Account",
+ "signIn": "Sign In",
+ "signOut": "Sign Out",
+ "dashboard": "Dashboard",
+ "settings": "Settings",
+ "support": "Support"
+ },
+ "newSiteHeader": "Join us at our
launch party in Vancouver on October 26! Looking for the old coinos? Visit
classic.coinos.io",
+ "news": {
+ "header": "News",
+ "subheader": "Latest Updates",
+ "update1": ""
+ },
+ "user": {
+ "bitcoin": "Bitcoin",
+ "lightning": "Lightning",
+ "invoice": "Invoice",
+ "unfollow": "Unfollow",
+ "following": "Following",
+ "follow": "Follow",
+ "followers": "Followers",
+ "remove": "Remove",
+ "noNotes": "No notes yet",
+ "message": "Message",
+ "messages": "Messages",
+ "feed": "Feed",
+ "notes": "Notes",
+ "pay": "Pay",
+ "scanToPayBTC": "Scan to pay with bitcoin",
+ "this": "This",
+ "lightningAddress": "Lightning address",
+ "dashboard": {
+ "go": "Go",
+ "dashboard": "Dashboard",
+ "accountBalance": "Account Balance",
+ "bitcoinPrice": "bitcoin Price:",
+ "conversionFeeWarning": "You will be charged a 1% withdrawal fee on the amount.",
+ "dataFromBinance": "Data from
Binance.",
+ "fetchingRate": "fetching rate...",
+ "optionalNote": "Note (Optional)",
+ "send": "Send",
+ "receive": "Receive",
+ "withdraw": "Send",
+ "deposit": "Deposit",
+ "voucher": "Voucher"
+ },
+ "receive": {
+ "lessThan1BTCWarning": "Please enter an amount less than 1 bitcoin.",
+ "showQR": "Show QR"
+ },
+ "send": {
+ "contacts": "Contacts",
+ "scan": "Scan",
+ "paste": "Paste",
+ "next": "Next",
+ "placeholder": "Paste a bitcoin address, lightning invoice or coinos username"
+ },
+ "settings": {
+ "bannerImage": "Banner Image",
+ "profileImage": "Profile Image",
+ "oneTimeCode": "Enter one-time code",
+ "accountId": "Account Secret",
+ "header": "Settings",
+ "ACCOUNT": "ACCOUNT",
+ "POINT_OF_SALE": "PREFERENCES",
+ "SECURITY": "SECURITY",
+ "locale": "Language",
+ "username": "Username",
+ "email": "Email",
+ "newPassword": "Change Password",
+ "about": "About",
+ "aboutPlaceholder": "A little something about you or your business address and hours",
+ "emailNotifications": "Email Notifications",
+ "emailNotificationsDescription": "Get notified via email when a change occurs on your account or when people send you payments.",
+ "smsNotifications": "SMS Notifications",
+ "smsNotificationsDescription": "Coinos will send you text notifications when this is enabled.",
+ "theme": "Color Theme",
+ "tipPrompt": "Prompt for tips",
+ "tipPromptDescription": "Ask people if they want to add a tip before paying their invoices",
+ "displayName": "Display name",
+ "themeDescription": "Select from the default color themes.",
+ "localCurrency": "Currency",
+ "btcUnit": "Display bitcoin in:",
+ "bitcoin": "bitcoin",
+ "minutes": "minutes",
+ "hour": "hour",
+ "hours": "hours",
+ "satoshis": "Satoshis",
+ "securityPIN": "Security PIN",
+ "securityPINDescription": "Set a security pin that will be used to unlock your settings and to send outgoing payments.",
+ "setPIN": "Set PIN",
+ "autoLock": "Auto-Lock Timer",
+ "autoLockDescription": "Your account will go into a secure mode, requiring you to re-enter your credentials after a specified time:",
+ "twofa": "2-Factor Authentication",
+ "twofaDescription": "Add an extra level of security to your device by enabling 2-factor authentication.",
+ "twofaSetup": "Set up 2FA",
+ "twofaDisable": "Disable 2FA",
+ "select": "Select",
+ "verifyPIN": "Verify PIN",
+ "enablePIN": "Enable PIN",
+ "disablePIN": "Disable PIN"
+ },
+ "support": {
+ "header": "Support",
+ "email": "Email",
+ "accountName": "Account Name",
+ "message": "Message",
+ "send": "Send"
+ }
+ },
+ "payments": {
+ "amount": "Amount",
+ "date": "Date",
+ "id": "Transaction ID",
+ "details": "Transaction Details",
+ "header": "Payments",
+ "preimage": "Proof of payment",
+ "type": "Type",
+ "time": "Time",
+ "sent": "Sent",
+ "received": "Received",
+ "empty": "No transactions yet.",
+ "send": "Send",
+ "next": "Next",
+ "sendersChoice": "Sender's choice",
+ "sendTo": "Send to",
+ "to": "to",
+ "pay": "Pay",
+ "requesting": "is requesting",
+ "sentInvoiceTo": "Sent invoice to",
+ "sentRequestTo": "Request sent!",
+ "pleasePay": "Please pay",
+ "day": "Day",
+ "week": "Week",
+ "month": "Month",
+ "all": "All",
+ "export": "Export",
+ "invoice": "Invoice",
+ "readyToPay": "is ready to pay",
+ "describeOrder": "Use this field to describe your order",
+ "requestAnInvoice": "Request Invoice",
+ "submit": "Submit",
+ "isRequesting": "is requesting",
+ "invoiceFrom": "Invoice from",
+ "awaiting": "Awaiting",
+ "tapAnywhere": "Tap anywhere to continue",
+ "from": "from",
+ "redeem": "Redeem",
+ "redeemed": "Redeemed",
+ "redeemedBy": "Redeemed by",
+ "sendMessage": "Write a message..."
+ }
}
diff --git a/src/params/uuid.js b/src/params/uuid.js
index 1278e59e..bd32b496 100644
--- a/src/params/uuid.js
+++ b/src/params/uuid.js
@@ -1 +1 @@
-export let match = (p) => p.split('-').length > 4;
+export let match = (p) => p.split("-").length > 4;
diff --git a/src/routes/(app)/+error.svelte b/src/routes/(app)/+error.svelte
index 36726e26..ed0bec3e 100644
--- a/src/routes/(app)/+error.svelte
+++ b/src/routes/(app)/+error.svelte
@@ -1,38 +1,38 @@
-
+
-
-
-
-
Error
-
-
Something went wrong
-
{$page.error.message}
+
+
+
+
Error
+
+
Something went wrong
+
{$page.error.message}
-
-
-
+
+
+
diff --git a/src/routes/(app)/+layout.server.js b/src/routes/(app)/+layout.server.js
index e80e1e64..9fcf6411 100644
--- a/src/routes/(app)/+layout.server.js
+++ b/src/routes/(app)/+layout.server.js
@@ -1,44 +1,48 @@
-import { error, redirect } from '@sveltejs/kit';
-import { get, post, auth, protectedRoutes } from '$lib/utils';
-import { PUBLIC_BTC as btc } from '$env/static/public';
+import { error, redirect } from "@sveltejs/kit";
+import { get, post, auth, protectedRoutes } from "$lib/utils";
+import { PUBLIC_BTC as btc } from "$env/static/public";
export async function load({ cookies, request, url, params }) {
- let { pathname } = url;
- let token = cookies.get('token');
- let rate,
- rates = { USD: 1 };
-
- let user;
- if (token) {
- try {
- user = await get('/me', auth(cookies));
- } catch (e) {}
- }
-
- if (user?.needsMigration) {
- throw redirect(307, `/migrate`);
- }
-
- if (user && ['/login', '/register'].includes(pathname) && request.method === 'GET') {
- throw redirect(307, `/${user.username}`);
- }
-
- if (
- protectedRoutes.find((p) => pathname.match(p)) &&
- (!user || user.username !== params.username)
- ) {
- throw redirect(307, '/login');
- }
-
- if (user && !user.pubkey && !pathname.includes('generate'))
- throw redirect(307, `/${user.username}/generate`);
-
- try {
- rate = await get('/rate');
- rates = await get('/rates');
- } catch (e) {
- console.log(e);
- }
-
- return { user, token, rate, rates };
+ let { pathname } = url;
+ let token = cookies.get("token");
+ let rate,
+ rates = { USD: 1 };
+
+ let user;
+ if (token) {
+ try {
+ user = await get("/me", auth(cookies));
+ } catch (e) {}
+ }
+
+ if (user?.needsMigration) {
+ throw redirect(307, `/migrate`);
+ }
+
+ if (
+ user &&
+ ["/login", "/register"].includes(pathname) &&
+ request.method === "GET"
+ ) {
+ throw redirect(307, `/${user.username}`);
+ }
+
+ if (
+ protectedRoutes.find((p) => pathname.match(p)) &&
+ (!user || user.username !== params.username)
+ ) {
+ throw redirect(307, "/login");
+ }
+
+ if (user && !user.pubkey && !pathname.includes("generate"))
+ throw redirect(307, `/${user.username}/generate`);
+
+ try {
+ rate = await get("/rate");
+ rates = await get("/rates");
+ } catch (e) {
+ console.log(e);
+ }
+
+ return { user, token, rate, rates };
}
diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte
index 51ade9c7..c5a312e1 100644
--- a/src/routes/(app)/+layout.svelte
+++ b/src/routes/(app)/+layout.svelte
@@ -1,167 +1,174 @@
{#if browser && $passwordPrompt}
-
+
{/if}
- {#if subject}
- coinos - {subject.username}
-
- {:else}
- coinos
- {/if}
-
- {#if subject?.profile}
-
- {:else}
-
- {/if}
+ {#if subject}
+ coinos - {subject.username}
+
+ {:else}
+ coinos
+ {/if}
+
+ {#if subject?.profile}
+
+ {:else}
+
+ {/if}
-
+
{#if $invoice}
-
+
{/if}
{#if $request}
-
+
{/if}
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.js b/src/routes/(app)/[username]/(profile)/+layout.server.js
index f4f2ca0a..a508de92 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.js
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.js
@@ -1,26 +1,26 @@
-import { get } from '$lib/utils';
+import { get } from "$lib/utils";
export async function load({ parent }) {
- let { subject, user } = await parent();
+ let { subject, user } = await parent();
- subject.follows = [];
- subject.followers = [];
+ subject.follows = [];
+ subject.followers = [];
- try {
- subject.follows = await get(`/${subject.pubkey}/follows`);
- } catch (e) {
- console.log('problem fetching follows', e);
- }
+ try {
+ subject.follows = await get(`/${subject.pubkey}/follows`);
+ } catch (e) {
+ console.log("problem fetching follows", e);
+ }
- try {
- subject.followers = await get(`/${subject.pubkey}/followers`);
- } catch (e) {
- console.log('problem fetching followers', e);
- }
+ try {
+ subject.followers = await get(`/${subject.pubkey}/followers`);
+ } catch (e) {
+ console.log("problem fetching followers", e);
+ }
- if (user) {
- user.follows = await get(`/${user.pubkey}/follows?tagsonly=true`);
- }
+ if (user) {
+ user.follows = await get(`/${user.pubkey}/follows?tagsonly=true`);
+ }
- return { subject, user };
+ return { subject, user };
}
diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte
index 55c22bdb..6b166e2c 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.svelte
+++ b/src/routes/(app)/[username]/(profile)/+layout.svelte
@@ -1,236 +1,246 @@
-
-
-
-
{display || username}
-
-
-
- {#if showDetails}
-
-
{$t('user.profilePage')}
-
-
- {profile}
-
-
-
-
-
-
-
-
-
-
-
{$t('user.lightningAddress')}
-
-
- {lnaddr}
-
-
-
-
-
-
-
-
-
-
-
{$t('user.nostrPubkey')}
-
-
- {npub}
-
-
-
-
-
-
-
-
-
- {/if}
-
- {#if subject.address && subject.id !== user?.id}
-
- {subject.address}
-
- {/if}
-
-
-
-
- {#if user && user.username !== subject.username && subject.pubkey}
- {#if following}
-
-
-
- {:else}
-
-
-
- {/if}
- {/if}
-
- {#if user && user.username !== subject.username && subject.pubkey}
-
- {/if}
-
- {#if !subject.anon && subject.username !== user?.username}
-
- {/if}
-
-
-
-
+
+
+
+
{display || username}
+
+
+
+ {#if showDetails}
+
+
{$t("user.profilePage")}
+
+
+ {profile}
+
+
+
+
+
+
+
+
+
+
+
{$t("user.lightningAddress")}
+
+
+ {lnaddr}
+
+
+
+
+
+
+
+
+
+
+
{$t("user.nostrPubkey")}
+
+
+ {npub}
+
+
+
+
+
+
+
+
+
+ {/if}
+
+ {#if subject.address && subject.id !== user?.id}
+
+ {subject.address}
+
+ {/if}
+
+
+
+
+ {#if user && user.username !== subject.username && subject.pubkey}
+ {#if following}
+
+
+
+ {:else}
+
+
+
+ {/if}
+ {/if}
+
+ {#if user && user.username !== subject.username && subject.pubkey}
+
+ {/if}
+
+ {#if !subject.anon && subject.username !== user?.username}
+
+ {/if}
+
+
+
+
{#if currency && !isNaN($animatedRate)}
-
-
-
-
1
-

-
-
= {f($animatedRate, currency)}
-
-
-
-
⚡️{s((1 * sats) / $animatedRate)} =
-
{f(1, currency)}
-
-
-
+
+
+
+
1
+

+
+
= {f($animatedRate, currency)}
+
+
+
+
⚡️{s((1 * sats) / $animatedRate)} =
+
{f(1, currency)}
+
+
+
{/if}
diff --git a/src/routes/(app)/[username]/(profile)/+page.server.js b/src/routes/(app)/[username]/(profile)/+page.server.js
index e37db1fe..3110ec40 100644
--- a/src/routes/(app)/[username]/(profile)/+page.server.js
+++ b/src/routes/(app)/[username]/(profile)/+page.server.js
@@ -1,35 +1,35 @@
-import { auth, get } from '$lib/utils';
+import { auth, get } from "$lib/utils";
export async function load({ cookies, params, parent, url }) {
- let { user, subject } = await parent();
- let { pubkey } = subject;
- let { since = 0 } = params;
+ let { user, subject } = await parent();
+ let { pubkey } = subject;
+ let { since = 0 } = params;
- let messages, invoices, sent, received, notes;
- messages = invoices = sent = received = notes = [];
+ let messages, invoices, sent, received, notes;
+ messages = invoices = sent = received = notes = [];
- if (pubkey) {
- if (user) {
- try {
- messages = await get(`/${user.pubkey}/${since}/messages`);
- messages = messages.sort((a, b) => b.created_at - a.created_at);
- } catch (e) {
- console.log(`failed to fetch nostr messages`, e);
- }
+ if (pubkey) {
+ if (user) {
+ try {
+ messages = await get(`/${user.pubkey}/${since}/messages`);
+ messages = messages.sort((a, b) => b.created_at - a.created_at);
+ } catch (e) {
+ console.log(`failed to fetch nostr messages`, e);
+ }
- ({ invoices, sent, received } = await get('/requests', auth(cookies)));
- }
+ ({ invoices, sent, received } = await get("/requests", auth(cookies)));
+ }
- try {
- notes = await get(`/${pubkey}/notes`);
- } catch (e) {
- console.log(`failed to fetch nostr notes for ${pubkey}`, e);
- }
+ try {
+ notes = await get(`/${pubkey}/notes`);
+ } catch (e) {
+ console.log(`failed to fetch nostr notes for ${pubkey}`, e);
+ }
- notes.map((e) => {
- e.seen = e.created_at;
- });
- }
+ notes.map((e) => {
+ e.seen = e.created_at;
+ });
+ }
- return { invoices, messages, notes, sent, received };
+ return { invoices, messages, notes, sent, received };
}
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte
index 32a1f2cb..b0e36090 100644
--- a/src/routes/(app)/[username]/(profile)/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/+page.svelte
@@ -1,227 +1,245 @@
- {#if user?.id === subject.id}
-
-
-
-
-
- {#if !user.balance}
-
-
- {$t('user.welcome')}
-
-
- {/if}
-
-
-
- {/if}
-
- {#if invoices.length}
-
- {/if}
- {#if received.length}
-
- {/if}
-
- {#if latest.length && user?.id === subject.id}
-
- {/if}
+ {#if user?.id === subject.id}
+
+
+
+
+
+ {#if !user.balance}
+
+
+ {$t("user.welcome")}
+
+
+ {/if}
+
+
+
+ {/if}
+
+ {#if invoices.length}
+
+ {/if}
+ {#if received.length}
+
+ {/if}
+
+ {#if latest.length && user?.id === subject.id}
+
+ {/if}
diff --git a/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.js b/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.js
index 6182de17..ec4da865 100644
--- a/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.js
+++ b/src/routes/(app)/[username]/(profile)/event/[id]/+page.server.js
@@ -1,12 +1,12 @@
-import { get } from '$lib/utils';
-import { error } from '@sveltejs/kit';
+import { get } from "$lib/utils";
+import { error } from "@sveltejs/kit";
export async function load({ params: { id } }) {
- try {
- let event = await get(`/event/${id}`);
- if (!event) throw error(500, 'Event not found');
- return { event };
- } catch (e) {
- throw error(500, e.message);
- }
+ try {
+ let event = await get(`/event/${id}`);
+ if (!event) throw error(500, "Event not found");
+ return { event };
+ } catch (e) {
+ throw error(500, e.message);
+ }
}
diff --git a/src/routes/(app)/[username]/(profile)/event/[id]/+page.svelte b/src/routes/(app)/[username]/(profile)/event/[id]/+page.svelte
index 85fc815a..1347947f 100644
--- a/src/routes/(app)/[username]/(profile)/event/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/event/[id]/+page.svelte
@@ -1,7 +1,7 @@
diff --git a/src/routes/(app)/[username]/(profile)/followers/+page.svelte b/src/routes/(app)/[username]/(profile)/followers/+page.svelte
index 56b3ba16..f51af86b 100644
--- a/src/routes/(app)/[username]/(profile)/followers/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/followers/+page.svelte
@@ -1,51 +1,52 @@
diff --git a/src/routes/(app)/[username]/(profile)/follows/+page.svelte b/src/routes/(app)/[username]/(profile)/follows/+page.svelte
index b238c3a7..4f1bf32b 100644
--- a/src/routes/(app)/[username]/(profile)/follows/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/follows/+page.svelte
@@ -1,47 +1,51 @@
diff --git a/src/routes/(app)/[username]/(profile)/request/+page.server.js b/src/routes/(app)/[username]/(profile)/request/+page.server.js
index e7ad6a8f..754c5805 100644
--- a/src/routes/(app)/[username]/(profile)/request/+page.server.js
+++ b/src/routes/(app)/[username]/(profile)/request/+page.server.js
@@ -1,15 +1,15 @@
-import { redirect } from '@sveltejs/kit';
-import { fd, auth, post } from '$lib/utils';
+import { redirect } from "@sveltejs/kit";
+import { fd, auth, post } from "$lib/utils";
export const actions = {
- create: async ({ cookies, params, request, url }) => {
- let form = await fd(request);
- let { id, requester } = await post('/requests', form, auth(cookies));
- throw redirect(307, `/${params.username}/request/${id}`);
- },
+ create: async ({ cookies, params, request, url }) => {
+ let form = await fd(request);
+ let { id, requester } = await post("/requests", form, auth(cookies));
+ throw redirect(307, `/${params.username}/request/${id}`);
+ },
- delete: async ({ cookies, request }) => {
- let form = await fd(request);
- let r = await post('/requests/delete', form, auth(cookies));
- }
+ delete: async ({ cookies, request }) => {
+ let form = await fd(request);
+ let r = await post("/requests/delete", form, auth(cookies));
+ },
};
diff --git a/src/routes/(app)/[username]/(profile)/request/+page.svelte b/src/routes/(app)/[username]/(profile)/request/+page.svelte
index 75117ff4..5727c3d4 100644
--- a/src/routes/(app)/[username]/(profile)/request/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/request/+page.svelte
@@ -1,35 +1,35 @@
-
- {$t('payments.requestAnInvoice')}
-
+
+ {$t("payments.requestAnInvoice")}
+
-
+
+
+
+
diff --git a/src/routes/(app)/[username]/(profile)/request/sent/+page.svelte b/src/routes/(app)/[username]/(profile)/request/sent/+page.svelte
index 4995bfb2..6ce0c9f6 100644
--- a/src/routes/(app)/[username]/(profile)/request/sent/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/request/sent/+page.svelte
@@ -1,18 +1,21 @@
-
-
-
-
Request sent
+
+
+
+
Request sent
-
+
diff --git a/src/routes/(app)/[username]/+layout.server.js b/src/routes/(app)/[username]/+layout.server.js
index 8df75f0f..0e962173 100644
--- a/src/routes/(app)/[username]/+layout.server.js
+++ b/src/routes/(app)/[username]/+layout.server.js
@@ -1,13 +1,13 @@
-import { get } from '$lib/utils';
-import { error } from '@sveltejs/kit';
+import { get } from "$lib/utils";
+import { error } from "@sveltejs/kit";
export let load = async ({ depends, params: { username } }) => {
- depends('app:user');
+ depends("app:user");
- try {
- let subject = await get(`/users/${username}`);
- return { subject };
- } catch (e) {
- throw error(500, 'Unable to retrieve user account data');
- }
+ try {
+ let subject = await get(`/users/${username}`);
+ return { subject };
+ } catch (e) {
+ throw error(500, "Unable to retrieve user account data");
+ }
};
diff --git a/src/routes/(app)/[username]/+layout.svelte b/src/routes/(app)/[username]/+layout.svelte
index 54fcd600..3a351e48 100644
--- a/src/routes/(app)/[username]/+layout.svelte
+++ b/src/routes/(app)/[username]/+layout.svelte
@@ -1,57 +1,57 @@
-
+
diff --git a/src/routes/(app)/[username]/address/+page.server.js b/src/routes/(app)/[username]/address/+page.server.js
index 247a33a2..1a782f9d 100644
--- a/src/routes/(app)/[username]/address/+page.server.js
+++ b/src/routes/(app)/[username]/address/+page.server.js
@@ -1,10 +1,10 @@
-import { auth, get, post } from '$lib/utils';
-import { redirect } from '@sveltejs/kit';
+import { auth, get, post } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export async function load({ cookies, params, parent }) {
- let user = (await parent()).subject;
- let rates = await get('/rates');
- let invoice = { type: 'bitcoin' };
- let { hash } = await post(`/invoice`, { invoice, user }, auth(cookies));
- throw redirect(307, `/${user.username}/invoice/${hash}`);
+ let user = (await parent()).subject;
+ let rates = await get("/rates");
+ let invoice = { type: "bitcoin" };
+ let { hash } = await post(`/invoice`, { invoice, user }, auth(cookies));
+ throw redirect(307, `/${user.username}/invoice/${hash}`);
}
diff --git a/src/routes/(app)/[username]/card/[serial]/+page.server.js b/src/routes/(app)/[username]/card/[serial]/+page.server.js
index 40e375aa..20b657a1 100644
--- a/src/routes/(app)/[username]/card/[serial]/+page.server.js
+++ b/src/routes/(app)/[username]/card/[serial]/+page.server.js
@@ -1,16 +1,16 @@
-import { auth, get } from '$lib/utils';
-import { redirect } from "@sveltejs/kit"
+import { auth, get } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export let load = async ({ cookies, params }) => {
- let { serial } = params;
- let fund;
- try {
- fund = await get(`/fund/${serial}`, auth(cookies));
- } catch (e) {
- console.log(e);
- }
+ let { serial } = params;
+ let fund;
+ try {
+ fund = await get(`/fund/${serial}`, auth(cookies));
+ } catch (e) {
+ console.log(e);
+ }
- if (fund) throw redirect(307, `/fund/${serial}`);
+ if (fund) throw redirect(307, `/fund/${serial}`);
- return params;
+ return params;
};
diff --git a/src/routes/(app)/[username]/card/[serial]/+page.svelte b/src/routes/(app)/[username]/card/[serial]/+page.svelte
index afdaf65d..a2e17dfc 100644
--- a/src/routes/(app)/[username]/card/[serial]/+page.svelte
+++ b/src/routes/(app)/[username]/card/[serial]/+page.svelte
@@ -1,35 +1,35 @@
-
-
Card {serial}
-
-
+
+
Card {serial}
+
+
diff --git a/src/routes/(app)/[username]/funds/+page.svelte b/src/routes/(app)/[username]/funds/+page.svelte
index 6479fb8b..667176e1 100644
--- a/src/routes/(app)/[username]/funds/+page.svelte
+++ b/src/routes/(app)/[username]/funds/+page.svelte
@@ -1,6 +1,6 @@
-
- Funds
-
-
-
-
-
-
-
-
-
-
-

-
-
-
Pot
-
-
-
-
-
-
-
-
-
+
+ Funds
+
+
+
+
+
+
+
+
+
+
+

+
+
+
Pot
+
+
+
+
+
+
+
+
+
diff --git a/src/routes/(app)/[username]/generate/+page.svelte b/src/routes/(app)/[username]/generate/+page.svelte
index b9274434..4ebb5eae 100644
--- a/src/routes/(app)/[username]/generate/+page.svelte
+++ b/src/routes/(app)/[username]/generate/+page.svelte
@@ -1,62 +1,62 @@
{#if loaded && user?.haspin && $pin?.length !== 6}
-
+
{/if}
{loaded}
{JSON.stringify(user)}
diff --git a/src/routes/(app)/[username]/generate/+server.js b/src/routes/(app)/[username]/generate/+server.js
index e1df08e3..1dca1ece 100644
--- a/src/routes/(app)/[username]/generate/+server.js
+++ b/src/routes/(app)/[username]/generate/+server.js
@@ -1,11 +1,11 @@
-import { auth, post } from '$lib/utils';
-import { error, json } from '@sveltejs/kit';
+import { auth, post } from "$lib/utils";
+import { error, json } from "@sveltejs/kit";
export async function POST({ cookies, request }) {
- try {
- let body = await request.json();
- return json(await post(`/user`, body, auth(cookies)));
- } catch (e) {
- throw error(500, e.message);
- }
+ try {
+ let body = await request.json();
+ return json(await post(`/user`, body, auth(cookies)));
+ } catch (e) {
+ throw error(500, e.message);
+ }
}
diff --git a/src/routes/(app)/[username]/invoice/+server.js b/src/routes/(app)/[username]/invoice/+server.js
index 461d380c..5e3d0300 100644
--- a/src/routes/(app)/[username]/invoice/+server.js
+++ b/src/routes/(app)/[username]/invoice/+server.js
@@ -1,7 +1,7 @@
-import { auth, post } from '$lib/utils';
-import { json } from '@sveltejs/kit';
+import { auth, post } from "$lib/utils";
+import { json } from "@sveltejs/kit";
export let POST = async ({ cookies: c, request: r }) => {
- let j = await r.json();
- return json(await post('/invoice', j, auth(c)));
+ let j = await r.json();
+ return json(await post("/invoice", j, auth(c)));
};
diff --git a/src/routes/(app)/[username]/invoice/[id]/+layout.server.js b/src/routes/(app)/[username]/invoice/[id]/+layout.server.js
index 4d7fd3b8..b9d1c43d 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+layout.server.js
+++ b/src/routes/(app)/[username]/invoice/[id]/+layout.server.js
@@ -1,31 +1,39 @@
-import Qr from 'qrcode-base64';
-import { get } from '$lib/utils';
-import { redirect } from '@sveltejs/kit';
+import Qr from "qrcode-base64";
+import { get } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export async function load({ depends, params, url, parent }) {
- depends('app:invoice');
+ depends("app:invoice");
- let { user } = await parent();
- let { id } = params;
- let invoice = await get(`/invoice/${id}`);
- let options = !!url.searchParams.get('options');
+ let { user } = await parent();
+ let { id } = params;
+ let invoice = await get(`/invoice/${id}`);
+ let options = !!url.searchParams.get("options");
- if (user && invoice.uid !== user.id && !url.pathname.includes('tip') && !options) {
- throw redirect(307, `/send/invoice/${id}`);
- }
+ if (
+ user &&
+ invoice.uid !== user.id &&
+ !url.pathname.includes("tip") &&
+ !options
+ ) {
+ throw redirect(307, `/send/invoice/${id}`);
+ }
- let { amount, pending, received } = invoice;
- amount = parseInt(amount);
+ let { amount, pending, received } = invoice;
+ amount = parseInt(amount);
- let paid = (!amount && received) || (amount > 0 && (pending >= amount || received >= amount));
- if (paid && !url.pathname.endsWith('paid')) {
- throw redirect(
- 307,
- `/${params.username}/invoice/${id}/paid` + (options ? '?options=true' : '')
- );
- }
+ let paid =
+ (!amount && received) ||
+ (amount > 0 && (pending >= amount || received >= amount));
+ if (paid && !url.pathname.endsWith("paid")) {
+ throw redirect(
+ 307,
+ `/${params.username}/invoice/${id}/paid` +
+ (options ? "?options=true" : "")
+ );
+ }
- let sm = Qr.drawImg(invoice.text || '', { size: 300 });
+ let sm = Qr.drawImg(invoice.text || "", { size: 300 });
- return { id, invoice, sm, lg: sm };
+ return { id, invoice, sm, lg: sm };
}
diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.server.js b/src/routes/(app)/[username]/invoice/[id]/+page.server.js
index 1068f273..a57efa64 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+page.server.js
+++ b/src/routes/(app)/[username]/invoice/[id]/+page.server.js
@@ -1,5 +1,5 @@
-import invoice from '$lib/invoice';
+import invoice from "$lib/invoice";
export const actions = {
- default: invoice
+ default: invoice,
};
diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
index a0894dd1..b6bf70b7 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
@@ -1,217 +1,235 @@
-
-
-
-
-
-
- {#if showQr}
-
- {/if}
-
- {#if amount > 0}
-
-
- {f(amountFiat, currency)}
-
- {#if tip}
-
- +{f(tip * (rate / sats), currency)}
-
- {/if}
-
-
- {`${sat(amount)}`}
-
- {#if tip}
-
- +{sat(tip)}
-
- {/if}
-
-
- {/if}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {#if showQr}
+
+ {/if}
+
+ {#if amount > 0}
+
+
+ {f(amountFiat, currency)}
+
+ {#if tip}
+
+ +{f(tip * (rate / sats), currency)}
+
+ {/if}
+
+
+ {`${sat(amount)}`}
+
+ {#if tip}
+
+ +{sat(tip)}
+
+ {/if}
+
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
index 84e493d9..655bc3e4 100644
--- a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte
@@ -1,64 +1,70 @@
-
-
-
- {#if received}
-
{$t('invoice.paymentSuccessful')}
-
- {f(fiat(received - tip, rate), currency)}
- {#if tip}
-
- + {f(fiat(tip, rate), currency)}
-
- {/if}
-
-
- ⚡️{s(received - tip)}
+
+
+
+ {#if received}
+
+ {$t("invoice.paymentSuccessful")}
+
+
+ {f(fiat(received - tip, rate), currency)}
+ {#if tip}
+
+ + {f(fiat(tip, rate), currency)}
+
+ {/if}
+
+
+ ⚡️{s(received - tip)}
- {#if tip}
-
- + ⚡️{s(tip)}
-
- {/if}
-
- {/if}
+ {#if tip}
+
+ + ⚡️{s(tip)}
+
+ {/if}
+
+ {/if}
- {#if pending}
-
Payment detected
-
- {f(fiat(pending - tip, rate), currency)}
- {#if tip}
- + {f(fiat(tip, rate), currency)}
- {/if}
-
-
- ⚡️{s(pending - tip)}
- {#if tip}
-
- + ⚡️{s(tip)}
-
- {/if}
-
- {/if}
+ {#if pending}
+
Payment detected
+
+ {f(fiat(pending - tip, rate), currency)}
+ {#if tip}
+ + {f(fiat(tip, rate), currency)}
+ {/if}
+
+
+ ⚡️{s(pending - tip)}
+ {#if tip}
+
+ + ⚡️{s(tip)}
+
+ {/if}
+
+ {/if}
-
+
-
{$t('payments.tapAnywhere')}
+
+ {$t("payments.tapAnywhere")}
+
diff --git a/src/routes/(app)/[username]/invoice/[id]/tip/+page.server.js b/src/routes/(app)/[username]/invoice/[id]/tip/+page.server.js
index 814900fb..c9377e36 100644
--- a/src/routes/(app)/[username]/invoice/[id]/tip/+page.server.js
+++ b/src/routes/(app)/[username]/invoice/[id]/tip/+page.server.js
@@ -1,11 +1,12 @@
-import invoice from '$lib/invoice';
-import { redirect } from '@sveltejs/kit';
+import invoice from "$lib/invoice";
+import { redirect } from "@sveltejs/kit";
export async function load({ parent, params }) {
- let { invoice } = await parent();
- if (!invoice.amount) throw redirect(307, `/${params.username}/invoice/${invoice.id}`);
+ let { invoice } = await parent();
+ if (!invoice.amount)
+ throw redirect(307, `/${params.username}/invoice/${invoice.id}`);
}
export const actions = {
- default: invoice
+ default: invoice,
};
diff --git a/src/routes/(app)/[username]/invoice/[id]/tip/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/tip/+page.svelte
index fe6c67be..87e48f01 100644
--- a/src/routes/(app)/[username]/invoice/[id]/tip/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/tip/+page.svelte
@@ -1,201 +1,203 @@
-
-
- {#if showCustomAmount}
-
- {/if}
+
+
+ {#if showCustomAmount}
+
+ {/if}
diff --git a/src/routes/(app)/[username]/invoice/sent/+page.svelte b/src/routes/(app)/[username]/invoice/sent/+page.svelte
index ae71eb2e..8583de09 100644
--- a/src/routes/(app)/[username]/invoice/sent/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/sent/+page.svelte
@@ -1,10 +1,10 @@
Invoice sent to
-
-
{$request.requester.username} is ready to pay
+
+
{$request.requester.username} is ready to pay
diff --git a/src/routes/(app)/[username]/map/+page.server.js b/src/routes/(app)/[username]/map/+page.server.js
index 7936e88b..616d28f6 100644
--- a/src/routes/(app)/[username]/map/+page.server.js
+++ b/src/routes/(app)/[username]/map/+page.server.js
@@ -1,12 +1,12 @@
-import { get } from '$lib/utils';
+import { get } from "$lib/utils";
// export const prerender = true;
export let load = async () => {
- let data = { locations: [] };
+ let data = { locations: [] };
- try {
- data = await get('/locations');
- } catch (e) {}
+ try {
+ data = await get("/locations");
+ } catch (e) {}
- return data;
+ return data;
};
diff --git a/src/routes/(app)/[username]/map/+page.svelte b/src/routes/(app)/[username]/map/+page.svelte
index 99c822d3..a2ae657c 100644
--- a/src/routes/(app)/[username]/map/+page.svelte
+++ b/src/routes/(app)/[username]/map/+page.svelte
@@ -1,8 +1,8 @@
diff --git a/src/routes/(app)/[username]/messages/+page.server.js b/src/routes/(app)/[username]/messages/+page.server.js
index ec5c5eee..f0148be7 100644
--- a/src/routes/(app)/[username]/messages/+page.server.js
+++ b/src/routes/(app)/[username]/messages/+page.server.js
@@ -1,22 +1,25 @@
-import { get } from '$lib/utils';
+import { get } from "$lib/utils";
export async function load({ params, parent, url }) {
- let { user, subject } = await parent();
- let { since = 0 } = params;
+ let { user, subject } = await parent();
+ let { since = 0 } = params;
- let messages = [];
+ let messages = [];
- try {
- messages = await get(`/${user.pubkey}/${since}/messages`);
+ try {
+ messages = await get(`/${user.pubkey}/${since}/messages`);
- messages = messages
- .filter((m) => m.recipient?.id === subject.id || m.author?.id === subject.id)
- .sort((a, b) => a.created_at - b.created_at);
+ messages = messages
+ .filter(
+ (m) => m.recipient?.id === subject.id || m.author?.id === subject.id
+ )
+ .sort((a, b) => a.created_at - b.created_at);
- if (user.id === subject.id) messages = messages.filter((m) => m.recipient.id === m.author.id);
- } catch (e) {
- console.log(`failed to fetch nostr messages`, e);
- }
+ if (user.id === subject.id)
+ messages = messages.filter((m) => m.recipient.id === m.author.id);
+ } catch (e) {
+ console.log(`failed to fetch nostr messages`, e);
+ }
- return { messages, user };
+ return { messages, user };
}
diff --git a/src/routes/(app)/[username]/messages/+page.svelte b/src/routes/(app)/[username]/messages/+page.svelte
index cfa7f741..16b82679 100644
--- a/src/routes/(app)/[username]/messages/+page.svelte
+++ b/src/routes/(app)/[username]/messages/+page.svelte
@@ -1,171 +1,182 @@
-
-
-
+
+
+
diff --git a/src/routes/(app)/[username]/payments/[...page]/+page.server.js b/src/routes/(app)/[username]/payments/[...page]/+page.server.js
index a3b0ad6f..7a3bc179 100644
--- a/src/routes/(app)/[username]/payments/[...page]/+page.server.js
+++ b/src/routes/(app)/[username]/payments/[...page]/+page.server.js
@@ -1,26 +1,26 @@
-import { get, auth } from '$lib/utils';
+import { get, auth } from "$lib/utils";
let limit = 25;
export async function load({ cookies, depends, params, request }) {
- depends('app:payments');
+ depends("app:payments");
- let parts = params.page.split('/');
+ let parts = params.page.split("/");
- let start, end, page;
- if (parts.length === 1) [page] = parts;
- if (parts.length === 2) [start, page] = parts;
- if (parts.length === 3) [start, end, page] = parts;
- if (!parseInt(page)) page = 1;
+ let start, end, page;
+ if (parts.length === 1) [page] = parts;
+ if (parts.length === 2) [start, page] = parts;
+ if (parts.length === 3) [start, end, page] = parts;
+ if (!parseInt(page)) page = 1;
- let offset = (page - 1) * limit;
- if (!start) start = Date.now() / 1000 - 24 * 60 * 60;
+ let offset = (page - 1) * limit;
+ if (!start) start = Date.now() / 1000 - 24 * 60 * 60;
- let url = `/payments?start=${start * 1000}&limit=${limit}&offset=${offset}`;
- if (end) url += `&end=${end * 1000}`;
+ let url = `/payments?start=${start * 1000}&limit=${limit}&offset=${offset}`;
+ if (end) url += `&end=${end * 1000}`;
- let { count, payments, totals } = await get(url, auth(cookies));
- let pages = new Array(Math.ceil(count / limit));
+ let { count, payments, totals } = await get(url, auth(cookies));
+ let pages = new Array(Math.ceil(count / limit));
- return { payments, page, pages, start, end, totals };
+ return { payments, page, pages, start, end, totals };
}
diff --git a/src/routes/(app)/[username]/payments/[...page]/+page.svelte b/src/routes/(app)/[username]/payments/[...page]/+page.svelte
index 2ea225ad..e61e156c 100644
--- a/src/routes/(app)/[username]/payments/[...page]/+page.svelte
+++ b/src/routes/(app)/[username]/payments/[...page]/+page.svelte
@@ -1,249 +1,281 @@
-
- {$t('payments.header')}
-
-
-
-
-
- {#each presets as { start, end, title }, i}
-
-
-
- {/each}
-
-
-
-
- {#if pages.length > 1}
- {#each pages as _, i}
-
-
- {i + 1}
-
-
- {/each}
- {/if}
-
-
-
-
-
- {$t('payments.total')}
- {$t('payments.presentValue')}
- {$t('payments.gainLoss')}
-
- {#each Object.keys(totals) as c}
- {@const total = totals[c]['fiat']}
- {@const pv = (totals[c]['sats'] * rates[c]) / sats}
- {@const gain = (pv * 100) / total - 100}
- {f(total, c)}
- {f(pv, c)}
- {Math.abs(gain).toFixed(2)}%
- {/each}
-
-
-
-
+
+ {$t("payments.header")}
+
+
+
+
+
+ {#each presets as { start, end, title }, i}
+
+
+
+ {/each}
+
+
+
+
+ {#if pages.length > 1}
+ {#each pages as _, i}
+
+
+ {i + 1}
+
+
+ {/each}
+ {/if}
+
+
+
+
+
+ {$t("payments.total")}
+ {$t("payments.presentValue")}
+ {$t("payments.gainLoss")}
+
+ {#each Object.keys(totals) as c}
+ {@const total = totals[c]["fiat"]}
+ {@const pv = (totals[c]["sats"] * rates[c]) / sats}
+ {@const gain = (pv * 100) / total - 100}
+ {f(total, c)}
+ {f(pv, c)}
+ {Math.abs(gain).toFixed(2)}%
+ {/each}
+
+
+
+
diff --git a/src/routes/(app)/[username]/payments/[...page]/+server.js b/src/routes/(app)/[username]/payments/[...page]/+server.js
index c7c5222d..a81faaf3 100644
--- a/src/routes/(app)/[username]/payments/[...page]/+server.js
+++ b/src/routes/(app)/[username]/payments/[...page]/+server.js
@@ -1,18 +1,18 @@
-import { get, auth } from '$lib/utils';
-import { json } from '@sveltejs/kit';
+import { get, auth } from "$lib/utils";
+import { json } from "@sveltejs/kit";
export async function GET({ cookies, params }) {
- let parts = params.page.split('/');
+ let parts = params.page.split("/");
- let start, end;
- if (parts.length === 1) [start] = parts;
- if (parts.length === 2) [start, end] = parts;
+ let start, end;
+ if (parts.length === 1) [start] = parts;
+ if (parts.length === 2) [start, end] = parts;
- if (!start) start = Date.now() / 1000 - 24 * 60 * 60;
+ if (!start) start = Date.now() / 1000 - 24 * 60 * 60;
- let url = `/payments?start=${start * 1000}`;
- if (end) url += `&end=${end * 1000}`;
+ let url = `/payments?start=${start * 1000}`;
+ if (end) url += `&end=${end * 1000}`;
- let { payments } = await get(url, auth(cookies));
- return json({ payments });
+ let { payments } = await get(url, auth(cookies));
+ return json({ payments });
}
diff --git a/src/routes/(app)/[username]/receive/[...param]/+page.server.js b/src/routes/(app)/[username]/receive/[...param]/+page.server.js
index cdd89c8b..a6e59175 100644
--- a/src/routes/(app)/[username]/receive/[...param]/+page.server.js
+++ b/src/routes/(app)/[username]/receive/[...param]/+page.server.js
@@ -1,15 +1,15 @@
-import { auth, get } from '$lib/utils';
-import invoice from '$lib/invoice';
+import { auth, get } from "$lib/utils";
+import invoice from "$lib/invoice";
export let load = async ({ cookies, params }) => {
- let id = params.param;
+ let id = params.param;
- let request;
- if (id) ({ request } = await get(`/request/${id}`, auth(cookies)));
+ let request;
+ if (id) ({ request } = await get(`/request/${id}`, auth(cookies)));
- return { ...params, request };
+ return { ...params, request };
};
export const actions = {
- default: invoice
+ default: invoice,
};
diff --git a/src/routes/(app)/[username]/receive/[...param]/+page.svelte b/src/routes/(app)/[username]/receive/[...param]/+page.svelte
index d7001079..085a6f6d 100644
--- a/src/routes/(app)/[username]/receive/[...param]/+page.svelte
+++ b/src/routes/(app)/[username]/receive/[...param]/+page.svelte
@@ -1,50 +1,54 @@
-
diff --git a/src/routes/(app)/[username]/request/[id]/+page.server.js b/src/routes/(app)/[username]/request/[id]/+page.server.js
index 89792ab8..09cce465 100644
--- a/src/routes/(app)/[username]/request/[id]/+page.server.js
+++ b/src/routes/(app)/[username]/request/[id]/+page.server.js
@@ -1,25 +1,26 @@
-import { auth, get } from '$lib/utils';
-import { redirect } from '@sveltejs/kit';
+import { auth, get } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export let load = async ({ cookies, depends, params, parent }) => {
- depends('app:invoice');
+ depends("app:invoice");
- let { user } = await parent();
- if (!user) throw redirect(307, '/login');
+ let { user } = await parent();
+ if (!user) throw redirect(307, "/login");
- let { request } = await get(`/request/${params.id}`, auth(cookies));
- let { invoice } = request;
+ let { request } = await get(`/request/${params.id}`, auth(cookies));
+ let { invoice } = request;
- if (invoice) {
- let { amount, received, id } = invoice;
- if (
- request.recipient.username === user.username &&
- ((received && !amount) || received >= amount)
- )
- throw redirect(307, `/${user.username}/invoice/${id}/paid`);
+ if (invoice) {
+ let { amount, received, id } = invoice;
+ if (
+ request.recipient.username === user.username &&
+ ((received && !amount) || received >= amount)
+ )
+ throw redirect(307, `/${user.username}/invoice/${id}/paid`);
- if (request.requester.username === user.username) throw redirect(307, `/send/${id}`);
- }
+ if (request.requester.username === user.username)
+ throw redirect(307, `/send/${id}`);
+ }
- return { request };
+ return { request };
};
diff --git a/src/routes/(app)/[username]/request/[id]/+page.svelte b/src/routes/(app)/[username]/request/[id]/+page.svelte
index bdd14f4a..f9672c6f 100644
--- a/src/routes/(app)/[username]/request/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/request/[id]/+page.svelte
@@ -1,52 +1,57 @@
-
- {#if request.recipient_id === user.id}
-
- {$t('payments.sentInvoiceTo')}
-
-
-
-
{request.requester.username}
-
-
-
- {f(fiat, currency)}
-
- {sat(amount)}
-
- {:else}
-
-
-
-
- {$t('payments.sentRequestTo')}
-
- {/if}
-
+
+ {#if request.recipient_id === user.id}
+
+ {$t("payments.sentInvoiceTo")}
+
+
+
+
{request.requester.username}
+
+
+
+ {f(fiat, currency)}
+
+ {sat(amount)}
+
+ {:else}
+
+
+
+
+ {$t("payments.sentRequestTo")}
+
+ {/if}
+
-
+
-
{$t('payments.tapAnywhere')}
+
+ {$t("payments.tapAnywhere")}
+
diff --git a/src/routes/(app)/[username]/reset/+server.js b/src/routes/(app)/[username]/reset/+server.js
index 52fff367..f7dba02c 100644
--- a/src/routes/(app)/[username]/reset/+server.js
+++ b/src/routes/(app)/[username]/reset/+server.js
@@ -1,10 +1,10 @@
-import { json } from '@sveltejs/kit';
-import { auth, post } from '$lib/utils';
+import { json } from "@sveltejs/kit";
+import { auth, post } from "$lib/utils";
export async function POST({ cookies, request, params }) {
- let { username } = params;
- let r = await request.json();
- let { password } = r;
- let result = await post('/reset', { password, username }, auth(cookies));
- return json(result);
+ let { username } = params;
+ let r = await request.json();
+ let { password } = r;
+ let result = await post("/reset", { password, username }, auth(cookies));
+ return json(result);
}
diff --git a/src/routes/(app)/[username]/settings/[...tab]/+page.server.js b/src/routes/(app)/[username]/settings/[...tab]/+page.server.js
index b0c849d0..156b6062 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/+page.server.js
+++ b/src/routes/(app)/[username]/settings/[...tab]/+page.server.js
@@ -1,23 +1,24 @@
-import { fail, redirect } from '@sveltejs/kit';
-import { fd, auth, get, post } from '$lib/utils';
+import { fail, redirect } from "@sveltejs/kit";
+import { fd, auth, get, post } from "$lib/utils";
export function load({ params, url }) {
- if (url.pathname.endsWith('settings')) throw redirect(307, url.pathname + '/account');
- return params;
+ if (url.pathname.endsWith("settings"))
+ throw redirect(307, url.pathname + "/account");
+ return params;
}
export const actions = {
- default: async ({ cookies, request }) => {
- let form = await fd(request);
- if (form.prompt) form.prompt = form.prompt === 'on';
- let user = { ...(await get('/me', auth(cookies))), ...form };
+ default: async ({ cookies, request }) => {
+ let form = await fd(request);
+ if (form.prompt) form.prompt = form.prompt === "on";
+ let user = { ...(await get("/me", auth(cookies))), ...form };
- try {
- ({ user } = await post(`/user`, user, auth(cookies)));
- } catch (e) {
- return fail(400, { message: e.message });
- }
+ try {
+ ({ user } = await post(`/user`, user, auth(cookies)));
+ } catch (e) {
+ return fail(400, { message: e.message });
+ }
- return { user, success: true };
- }
+ return { user, success: true };
+ },
};
diff --git a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte
index 933fa1f6..92772f43 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte
@@ -1,206 +1,218 @@
{#if user.haspin && $pin?.length !== 6}
-
+
{/if}
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte
index 2a06b31d..64ab669f 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte
@@ -1,183 +1,193 @@
-
-
-
-
+
+
+
+
-
-
+
+
-
{$t('user.settings.profileImage')}
-
-
- {#if $avatar || user.profile}
-
-

-
- {:else}
-
-
-
- {/if}
-
-
-
- handleFile(e, 'profile')}
- />
-
-
-
- {#if tooLarge['avatar']}
-
Max file size 10MB
- {/if}
+
{$t("user.settings.profileImage")}
+
+
+ {#if $avatar || user.profile}
+
+

+
+ {:else}
+
+
+
+ {/if}
+
+
+
+ handleFile(e, "profile")}
+ />
+
+
+
+ {#if tooLarge["avatar"]}
+
Max file size 10MB
+ {/if}
-
- {$t('user.settings.bannerImage')}
-
-
- {#if $banner || user.banner}
-

- {:else}
-
- {/if}
-
-
-
handleFile(e, 'banner')}
- />
-
- {#if tooLarge['banner']}
-
Max file size 10MB
- {/if}
+
+ {$t("user.settings.bannerImage")}
+
+
+ {#if $banner || user.banner}
+

+ {:else}
+
+ {/if}
+
+
+
handleFile(e, "banner")}
+ />
+
+ {#if tooLarge["banner"]}
+
Max file size 10MB
+ {/if}
-
-
+
+
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte b/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte
index 9100401a..94a35493 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_pos.svelte
@@ -1,61 +1,71 @@
-
-
+
+
-
-
+
+
-
- {$t('user.settings.tipPrompt')}
-
-
-
- {$t('user.settings.tipPromptDescription')}
-
+
+ {$t("user.settings.tipPrompt")}
+
+
+
+ {$t("user.settings.tipPromptDescription")}
+
-
- {$t('user.settings.publishNip5')}
-
-
-
- {$t('user.settings.nip5a')} {user.username}@{$page.url.host} {$t('user.settings.nip5b')}
-
+
+ {$t("user.settings.publishNip5")}
+
+
+
+ {$t("user.settings.nip5a")}
+ {user.username}@{$page.url.host}
+ {$t("user.settings.nip5b")}
+
-
+
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
index 3cd0480e..f8c14e7b 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_security.svelte
@@ -1,290 +1,317 @@
-
+
-
- {#if revealPassword}
-
- {:else}
-
- {/if}
-
+
+ {#if revealPassword}
+
+ {:else}
+
+ {/if}
+
-
{verifying ? $t('user.settings.verifyPIN') : $t('user.settings.securityPIN')}
-
- {$t('user.settings.securityPINDescription')}
-
- {#if verifying}
-
- {:else if settingPin}
-
- {:else}
-
- {/if}
+
{verifying
+ ? $t("user.settings.verifyPIN")
+ : $t("user.settings.securityPIN")}
+
+ {$t("user.settings.securityPINDescription")}
+
+ {#if verifying}
+
+ {:else if settingPin}
+
+ {:else}
+
+ {/if}
{#if user.haspin}
-
-
-
- {$t('user.settings.autoLockDescription')}
-
-
-
+
+
+
+ {$t("user.settings.autoLockDescription")}
+
+
+
{/if}
-
{$t('user.settings.twofa')}
-
- {$t('user.settings.twofaDescription')}
-
-
- {#if setting2fa}
-
-
-
-
-
- {$t('user.settings.accountId')}
- {otp.secret}
-
-
-
- {:else if user.twofa}
-
- {:else}
-
- {/if}
-
- {#if confirming2fa || disabling2fa}
-
- {/if}
+
{$t("user.settings.twofa")}
+
+ {$t("user.settings.twofaDescription")}
+
+
+ {#if setting2fa}
+
+
+
+
+
+ {$t("user.settings.accountId")}
+ {otp.secret}
+
+
+
+ {:else if user.twofa}
+
+ {:else}
+
+ {/if}
+
+ {#if confirming2fa || disabling2fa}
+
+ {/if}
-
-
-
- {$t('user.settings.seedDescription')}
-
-
-
-
- {#if revealSeed}
-
- {mnemonic}
-
-
-
- {/if}
+
+
+
+ {$t("user.settings.seedDescription")}
+
+
+
+
+ {#if revealSeed}
+
+ {mnemonic}
+
+
+
+ {/if}
-
-
-
- {$t('user.settings.nostrDescription')}
-
-
-
-
- {#if revealNsec}
-
- {nsec}
-
-
-
- {/if}
+
+
+
+ {$t("user.settings.nostrDescription")}
+
+
+
+
+ {#if revealNsec}
+
+ {nsec}
+
+
+
+ {/if}
diff --git a/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte b/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte
index aeecc4d7..3e2a8dae 100644
--- a/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte
+++ b/src/routes/(app)/[username]/settings/[...tab]/_shopify.svelte
@@ -1,69 +1,92 @@
-
-
Coinos can automatically mark orders as Paid if you provide an API token.
-
-
-
- Create a new app in Apps > App Development
-
+
+
+ Coinos can automatically mark orders as Paid if you provide an API token.
+
+
+
+ Create a new app in Apps > App Development
+
-
- Edit the Admin API scopes to enable write_orders permission then install the
- app into your store and copy the Admin API access token here.
-
+
+ Edit the Admin API scopes to enable write_orders permission then install the app into your store and copy the Admin API access
+ token here.
+
diff --git a/src/routes/(app)/[username]/shopify.js/+server.js b/src/routes/(app)/[username]/shopify.js/+server.js
index 7b5c9d41..c93ac729 100644
--- a/src/routes/(app)/[username]/shopify.js/+server.js
+++ b/src/routes/(app)/[username]/shopify.js/+server.js
@@ -1,7 +1,7 @@
export async function GET({ cookies, params, url }) {
- let { username } = params;
+ let { username } = params;
- let js = `
+ let js = `
var qrcode=function(r,_){var t=r,e=QRErrorCorrectLevel[_],n=null,$=0,o=null,a=[],f={},i=function(r,_){n=function(r){for(var _=Array(r),t=0;t
=7&&h(r),null==o&&(o=x(t,e,a)),s(o,_)},u=function(r,_){for(var t=-1;t<=7;t+=1)if(!(r+t<=-1)&&!($<=r+t))for(var e=-1;e<=7;e+=1)_+e<=-1||$<=_+e||(0<=t&&t<=6&&(0==e||6==e)||0<=e&&e<=6&&(0==t||6==t)||2<=t&&t<=4&&2<=e&&e<=4?n[r+t][_+e]=!0:n[r+t][_+e]=!1)},c=function(){for(var r=0,_=0,t=0;t<8;t+=1){i(!0,t);var e=QRUtil.getLostPoint(f);(0==t||r>e)&&(r=e,_=t)}return _},g=function(){for(var r=8;r<$-8;r+=1)null==n[r][6]&&(n[r][6]=r%2==0);for(var _=8;_<$-8;_+=1)null==n[6][_]&&(n[6][_]=_%2==0)},l=function(){for(var r=QRUtil.getPatternPosition(t),_=0;_>e&1)==1;n[Math.floor(e/3)][e%3+$-8-3]=o}for(var e=0;e<18;e+=1){var o=!r&&(_>>e&1)==1;n[e%3+$-8-3][Math.floor(e/3)]=o}},v=function(r,_){for(var t=QRUtil.getBCHTypeInfo(e<<3|_),o=0;o<15;o+=1){var a=!r&&(t>>o&1)==1;o<6?n[o][8]=a:o<8?n[o+1][8]=a:n[$-15+o][8]=a}for(var o=0;o<15;o+=1){var a=!r&&(t>>o&1)==1;o<8?n[8][$-o-1]=a:o<9?n[8][15-o-1+1]=a:n[8][15-o-1]=a}n[$-8][8]=!r},s=function(r,_){for(var t=-1,e=$-1,o=7,a=0,f=QRUtil.getMaskFunction(_),i=$-1;i>0;i-=2)for(6==i&&(i-=1);;){for(var u=0;u<2;u+=1)if(null==n[e][i-u]){var c=!1;a>>o&1)==1),f(e,i-u)&&(c=!c),n[e][i-u]=c,-1==(o-=1)&&(a+=1,o=7)}if((e+=t)<0||$<=e){e-=t,t=-t;break}}},d=function(r,_){for(var t=0,e=0,n=0,$=Array(_.length),o=Array(_.length),a=0;a<_.length;a+=1){var f=_[a].dataCount,i=_[a].totalCount-f;e=Math.max(e,f),n=Math.max(n,i),$[a]=Array(f);for(var u=0;u<$[a].length;u+=1)$[a][u]=255&r.getBuffer()[u+t];t+=f;var c=QRUtil.getErrorCorrectPolynomial(i),g=qrPolynomial($[a],c.getLength()-1).mod(c);o[a]=Array(c.getLength()-1);for(var u=0;u=0?g.getAt(l):0}}for(var h=0,u=0;u<_.length;u+=1)h+=_[u].totalCount;for(var v=Array(h),s=0,u=0;u8*a)throw Error("code length overflow. ("+n.getLengthInBits()+">"+8*a+")");for(n.getLengthInBits()+4<=8*a&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*a)&&(n.put(236,8),!(n.getLengthInBits()>=8*a));){;n.put(17,8)}return d(n,e)};return f.addData=function(r){var _=qr8BitByte(r);a.push(_),o=null},f.isDark=function(r,_){if(r<0||$<=r||_<0||$<=_)throw Error(r+","+_);return n[r][_]},f.getModuleCount=function(){return $},f.make=function(){i(!1,c())},f.createTableTag=function(r,_){r=r||2;var t="";t+='',t+="";for(var e=0;e";for(var n=0;n';t+=""}return t+="",t+="
"},f.createImgTag=function(r,_,t){r=r||2;var e=_=void 0===_?4*r:_,n=f.getModuleCount()*r+_;return createImgTag(t,t,function(_,t){if(!(e<=_)||!(_>>8),_.push(255&$)):_.push(63)}}return _}};var QRMode={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},QRErrorCorrectLevel={L:1,M:0,Q:3,H:2},QRMaskPattern={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},QRUtil=function(){var r=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],_={},t=function(r){for(var _=0;0!=r;)_+=1,r>>>=1;return _};return _.getBCHTypeInfo=function(r){for(var _=r<<10;t(_)-t(1335)>=0;)_^=1335<=0;)_^=7973<5&&(t+=3+$-5)}for(var e=0;e<_-1;e+=1)for(var n=0;n<_-1;n+=1){var i=0;r.isDark(e,n)&&(i+=1),r.isDark(e+1,n)&&(i+=1),r.isDark(e,n+1)&&(i+=1),r.isDark(e+1,n+1)&&(i+=1),(0==i||4==i)&&(t+=3)}for(var e=0;e<_;e+=1)for(var n=0;n<_-6;n+=1)r.isDark(e,n)&&!r.isDark(e,n+1)&&r.isDark(e,n+2)&&r.isDark(e,n+3)&&r.isDark(e,n+4)&&!r.isDark(e,n+5)&&r.isDark(e,n+6)&&(t+=40);for(var n=0;n<_;n+=1)for(var e=0;e<_-6;e+=1)r.isDark(e,n)&&!r.isDark(e+1,n)&&r.isDark(e+2,n)&&r.isDark(e+3,n)&&r.isDark(e+4,n)&&!r.isDark(e+5,n)&&r.isDark(e+6,n)&&(t+=40);for(var u=0,n=0;n<_;n+=1)for(var e=0;e<_;e+=1)r.isDark(e,n)&&(u+=1);return t+10*(Math.abs(100*u/_/_-50)/5)},_}(),QRMath=function(){for(var r=Array(256),_=Array(256),t=0;t<8;t+=1)r[t]=1<=256;)_-=255;return r[_]},e}();function qrPolynomial(r,_){if(void 0===r.length)throw Error(r.length+"/"+_);var t=function(){for(var t=0;t>>7-_%8&1)==1},t.put=function(r,_){for(var e=0;e<_;e+=1)t.putBit((r>>>_-e-1&1)==1)},t.getLengthInBits=function(){return _},t.putBit=function(t){var e=Math.floor(_/8);r.length<=e&&r.push(0),t&&(r[e]|=128>>>_%8),_+=1},t},qr8BitByte=function(r){for(var _=QRMode.MODE_8BIT_BYTE,t=r,e=[],n={},$=0,o=t.length;$65536?(a[0]=240|(1835008&f)>>>18,a[1]=128|(258048&f)>>>12,a[2]=128|(4032&f)>>>6,a[3]=128|63&f):f>2048?(a[0]=224|(61440&f)>>>12,a[1]=128|(4032&f)>>>6,a[2]=128|63&f):f>128?(a[0]=192|(1984&f)>>>6,a[1]=128|63&f):a[0]=f,e.push(a)}(e=Array.prototype.concat.apply([],e)).length!=t.length&&(e.unshift(191),e.unshift(187),e.unshift(239));var i=e;return n.getMode=function(){return _},n.getLength=function(r){return i.length},n.write=function(r){for(var _=0;_>>8)},_.writeBytes=function(r,t,e){t=t||0,e=e||r.length;for(var n=0;n0&&(_+=","),_+=r[t];return _+"]"},_},base64EncodeOutputStream=function(){var r=0,_=0,t=0,e="",n={},$=function(r){e+=String.fromCharCode(o(63&r))},o=function(r){if(r<0);else if(r<26)return 65+r;else if(r<52)return 97+(r-26);else if(r<62)return 48+(r-52);else if(62==r)return 43;else if(63==r)return 47;throw Error("n:"+r)};return n.writeByte=function(e){for(r=r<<8|255&e,_+=8,t+=1;_>=6;)$(r>>>_-6),_-=6},n.flush=function(){if(_>0&&($(r<<6-_),r=0,_=0),t%3!=0)for(var n=3-t%3,o=0;o=_.length){if(0==n)return -1;throw Error("unexpected end of file./"+n)}var r=_.charAt(t);if(t+=1,"="==r)return n=0,-1;!r.match(/^\s$/)&&(e=e<<6|o(r.charCodeAt(0)),n+=6)}var $=e>>>n-8&255;return n-=8,$};var o=function(r){if(65<=r&&r<=90)return r-65;if(97<=r&&r<=122)return r-97+26;if(48<=r&&r<=57)return r-48+52;if(43==r)return 62;if(47==r)return 63;else throw Error("c:"+r)};return $},gifImage=function(r,_){var t=r,e=_,n=Array(r*_),$={};$.setPixel=function(r,_,e){n[_*t+r]=e},$.write=function(r){r.writeString("GIF87a"),r.writeShort(t),r.writeShort(e),r.writeByte(128),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(255),r.writeByte(255),r.writeByte(255),r.writeString(","),r.writeShort(0),r.writeShort(0),r.writeShort(t),r.writeShort(e),r.writeByte(0);var _=a(2);r.writeByte(2);for(var n=0;_.length-n>255;)r.writeByte(255),r.writeBytes(_,n,255),n+=255;r.writeByte(_.length-n),r.writeBytes(_,n,_.length-n),r.writeByte(0),r.writeString(";")};var o=function(r){var _=r,t=0,e=0,n={};return n.write=function(r,n){if(r>>>n!=0)throw Error("length over");for(;t+n>=8;)_.writeByte(255&(r<>>=8-t,e=0,t=0;e=r<0&&_.writeByte(e)},n},a=function(r){for(var _=1<$.size()&&($.size()==1<=40))return drawImg(r,{size:$,errorCorrectLevel:n,typeNumber:e+1});throw Error("Text too long to encode")}var a=parseInt($/t.getModuleCount()),f=parseInt(($-t.getModuleCount()*a)/2);return t.createImgTag(a,f,$)};
@@ -183,9 +183,9 @@ window.addEventListener('load', async () => {
});
`;
- return new Response(js, {
- headers: {
- 'Content-Type': 'application/javascript'
- }
- });
+ return new Response(js, {
+ headers: {
+ "Content-Type": "application/javascript",
+ },
+ });
}
diff --git a/src/routes/(app)/admin/+layout.server.js b/src/routes/(app)/admin/+layout.server.js
index 26449467..e49c6e40 100644
--- a/src/routes/(app)/admin/+layout.server.js
+++ b/src/routes/(app)/admin/+layout.server.js
@@ -1,11 +1,11 @@
-import { auth, get } from '$lib/utils';
-import { redirect } from '@sveltejs/kit';
+import { auth, get } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export async function load({ cookies, parent }) {
- let token = cookies.get('token');
- if (!token) throw redirect(307, '/login');
- let user = await get('/me', auth(cookies));
- if (!user) throw redirect(307, '/login');
+ let token = cookies.get("token");
+ if (!token) throw redirect(307, "/login");
+ let user = await get("/me", auth(cookies));
+ if (!user) throw redirect(307, "/login");
- return { user };
+ return { user };
}
diff --git a/src/routes/(app)/admin/+layout.svelte b/src/routes/(app)/admin/+layout.svelte
index d7561e32..33b64b6a 100644
--- a/src/routes/(app)/admin/+layout.svelte
+++ b/src/routes/(app)/admin/+layout.svelte
@@ -1,10 +1,10 @@
-
+
diff --git a/src/routes/(app)/admin/+page.server.js b/src/routes/(app)/admin/+page.server.js
index e19f894c..93931aa3 100644
--- a/src/routes/(app)/admin/+page.server.js
+++ b/src/routes/(app)/admin/+page.server.js
@@ -1,10 +1,12 @@
-import { auth, get } from '$lib/utils';
-import { redirect } from '@sveltejs/kit';
+import { auth, get } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export async function load({ cookies, parent }) {
- let { user } = await parent();
- if (!user) throw redirect(307, '/login');
+ let { user } = await parent();
+ if (!user) throw redirect(307, "/login");
- let users = (await get('/users', auth(cookies))).sort((a, b) => b.balance - a.balance);
- return { users };
+ let users = (await get("/users", auth(cookies))).sort(
+ (a, b) => b.balance - a.balance
+ );
+ return { users };
}
diff --git a/src/routes/(app)/admin/+page.svelte b/src/routes/(app)/admin/+page.svelte
index 529d2f77..c61a2e45 100644
--- a/src/routes/(app)/admin/+page.svelte
+++ b/src/routes/(app)/admin/+page.svelte
@@ -1,22 +1,22 @@
{#each users as { balance, username, expected }}
-
-
{username}
-
{balance}
-
{expected}
-
-
-
-
-
+
+
{username}
+
{balance}
+
{expected}
+
+
+
+
+
{/each}
diff --git a/src/routes/(app)/buy/+page.server.js b/src/routes/(app)/buy/+page.server.js
index fc7ae473..3d3265cb 100644
--- a/src/routes/(app)/buy/+page.server.js
+++ b/src/routes/(app)/buy/+page.server.js
@@ -1,27 +1,28 @@
-import { env } from '$env/dynamic/private';
-import { error, fail, redirect } from '@sveltejs/kit';
-import { post, auth } from '$lib/utils';
-import { createTicket } from '$lib/ticket';
+import { env } from "$env/dynamic/private";
+import { error, fail, redirect } from "@sveltejs/kit";
+import { post, auth } from "$lib/utils";
+import { createTicket } from "$lib/ticket";
export const actions = {
- default: async ({ cookies, request }) => {
- let form = await request.formData();
+ default: async ({ cookies, request }) => {
+ let form = await request.formData();
- let amount = parseFloat(form.get('amount'));
- if (!amount || amount < 0 || amount > 500) return fail(400, { message: 'Invalid amount' });
+ let amount = parseFloat(form.get("amount"));
+ if (!amount || amount < 0 || amount > 500)
+ return fail(400, { message: "Invalid amount" });
- await post(
- '/buy',
- {
- amount: form.get('amount'),
- number: form.get('number').replace(/\s+/g, ''),
- month: form.get('expiry').slice(0, 2),
- year: form.get('expiry').slice(-2),
- cvc: form.get('cvc')
- },
- auth(cookies)
- );
+ await post(
+ "/buy",
+ {
+ amount: form.get("amount"),
+ number: form.get("number").replace(/\s+/g, ""),
+ month: form.get("expiry").slice(0, 2),
+ year: form.get("expiry").slice(-2),
+ cvc: form.get("cvc"),
+ },
+ auth(cookies)
+ );
- throw redirect(307, `/${form.get('username')}/payments`);
- }
+ throw redirect(307, `/${form.get("username")}/payments`);
+ },
};
diff --git a/src/routes/(app)/buy/+page.svelte b/src/routes/(app)/buy/+page.svelte
index 22e7e9ec..2f999555 100644
--- a/src/routes/(app)/buy/+page.svelte
+++ b/src/routes/(app)/buy/+page.svelte
@@ -1,131 +1,135 @@
-
+
-
-
-
-
Buy Bitcoin
-
-
Purchase up to $500 worth of Bitcoin
+
+
+
+
+ Buy Bitcoin
+
+
+
+ Purchase up to $500 worth of Bitcoin
+
- {#if form?.message}
-
- {form.message}
-
- {/if}
+ {#if form?.message}
+
+ {form.message}
+
+ {/if}
-
+
+
+
+
-
-
-
-
1
-

-
-
-
3% credit card fee applies
-
-
-
+
+
+
+
1
+

+
+
+
3% credit card fee applies
+
+
+
diff --git a/src/routes/(app)/disable2fa/+server.js b/src/routes/(app)/disable2fa/+server.js
index b2bb07ec..1e264398 100644
--- a/src/routes/(app)/disable2fa/+server.js
+++ b/src/routes/(app)/disable2fa/+server.js
@@ -1,13 +1,13 @@
-import { error, json } from '@sveltejs/kit';
-import { auth, post } from '$lib/utils';
+import { error, json } from "@sveltejs/kit";
+import { auth, post } from "$lib/utils";
export async function POST({ cookies, request }) {
- try {
- let body = await request.json();
- let res = await post('/disable2fa', body, auth(cookies));
+ try {
+ let body = await request.json();
+ let res = await post("/disable2fa", body, auth(cookies));
- return json(res);
- } catch (e) {
- throw error(500, 'Problem disabling 2fa');
- }
+ return json(res);
+ } catch (e) {
+ throw error(500, "Problem disabling 2fa");
+ }
}
diff --git a/src/routes/(app)/enable2fa/+server.js b/src/routes/(app)/enable2fa/+server.js
index 344850da..6917ae21 100644
--- a/src/routes/(app)/enable2fa/+server.js
+++ b/src/routes/(app)/enable2fa/+server.js
@@ -1,8 +1,8 @@
-import { auth, post } from '$lib/utils';
+import { auth, post } from "$lib/utils";
export async function POST({ cookies, request }) {
- let body = await request.json();
- let res = await post('/2fa', body, auth(cookies));
+ let body = await request.json();
+ let res = await post("/2fa", body, auth(cookies));
- return new Response(JSON.stringify(res));
+ return new Response(JSON.stringify(res));
}
diff --git a/src/routes/(app)/events/+server.js b/src/routes/(app)/events/+server.js
index decd43cb..95df0bc5 100644
--- a/src/routes/(app)/events/+server.js
+++ b/src/routes/(app)/events/+server.js
@@ -1,6 +1,6 @@
-import { auth, post } from '$lib/utils';
-import { json } from '@sveltejs/kit';
+import { auth, post } from "$lib/utils";
+import { json } from "@sveltejs/kit";
export async function POST({ cookies, request }) {
- return json(post('/event', await request.json(), auth(cookies)));
+ return json(post("/event", await request.json(), auth(cookies)));
}
diff --git a/src/routes/(app)/fund/[id]/+page.server.js b/src/routes/(app)/fund/[id]/+page.server.js
index 4194deed..6c5c943f 100644
--- a/src/routes/(app)/fund/[id]/+page.server.js
+++ b/src/routes/(app)/fund/[id]/+page.server.js
@@ -1,23 +1,23 @@
-import { error, redirect } from '@sveltejs/kit';
-import { auth, get, post } from '$lib/utils';
-import Qr from 'qrcode-base64';
+import { error, redirect } from "@sveltejs/kit";
+import { auth, get, post } from "$lib/utils";
+import Qr from "qrcode-base64";
export let load = async ({ params: { id }, url }) => {
- let { amount, payments } = await get(`/fund/${id}`);
+ let { amount, payments } = await get(`/fund/${id}`);
- let src = Qr.drawImg(url.href, { size: 300 });
- return { amount, payments, src };
+ let src = Qr.drawImg(url.href, { size: 300 });
+ return { amount, payments, src };
};
export const actions = {
- default: async ({ cookies, locals, params, request }) => {
- let { user } = locals;
+ default: async ({ cookies, locals, params, request }) => {
+ let { user } = locals;
- if (user) {
- await post('/redeem', params, auth(cookies));
- throw redirect(307, `/${user.username}/payments`);
- }
+ if (user) {
+ await post("/redeem", params, auth(cookies));
+ throw redirect(307, `/${user.username}/payments`);
+ }
- throw redirect(307, '/register');
- }
+ throw redirect(307, "/register");
+ },
};
diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte
index d2d3079c..117a4b42 100644
--- a/src/routes/(app)/fund/[id]/+page.svelte
+++ b/src/routes/(app)/fund/[id]/+page.svelte
@@ -1,138 +1,146 @@
diff --git a/src/routes/(app)/fund/[id]/sweep/+page.server.js b/src/routes/(app)/fund/[id]/sweep/+page.server.js
index 9fd244a3..05fb18b6 100644
--- a/src/routes/(app)/fund/[id]/sweep/+page.server.js
+++ b/src/routes/(app)/fund/[id]/sweep/+page.server.js
@@ -1,14 +1,13 @@
-import { get, auth, post } from '$lib/utils';
-import { redirect } from '@sveltejs/kit';
+import { get, auth, post } from "$lib/utils";
+import { redirect } from "@sveltejs/kit";
export async function load({ cookies, params, parent }) {
- let { user } = await parent();
- let { id } = params;
- let { amount } = await get(`/fund/${id}`);
-
+ let { user } = await parent();
+ let { id } = params;
+ let { amount } = await get(`/fund/${id}`);
if (!amount) throw redirect(307, `/fund/${id}`);
- if (!user) throw redirect(307, `/register?redirect=/fund/${id}/sweep`);
- await post('/take', { amount, id }, auth(cookies));
- return { amount, id };
+ if (!user) throw redirect(307, `/register?redirect=/fund/${id}/sweep`);
+ await post("/take", { amount, id }, auth(cookies));
+ return { amount, id };
}
diff --git a/src/routes/(app)/fund/[id]/sweep/+page.svelte b/src/routes/(app)/fund/[id]/sweep/+page.svelte
index 64bed4dd..bbd7013f 100644
--- a/src/routes/(app)/fund/[id]/sweep/+page.svelte
+++ b/src/routes/(app)/fund/[id]/sweep/+page.svelte
@@ -1,37 +1,41 @@
-
+
-
-
-
-
{$t('payments.fundsClaimed')}
-
- {f(fiat(amount, rate), currency)}
-
-
- ⚡️{s(amount)}
-
+
+
+
+
+ {$t("payments.fundsClaimed")}
+
+
+ {f(fiat(amount, rate), currency)}
+
+
+ ⚡️{s(amount)}
+
-
+
-{$t('payments.tapAnywhere')}
+
+ {$t("payments.tapAnywhere")}
+
diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.server.js b/src/routes/(app)/fund/[id]/withdraw/+page.server.js
index 476149f2..6fb08f61 100644
--- a/src/routes/(app)/fund/[id]/withdraw/+page.server.js
+++ b/src/routes/(app)/fund/[id]/withdraw/+page.server.js
@@ -1,20 +1,20 @@
-import { fail, json, redirect } from '@sveltejs/kit';
-import { fd, auth, post } from '$lib/utils';
+import { fail, json, redirect } from "@sveltejs/kit";
+import { fd, auth, post } from "$lib/utils";
export async function load({ parent }) {
- let { user } = await parent();
- if (!user) throw redirect(307, '/register');
+ let { user } = await parent();
+ if (!user) throw redirect(307, "/register");
}
export const actions = {
- default: async ({ cookies, request }) => {
- let body = await fd(request);
- try {
- await post('/take', body, auth(cookies));
- } catch (e) {
- return fail(400, { message: e.message });
- }
+ default: async ({ cookies, request }) => {
+ let body = await fd(request);
+ try {
+ await post("/take", body, auth(cookies));
+ } catch (e) {
+ return fail(400, { message: e.message });
+ }
- throw redirect(307, `/fund/${body.id}`);
- }
+ throw redirect(307, `/fund/${body.id}`);
+ },
};
diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.svelte b/src/routes/(app)/fund/[id]/withdraw/+page.svelte
index 9cad945a..6b2010b7 100644
--- a/src/routes/(app)/fund/[id]/withdraw/+page.svelte
+++ b/src/routes/(app)/fund/[id]/withdraw/+page.svelte
@@ -1,58 +1,58 @@
{#if form?.message}
-
- {form.message}
-
+
+ {form.message}
+
{/if}
-
-
-
+
+
+
diff --git a/src/routes/(app)/fund/[id]/withdraw/+server.js b/src/routes/(app)/fund/[id]/withdraw/+server.js
index 0f9a23f3..96d66413 100644
--- a/src/routes/(app)/fund/[id]/withdraw/+server.js
+++ b/src/routes/(app)/fund/[id]/withdraw/+server.js
@@ -1,6 +1,6 @@
-import { json } from '@sveltejs/kit';
-import { auth, post } from '$lib/utils';
+import { json } from "@sveltejs/kit";
+import { auth, post } from "$lib/utils";
export async function POST({ cookies, request }) {
- return json(await post('/take', await request.json(), auth(cookies)));
+ return json(await post("/take", await request.json(), auth(cookies)));
}
diff --git a/src/routes/(app)/launch/+page.server.js b/src/routes/(app)/launch/+page.server.js
index 2b44dfae..d11af500 100644
--- a/src/routes/(app)/launch/+page.server.js
+++ b/src/routes/(app)/launch/+page.server.js
@@ -1,6 +1,6 @@
-import { auth, get } from '$lib/utils';
+import { auth, get } from "$lib/utils";
export const load = async ({ parent }) => {
- let tickets = await get('/tickets');
- return { ...(await parent()), tickets };
+ let tickets = await get("/tickets");
+ return { ...(await parent()), tickets };
};
diff --git a/src/routes/(app)/launch/+page.svelte b/src/routes/(app)/launch/+page.svelte
index 3469f0bc..028274fa 100644
--- a/src/routes/(app)/launch/+page.svelte
+++ b/src/routes/(app)/launch/+page.svelte
@@ -1,103 +1,118 @@
-
-
+
-
-
-
-
-
- Launch Party!
-
+
+
+
+
+
+ Launch Party!
+
-
- Come join us at our launch party celebrating our new design and 10 years serving the
- Vancouver Bitcoin community!
-
+
+ Come join us at our launch party celebrating our new design and 10
+ years serving the Vancouver Bitcoin community!
+
-
-
-
-
When
-
6pm October 26
-
-
-
Where
-
The Loft Lounge
-
1184 Denman Street, #203
-
Vancouver, BC
-
-
+
+
+
+
When
+
6pm October 26
+
+
+
Where
+
The Loft Lounge
+
1184 Denman Street, #203
+
Vancouver, BC
+
+
-

-
+

+
-
- We'll introduce our new interface and then network and enjoy tasty food and drinks from The Loft!
-
+
+ We'll introduce our new interface and then network and enjoy tasty
+ food and drinks from The Loft!
+
-
- The Loft will be accepting Lightning payments at the event and going forward into the
- future as well! We're charging $6 for for an NFT ticket that gets you entry, appies, and
- the chance to win some swag and sats.
-
+
+ The Loft will be accepting Lightning payments at the event and going
+ forward into the future as well! We're charging $6 for for an NFT
+ ticket that gets you entry, appies, and the chance to win some swag
+ and sats.
+
-
-
-
-
+
+
+
+
diff --git a/src/routes/(app)/launch/purchase/+page.server.js b/src/routes/(app)/launch/purchase/+page.server.js
index a3043d9c..58669606 100644
--- a/src/routes/(app)/launch/purchase/+page.server.js
+++ b/src/routes/(app)/launch/purchase/+page.server.js
@@ -1,45 +1,49 @@
-import { auth, get, post } from '$lib/utils';
-import tickets from '$lib/tickets';
-import { redirect } from '@sveltejs/kit';
-import { env } from '$env/dynamic/private';
-import { invalidateAll } from '$app/navigation';
-import { browser } from '$app/environment';
-import { createTicket } from '$lib/ticket';
+import { auth, get, post } from "$lib/utils";
+import tickets from "$lib/tickets";
+import { redirect } from "@sveltejs/kit";
+import { env } from "$env/dynamic/private";
+import { invalidateAll } from "$app/navigation";
+import { browser } from "$app/environment";
+import { createTicket } from "$lib/ticket";
export const load = async ({ parent }) => {
- let tickets = await get('/tickets');
- let { user } = await parent();
- let hasTicket = !!user?.accounts.find((a) => tickets.includes(a.asset));
- if (hasTicket) throw redirect(307, '/launch/ticket');
- return { tickets };
+ let tickets = await get("/tickets");
+ let { user } = await parent();
+ let hasTicket = !!user?.accounts.find((a) => tickets.includes(a.asset));
+ if (hasTicket) throw redirect(307, "/launch/ticket");
+ return { tickets };
};
export const actions = {
- internal: async ({ cookies, request }) => {
- let form = await request.formData();
- let asset = await createTicket(cookies, form.get('username'));
- await post('/payments', { amount: 22000, username: 'launch' }, auth(cookies));
+ internal: async ({ cookies, request }) => {
+ let form = await request.formData();
+ let asset = await createTicket(cookies, form.get("username"));
+ await post(
+ "/payments",
+ { amount: 22000, username: "launch" },
+ auth(cookies)
+ );
- throw redirect(307, `/launch/thanks/${asset}`);
- },
+ throw redirect(307, `/launch/thanks/${asset}`);
+ },
- lightning: async ({ cookies, request }) => {
- let form = await request.formData();
+ lightning: async ({ cookies, request }) => {
+ let form = await request.formData();
- let rates = await get('/rates');
+ let rates = await get("/rates");
- let invoice = {
- amount: 22000,
- memo: 'launch',
- type: 'lightning',
- prompt: false,
- rate: rates[form.get('currency')]
- };
+ let invoice = {
+ amount: 22000,
+ memo: "launch",
+ type: "lightning",
+ prompt: false,
+ rate: rates[form.get("currency")],
+ };
- let user = { username: form.get('username') };
+ let user = { username: form.get("username") };
- let { id } = await post('/invoice', { invoice, user }, auth(cookies));
+ let { id } = await post("/invoice", { invoice, user }, auth(cookies));
- throw redirect(307, `/${user.username}/invoice/${id}`);
- }
+ throw redirect(307, `/${user.username}/invoice/${id}`);
+ },
};
diff --git a/src/routes/(app)/launch/purchase/+page.svelte b/src/routes/(app)/launch/purchase/+page.svelte
index fbaa58c0..49a51973 100644
--- a/src/routes/(app)/launch/purchase/+page.svelte
+++ b/src/routes/(app)/launch/purchase/+page.svelte
@@ -1,66 +1,74 @@
-
-
- Purchase Ticket
-
+
+
+ Purchase Ticket
+
-

+

- {#if balance >= amount}
-
- {:else}
-
- Payment Options
-
+
+
+
+
+ {:else}
+
+ Payment Options
+
-
-
+
- {/if}
-
+
+
+
+
+ {/if}
+
diff --git a/src/routes/(app)/launch/purchase/card/+page.server.js b/src/routes/(app)/launch/purchase/card/+page.server.js
index 1f564f78..bca601d3 100644
--- a/src/routes/(app)/launch/purchase/card/+page.server.js
+++ b/src/routes/(app)/launch/purchase/card/+page.server.js
@@ -1,44 +1,52 @@
-import { env } from '$env/dynamic/private';
-import { error, redirect } from '@sveltejs/kit';
-import { post, auth } from '$lib/utils';
-import { createTicket } from '$lib/ticket';
+import { env } from "$env/dynamic/private";
+import { error, redirect } from "@sveltejs/kit";
+import { post, auth } from "$lib/utils";
+import { createTicket } from "$lib/ticket";
-let stripe = 'https://api.stripe.com/v1';
+let stripe = "https://api.stripe.com/v1";
export const actions = {
- default: async ({ cookies, request }) => {
- let form = await request.formData();
-
- let headers = new Headers();
- headers.set('Authorization', 'Basic ' + new Buffer(env.STRIPE + ':').toString('base64'));
-
- let body = new URLSearchParams({
- 'card[number]': form.get('number').replace(/\s+/g, ''),
- 'card[exp_month]': form.get('expiry').slice(0, 2),
- 'card[exp_year]': form.get('expiry').slice(-2),
- 'card[cvc]': form.get('cvc')
- });
-
- let method = 'POST';
-
- let { id: source } = await fetch(`${stripe}/tokens`, { body, headers, method }).then((r) =>
- r.json()
- );
-
- body = new URLSearchParams({
- amount: 600,
- currency: 'cad',
- source,
- description: 'launch ticket'
- });
-
- let { status } = await fetch(`${stripe}/charges`, { body, headers, method }).then((r) =>
- r.json()
- );
-
- if (status !== 'succeeded') throw error(500, { message: 'Card payment failed' });
- let asset = await createTicket(cookies, form.get('username'));
-
- throw redirect(307, `/launch/thanks/${asset}`);
- }
+ default: async ({ cookies, request }) => {
+ let form = await request.formData();
+
+ let headers = new Headers();
+ headers.set(
+ "Authorization",
+ "Basic " + new Buffer(env.STRIPE + ":").toString("base64")
+ );
+
+ let body = new URLSearchParams({
+ "card[number]": form.get("number").replace(/\s+/g, ""),
+ "card[exp_month]": form.get("expiry").slice(0, 2),
+ "card[exp_year]": form.get("expiry").slice(-2),
+ "card[cvc]": form.get("cvc"),
+ });
+
+ let method = "POST";
+
+ let { id: source } = await fetch(`${stripe}/tokens`, {
+ body,
+ headers,
+ method,
+ }).then((r) => r.json());
+
+ body = new URLSearchParams({
+ amount: 600,
+ currency: "cad",
+ source,
+ description: "launch ticket",
+ });
+
+ let { status } = await fetch(`${stripe}/charges`, {
+ body,
+ headers,
+ method,
+ }).then((r) => r.json());
+
+ if (status !== "succeeded")
+ throw error(500, { message: "Card payment failed" });
+ let asset = await createTicket(cookies, form.get("username"));
+
+ throw redirect(307, `/launch/thanks/${asset}`);
+ },
};
diff --git a/src/routes/(app)/launch/purchase/card/+page.svelte b/src/routes/(app)/launch/purchase/card/+page.svelte
index 05d09025..037a65b2 100644
--- a/src/routes/(app)/launch/purchase/card/+page.svelte
+++ b/src/routes/(app)/launch/purchase/card/+page.svelte
@@ -1,77 +1,77 @@
diff --git a/src/routes/(app)/launch/thanks/[asset]/+page.svelte b/src/routes/(app)/launch/thanks/[asset]/+page.svelte
index 43f10057..9b37002b 100644
--- a/src/routes/(app)/launch/thanks/[asset]/+page.svelte
+++ b/src/routes/(app)/launch/thanks/[asset]/+page.svelte
@@ -1,29 +1,31 @@
-
-
- Thanks!
-
+
+
+ Thanks!
+
-
We look forward to seeing you!
-
+
We look forward to seeing you!
+
-
+
diff --git a/src/routes/(app)/launch/ticket/+page.server.js b/src/routes/(app)/launch/ticket/+page.server.js
index 0362eb7d..7b51e679 100644
--- a/src/routes/(app)/launch/ticket/+page.server.js
+++ b/src/routes/(app)/launch/ticket/+page.server.js
@@ -1,9 +1,11 @@
-import { get } from '$lib/utils';
+import { get } from "$lib/utils";
export const load = async ({ cookies, parent }) => {
- let { user } = await parent();
- let tickets = await get('/tickets');
- let ticket = tickets.findIndex((t) => user.accounts.find((a) => a.asset === t));
- let asset = tickets[ticket];
- return { asset, ticket };
+ let { user } = await parent();
+ let tickets = await get("/tickets");
+ let ticket = tickets.findIndex((t) =>
+ user.accounts.find((a) => a.asset === t)
+ );
+ let asset = tickets[ticket];
+ return { asset, ticket };
};
diff --git a/src/routes/(app)/launch/ticket/+page.svelte b/src/routes/(app)/launch/ticket/+page.svelte
index 3879abcd..6b16e804 100644
--- a/src/routes/(app)/launch/ticket/+page.svelte
+++ b/src/routes/(app)/launch/ticket/+page.svelte
@@ -1,35 +1,37 @@
diff --git a/src/routes/(app)/ln/[lnurl]/+page.server.js b/src/routes/(app)/ln/[lnurl]/+page.server.js
index ddd714bf..332bc9e3 100644
--- a/src/routes/(app)/ln/[lnurl]/+page.server.js
+++ b/src/routes/(app)/ln/[lnurl]/+page.server.js
@@ -1,63 +1,75 @@
-import { fd, auth, get, post } from '$lib/utils';
-import { error, fail, redirect } from '@sveltejs/kit';
+import { fd, auth, get, post } from "$lib/utils";
+import { error, fail, redirect } from "@sveltejs/kit";
export async function load({ params, parent }) {
- let { user } = await parent();
- if (!user) throw redirect(307, '/register');
+ let { user } = await parent();
+ if (!user) throw redirect(307, "/register");
- let data;
+ let data;
- try {
- let { lnurl } = params;
- data = await get(`/decode?text=${lnurl}`);
- } catch (e) {
- throw error(500, e.message);
- }
+ try {
+ let { lnurl } = params;
+ data = await get(`/decode?text=${lnurl}`);
+ } catch (e) {
+ throw error(500, e.message);
+ }
- if (!['payRequest', 'withdrawRequest'].includes(data.tag))
- throw error(500, 'We only support LNURLp and LNURLw at this time');
+ if (!["payRequest", "withdrawRequest"].includes(data.tag))
+ throw error(500, "We only support LNURLp and LNURLw at this time");
- return data;
+ return data;
}
export const actions = {
- pay: async ({ cookies, fetch, request }) => {
- let error;
-
- let { callback, amount, minSendable, maxSendable } = await fd(request);
- minSendable = Math.round(minSendable / 1000);
- maxSendable = Math.round(maxSendable / 1000);
-
- if (amount < minSendable) error = `Amount must be at least ${minSendable} sats`;
- if (amount > maxSendable) error = `Amount must be at most ${maxSendable} sats`;
- if (error) return fail(400, { error });
-
- let { pr } = await fetch(`${callback}?amount=${amount * 1000}`).then((r) => r.json());
- throw redirect(307, `/send/lightning/${pr}`);
- },
-
- withdraw: async ({ cookies, fetch, request }) => {
- let error;
-
- let { callback, amount, username, currency, minWithdrawable, maxWithdrawable, k1 } = await fd(
- request
- );
-
- minWithdrawable = Math.round(minWithdrawable / 1000);
- maxWithdrawable = Math.round(maxWithdrawable / 1000);
-
- if (amount < minWithdrawable) error = `Amount must be at least ${minWithdrawable} sats`;
- if (amount > maxWithdrawable) error = `Amount must be at most ${maxWithdrawable} sats`;
- if (error) return fail(400, { error });
-
- let invoice = { amount, type: 'lightning' };
- let user = { username, currency };
-
- let { text: pr } = await post('/invoice', { invoice, user }, auth(cookies));
-
- let c = callback.includes('?') ? '&' : '?';
- await fetch(`${callback}${c}k1=${k1}&pr=${pr}`).then((r) => r.json());
-
- throw redirect(307, `/ln/withdrawal/sent`);
- }
+ pay: async ({ cookies, fetch, request }) => {
+ let error;
+
+ let { callback, amount, minSendable, maxSendable } = await fd(request);
+ minSendable = Math.round(minSendable / 1000);
+ maxSendable = Math.round(maxSendable / 1000);
+
+ if (amount < minSendable)
+ error = `Amount must be at least ${minSendable} sats`;
+ if (amount > maxSendable)
+ error = `Amount must be at most ${maxSendable} sats`;
+ if (error) return fail(400, { error });
+
+ let { pr } = await fetch(`${callback}?amount=${amount * 1000}`).then((r) =>
+ r.json()
+ );
+ throw redirect(307, `/send/lightning/${pr}`);
+ },
+
+ withdraw: async ({ cookies, fetch, request }) => {
+ let error;
+
+ let {
+ callback,
+ amount,
+ username,
+ currency,
+ minWithdrawable,
+ maxWithdrawable,
+ k1,
+ } = await fd(request);
+
+ minWithdrawable = Math.round(minWithdrawable / 1000);
+ maxWithdrawable = Math.round(maxWithdrawable / 1000);
+
+ if (amount < minWithdrawable)
+ error = `Amount must be at least ${minWithdrawable} sats`;
+ if (amount > maxWithdrawable)
+ error = `Amount must be at most ${maxWithdrawable} sats`;
+ if (error) return fail(400, { error });
+
+ let invoice = { amount, type: "lightning" };
+ let user = { username, currency };
+
+ let { text: pr } = await post("/invoice", { invoice, user }, auth(cookies));
+
+ let c = callback.includes("?") ? "&" : "?";
+ await fetch(`${callback}${c}k1=${k1}&pr=${pr}`).then((r) => r.json());
+
+ throw redirect(307, `/ln/withdrawal/sent`);
+ },
};
diff --git a/src/routes/(app)/ln/[lnurl]/+page.svelte b/src/routes/(app)/ln/[lnurl]/+page.svelte
index 7656c9fb..9b733f89 100644
--- a/src/routes/(app)/ln/[lnurl]/+page.svelte
+++ b/src/routes/(app)/ln/[lnurl]/+page.svelte
@@ -1,11 +1,11 @@
-{#if tag === 'payRequest'}
-
-{:else if tag === 'withdrawRequest'}
-
+{#if tag === "payRequest"}
+
+{:else if tag === "withdrawRequest"}
+
{/if}
diff --git a/src/routes/(app)/ln/withdrawal/sent/+page.svelte b/src/routes/(app)/ln/withdrawal/sent/+page.svelte
index 84e6a7e0..c527c017 100644
--- a/src/routes/(app)/ln/withdrawal/sent/+page.svelte
+++ b/src/routes/(app)/ln/withdrawal/sent/+page.svelte
@@ -1,23 +1,28 @@
-
-
-
-
Request Sent!
+
+
+
+
Request Sent!
-
+
-{$t('payments.tapAnywhere')}
+
+ {$t("payments.tapAnywhere")}
+
diff --git a/src/routes/(app)/locations/+server.js b/src/routes/(app)/locations/+server.js
index dd9e984b..8a046475 100644
--- a/src/routes/(app)/locations/+server.js
+++ b/src/routes/(app)/locations/+server.js
@@ -1,15 +1,15 @@
-import { get } from '$lib/utils';
-import { json } from '@sveltejs/kit';
+import { get } from "$lib/utils";
+import { json } from "@sveltejs/kit";
export async function GET({ fetch, setHeaders }) {
- let locations = [];
+ let locations = [];
- try {
- ({ locations } = await get('/locations'));
- setHeaders({ 'cache-control': 'public, max-age=600' });
- } catch (e) {
- console.log('failed to fetch locations');
- }
+ try {
+ ({ locations } = await get("/locations"));
+ setHeaders({ "cache-control": "public, max-age=600" });
+ } catch (e) {
+ console.log("failed to fetch locations");
+ }
- return json({ locations });
+ return json({ locations });
}
diff --git a/src/routes/(app)/login/+page.server.js b/src/routes/(app)/login/+page.server.js
index a9cf867b..6876c93d 100644
--- a/src/routes/(app)/login/+page.server.js
+++ b/src/routes/(app)/login/+page.server.js
@@ -1,25 +1,29 @@
-import { fail, redirect } from '@sveltejs/kit';
-import { login, fd } from '$lib/utils';
+import { fail, redirect } from "@sveltejs/kit";
+import { login, fd } from "$lib/utils";
export const load = async ({ parent }) => {
- let { user } = await parent();
- if (user?.pubkey) throw redirect(307, `/${user.username}`);
+ let { user } = await parent();
+ if (user?.pubkey) throw redirect(307, `/${user.username}`);
};
export const actions = {
- default: async ({ cookies, request }) => {
- let form = await fd(request);
- let { username, password, token, loginRedirect } = form;
- let user = { username, password, token };
+ default: async ({ cookies, request }) => {
+ let form = await fd(request);
+ let { username, password, token, loginRedirect } = form;
+ let user = { username, password, token };
- if (loginRedirect === 'undefined') loginRedirect = undefined;
+ if (loginRedirect === "undefined") loginRedirect = undefined;
- try {
- let r = await login(user, cookies, request.headers.get('cf-connecting-ip'));
- } catch (e) {
- return fail(400, { error: 'Login failed', message: e.message, ...form });
- }
+ try {
+ let r = await login(
+ user,
+ cookies,
+ request.headers.get("cf-connecting-ip")
+ );
+ } catch (e) {
+ return fail(400, { error: "Login failed", message: e.message, ...form });
+ }
- throw redirect(303, loginRedirect || `/${user.username}`);
- }
+ throw redirect(303, loginRedirect || `/${user.username}`);
+ },
};
diff --git a/src/routes/(app)/login/+page.svelte b/src/routes/(app)/login/+page.svelte
index 84ecc3ad..6190ae0d 100644
--- a/src/routes/(app)/login/+page.svelte
+++ b/src/routes/(app)/login/+page.svelte
@@ -1,16 +1,16 @@
diff --git a/src/routes/(app)/logout/+page.server.js b/src/routes/(app)/logout/+page.server.js
index 2dabc9d4..60750dfa 100644
--- a/src/routes/(app)/logout/+page.server.js
+++ b/src/routes/(app)/logout/+page.server.js
@@ -1,12 +1,12 @@
-import { redirect } from '@sveltejs/kit';
+import { redirect } from "@sveltejs/kit";
const opts = {
- expires: new Date(0),
- path: '/'
+ expires: new Date(0),
+ path: "/",
};
export async function load({ cookies }) {
- cookies.set('username', '', opts);
- cookies.set('token', '', opts);
- throw redirect(307, '/login');
+ cookies.set("username", "", opts);
+ cookies.set("token", "", opts);
+ throw redirect(307, "/login");
}
diff --git a/src/routes/(app)/otpsecret/+server.js b/src/routes/(app)/otpsecret/+server.js
index 7d5c1ad9..63d06849 100644
--- a/src/routes/(app)/otpsecret/+server.js
+++ b/src/routes/(app)/otpsecret/+server.js
@@ -1,15 +1,17 @@
-import { auth, post } from '$lib/utils';
-import Qr from 'qrcode-base64';
-import { error } from '@sveltejs/kit';
+import { auth, post } from "$lib/utils";
+import Qr from "qrcode-base64";
+import { error } from "@sveltejs/kit";
export async function POST({ cookies, request }) {
- try {
- let body = await request.json();
- let { username, secret } = await post('/otpsecret', body, auth(cookies));
- let uri = `otpauth://totp/coinos:${username}?secret=${secret}&period=30&digits=6&algorithm=SHA1&issuer=coinos`;
- return new Response(JSON.stringify({ secret, uri, qr: Qr.drawImg(uri, { size: 600 }) }));
- } catch (e) {
- if (e.message.includes('pin')) throw e;
- throw new error(500, 'Problem saving secret');
- }
+ try {
+ let body = await request.json();
+ let { username, secret } = await post("/otpsecret", body, auth(cookies));
+ let uri = `otpauth://totp/coinos:${username}?secret=${secret}&period=30&digits=6&algorithm=SHA1&issuer=coinos`;
+ return new Response(
+ JSON.stringify({ secret, uri, qr: Qr.drawImg(uri, { size: 600 }) })
+ );
+ } catch (e) {
+ if (e.message.includes("pin")) throw e;
+ throw new error(500, "Problem saving secret");
+ }
}
diff --git a/src/routes/(app)/password/+server.js b/src/routes/(app)/password/+server.js
index b4a81740..26ed3858 100644
--- a/src/routes/(app)/password/+server.js
+++ b/src/routes/(app)/password/+server.js
@@ -1,7 +1,7 @@
-import { json } from '@sveltejs/kit';
-import { auth, post } from '$lib/utils';
+import { json } from "@sveltejs/kit";
+import { auth, post } from "$lib/utils";
export async function POST({ cookies, request }) {
- let result = await post('/password', await request.json(), auth(cookies));
- return json(result);
+ let result = await post("/password", await request.json(), auth(cookies));
+ return json(result);
}
diff --git a/src/routes/(app)/payment/[id]/+page.server.js b/src/routes/(app)/payment/[id]/+page.server.js
index 1c90ab69..5a364c65 100644
--- a/src/routes/(app)/payment/[id]/+page.server.js
+++ b/src/routes/(app)/payment/[id]/+page.server.js
@@ -1,6 +1,6 @@
-import { auth, get } from '$lib/utils';
+import { auth, get } from "$lib/utils";
export async function load({ cookies, params }) {
- let payment = await get(`/payments/${params.id}`, auth(cookies));
- return { payment };
+ let payment = await get(`/payments/${params.id}`, auth(cookies));
+ return { payment };
}
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte
index 98c5a68b..7e3c6792 100644
--- a/src/routes/(app)/payment/[id]/+page.svelte
+++ b/src/routes/(app)/payment/[id]/+page.svelte
@@ -1,158 +1,173 @@
-
+
-
- {$t(amount < 0 ? 'payments.sent' : 'payments.received')}
-
+
+ {$t(amount < 0 ? "payments.sent" : "payments.received")}
+
- {#if p.with}
-
- {/if}
- {#if p.type === types.fund}
-
- {/if}
-
-
{$t('payments.amount')}
-
- {f(fiat(a, rate), currency)}
-
- ⚡️{s(a)}
-
-
-
+ {#if p.with}
+
+ {/if}
+ {#if p.type === types.fund}
+
+ {/if}
+
+
{$t("payments.amount")}
+
+ {f(fiat(a, rate), currency)}
+
+ ⚡️{s(a)}
+
+
+
- {#if tip}
-
-
{$t('invoice.tip')}
-
- {f(fiat(tip, rate), currency)}
- ({Math.round((tip * 100) / Math.abs(a))}%)
-
- ⚡️{s(tip)}
-
-
-
+ {#if tip}
+
+
{$t("invoice.tip")}
+
+ {f(fiat(tip, rate), currency)}
+ ({Math.round((tip * 100) / Math.abs(a))}%)
+
+ ⚡️{s(tip)}
+
+
+
-
-
Total
-
- {f(fiat(a + (tip || 0), rate), currency)}
- ⚡️{`${s(a + (tip || 0))}`}
-
-
- {/if}
+
+
Total
+
+ {f(fiat(a + (tip || 0), rate), currency)}
+ ⚡️{`${s(a + (tip || 0))}`}
+
+
+ {/if}
-
-
Network fee
-
- {f(fiat(fee, rate), currency)}
- ⚡️{`${s(fee)}`}
-
-
+
+
Network fee
+
+ {f(fiat(fee, rate), currency)}
+ ⚡️{`${s(fee)}`}
+
+
- {#if ourfee > 0}
-
-
Platform fee
-
- {f(fiat(ourfee, rate), currency)}
- ⚡️{`${s(ourfee)}`}
-
-
- {/if}
+ {#if ourfee > 0}
+
+
Platform fee
+
+ {f(fiat(ourfee, rate), currency)}
+ ⚡️{`${s(ourfee)}`}
+
+
+ {/if}
-
-
Date
-
- {format(new Date(created), 'MMMM d')},
- {format(new Date(created), 'h:mm aaa')}
-
-
+
+
Date
+
+ {format(new Date(created), "MMMM d")},
+ {format(new Date(created), "h:mm aaa")}
+
+
- {#if type === 'bitcoin'}
-
- {/if}
+ {#if type === "bitcoin"}
+
+ {/if}
- {#if user.hasprinter}
-
-
-
- {:else}
-
- {/if}
+ {#if user.hasprinter}
+
+
+
+ {:else}
+
+ {/if}
diff --git a/src/routes/(app)/payment/[id]/plain/+page.server.js b/src/routes/(app)/payment/[id]/plain/+page.server.js
index 1c90ab69..5a364c65 100644
--- a/src/routes/(app)/payment/[id]/plain/+page.server.js
+++ b/src/routes/(app)/payment/[id]/plain/+page.server.js
@@ -1,6 +1,6 @@
-import { auth, get } from '$lib/utils';
+import { auth, get } from "$lib/utils";
export async function load({ cookies, params }) {
- let payment = await get(`/payments/${params.id}`, auth(cookies));
- return { payment };
+ let payment = await get(`/payments/${params.id}`, auth(cookies));
+ return { payment };
}
diff --git a/src/routes/(app)/payment/[id]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte
index 5ffd1656..27e8d0ed 100644
--- a/src/routes/(app)/payment/[id]/plain/+page.svelte
+++ b/src/routes/(app)/payment/[id]/plain/+page.svelte
@@ -1,77 +1,87 @@
-
-
Amount
-
- {f(fiat(a, rate), currency)}
-
-
+
+
Amount
+
+ {f(fiat(a, rate), currency)}
+
+
- {#if tip}
-
-
Tip
-
- {f(fiat(tip, rate), currency)}
- ({Math.round((tip * 100) / Math.abs(a))}%)
-
-
+ {#if tip}
+
+
Tip
+
+ {f(fiat(tip, rate), currency)}
+ ({Math.round((tip * 100) / Math.abs(a))}%)
+
+
-
-
Total
-
- {f(fiat(a + (tip || 0), rate), currency)}
-
-
- {/if}
+
+
Total
+
+ {f(fiat(a + (tip || 0), rate), currency)}
+
+
+ {/if}
-
-
Date
-
- {format(new Date(created), 'MMMM d')},
- {format(new Date(created), 'h:mm aaa')}
-
-
+
+
Date
+
+ {format(new Date(created), "MMMM d")},
+ {format(new Date(created), "h:mm aaa")}
+
+
- {#if type === 'bitcoin'}
-
- {/if}
+ {#if type === "bitcoin"}
+
+ {/if}
-
+
diff --git a/src/routes/(app)/payment/[id]/print/+server.js b/src/routes/(app)/payment/[id]/print/+server.js
index fde834d1..2fdfc8c1 100644
--- a/src/routes/(app)/payment/[id]/print/+server.js
+++ b/src/routes/(app)/payment/[id]/print/+server.js
@@ -1,7 +1,7 @@
-import { auth, post } from '$lib/utils';
-import { json } from '@sveltejs/kit';
+import { auth, post } from "$lib/utils";
+import { json } from "@sveltejs/kit";
export async function POST({ cookies, request }) {
- let body = await request.json();
- return json(post('/print', body, auth(cookies)));
+ let body = await request.json();
+ return json(post("/print", body, auth(cookies)));
}
diff --git a/src/routes/(app)/pin/+server.js b/src/routes/(app)/pin/+server.js
index 9f63f545..76d407bf 100644
--- a/src/routes/(app)/pin/+server.js
+++ b/src/routes/(app)/pin/+server.js
@@ -1,7 +1,7 @@
-import { json } from '@sveltejs/kit';
-import { auth, post } from '$lib/utils';
+import { json } from "@sveltejs/kit";
+import { auth, post } from "$lib/utils";
export async function POST({ cookies, request }) {
- let result = await post('/pin', await request.json(), auth(cookies));
- return json(result);
+ let result = await post("/pin", await request.json(), auth(cookies));
+ return json(result);
}
diff --git a/src/routes/(app)/qr/[text]/+page.server.js b/src/routes/(app)/qr/[text]/+page.server.js
index 3ab0725f..5eaafe57 100644
--- a/src/routes/(app)/qr/[text]/+page.server.js
+++ b/src/routes/(app)/qr/[text]/+page.server.js
@@ -1,8 +1,8 @@
-import Qr from 'qrcode-base64';
+import Qr from "qrcode-base64";
export async function load({ params }) {
- let { text } = params;
- let src = Qr.drawImg(text, { size: 600 });
+ let { text } = params;
+ let src = Qr.drawImg(text, { size: 600 });
- return { src, text };
+ return { src, text };
}
diff --git a/src/routes/(app)/qr/[text]/+page.svelte b/src/routes/(app)/qr/[text]/+page.svelte
index f3cd791a..d943b0b5 100644
--- a/src/routes/(app)/qr/[text]/+page.svelte
+++ b/src/routes/(app)/qr/[text]/+page.svelte
@@ -1,24 +1,24 @@
-
-
diff --git a/src/routes/(app)/redeem/[redeemcode]/+page.server.js b/src/routes/(app)/redeem/[redeemcode]/+page.server.js
index 4f685d68..f227f22e 100644
--- a/src/routes/(app)/redeem/[redeemcode]/+page.server.js
+++ b/src/routes/(app)/redeem/[redeemcode]/+page.server.js
@@ -1,17 +1,17 @@
-import { error, redirect } from '@sveltejs/kit';
-import { auth, post } from '$lib/utils';
+import { error, redirect } from "@sveltejs/kit";
+import { auth, post } from "$lib/utils";
export async function load({ cookies, locals, params }) {
- let { user } = locals;
+ let { user } = locals;
- if (user) {
- try {
- await post('/redeem', params, auth(cookies));
- } catch (e) {
- throw redirect(307, '/');
- }
- throw redirect(307, `/${user.username}/payments`);
- }
+ if (user) {
+ try {
+ await post("/redeem", params, auth(cookies));
+ } catch (e) {
+ throw redirect(307, "/");
+ }
+ throw redirect(307, `/${user.username}/payments`);
+ }
- throw redirect(307, '/login');
+ throw redirect(307, "/login");
}
diff --git a/src/routes/(app)/redeem/[redeemcode]/+page.svelte b/src/routes/(app)/redeem/[redeemcode]/+page.svelte
index a4609307..b2fcf2f4 100644
--- a/src/routes/(app)/redeem/[redeemcode]/+page.svelte
+++ b/src/routes/(app)/redeem/[redeemcode]/+page.svelte
@@ -1,4 +1,4 @@
diff --git a/src/routes/(app)/register/+page.server.js b/src/routes/(app)/register/+page.server.js
index 45344907..e986c73d 100644
--- a/src/routes/(app)/register/+page.server.js
+++ b/src/routes/(app)/register/+page.server.js
@@ -1,41 +1,42 @@
-import { fail, redirect } from '@sveltejs/kit';
-import { fd, post, login } from '$lib/utils';
+import { fail, redirect } from "@sveltejs/kit";
+import { fd, post, login } from "$lib/utils";
export const load = async ({ parent }) => {
- let { user } = await parent();
- if (user) throw redirect(307, `/${user.username}`);
+ let { user } = await parent();
+ if (user) throw redirect(307, `/${user.username}`);
- let index = Math.floor(Math.random() * 64) + 1;
+ let index = Math.floor(Math.random() * 64) + 1;
- return { index };
+ return { index };
};
export const actions = {
- default: async ({ cookies, request }) => {
- let ip = request.headers.get('cf-connecting-ip');
-
- let form = await fd(request);
- let { profile, username, password, cipher, salt, pubkey, loginRedirect } = form;
- let user = { profile, username, password, cipher, salt, pubkey };
- let error;
-
- if (loginRedirect === 'undefined') loginRedirect = undefined;
-
- try {
- await post('/register', { user }, { 'cf-connecting-ip': ip });
- } catch (e) {
- console.log(e);
- if (e.message.includes('taken')) error = e.message;
- }
-
- try {
- await login(user, cookies, ip);
- error = null;
- } catch (e) {
- error ||= e.message;
- }
-
- if (error) return fail(400, { error });
- throw redirect(307, loginRedirect || `/${user.username}`);
- }
+ default: async ({ cookies, request }) => {
+ let ip = request.headers.get("cf-connecting-ip");
+
+ let form = await fd(request);
+ let { profile, username, password, cipher, salt, pubkey, loginRedirect } =
+ form;
+ let user = { profile, username, password, cipher, salt, pubkey };
+ let error;
+
+ if (loginRedirect === "undefined") loginRedirect = undefined;
+
+ try {
+ await post("/register", { user }, { "cf-connecting-ip": ip });
+ } catch (e) {
+ console.log(e);
+ if (e.message.includes("taken")) error = e.message;
+ }
+
+ try {
+ await login(user, cookies, ip);
+ error = null;
+ } catch (e) {
+ error ||= e.message;
+ }
+
+ if (error) return fail(400, { error });
+ throw redirect(307, loginRedirect || `/${user.username}`);
+ },
};
diff --git a/src/routes/(app)/register/+page.svelte b/src/routes/(app)/register/+page.svelte
index a9f9d047..8310aed1 100644
--- a/src/routes/(app)/register/+page.svelte
+++ b/src/routes/(app)/register/+page.svelte
@@ -1,287 +1,311 @@
{#if need2fa}
-
+
{/if}
-
-
-
-
-
handleFile(e, 'profile')}
- />
-
-
-
-
-
-
-
-
-
-
- {#if form?.error}
-
- {form.error}
-
- {/if}
-
-
-
-
- {$t('login.haveAccount')}
-
- {$t('login.signIn')}
-
-
-
-
+
+
+
+
+
handleFile(e, "profile")}
+ />
+
+
+
+
+
+
+
+
+
+
+ {#if form?.error}
+
+ {form.error}
+
+ {/if}
+
+
+
+
+ {$t("login.haveAccount")}
+
+ {$t("login.signIn")}
+
+
+
+
diff --git a/src/routes/(app)/scan/+page.svelte b/src/routes/(app)/scan/+page.svelte
index 8c5ea0a5..033eb28b 100644
--- a/src/routes/(app)/scan/+page.svelte
+++ b/src/routes/(app)/scan/+page.svelte
@@ -1,44 +1,51 @@
-
+
diff --git a/src/routes/(app)/send/+layout.svelte b/src/routes/(app)/send/+layout.svelte
index 47c11f1c..1a587edf 100644
--- a/src/routes/(app)/send/+layout.svelte
+++ b/src/routes/(app)/send/+layout.svelte
@@ -1,16 +1,16 @@
{#if user.haspin && (!$pin || $pin?.length !== 6)}
-
+
{/if}
diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js
index 3ca50bca..9a76f21d 100644
--- a/src/routes/(app)/send/[...text]/+page.server.js
+++ b/src/routes/(app)/send/[...text]/+page.server.js
@@ -1,100 +1,100 @@
-import { validate } from 'bitcoin-address-validation';
-import bip21 from 'bip21';
-import { auth, get, post } from '$lib/utils';
-import { fail, redirect } from '@sveltejs/kit';
-import { PUBLIC_DOMAIN } from '$env/static/public';
+import { validate } from "bitcoin-address-validation";
+import bip21 from "bip21";
+import { auth, get, post } from "$lib/utils";
+import { fail, redirect } from "@sveltejs/kit";
+import { PUBLIC_DOMAIN } from "$env/static/public";
let parse = async (t, host) => {
- if (!t) return;
-
- if (t.startsWith('http')) throw redirect(307, t);
- if (t.startsWith(host)) throw redirect(307, `http://${t}`);
-
- let amount, user, id;
-
- t = t.trim();
- t.toLowerCase().startsWith('bitcoin:') &&
- ({
- address: t,
- options: { amount }
- } = bip21.decode(t));
-
- if (t.endsWith(`@${PUBLIC_DOMAIN}`)) t = t.split('@')[0];
- if (t.includes('@') && t.includes('.')) {
- try {
- t = await get(`/encode?address=${t}`);
- } catch (e) {}
- }
-
- if (t.endsWith('@classic')) {
- ({ uuid: id } = await get(`/invoice/classic/${t.replace('@classic', '')}`));
- if (id) throw redirect(307, `/send/invoice/${id}`);
- }
-
- if (t.includes('/fund')) throw redirect(307, t.substring(t.indexOf('/fund')));
-
- if (t.toLowerCase().startsWith('lnurl')) throw redirect(307, `/ln/${t}`);
- if (t.includes(':')) t = t.split(':')[1];
-
- // lightning
- if (t.toLowerCase().startsWith('ln')) {
- try {
- ({ id } = await get(`/invoice/${t}`));
- } catch (e) {
- throw redirect(307, `/send/lightning/${t}`);
- }
- }
-
- // bitcoin
- if (validate(t)) {
- try {
- ({ id, user } = await get(`/invoice/${t}`));
- } catch (e) {
- let r = `/send/bitcoin/${t}`;
- if (amount) r += '/' + amount;
- throw redirect(307, r);
- }
-
- if (user) throw redirect(307, `/send/${user.username}`);
- else if (id) throw redirect(307, `/send/${id}`);
- }
-
- // user
- try {
- user = await get(`/users/${t.split('/')[0]}`);
- if (user.anon) user = null;
- } catch (e) {}
-
- if (user) throw redirect(307, `/send/user/${t}`);
-
- let fund;
- try {
- fund = await get(`/fund/${t}`);
- } catch (e) {}
-
- if (fund) throw redirect(307, `/send/fund/${t}`);
-
- // invoice
- let invoice;
- try {
- invoice = await get(`/invoice/${t}`);
- } catch (e) {}
-
- if (invoice) throw redirect(307, `/send/invoice/${invoice.hash}`);
+ if (!t) return;
+
+ if (t.startsWith("http")) throw redirect(307, t);
+ if (t.startsWith(host)) throw redirect(307, `http://${t}`);
+
+ let amount, user, id;
+
+ t = t.trim();
+ t.toLowerCase().startsWith("bitcoin:") &&
+ ({
+ address: t,
+ options: { amount },
+ } = bip21.decode(t));
+
+ if (t.endsWith(`@${PUBLIC_DOMAIN}`)) t = t.split("@")[0];
+ if (t.includes("@") && t.includes(".")) {
+ try {
+ t = await get(`/encode?address=${t}`);
+ } catch (e) {}
+ }
+
+ if (t.endsWith("@classic")) {
+ ({ uuid: id } = await get(`/invoice/classic/${t.replace("@classic", "")}`));
+ if (id) throw redirect(307, `/send/invoice/${id}`);
+ }
+
+ if (t.includes("/fund")) throw redirect(307, t.substring(t.indexOf("/fund")));
+
+ if (t.toLowerCase().startsWith("lnurl")) throw redirect(307, `/ln/${t}`);
+ if (t.includes(":")) t = t.split(":")[1];
+
+ // lightning
+ if (t.toLowerCase().startsWith("ln")) {
+ try {
+ ({ id } = await get(`/invoice/${t}`));
+ } catch (e) {
+ throw redirect(307, `/send/lightning/${t}`);
+ }
+ }
+
+ // bitcoin
+ if (validate(t)) {
+ try {
+ ({ id, user } = await get(`/invoice/${t}`));
+ } catch (e) {
+ let r = `/send/bitcoin/${t}`;
+ if (amount) r += "/" + amount;
+ throw redirect(307, r);
+ }
+
+ if (user) throw redirect(307, `/send/${user.username}`);
+ else if (id) throw redirect(307, `/send/${id}`);
+ }
+
+ // user
+ try {
+ user = await get(`/users/${t.split("/")[0]}`);
+ if (user.anon) user = null;
+ } catch (e) {}
+
+ if (user) throw redirect(307, `/send/user/${t}`);
+
+ let fund;
+ try {
+ fund = await get(`/fund/${t}`);
+ } catch (e) {}
+
+ if (fund) throw redirect(307, `/send/fund/${t}`);
+
+ // invoice
+ let invoice;
+ try {
+ invoice = await get(`/invoice/${t}`);
+ } catch (e) {}
+
+ if (invoice) throw redirect(307, `/send/invoice/${invoice.hash}`);
};
export async function load({ cookies, params, request, url }) {
- let { text } = params;
- await parse(text, url.host);
- let contacts = await get('/contacts', auth(cookies));
- return { contacts };
+ let { text } = params;
+ await parse(text, url.host);
+ let contacts = await get("/contacts", auth(cookies));
+ return { contacts };
}
export const actions = {
- default: async ({ request, url }) => {
- const form = await request.formData();
- let t = form.get('text');
- await parse(t, url.host);
- return fail(400, { error: true });
- }
+ default: async ({ request, url }) => {
+ const form = await request.formData();
+ let t = form.get("text");
+ await parse(t, url.host);
+ return fail(400, { error: true });
+ },
};
diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte
index 74afd846..67d4afaa 100644
--- a/src/routes/(app)/send/[...text]/+page.svelte
+++ b/src/routes/(app)/send/[...text]/+page.svelte
@@ -1,125 +1,129 @@
-
- {$t('payments.send')}
-
+
+ {$t("payments.send")}
+
-
- {#if contacts.length}
-
-
{$t('user.send.contacts')}
-
- {#each contacts as c}
-
-
-
- {/each}
-
-
- {/if}
+ {#if contacts.length}
+
+
+ {$t("user.send.contacts")}
+
+
+ {#each contacts as c}
+
+
+
+ {/each}
+
+
+ {/if}
diff --git a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.server.js b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.server.js
index 92a754ae..5cb86aec 100644
--- a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.server.js
+++ b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.server.js
@@ -1,33 +1,32 @@
-import { fail, redirect } from '@sveltejs/kit';
-import { auth, post, fd } from '$lib/utils';
+import { fail, redirect } from "@sveltejs/kit";
+import { auth, post, fd } from "$lib/utils";
let seen = {};
export const actions = {
- default: async ({ cookies, request }) => {
- try {
- let { address, amount, confirmed, feeRate, subtract, pin, stale, ts } = await await fd(
- request
- );
- if (seen[ts]) return fail(400, { message: 'Duplicate form submission' });
+ default: async ({ cookies, request }) => {
+ try {
+ let { address, amount, confirmed, feeRate, subtract, pin, stale, ts } =
+ await await fd(request);
+ if (seen[ts]) return fail(400, { message: "Duplicate form submission" });
- let estimate = await post(
- '/bitcoin/fee',
- { address, amount, feeRate, subtract },
- auth(cookies)
- );
+ let estimate = await post(
+ "/bitcoin/fee",
+ { address, amount, feeRate, subtract },
+ auth(cookies)
+ );
- let { tx } = estimate;
+ let { tx } = estimate;
- if (stale || !confirmed) return fail(400, estimate);
+ if (stale || !confirmed) return fail(400, estimate);
- seen[ts] = 1;
- setTimeout(() => delete seen[ts], 30000);
+ seen[ts] = 1;
+ setTimeout(() => delete seen[ts], 30000);
- await post('/bitcoin/send', { pin, subtract, tx }, auth(cookies));
- } catch (e) {
- return fail(400, { message: e.message });
- }
+ await post("/bitcoin/send", { pin, subtract, tx }, auth(cookies));
+ } catch (e) {
+ return fail(400, { message: e.message });
+ }
- throw redirect(307, '/sent');
- }
+ throw redirect(307, "/sent");
+ },
};
diff --git a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
index 342eeebe..da11a22c 100644
--- a/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/bitcoin/[address]/[...amount]/+page.svelte
@@ -1,142 +1,159 @@
{#if form?.message}
-
- {form.message}
-
+
+ {form.message}
+
{/if}
-
{$t('payments.send')}
-
-
{address}
-
- {#if confirmed}
-
-
- {f(toFiat(amount, rate), currency)}
-
- ⚡️{s(amount)}
-
-
-
-
with fee
-
-
-
- {f(toFiat(fee + ourfee, rate), currency)}
-
- ⚡️{s(fee + ourfee)}
-
-
-
- {:else}
-
- {/if}
-
-
+
{$t("payments.send")}
+
+
{address}
+
+ {#if confirmed}
+
+
+ {f(toFiat(amount, rate), currency)}
+
+ ⚡️{s(amount)}
+
+
+
+
with fee
+
+
+
+ {f(toFiat(fee + ourfee, rate), currency)}
+
+ ⚡️{s(fee + ourfee)}
+
+
+
+ {:else}
+
+ {/if}
+
+
diff --git a/src/routes/(app)/send/fund/[name]/[...amount]/+page.server.js b/src/routes/(app)/send/fund/[name]/[...amount]/+page.server.js
index 2cb3c4a9..3318a60b 100644
--- a/src/routes/(app)/send/fund/[name]/[...amount]/+page.server.js
+++ b/src/routes/(app)/send/fund/[name]/[...amount]/+page.server.js
@@ -1,17 +1,17 @@
-import { fail, redirect } from '@sveltejs/kit';
-import { auth, fd, post } from '$lib/utils';
+import { fail, redirect } from "@sveltejs/kit";
+import { auth, fd, post } from "$lib/utils";
export const actions = {
- default: async ({ cookies, request }) => {
- let body = await fd(request);
- let p;
+ default: async ({ cookies, request }) => {
+ let body = await fd(request);
+ let p;
- try {
- p = await post('/payments', body, auth(cookies));
- } catch (e) {
- return fail(400, { message: e.message });
- }
+ try {
+ p = await post("/payments", body, auth(cookies));
+ } catch (e) {
+ return fail(400, { message: e.message });
+ }
- if (p) throw redirect(307, `/fund/${body.name}`);
- }
+ if (p) throw redirect(307, `/fund/${body.name}`);
+ },
};
diff --git a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte
index 6aecf8f3..886e93d2 100644
--- a/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/fund/[name]/[...amount]/+page.svelte
@@ -1,58 +1,58 @@
{#if form?.message}
-
- {form.message}
-
+
+ {form.message}
+
{/if}
-
-
-
+
+
+
diff --git a/src/routes/(app)/send/invoice/[id]/+page.server.js b/src/routes/(app)/send/invoice/[id]/+page.server.js
index 4cbbb03f..aa284328 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.server.js
+++ b/src/routes/(app)/send/invoice/[id]/+page.server.js
@@ -1,37 +1,48 @@
-import { error, fail, redirect } from '@sveltejs/kit';
-import { fd, auth, get, post } from '$lib/utils';
+import { error, fail, redirect } from "@sveltejs/kit";
+import { fd, auth, get, post } from "$lib/utils";
export async function load({ params: { id }, parent, url }) {
- let { user } = await parent();
+ let { user } = await parent();
- let {
- amount,
- address,
- currency,
- hash,
- rate,
- prompt,
- tip,
- text,
- user: recipient
- } = await get(`/invoice/${id}`);
+ let {
+ amount,
+ address,
+ currency,
+ hash,
+ rate,
+ prompt,
+ tip,
+ text,
+ user: recipient,
+ } = await get(`/invoice/${id}`);
- if (prompt && tip === null) throw redirect(307, `/${recipient.username}/invoice/${id}/tip`);
- if (recipient.username === user.username) throw error(500, { message: 'Cannot send to self' });
- return { amount, address, currency, hash, tip, rate, payreq: text, recipient };
+ if (prompt && tip === null)
+ throw redirect(307, `/${recipient.username}/invoice/${id}/tip`);
+ if (recipient.username === user.username)
+ throw error(500, { message: "Cannot send to self" });
+ return {
+ amount,
+ address,
+ currency,
+ hash,
+ tip,
+ rate,
+ payreq: text,
+ recipient,
+ };
}
export const actions = {
- default: async ({ cookies, params: { id }, request }) => {
- try {
- let body = await fd(request);
- body.hash = id;
+ default: async ({ cookies, params: { id }, request }) => {
+ try {
+ let body = await fd(request);
+ body.hash = id;
- await post('/payments', body, auth(cookies));
- } catch (e) {
- return fail(400, { message: e.message });
- }
+ await post("/payments", body, auth(cookies));
+ } catch (e) {
+ return fail(400, { message: e.message });
+ }
- throw redirect(307, '/sent');
- }
+ throw redirect(307, "/sent");
+ },
};
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte
index 02ab9d41..d29f1c96 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/send/invoice/[id]/+page.svelte
@@ -1,154 +1,168 @@
{#if form?.message}
-
- {form.message}
-
+
+ {form.message}
+
{/if}
- {#if amount}
-
-
- {$t('payments.send')}
-
-
- {f(toFiat(amount, rate), currency)}
- {#if tip}
-
- + {f(toFiat(tip, rate), currency)}
-
- {/if}
-
-
- ⚡️{s(amount)}
-
- {#if tip}
-
- + ⚡️{s(tip)}
-
- {/if}
-
-
-
{$t('payments.to')}
-
-
- {#if recipient.username.includes('@classic')}
-

- {:else}
-
- {/if}
-
{recipient.username.replace('@classic', '')}
-
-
- {:else}
-
- {/if}
-
-
-
-
-
+ {#if amount}
+
+
+ {$t("payments.send")}
+
+
+ {f(toFiat(amount, rate), currency)}
+ {#if tip}
+
+ + {f(toFiat(tip, rate), currency)}
+
+ {/if}
+
+
+ ⚡️{s(amount)}
+
+ {#if tip}
+
+ + ⚡️{s(tip)}
+
+ {/if}
+
+
+
+ {$t("payments.to")}
+
+
+
+ {#if recipient.username.includes("@classic")}
+

+ {:else}
+
+ {/if}
+
+ {recipient.username.replace("@classic", "")}
+
+
+
+ {:else}
+
+ {/if}
+
+
+
+
+
diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.server.js b/src/routes/(app)/send/lightning/[payreq]/+page.server.js
index d358bbca..d9e791e1 100644
--- a/src/routes/(app)/send/lightning/[payreq]/+page.server.js
+++ b/src/routes/(app)/send/lightning/[payreq]/+page.server.js
@@ -1,24 +1,24 @@
-import { fail, redirect } from '@sveltejs/kit';
-import { fd, auth, post } from '$lib/utils';
+import { fail, redirect } from "@sveltejs/kit";
+import { fd, auth, post } from "$lib/utils";
export async function load({ params }) {
- return post('/parse', params);
+ return post("/parse", params);
}
export const actions = {
- setAmount: async ({ cookies, request }) => fd(request),
+ setAmount: async ({ cookies, request }) => fd(request),
- send: async ({ cookies, request }) => {
- try {
- let body = await fd(request);
+ send: async ({ cookies, request }) => {
+ try {
+ let body = await fd(request);
- await post('/payments', body, auth(cookies));
- } catch (e) {
- if (e.message.includes('unusable'))
- e.message = 'Failed to route payment, try sending a lower amount';
- return fail(400, { message: e.message });
- }
+ await post("/payments", body, auth(cookies));
+ } catch (e) {
+ if (e.message.includes("unusable"))
+ e.message = "Failed to route payment, try sending a lower amount";
+ return fail(400, { message: e.message });
+ }
- throw redirect(307, '/sent');
- }
+ throw redirect(307, "/sent");
+ },
};
diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
index e232ef05..185597c7 100644
--- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte
+++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
@@ -1,105 +1,120 @@
{#if form?.message}
-
- {form.message}
-
+
+ {form.message}
+
{/if}
- {#if amount}
-
-
{$t('payments.send')}
-
- ⚡️{s(amount)}
-
-
{$t('payments.to')}
-
{alias}
-
+ {#if amount}
+
+
+ {$t("payments.send")}
+
+
+ ⚡️{s(amount)}
+
+
+ {$t("payments.to")}
+
+
{alias}
+
-
+
+
+
+
- {#if show}
-
-
-
+ {#if show}
+
- {:else}
-
-
-
- {/if}
- {:else}
-
+
+ {:else}
+
+
+
+ {/if}
+ {:else}
+
- {/if}
+ >
+ Next
+
+
+ {/if}
diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js
index a01cdcfc..1f3a0420 100644
--- a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js
+++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js
@@ -1,46 +1,47 @@
-import { error, fail, redirect } from '@sveltejs/kit';
-import { types, sats, fd, auth, get, post } from '$lib/utils';
+import { error, fail, redirect } from "@sveltejs/kit";
+import { types, sats, fd, auth, get, post } from "$lib/utils";
export async function load({ cookies, params, parent }) {
- let subject = await get(`/users/${params.username}`);
-
- let { rates, user } = await parent();
- let { username } = params;
- let [amount, currency] = params.amount.split('/');
-
- if (subject.username === user?.username) throw error(500, { message: 'Cannot send to self' });
-
- let rate;
- if (amount) {
- rate = rates[currency ? currency.toUpperCase() : subject.currency];
- if (!rate) throw error(500, 'Invalid currency symbol');
- if (currency) amount = (amount * sats) / rate;
-
- let { hash } = await post(
- '/invoice',
- {
- invoice: { amount, prompt: false, type: types.lightning },
- user: { username }
- },
- auth(cookies)
- );
-
- throw redirect(307, `/${username}/invoice/${hash}`);
- }
-
- return { amount, rate, subject };
+ let subject = await get(`/users/${params.username}`);
+
+ let { rates, user } = await parent();
+ let { username } = params;
+ let [amount, currency] = params.amount.split("/");
+
+ if (subject.username === user?.username)
+ throw error(500, { message: "Cannot send to self" });
+
+ let rate;
+ if (amount) {
+ rate = rates[currency ? currency.toUpperCase() : subject.currency];
+ if (!rate) throw error(500, "Invalid currency symbol");
+ if (currency) amount = (amount * sats) / rate;
+
+ let { hash } = await post(
+ "/invoice",
+ {
+ invoice: { amount, prompt: false, type: types.lightning },
+ user: { username },
+ },
+ auth(cookies)
+ );
+
+ throw redirect(307, `/${username}/invoice/${hash}`);
+ }
+
+ return { amount, rate, subject };
}
export const actions = {
- default: async ({ cookies, request }) => {
- try {
- let body = await fd(request);
- await post('/payments', body, auth(cookies));
- } catch (e) {
- console.log(e);
- return fail(400, { message: e.message });
- }
-
- throw redirect(307, '/sent');
- }
+ default: async ({ cookies, request }) => {
+ try {
+ let body = await fd(request);
+ await post("/payments", body, auth(cookies));
+ } catch (e) {
+ console.log(e);
+ return fail(400, { message: e.message });
+ }
+
+ throw redirect(307, "/sent");
+ },
};
diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
index 32a13939..cb458323 100644
--- a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
@@ -1,103 +1,103 @@