Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple menus #2

Open
wants to merge 174 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
62d970c
fixed MainActivity
agustinkassis Oct 23, 2023
1d41c6d
added @react-native-community/cli-platform-android
agustinkassis Oct 23, 2023
b79f173
chore: removed base project
unllamas Oct 25, 2023
d1d1e7e
new initial project
unllamas Oct 25, 2023
ac84f1b
chore: remove elements
unllamas Oct 25, 2023
77db960
chore: remove elements
unllamas Oct 25, 2023
247e417
ajustment project
unllamas Oct 25, 2023
be5fba8
chore: changed name on package.json
unllamas Oct 25, 2023
0febf9b
fix(component): size small for container on Sheet
unllamas Oct 25, 2023
5381f4c
added .nvmrc
agustinkassis Oct 26, 2023
193280b
feat(component): added Navbar
unllamas Oct 26, 2023
4bda364
fix(page): integrated Navbar on Home
unllamas Oct 26, 2023
541ac8f
added necessary packages
agustinkassis Oct 26, 2023
13acfa6
ignore .env
agustinkassis Oct 26, 2023
495c459
added .env example
agustinkassis Oct 26, 2023
18384f3
fix(component): integrated disabled for Keyboard
unllamas Oct 26, 2023
a681c18
fix(component): changed mode integrated on Navbar
unllamas Oct 26, 2023
85f6852
feat(page): added Tree
unllamas Oct 26, 2023
6e8a3f0
fix(component): prop disabled for Keyboard
unllamas Oct 26, 2023
868e881
fix(page): show message for scan nfc on Tree
unllamas Oct 26, 2023
d71a321
feat(component): added Card custom
unllamas Oct 26, 2023
5c9d901
feat(page): added Paydesk
unllamas Oct 26, 2023
ded3517
fix(page): new structure for Home
unllamas Oct 26, 2023
6ad941b
fix(page): default name component for all pages
unllamas Oct 26, 2023
0667e74
fix(component): changed link for themes on Navbar
unllamas Oct 26, 2023
3227e4e
add bolt11
agustinkassis Oct 26, 2023
4b0cd30
added utils
agustinkassis Oct 26, 2023
71e4b3a
added types
agustinkassis Oct 26, 2023
48853fd
added contexts
agustinkassis Oct 26, 2023
5e01849
added providers
agustinkassis Oct 26, 2023
e5de3b3
implemented hooks on main
agustinkassis Oct 26, 2023
3843de9
moved payment page
agustinkassis Oct 26, 2023
872c782
fixed lint errors
agustinkassis Oct 26, 2023
76fa19d
added reactStrictMode
agustinkassis Oct 26, 2023
18a569e
chore: deleted Sheet component
unllamas Oct 26, 2023
5dd7b80
feat(component): added Alert
unllamas Oct 26, 2023
35dcf8f
feat(component): added Alert
unllamas Oct 26, 2023
91a88b7
fix(page): integrated Alert and removed Sheet from Payment
unllamas Oct 26, 2023
407859c
Merge branch 'main' into implement
agustinkassis Oct 26, 2023
e883d23
Merge pull request #1 from lawalletio/implement
agustinkassis Oct 26, 2023
51a4573
commented out print
agustinkassis Oct 26, 2023
10554bc
added use-nfc-hook package
agustinkassis Oct 26, 2023
fde0154
added lnurl types
agustinkassis Oct 26, 2023
ce67a57
implemented NFC
agustinkassis Oct 26, 2023
0cb166f
Merge pull request #2 from lawalletio/nfc
agustinkassis Oct 26, 2023
6055122
added card type
agustinkassis Oct 27, 2023
69becf9
added useCard hook
agustinkassis Oct 27, 2023
a4c5395
refactored card scan process
agustinkassis Oct 27, 2023
4d5357b
Merge pull request #3 from lawalletio/scan-hook
agustinkassis Oct 27, 2023
f29d940
comment out publish nostr event
agustinkassis Oct 27, 2023
3976684
refactored zapEmitter
agustinkassis Oct 27, 2023
4ce0b22
catch publish error
agustinkassis Oct 27, 2023
26d3aae
chore: integrated qr-scanner
unllamas Oct 27, 2023
f8c75bf
fix(lib): integrated validateEmail and detectTransfer on utils
unllamas Oct 27, 2023
2640a09
fix(lib): integrated validateEmail and detectTransfer on utils
unllamas Oct 27, 2023
55a5432
feat(component): integrated Scanner
unllamas Oct 27, 2023
b9fd37e
feat(page): added Scan
unllamas Oct 27, 2023
b415ed8
fix(page): integrated button for scan on Tree
unllamas Oct 27, 2023
f4ea99b
fix sats convert
cuervoshi Oct 27, 2023
c5dff95
set order publish as parallel
agustinkassis Oct 27, 2023
39316ee
Merge branch 'main' of https://github.com/lawalletio/mobile-pos
agustinkassis Oct 27, 2023
4047d12
loader on create invoice
cuervoshi Oct 27, 2023
fc29bbf
Merge branch 'main' of https://github.com/lawalletio/mobile-pos
cuervoshi Oct 27, 2023
ded4e90
disabled react-hooks/exhaustive-deps
agustinkassis Oct 27, 2023
1bc0950
added clear
agustinkassis Oct 27, 2023
a33283b
added util functions
agustinkassis Oct 27, 2023
7baa30f
added params for lN
agustinkassis Oct 27, 2023
68d5378
implemented lnurl on tree
agustinkassis Oct 27, 2023
2092a5a
added destination url for cash
agustinkassis Oct 27, 2023
7f107c1
start read for button
agustinkassis Oct 27, 2023
579ff46
added optional back query
agustinkassis Oct 27, 2023
2e5bbc7
payment: show qr after load event
cuervoshi Oct 27, 2023
72eefd4
Merge branch 'main' into tree-switch
agustinkassis Oct 27, 2023
55be724
Merge pull request #4 from lawalletio/tree-switch
agustinkassis Oct 27, 2023
ce0d43c
feat: integrated PWA
unllamas Oct 27, 2023
f429006
fix(layout): inset metadata on Home
unllamas Oct 27, 2023
82ef186
fix update numpad after change currency
cuervoshi Oct 27, 2023
c96dbac
Merge branch 'main' of https://github.com/lawalletio/mobile-pos
cuervoshi Oct 27, 2023
be6a666
fix: merge
cuervoshi Oct 27, 2023
77efadb
updated favicon
agustinkassis Oct 27, 2023
b30dc3f
tidy up code
agustinkassis Oct 27, 2023
b67cee7
fix(component): more size for QRCode
unllamas Oct 27, 2023
627a236
fixes on waiting payment
cuervoshi Oct 27, 2023
722c1f6
fixed card
agustinkassis Oct 27, 2023
2cd686e
added SCANNING lnurlw status
agustinkassis Oct 27, 2023
280b30c
catch error
agustinkassis Oct 28, 2023
4d3217e
added lnurl parse
agustinkassis Oct 28, 2023
9f3f060
fix lnurl parse
agustinkassis Oct 28, 2023
290010d
feat(constants): added categories and products
unllamas Oct 31, 2023
e2f8b45
feat(component): added Product
unllamas Oct 31, 2023
2144f57
feat(component): added Product
unllamas Oct 31, 2023
5c1a51e
feat(component): added FooterCart
unllamas Oct 31, 2023
6f1e72b
feat(page): integrated Cart
unllamas Oct 31, 2023
b9ac3ce
fix(component): integrated gap 16 on Flex
unllamas Oct 31, 2023
69e3fb2
fix(component): style and structure for Product
unllamas Oct 31, 2023
f19944c
added global Android object
agustinkassis Oct 31, 2023
efe49f7
added printorde type
agustinkassis Oct 31, 2023
0a60a6f
style(component): more height and width for Button small
unllamas Oct 31, 2023
abc59df
added OrderItem type
agustinkassis Oct 31, 2023
2f7a7b0
added usePrint hook
agustinkassis Oct 31, 2023
7cbe1eb
fix(page): changed Heading for Text on Cart
unllamas Oct 31, 2023
c2c2092
implemented usePrint
agustinkassis Oct 31, 2023
0d4d8e2
Merge branch 'main' of https://github.com/lawalletio/mobile-pos
agustinkassis Oct 31, 2023
b5e4ad4
fix: more gap for Flex
unllamas Oct 31, 2023
9df6346
remove unused NEXT_PUBLIC_ENCRYPT_PUBLIC_KEY
agustinkassis Oct 31, 2023
8cc688f
fixed usePrint availability
agustinkassis Oct 31, 2023
3fbd71b
added read on global types
agustinkassis Oct 31, 2023
4fd3853
added injected nfc context
agustinkassis Oct 31, 2023
a3ef3bd
added useInjectedNFC hook
agustinkassis Oct 31, 2023
a06b4a3
added InjectedNFCProvider
agustinkassis Oct 31, 2023
9b557a9
Merge branch 'main' of https://github.com/lawalletio/mobile-pos
agustinkassis Oct 31, 2023
0967f42
feat(component): added Sheet
unllamas Nov 1, 2023
38adfc7
feat(component): added Sheet
unllamas Nov 1, 2023
1dd3a17
style(component): changed background for FooterCart
unllamas Nov 1, 2023
5feda12
fix(page): integrated checkout on Cart
unllamas Nov 1, 2023
e7567e0
fix(page): integrated card for Cart on Home
unllamas Nov 1, 2023
b99f638
added global types for Android
agustinkassis Nov 1, 2023
0cded39
implemented InjectedNFC context
agustinkassis Nov 1, 2023
62e8ae3
change alert to console log on missing printer
agustinkassis Nov 1, 2023
ae07268
implemented useCard hook
agustinkassis Nov 1, 2023
52809ab
added native and injected nfc switch
agustinkassis Nov 1, 2023
09004a6
Merge branch 'main' of https://github.com/lawalletio/mobile-pos
agustinkassis Nov 1, 2023
ff90f80
fix: changed structure for Navbar on all pages
unllamas Nov 1, 2023
dd5e849
fix POS scanner
cuervoshi Nov 1, 2023
e73d518
implement order
agustinkassis Nov 1, 2023
510b1ce
added dependencies on clear
agustinkassis Nov 1, 2023
49144ca
added product type
agustinkassis Nov 1, 2023
2bea47f
added parseOrderProducts function
agustinkassis Nov 1, 2023
280bfad
added products to Order context
agustinkassis Nov 1, 2023
485a62e
added router dependency on scan
agustinkassis Nov 1, 2023
403bba2
added abortReadCtrl switch
agustinkassis Nov 1, 2023
85a489e
disable lint on dependencies
agustinkassis Nov 1, 2023
ecf88e0
updated currency conversion and products on cart
agustinkassis Nov 1, 2023
f536309
implented products on payment
agustinkassis Nov 1, 2023
29741a4
Merge pull request #5 from lawalletio/cart
agustinkassis Nov 1, 2023
da98978
fixed parseOrderProducts
agustinkassis Nov 2, 2023
f455c93
fixed product bug
agustinkassis Nov 4, 2023
2b6043c
added FEDERATION_ID to env
agustinkassis Nov 5, 2023
19e3d82
added payment types
agustinkassis Nov 5, 2023
acea84d
added scan action type
agustinkassis Nov 5, 2023
6920ea6
refactored order
agustinkassis Nov 5, 2023
d06cc8a
added NEXT_PUBLIC_IDENTITY_PROVIDER_URL to env
agustinkassis Nov 5, 2023
1970543
added isValidUrl function
agustinkassis Nov 5, 2023
256f4c0
removed wrong type on card
agustinkassis Nov 5, 2023
95e863d
added accountPubKey to LNRUL type
agustinkassis Nov 5, 2023
a802e5d
added mock for card scan
agustinkassis Nov 5, 2023
8a782c6
added regular urls on fetchLNURL
agustinkassis Nov 5, 2023
5ffbdb7
process cards on tree
agustinkassis Nov 5, 2023
f1aa947
updated contexts
agustinkassis Nov 6, 2023
0228afe
fixed pages
agustinkassis Nov 6, 2023
9f54180
fix isValidUrl
agustinkassis Nov 6, 2023
e942c77
fix NEXT_PUBLIC_FEDERATION_ID env
agustinkassis Nov 6, 2023
e1c0d79
refactored types
agustinkassis Nov 7, 2023
091e15e
moved fetchLNURL to utils
agustinkassis Nov 7, 2023
5e504f7
refactored context for tapping
agustinkassis Nov 7, 2023
a843b7d
replaced identityQuery with payment
agustinkassis Nov 7, 2023
2dedaa1
finished tapping feature
agustinkassis Nov 7, 2023
33bdcdb
applied fetchUrl refactor on pages
agustinkassis Nov 7, 2023
989daab
fix print
agustinkassis Nov 7, 2023
7d218eb
added generateInternalTransactionEvent
agustinkassis Nov 7, 2023
43bf18b
removed alerts
agustinkassis Nov 7, 2023
42d3215
started extended implementatino
agustinkassis Nov 7, 2023
fc96020
Merge pull request #6 from lawalletio/internal-transactions
agustinkassis Nov 7, 2023
a497f2c
removed NEXT_PUBLIC_IDENTITY_PROVIDER_URL from env
agustinkassis Nov 7, 2023
244fd62
Merge pull request #7 from lawalletio/internal-transactions
agustinkassis Nov 7, 2023
f915b11
fix(constant): removed some products
unllamas Nov 7, 2023
8e7b3be
added menu jsons
agustinkassis Nov 9, 2023
f409669
added lud06 caches
agustinkassis Nov 9, 2023
2ebead7
updated cart for multiple pages
agustinkassis Nov 9, 2023
c0824a1
added new pages
agustinkassis Nov 9, 2023
9a3447a
removed alert
agustinkassis Nov 9, 2023
e661f75
fix pizza
agustinkassis Nov 9, 2023
8eba257
removed lnurl destinatino
agustinkassis Nov 9, 2023
eca0c2c
added menu
agustinkassis Nov 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
process cards on tree
  • Loading branch information
agustinkassis committed Nov 5, 2023
commit 5ffbdb78e8b92775afa78866a45e8b8dbc4a8df4
10 changes: 9 additions & 1 deletion src/app/tree/page.tsx
Original file line number Diff line number Diff line change
@@ -22,6 +22,8 @@ import { LaWalletContext } from '@/context/LaWalletContext'
import { useCard } from '@/hooks/useCard'
import { ScanAction } from '@/types/card'

const IDENTITY_PROVIDER_URL = process.env.NEXT_PUBLIC_IDENTITY_PROVIDER_URL!

export default function Page() {
// Hooks
const router = useRouter()
@@ -71,7 +73,13 @@ export default function Page() {

const startScanning = async () => {
try {
const scanned = await scan(ScanAction.WRONG)
const scanned = await scan(ScanAction.IDENTITY_QUERY)
if (scanned.tag !== 'laWallet:identityQuery') {
alert('Compatible solo con tarjetas de LaWallet')
return
}

processUrl(`${IDENTITY_PROVIDER_URL}/api/lud06/${scanned.accountPubKey}`)
alert(JSON.stringify(scanned))
// setCardScanned(true);
} catch (e) {