Commit Graph
93 Commits
Author SHA1 Message Date
Lee Salminen 4ab5285156 format 2022-12-29 08:16:51 -06:00
Lee Salminen 8265bbfeb5 regex validation 2022-12-27 16:19:39 -06:00
Lee Salminen 2c803a745d case insensitive 2022-12-27 16:13:56 -06:00
Lee Salminen fe2be38ebb add manual activate button 2022-12-24 05:42:00 -06:00
Lee Salminen 4f39dce206 update readme 2022-12-21 15:17:28 -06:00
Lee Salminen e65082b585 add self-service pubkey rotation for nip-05 addresses 2022-12-21 14:05:45 -06:00
Lee Salminen 6996155cae format 2022-12-20 10:40:01 -06:00
Lee Salminen 6787e4916e allow admins to manually create addresses without paying 2022-12-20 10:39:45 -06:00
Lee Salminen 0f417110cb improved validation 2022-12-20 10:32:45 -06:00
Lee Salminen 45a69a1139 fix readme 2022-12-20 10:32:28 -06:00
Lee Salminen ad572f267a Merge branch 'main' of github.com:leesalminen/lnbits-legend 2022-12-20 08:45:11 -06:00
Lee Salminen 4e996c821e format and mypy 2022-12-20 08:44:28 -06:00
Lee Salminen 189347ee39 readme 2022-12-20 08:06:25 -06:00
Lee Salminen 51076634bd allow users to enter their npub bech32 encoded too 2022-12-20 07:49:59 -06:00
Lee Salminen f7b4aa91ab API docs 2022-12-20 07:49:35 -06:00
Lee Salminen 632636ff0a rename function 2022-12-20 07:16:55 -06:00
Lee Salminen 048ccd6d65 formatting 2022-12-20 07:15:54 -06:00
Lee Salminen 9e857e6329 better validation on pubkeys 2022-12-20 07:14:03 -06:00
Lee Salminen 3ca9edeee6 WIP nostr nip5 extension 2022-12-20 06:28:43 -06:00
Lee SalminenandGitHub 7d736c3f77 Add FORWARDED_ALLOW_IPS to example fly.io (#1082)
This PR adds the needed `FORWARDED_ALLOW_IPS="*"` environment variable to the fly.io installation method, which is needed to work.
2022-10-26 13:02:35 +02:00
Lee Salminen 36b2b82186 Merge branch 'main' into ext-boltcards-2 2022-08-30 10:20:24 -06:00
Lee Salminen c114895219 text change, fix copy pasta 2022-08-30 08:08:11 -06:00
Lee Salminen ad60c1614e hide nfc button if not supported on device, per issue #907 2022-08-30 08:06:05 -06:00
Lee Salminen 7a7413bb6f add lnurlw_base to auth response, per developers of the android app a future version will use this to pull the base url directly into the app 2022-08-30 07:35:31 -06:00
Lee Salminen 4e63662f42 add external_id field for external use 2022-08-29 14:51:18 -06:00
Lee Salminen 81ed71a2e4 update README to reflect latest changes 2022-08-29 12:04:08 -06:00
Lee Salminen 993511bcd4 fix validation check for existing card UID, was preventing all edits of cards. we should validate a bit differently for updates vs. creates 2022-08-29 09:40:35 -06:00
Lee Salminen a6cf19c29d potential race condition here, hits is dependent on cards to get the card name in hits 2022-08-29 09:33:28 -06:00
Lee Salminen 88210129b7 make refunds work properly 2022-08-29 09:32:13 -06:00
Lee Salminen 7baec1de15 success_action was not defined, does not appear to be necessary for this 2022-08-29 09:05:00 -06:00
Lee Salminen 82904e509d Merge branch 'ext-boltcards-2' of github.com:leesalminen/lnbits-legend into ext-boltcards-2 2022-08-29 08:51:41 -06:00
Lee Salminen fe83cad7a3 formatting 2022-08-29 08:51:32 -06:00
Lee Salminen 6d9d037c06 add link to play store for bolt card app listing 2022-08-29 08:51:15 -06:00
Lee Salminen b7c7b28dfc remove v-el:keybtn, was removed in vue v2. unnecessary ref anyways 2022-08-29 08:49:57 -06:00
Lee Salminen 51f9166744 define lnurlLink 2022-08-29 08:49:04 -06:00
Lee Salminen 8e41f7867e Revert "make format"
This reverts commit 8832d6e4eb.
2022-08-29 08:39:37 -06:00
Lee Salminen 93483f76ab Revert "make copy lnurl to clipboard work"
This reverts commit c8b725830b.
2022-08-29 08:39:30 -06:00
Lee Salminen e715ff52d2 Revert "link to play store app in qr code dialog"
This reverts commit 7400d7f430.
2022-08-29 08:39:16 -06:00
Lee Salminen 5dd6c0d2f4 Revert "make scan nfc button work"
This reverts commit a8ac90da5c.
2022-08-29 08:39:02 -06:00
Lee Salminen d7696fdc0f Revert "remove v-el from element, this was removed in Vue v2, ref does not appear to be used anywhere"
This reverts commit c35ae109a4.
2022-08-29 08:38:54 -06:00
Lee Salminen a086db43ba Revert "do not add lnurlw:// to the string"
This reverts commit 630cc296fb.
2022-08-29 08:38:48 -06:00
Lee Salminen 630cc296fb do not add lnurlw:// to the string 2022-08-29 08:22:51 -06:00
Lee Salminen c35ae109a4 remove v-el from element, this was removed in Vue v2, ref does not appear to be used anywhere 2022-08-29 08:21:47 -06:00
Lee Salminen a8ac90da5c make scan nfc button work 2022-08-29 08:19:39 -06:00
Lee Salminen 7400d7f430 link to play store app in qr code dialog 2022-08-29 07:58:29 -06:00
Lee Salminen c8b725830b make copy lnurl to clipboard work 2022-08-29 07:55:51 -06:00
Lee Salminen 8832d6e4eb make format 2022-08-29 07:34:56 -06:00
Lee Salminen a3f910acf4 additional validation 2022-08-21 13:17:44 -06:00
Lee SalminenandGitHub aff7e11089 Update installation.md 2022-08-21 12:57:28 -06:00
Lee SalminenandGitHub 218ccbc3a7 Update installation.md 2022-08-21 11:46:11 -06:00
Lee SalminenandGitHub 5c2045927a Update installation.md 2022-08-21 11:39:34 -06:00
Lee SalminenandGitHub d9ddd746e0 Update installation.md 2022-08-21 11:25:39 -06:00
Lee Salminen a6f0acc030 update readme 2022-08-21 10:31:47 -06:00
Lee Salminen f6a301668b Revert "convert to using lnbits card id instead of card uid"
This reverts commit 971d8f34e8.
2022-08-21 10:30:25 -06:00
Lee Salminen 38ef4f3a78 Revert "surface the ID"
This reverts commit b11ddf3d61.
2022-08-21 10:30:10 -06:00
Lee Salminen c4ffd45485 more readme 2022-08-21 10:19:34 -06:00
Lee Salminen ec9005ffca add info about {card_id} in readme 2022-08-21 10:18:28 -06:00
Lee Salminen b11ddf3d61 surface the ID 2022-08-21 10:06:39 -06:00
Lee Salminen 971d8f34e8 convert to using lnbits card id instead of card uid 2022-08-21 10:00:16 -06:00
Lee Salminen a8bc3ea870 card_uid is always upper 2022-08-21 09:47:14 -06:00
Lee Salminen f41c43cbf4 get the uid back into bytes 2022-08-21 09:09:01 -06:00
Lee Salminen 9dd7d30716 format 2022-08-21 09:02:20 -06:00
Lee Salminen 4242a82029 Add a secondary route with the card_uid appended to it. 2022-08-21 08:58:38 -06:00
Lee Salminen db83d803f8 add .upper() to other side of the condition 2022-08-21 07:32:11 -06:00
Lee Salminen 6898412e6c more validation 2022-08-19 16:54:06 -06:00
Lee Salminen 302ccfd429 add better error handling 2022-08-19 16:52:06 -06:00
Lee Salminen b80f2f8e4d error handling if bad input data in db 2022-08-19 16:47:33 -06:00
Lee SalminenandGitHub 7d56878f55 Update installation.md 2022-08-19 16:33:17 -06:00
Lee Salminen 70deb7e702 add docs for hosting lnbits on fly.io 2022-08-19 16:29:32 -06:00
Lee Salminen a28bedf430 update link, this will work once merged to main 2022-08-19 08:45:27 -06:00
Lee Salminen 43db91641a .upper() on p and c to handle breez wallet lower-casing the whole url 2022-08-19 07:34:46 -06:00
Lee SalminenandGitHub 6aef9bfd45 Add NFC support to TPOS Extension (#856)
* WIP

* styling

* WIP

* WIP

* WIP

* Clean up for PR

* isort

* hold abortContoller for a while longer
2022-08-15 15:37:10 +02:00
Lee Salminen 89130bd1fb once over on README 2022-08-14 18:34:19 -06:00
Lee SalminenandGitHub 3df66334db clean up mobile layout per @callebtc (#874) 2022-08-14 19:41:26 +02:00
Lee SalminenandGitHub fc427e7ccc resolves issue #872 & #815, error deleting lnurlp/lnurlw links (#877)
* resolves issue #872, error deleting lnurlp link

* apply the same fix for lnurlw in issue #815
2022-08-14 19:38:26 +02:00
Lee Salminen 293e5394a8 run make format 2022-08-14 10:58:35 -06:00
Lee Salminen 4c758f4665 re-create @iWarpBTC commit ID a9df953990 2022-08-14 10:52:58 -06:00
c32ff1de59 New Extension: Invoicing (#733)
* initial commit

* add docs

* black & prettier

* mobile styles

* add print view

* prettier

* make format

* initial migrations un-messed

* make migrations work for sqlite

* add invoices table

* clean migrations

* add migration to conv

* fix card size

* hopefully fix test migration

* add missing status

* timestamp

* init testing

* remove draft invoice by default on create

* what should i test

* make format

* raise if not invoice

* new test and renaming

* fix issue reported by @talvasconcelos which prevented users from setting status on creation

* readme

* run black

* trying to make tests work

* make it work again

* send paid amount

* partial pay flow

* good coding

* can't get these test to work

* clean up and commenting

* make format

* validation for 2 decimals

Co-authored-by: ben <ben@arc.wales>
Co-authored-by: Tiago vasconcelos <talvasconcelos@gmail.com>
2022-08-13 21:37:44 +02:00
Lee SalminenandGitHub b6d01792e2 Add NFC Writing support to LNURLw extension (#725) 2022-07-18 16:56:15 +02:00
Lee SalminenandGitHub 8079325ec9 fix /usermanager/api/v1/extensions (#730)
Requests to `POST /usermanager/api/v1/extensions` would silently fail due to a missing `await`.
2022-07-17 14:38:00 +02:00
Lee Salminen 94e4495026 run prettier 2022-07-05 16:16:46 -06:00
Lee Salminen aa51d85d65 Merge branch 'main' into improved-pwa 2022-07-05 15:10:57 -06:00
Lee Salminen ebeb3d213b alter injection of tpos to match 2022-07-05 15:09:04 -06:00
Lee Salminen 2cb87d96f2 better way of handling injection of webmanifests 2022-07-05 15:05:31 -06:00
Lee Salminen 80f8d83548 Merge remote-tracking branch 'origin/main' into improved-pwa 2022-07-05 09:21:41 -06:00
Lee Salminen 56c60587a1 fix prettier 2022-07-05 09:14:24 -06:00
Lee Salminen f9b929ae7d add PWA support for the tpos extension 2022-07-04 16:39:05 -06:00
Lee Salminen 52b8506d0a reduce noise 2022-07-04 16:10:31 -06:00
Lee Salminen 102dc56c4a cant force the color 2022-07-04 13:38:05 -06:00
Lee Salminen b298e12cd3 add offline indicator 2022-07-04 13:03:21 -06:00
Lee Salminen d88ffeb237 segregate cache by api key header 2022-07-04 12:32:28 -06:00
Lee Salminen d0ba5c6f30 Improved support for Progressive Web Apps (PWA)
- modify webmanifest to use LNBITS_SITE_TITLE and LNBITS_CUSTOM_LOGO env vars
- modify webmanifest to have a more accurate description, start_url and set theme_color to match default lnbits theme
- add service worker to cache requests (chrome requires a registered service worker to activate some pwa functionality)
- move webmanifest to <head> (chrome acts weird with it in the body)
2022-07-04 11:01:08 -06:00
Lee Salminen 82d7bfbba8 Enhancements to TPOS Extension
- Add new tip % option to TPOS extension.
        - When adding a new TPOS, a user can choose 1 or more tip % options to be displayed to the customer.
        - When adding a new TPOS, a user can choose a wallet to send all collected tips to.

- UI Refresh on TPOS extension.
        - Moved the share button to the top navigation, next to the TPOS name, and changed the icon to a more recognizable one.
        - Re-arranged the buttons on the keypad to be more ergonomic.
2022-07-03 15:49:31 -06:00