stacker.news/lib
SatsAllDay 522c821c89
Notification badges (#595)
* First pass of implementing Badging API for notifications

* Only show app badge when driven from push notifications

* Display number of unread push notifications instead of just an empty badge

Clear badge via postMessage when notifications page is loaded

* de-dupe some code, update badge counter on each notification click

* remove ids, track open note count instead

* restore optional chaining

* ensure note count doesn't go below 0, and fix event.waitUntil error when clearing badge

* incorporate PR feedback
2023-11-08 18:17:01 -06:00
..
apollo.js Custom date selector for more pages (#567) 2023-11-08 18:15:36 -06:00
badge.js Notification badges (#595) 2023-11-08 18:17:01 -06: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
constants.js Custom date selector for more pages (#567) 2023-11-08 18:15:36 -06:00
currency.js reuse validation on server 2023-02-08 13:39:53 -06:00
cursor.js Mention auto-complete (#532) 2023-10-04 15:10:56 -05:00
fancy-names.json Add setting to send diagnostics back to SN (#463) 2023-09-18 18:00:16 -05:00
form.js multiple forwards on a post (#403) 2023-08-23 17:44:17 -05:00
format.js Introduce format option on `numWithUnits` fn, consumed by bounty listing (#496) 2023-09-18 17:49:13 -05:00
item.js improve delete bot ux 2023-10-23 17:55:48 -05:00
lnurl.js LUD-18 Wallet implementation (#531) 2023-10-03 18:22:56 -05:00
md.js remove debug loggin for rehype plugin 2023-10-23 18:16:06 -05:00
new-comments.js subtle highlight of new comments 2023-08-06 14:18:40 -05:00
nostr.js Crosspost discussion items to nostr (#522) 2023-10-04 13:47:09 -05:00
package.json Convert worker to ESM (#500) 2023-09-23 20:19:35 -05:00
push-notifications.js Fix missing merge of FOLLOW push notifications (#596) 2023-11-05 15:06:38 -06:00
rainbow.js new bolt 2021-12-05 11:37:55 -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 Add category tag to RSS feed (#534) 2023-10-02 19:20:13 -05:00
time.js Custom date selector for more pages (#567) 2023-11-08 18:15:36 -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 Update twitter url regexs to match x.com or twitter.com (#454) 2023-08-30 20:13:43 -05:00
validate.js Add a setting for Default Withdrawal max fee (#552) 2023-10-20 19:09:41 -05:00