stacker.news/lib
ekzyis ae73b0c19f
Support receiving via LNbits (#1278)
* Support receiving with LNbits

* Remove hardcoded LNbits url on server

* Fix saveConfig ignoring save errors

* saveConfig was meant to only ignore validation errors, not save errors
* on server save errors, we redirected as if save was successful
* this is now fixed with a promise chain
* logging payments vs receivals was also moved to correct place

* Fix enabled falsely disabled on SSR

If a wallet was configured for payments but not for receivals and you refreshed the configuration form, enabled was disabled even though payments were enabled.

This was the case since we don't know during SSR if it's enabled since this information is stored on the client.

* Fix missing 'receivals disabled' log message

* Move 'wallet detached for payments' log message

* Fix stale walletId during detach

If page was reloaded, walletId in clearConfig was stale since callback dependency was missing.

* Add missing callback dependencies for saveConfig

* Verify that invoiceKey != adminKey

* Verify LNbits keys are hex-encoded

* Fix local config polluted with server data

* Fix creation of duplicate wallets

* Remove unused dependency

* Fix missing error message in logs

* Fix setPriority

* Rename: localConfig -> clientConfig

* Add description to LNbits autowithdrawals

* Rename: receivals -> receives

* Use try/catch instead of promise chain in saveConfig

* add connect label to lnbits for no url found for lnbits

* Fix adminKey not saved

* Remove hardcoded LNbits url on server again

* Add LNbits ATTACH.md

* Delete old docs to attach LNbits with polar

* Add missing callback dependencies

* Set editable: false

* Only set readOnly if field is configured

---------

Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-08-12 17:23:39 -05:00
..
apollo.js backend payment optimism (#1195) 2024-07-01 12:02:29 -05:00
badge.js check both `navigator.permissions.query` and `Notification.permission` for permissions (#655) 2023-11-25 11:32:41 -06:00
bip39-words.js add lnc attached wallet (#1104) 2024-04-26 21:22:30 -05:00
bolt11.js add lnc attached wallet (#1104) 2024-04-26 21:22:30 -05:00
clicks.js Revert "Revert "shield your eyes; massive, squashed refactor; nextjs/react/react-dom/apollo upgrades"" 2023-07-23 10:08:43 -05:00
cln.js Allow HTTP and HTTPS over Tor for LNbits (#1176) 2024-05-16 08:41:49 -05:00
constants.js Wallet definitions with uniform interface (#1243) 2024-07-20 17:51:46 -05:00
create-prisma.js allow db connection limit and timeout configuration 2024-07-16 13:42:09 -05:00
crypto.js Store hashed and salted email addresses (#1111) 2024-05-04 18:06:15 -05:00
currency.js feat: added NGN currency (#1264) 2024-07-21 11:46:52 -05:00
cursor.js use keyset pagination for notifications (#899) 2024-03-06 13:53:13 -06:00
fancy-names.json Add setting to send diagnostics back to SN (#463) 2023-09-18 18:00:16 -05:00
form.js backend payment optimism (#1195) 2024-07-01 12:02:29 -05:00
format.js add separators to all unabbreviated numbers 2024-07-31 19:02:33 -05:00
item.js backend payment optimism (#1195) 2024-07-01 12:02:29 -05:00
lnurl.js add NEXT_PUBLIC_URL 2024-04-08 17:54:39 -05:00
macaroon-id.js LND autowithdraw (#806) 2024-02-13 13:17:56 -06:00
macaroon-id.proto LND autowithdraw (#806) 2024-02-13 13:17:56 -06:00
macaroon.js Wallet definitions with uniform interface (#1243) 2024-07-20 17:51:46 -05:00
madness.js reintroduce daily rewards (#1134) 2024-05-01 09:30:36 -05:00
md.js don't import css into /lib 2024-06-25 17:18:21 -05:00
new-comments.js subtle highlight of new comments 2023-08-06 14:18:40 -05:00
nostr.js Nostr crossposting all item types (#779) 2024-02-21 19:18:36 -06:00
package.json Convert worker to ESM (#500) 2023-09-23 20:19:35 -05:00
proxy.js Use proxy agents for CLNRest over Tor (#1136) 2024-05-03 17:00:28 -05:00
rainbow.js undo zap/downzap and improve downzap ux 2023-12-19 19:55:19 -06:00
rand.js use rand lightning animation when not logged in 2021-07-16 11:47:18 -05:00
remark-mention.js fix mdast find and replace imports 2023-07-24 20:03:56 -05:00
remark-sub.js fix markdown inline code and headings 2023-10-23 17:14:37 -05:00
rss.js Use module path aliases (#938) 2024-03-19 19:37:31 -05:00
sndev.js dont expect unrun services in dev (#1279) 2024-07-31 19:44:08 -05:00
territory.js fix #951 also retroactively 2024-03-20 20:56:40 -05:00
time.js Monthly rewards (#890) 2024-03-01 10:28:55 -06:00
timedate-scraper.js Attempt to get publication year when auto-titling links (#520) 2023-10-20 19:23:50 -05:00
url.js Handle Peertube Embeds (#1223) 2024-06-20 11:28:25 -05:00
url.spec.js Fix missing commentId parsing for item mentions (#1219) 2024-06-03 21:54:42 -05:00
user.js honor mutes when sending push notifications (#1145) 2024-05-12 13:55:56 -05:00
validate.js Support receiving via LNbits (#1278) 2024-08-12 17:23:39 -05:00
wallet.js Fix duplicate 'Wallet' in resolver name (#1281) 2024-08-01 16:06:58 -05:00
webPush.js Fix push notifications (#1249) 2024-07-01 15:51:59 -05:00