Commit Graph
27 Commits
Author SHA1 Message Date
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 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 Salminen 89130bd1fb once over on README 2022-08-14 18:34:19 -06: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