From 70fe6a75e43fb1458841c831e43ef142c8537a6f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 16 May 2024 12:46:27 -0700 Subject: update qr --- .gitignore | 1 + bun.lockb | Bin 104473 -> 104848 bytes package.json | 115 ++++++++++++++++---------------- src/components/Qr.svelte | 2 +- src/routes/+page.svelte | 167 ++++------------------------------------------- 5 files changed, 72 insertions(+), 213 deletions(-) diff --git a/.gitignore b/.gitignore index 75631d29..3cf23d42 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules /.svelte-kit /package .env +android diff --git a/bun.lockb b/bun.lockb index 21685632..4d965bdd 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 7057e577..ae0e9494 100644 --- a/package.json +++ b/package.json @@ -1,59 +1,60 @@ { - "name": "my-app", - "version": "0.0.1", - "scripts": { - "dev": "vite dev", - "build": "vite build", - "docker": "docker build . -t coinos-ui", - "preview": "vite preview", - "lint": "prettier --check --plugin-search-dir=. .", - "format": "prettier --write --plugin-search-dir=. ." - }, - "devDependencies": { - "@scure/base": "^1.1.1", - "@sveltejs/adapter-node": "^1.1.4", - "@sveltejs/kit": "^1.14.0", - "@tailwindcss/line-clamp": "^0.4.2", - "@zerodevx/svelte-toast": "^0.7.2", - "autoprefixer": "^10.4.13", - "bech32": "^2.0.0", - "bip21": "^2.0.3", - "bitcoin-address-validation": "^2.2.1", - "buffer": "^6.0.3", - "date-fns": "^2.29.3", - "html5-qrcode": "^2.3.8", - "leaflet": "^1.9.3", - "leaflet.markercluster": "^1.5.3", - "nostr-tools": "^1.14.2", - "postcss": "^8.4.20", - "prettier": "^2.8.1", - "prettier-plugin-svelte": "^2.9.0", - "qr-code-styling": "1.6.0-rc.1", - "qr-scanner": "^1.4.2", - "qrcode-base64": "^1.0.1", - "rollup": "^2.79.1", - "screenfull": "^6.0.2", - "svelte": "^3.55.0", - "svelte-outclick": "^3.3.3", - "svelte-preprocess": "^4.10.7", - "svelte-virtual-scroll-list": "^1.1.0", - "sveltekit-i18n": "^2.2.2", - "tailwind-scrollbar": "^2.1.0", - "tailwindcss": "^3.2.4", - "uuid": "^9.0.0", - "vite": "^4.2.1" - }, - "pnpm": { - "peerDependencyRules": { - "allowedVersions": { - "vite": "4" - } - } - }, - "type": "module", - "dependencies": { - "@scure/bip39": "^1.2.1", - "html2canvas": "^1.4.1", - "leaflet-tooltip-layout": "^0.1.2" - } + "name": "my-app", + "version": "0.0.1", + "scripts": { + "dev": "vite dev", + "build": "vite build", + "docker": "docker build . -t coinos-ui", + "preview": "vite preview", + "lint": "prettier --check --plugin-search-dir=. .", + "format": "prettier --write --plugin-search-dir=. ." + }, + "devDependencies": { + "@bitjson/qr-code": "^1.0.2", + "@scure/base": "^1.1.1", + "@sveltejs/adapter-node": "^1.1.4", + "@sveltejs/kit": "^1.14.0", + "@tailwindcss/line-clamp": "^0.4.2", + "@zerodevx/svelte-toast": "^0.7.2", + "autoprefixer": "^10.4.13", + "bech32": "^2.0.0", + "bip21": "^2.0.3", + "bitcoin-address-validation": "^2.2.1", + "buffer": "^6.0.3", + "date-fns": "^2.29.3", + "html5-qrcode": "^2.3.8", + "leaflet": "^1.9.3", + "leaflet.markercluster": "^1.5.3", + "nostr-tools": "^1.14.2", + "postcss": "^8.4.20", + "prettier": "^2.8.1", + "prettier-plugin-svelte": "^2.9.0", + "qr-code-styling": "1.6.0-rc.1", + "qr-scanner": "^1.4.2", + "qrcode-base64": "^1.0.1", + "rollup": "^2.79.1", + "screenfull": "^6.0.2", + "svelte": "^3.55.0", + "svelte-outclick": "^3.3.3", + "svelte-preprocess": "^4.10.7", + "svelte-virtual-scroll-list": "^1.1.0", + "sveltekit-i18n": "^2.2.2", + "tailwind-scrollbar": "^2.1.0", + "tailwindcss": "^3.2.4", + "uuid": "^9.0.0", + "vite": "^4.2.1" + }, + "pnpm": { + "peerDependencyRules": { + "allowedVersions": { + "vite": "4" + } + } + }, + "type": "module", + "dependencies": { + "@scure/bip39": "^1.2.1", + "html2canvas": "^1.4.1", + "leaflet-tooltip-layout": "^0.1.2" + } } diff --git a/src/components/Qr.svelte b/src/components/Qr.svelte index 975be301..dab672c3 100644 --- a/src/components/Qr.svelte +++ b/src/components/Qr.svelte @@ -5,7 +5,7 @@
screenfull.toggle(qr)} on:keydown={() => screenfull.toggle(qr)} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 24850be4..e68d906e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,162 +1,19 @@ - - - - - - -
-
-
- -

Bitcoin Instructions

-
-
-

Public Payment Page

-
https://coinos.io/{username}
-
-
-

Staff Login

-
{username} / {password}
-
-
-

What to do if a customer asks to pay with Bitcoin

-
    -
  1. Direct them to scan the QR code to visit the payment page.
  2. -
  3. Enter the sale in your PoS as if it were paid by cash.
  4. -
  5. - Tell the customer their total with tax and wait for them to send payment. -
  6. -
  7. - Check the receipt from the coinos printer to make sure they sent the right amount. -
  8. -
  9. Done! Hand the customer their items and a cash receipt if requested.
  10. -
-
- -

- You can view all payments for the day at https://coinos.io/{username}/payments or just total - up all the receipts. -

- -

- If you have any questions please email support@coinos.io or call Adam at - 604-358-6745 -

- - -
-
-
-
- -

Pay with bitcoin

-
- -
- -
coinos.io/{username}
-
-
Trouble scanning? Try your Camera app
-
-
+
+
+ +

Bitcoin Accepted Here

- - - - - {$t('landing.info2.description1')} -

- {$t('landing.info2.description2')} -

- {@html $t('landing.info2.description3')} -
- -
- -
-
+ +
coinos.io/{username}
+
+
- -
-

{$t('howItWorks.header')}

-
- {#each howItWorksSteps as step} - - {/each} -
-
-
- -
-
-

{$t('faq.header')}

- {#each faqIDs as faqID} - - {/each} -
-
-
- - -
- -
-- cgit v1.2.3