From 463b92484cff9d45af18573f6989c37ba09dea30 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 5 Apr 2023 13:41:07 -0700 Subject: replace coinos --- src/components/Footer.svelte | 6 +++--- src/components/LocationsMap.svelte | 2 +- src/lib/samples.js | 24 +++++++++++----------- src/lib/ticket.js | 2 +- src/locales/de.json | 2 +- src/locales/en.json | 2 +- src/locales/es.json | 4 ++-- src/locales/fa.json | 4 ++-- src/locales/fr.json | 14 ++++++------- src/locales/guided_translation.py | 2 +- src/locales/pt.json | 4 ++-- src/locales/zh.json | 4 ++-- src/routes/(app)/+layout.svelte | 6 +++--- .../(app)/[username]/(profile)/+layout.svelte | 2 +- .../[username]/settings/[...tab]/_account.svelte | 2 +- src/routes/(app)/jobs/+page.svelte | 4 ++-- src/routes/(app)/otpsecret/+server.js | 2 +- src/routes/(app)/support/+page.svelte | 2 +- src/routes/(static)/bounties/+page.svelte | 4 ++-- src/routes/+layout.svelte | 12 +++++------ 20 files changed, 52 insertions(+), 52 deletions(-) (limited to 'src') diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 7520e5d4..c6441abb 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -3,9 +3,9 @@ import { t } from '$lib/translations'; const followLinks = [ - { url: 'https://twitter.com/coinoswallet', titleID: 'twitter' }, - { url: 'https://t.me/coinoswallet', titleID: 'telegram' }, - { url: 'https://linktr.ee/coinos.io', titleID: 'linktree' } + { url: 'https://twitter.com/swapeewallet', titleID: 'twitter' }, + { url: 'https://t.me/swapeewallet', titleID: 'telegram' }, + { url: 'https://linktr.ee/swapee.io', titleID: 'linktree' } ]; const companyLinks = [ diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index 20eea6c0..b3038ddc 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -39,7 +39,7 @@ locations = locations.filter( (location) => location['osm_json'].tags && - location['osm_json'].tags['payment:coinos'] === 'yes' && + location['osm_json'].tags['payment:swapee'] === 'yes' && location['osm_json'].lat && location['osm_json'].lon ); diff --git a/src/lib/samples.js b/src/lib/samples.js index 0b447d06..2c4d0aaf 100644 --- a/src/lib/samples.js +++ b/src/lib/samples.js @@ -1,40 +1,40 @@ export default { - register: `curl "https://coinos.io/api/register" -H "content-type: application/json" -d '{ + register: `curl "https://swapee.me/api/register" -H "content-type: application/json" -d '{ "username": "demo", "password": "hunter2" }'`, - login: `curl "https://coinos.io/api/login" -H "content-type: application/json" -d '{ + login: `curl "https://swapee.me/api/login" -H "content-type: application/json" -d '{ "username": "demo", "password": "hunter2" }'`, - payments: `curl "https://coinos.io/api/payments" + payments: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" `, - lightning: `curl "https://coinos.io/api/payments" + lightning: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "payreq": "lnbc1pj94d8fsp5n77k340ps4m9jn7kp8he8yynpddvurv6mcsrrqpnq5l2jxdxzlwqpp5m96pqhc5nrlk8cqsu9ufdxxa43sarp8vwf9egvm2pg9nl0zu9r8qdq2vdhkjmn0wvxqztgcqpjrzjqwhmav82kntsppmkp8jp4vg4h9nns78tsy8mg7ve4lq5txrkp0h56zlarvqqdtcqqsqqqqqqqqqqp6cq9q9qyysgqzxlypywzphyujm3ga5j5csfcmqvlnae0fgnvymkaaw94eeg7py5rqzysyjkr3ev2snq63qpsc69vf54adkd0szvmvwt5cuadjnuy95sq4xfa40" }'`, - bitcoin: `curl "https://coinos.io/api/payments" + bitcoin: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "amount": 5000, "hash": "bc1q3unh97w4rmelflrm2hvdwz37d8kray3vn4d5ca" }'`, - internal: `curl "https://coinos.io/api/payments" + internal: `curl "https://swapee.me/api/payments" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "amount": 5000, "username": "alice" }'`, - rates: `curl "https://coinos.io/api/rates" + rates: `curl "https://swapee.me/api/rates" -H "content-type: application/json" }'`, - lightningInvoice: `curl "https://coinos.io/api/invoice" + lightningInvoice: `curl "https://swapee.me/api/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ @@ -43,7 +43,7 @@ export default { "type": "lightning" } }'`, - bitcoinAddress: `curl "https://coinos.io/api/invoice" + bitcoinAddress: `curl "https://swapee.me/api/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ @@ -52,7 +52,7 @@ export default { "type": "bitcoin" } }'`, - webhook: `curl "https://coinos.io/api/invoice" + webhook: `curl "https://swapee.me/api/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ @@ -62,7 +62,7 @@ export default { "secret": "webhooksecret" } }'`, - fetchInvoice: `curl "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" + fetchInvoice: `curl "https://swapee.me/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" -H "content-type: application/json"'`, invoiceResponse: `{ "amount":3141 @@ -77,5 +77,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://swapee.io/ws` }; diff --git a/src/lib/ticket.js b/src/lib/ticket.js index e1ebcb8c..7d2c37df 100644 --- a/src/lib/ticket.js +++ b/src/lib/ticket.js @@ -20,7 +20,7 @@ export const createTicket = async (cookies, username) => { precision: 0, asset_amount: '1', token_amount: 0, - domain: 'coinos.io', + domain: 'swapee.io', filename: tickets[ticket] }, { authorization: `Bearer ${env.LAUNCH}` } diff --git a/src/locales/de.json b/src/locales/de.json index 23a4bd54..5ace811c 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -153,7 +153,7 @@ "settings": "Einstellungen", "support": "Support" }, - "newSiteHeader": "Kommen Sie zu unserer Eröffnungsfeier in Vancouver am 26. Oktober! Auf der Suche nach der alten Swapee-Version? Besuchen Sie classic.coinos.io", + "newSiteHeader": "Kommen Sie zu unserer Eröffnungsfeier in Vancouver am 26. Oktober! Auf der Suche nach der alten Swapee-Version? Besuchen Sie classic.swapee.io", "news": { "header": "News", "subheader": "Letzte Updates", diff --git a/src/locales/en.json b/src/locales/en.json index db1c7693..402aa510 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -180,7 +180,7 @@ "scan": "Scan QR", "paste": "Paste", "next": "Next", - "placeholder": "Paste a bitcoin address, lightning invoice or coinos username" + "placeholder": "Paste a bitcoin address, lightning invoice or swapee username" }, "settings": { "saveSettings": "Save Settings", diff --git a/src/locales/es.json b/src/locales/es.json index aa9fe364..83adb14f 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -132,7 +132,7 @@ "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", + "newSiteHeader": "Acompañanos en nuestra launch party en Vancouver el 26 de Octubre! Buscando la version anterior de swapee? Visita classic.swapee.io", "news": { "header": "Noticias", "subheader": "Últimas Actualizaciones", @@ -178,7 +178,7 @@ "scan": "Escanear", "paste": "Pegar", "next": "Siguiente", - "placeholder": "Asigne una dirección de bitcoin, una factura lightning o un usuario de coinos" + "placeholder": "Asigne una dirección de bitcoin, una factura lightning o un usuario de swapee" }, "settings": { "saveSettings": "Guardar ajustes", diff --git a/src/locales/fa.json b/src/locales/fa.json index 7ce68ec6..5c8979d7 100644 --- a/src/locales/fa.json +++ b/src/locales/fa.json @@ -133,7 +133,7 @@ "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", + "newSiteHeader": "Join us at our launch party in Vancouver on October 26! Looking for the old swapee? Visit classic.swapee.io", "news": { "header": "News", "subheader": "Latest Updates", @@ -182,7 +182,7 @@ "scan": "Scan", "paste": "Paste", "next": "Next", - "placeholder": "Paste a bitcoin address, lightning invoice or coinos username" + "placeholder": "Paste a bitcoin address, lightning invoice or swapee username" }, "settings": { "saveSettings": "Save Settings", diff --git a/src/locales/fr.json b/src/locales/fr.json index 5fcb95ab..d8be1ea7 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -5,12 +5,12 @@ }, "about": { "header": "À Propos", - "p1": "coinos est un portefeuille, point de vente, marché d'e-commerce et plateforme d'échange de bitcoin open source. Development a commencé en Vancouver le septembre de 2012 pour donner aux marchands du coin un façon pratique d'accepter des paiements en bitcoin.", + "p1": "swapee est un portefeuille, point de vente, marché d'e-commerce et plateforme d'échange de bitcoin open source. Development a commencé en Vancouver le septembre de 2012 pour donner aux marchands du coin un façon pratique d'accepter des paiements en bitcoin.", "p2": "Il a eu plus de fonctions au fil des ans pour satisfaire une grande variété de cas d'utilisation dans le but de pouvoir utiliser bitcoin rapidement, à bas prix, et en sécurité aussi façile que possible pour n'importe qui.", "p3": "Tout le monde peux télécharger le code source et héberger leur propre instance de la plateforme soutenue par leur propres nœuds de bitcoin, liquid ou lightning, ou contactez-nous et nous l'installerons pour vous avec plaisir.", "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!" + "description": "Il y a des entreprises qui acceptent bitcoin utilisant le point de vente swapee. Si vous utilisez notre appli, s'il vous plait fais-le-nous savoir!" }, "team": { "header": "L'Équipe", @@ -55,11 +55,11 @@ "header": "FAQ", "cost": { "question": "Quel est le coût?", - "answer": "coinos est gratuit à utiliser. Vous payez seulment 1% quand vous convertissez vos fonds entre bitcoin, Liquid et Lightning. Comparez-ça aux frais typiques 3% des cartes de crédit." + "answer": "swapee est gratuit à utiliser. Vous payez seulment 1% quand vous convertissez vos fonds entre bitcoin, Liquid et Lightning. Comparez-ça aux frais typiques 3% des cartes de crédit." }, "compatibility": { "question": "Est-ce que j'ai besoin de logiciel ou d'appareil special ?", - "answer": "Non. coinos est un site Web, vous pouvez donc l'utiliser sur n'importe quel appareil tant que vous aves un connexion d'Internet. La plupart des marchands l'utilise sur un téléphone ou une tablette." + "answer": "Non. swapee est un site Web, vous pouvez donc l'utiliser sur n'importe quel appareil tant que vous aves un connexion d'Internet. La plupart des marchands l'utilise sur un téléphone ou une tablette." }, "safety": { "question": "Sont mes fonds saufs ?", @@ -135,7 +135,7 @@ "support": "Assistance", "profile": "Profil" }, - "newSiteHeader": "Bienvenue sur coinos nouveau et amélioré, focalisé sur les marchants! Vous cherchez l'ancien coinos? Visitez classic.coinos.io.", + "newSiteHeader": "Bienvenue sur swapee nouveau et amélioré, focalisé sur les marchants! Vous cherchez l'ancien swapee? Visitez classic.swapee.io.", "invoice": { "addTip": "Ajoutez un pourboire", "addTipq": "Ajouter un pourboire?", @@ -148,7 +148,7 @@ "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)", + "pitch1": "swapee 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 à" @@ -235,7 +235,7 @@ "scan": "Scannez", "paste": "Collez", "next": "Prochain", - "placeholder": "Collez une adresse de bitcoin, facture de lightning ou nom d'utilisateur coinos" + "placeholder": "Collez une adresse de bitcoin, facture de lightning ou nom d'utilisateur swapee" } }, "transactions": { diff --git a/src/locales/guided_translation.py b/src/locales/guided_translation.py index 870cdf0b..e5d6c26d 100644 --- a/src/locales/guided_translation.py +++ b/src/locales/guided_translation.py @@ -55,7 +55,7 @@ def localize_string(string_id, from_data, to_data): if __name__ == "__main__": # setup and parse commandline arguments - args_parser = argparse.ArgumentParser(description="guided translation of coinos") + args_parser = argparse.ArgumentParser(description="guided translation of swapee") args_parser.add_argument('from_locale', nargs='?', type=str, help="which locale to translate from") args_parser.add_argument('to_locale', nargs='?', type=str, diff --git a/src/locales/pt.json b/src/locales/pt.json index 3c352aa5..b2a59e97 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -133,7 +133,7 @@ "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", + "newSiteHeader": "Join us at our launch party in Vancouver on October 26! Looking for the old swapee? Visit classic.swapee.io", "news": { "header": "Notícias", "subheader": "Últimos Updates", @@ -185,7 +185,7 @@ "scan": "Escanear", "paste": "Colar", "next": "Continuar", - "placeholder": "Colar um endereço de bitcoin, fatura lightning ou nome de usuário na coinos" + "placeholder": "Colar um endereço de bitcoin, fatura lightning ou nome de usuário na swapee" }, "settings": { "saveSettings": "Salvar ajustes", diff --git a/src/locales/zh.json b/src/locales/zh.json index bb2c1e2f..128194b6 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -142,7 +142,7 @@ "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", + "newSiteHeader": "Join us at our launch party in Vancouver on October 26! Looking for the old swapee? Visit classic.swapee.io", "news": { "header": "News", "subheader": "Latest Updates", @@ -191,7 +191,7 @@ "scan": "Scan", "paste": "Paste", "next": "Next", - "placeholder": "Paste a bitcoin address, lightning invoice or coinos username" + "placeholder": "Paste a bitcoin address, lightning invoice or swapee username" }, "settings": { "bannerImage": "Banner Image", diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 7c67e964..4d9aad76 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -91,10 +91,10 @@ {#if subject} - coinos - {subject.username} - + swapee - {subject.username} + {:else} - coinos + swapee {/if} {#if subject?.profile} diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index fe12a124..2f3fd9ba 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -13,7 +13,7 @@ $: username = n.length > 60 ? n.substr(0, 6) : display || n; let follow = async () => { - user.follows.push(['p', subject.pubkey, 'wss://nostr.coinos.io', subject.username]); + user.follows.push(['p', subject.pubkey, 'wss://nostr.swapee.io', subject.username]); update(); }; diff --git a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte index 0ab11b32..e4d27730 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte @@ -70,7 +70,7 @@
- @coinos.io + @swapee.io
diff --git a/src/routes/(app)/jobs/+page.svelte b/src/routes/(app)/jobs/+page.svelte index fc82f9d5..5bccf635 100644 --- a/src/routes/(app)/jobs/+page.svelte +++ b/src/routes/(app)/jobs/+page.svelte @@ -16,14 +16,14 @@

{$t('jobs.pitch2')} {$t('jobs.github')}.

{$t('jobs.pitch3')} - contact@coinos.io. + contact@swapee.io.

diff --git a/src/routes/(app)/otpsecret/+server.js b/src/routes/(app)/otpsecret/+server.js index 7d5c1ad9..82b4105f 100644 --- a/src/routes/(app)/otpsecret/+server.js +++ b/src/routes/(app)/otpsecret/+server.js @@ -6,7 +6,7 @@ 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`; + let uri = `otpauth://totp/swapee:${username}?secret=${secret}&period=30&digits=6&algorithm=SHA1&issuer=swapee`; return new Response(JSON.stringify({ secret, uri, qr: Qr.drawImg(uri, { size: 600 }) })); } catch (e) { if (e.message.includes('pin')) throw e; diff --git a/src/routes/(app)/support/+page.svelte b/src/routes/(app)/support/+page.svelte index b2f82e89..1fae9f47 100644 --- a/src/routes/(app)/support/+page.svelte +++ b/src/routes/(app)/support/+page.svelte @@ -74,7 +74,7 @@

Fill out this form or email us directly at support@coinos.iosupport@swapee.io and we'll do our best to get back to you in a timely manner.

diff --git a/src/routes/(static)/bounties/+page.svelte b/src/routes/(static)/bounties/+page.svelte index 3794bbaf..3a531bc2 100644 --- a/src/routes/(static)/bounties/+page.svelte +++ b/src/routes/(static)/bounties/+page.svelte @@ -71,8 +71,8 @@

To make a referral, reach out on one of our socials or email us at bounties@coinos.iobounties@swapee.io and we'll set up an appointment with you and the business owner to get started.

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 6dc84349..e50da4b6 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -6,9 +6,9 @@ - coinos - - + swapee + + @@ -16,14 +16,14 @@ - + - - + + -- cgit v1.2.3