145 Commits

Author SHA1 Message Date
ekzyis
069417d130
Enable push notifications in settings (#301)
* Enable push notifications in settings

* Fix checkbox still checked after user denied permission

The error was related to me thinking that the value prop does anything. It didn't.
The value of the checkbox is handled by formik.
So the solution was to hook into formik and use the handler which actually changes the value.

* Add double opt-in to /notifications

* Better styling of alert in /notifications

---------

Co-authored-by: ekzyis <ek@stacker.news>
2023-06-12 13:03:44 -05:00
ekzyis
393d4c7603
Add Markdown formatting hotkeys: CTRL+K, CTRL+I, CTRL+B (#305)
* Fix usage of deprecated event.keyCode

* Add CTRL+K to insert markdown link formatting

* Also add CTRL+B and CTRL+I

* Fix undo not working after using setValue

Undo doesn't work if inputs are changed using javascript code like helpers.setValue().

The solution is to also use `document.execCommand()`.

See https://stackoverflow.com/questions/27027833/is-it-possible-to-edit-a-text-input-with-javascript-and-add-to-the-undo-stack

However, `document.execCommand()` is deprecated but there seems to be no alternative, see:

- https://stackoverflow.com/questions/60581285/execcommand-is-now-obsolete-whats-the-alternative
- https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#browser_compatibility
- https://github.com/codex-team/editor.js/discussions/2214

And so far, every browser still seems to support it: https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#browser_compatibility

---------

Co-authored-by: ekzyis <ek@stacker.news>
2023-06-12 12:29:50 -05:00
keyan
87e86526f8 fix submit button not being disabled 2023-05-18 13:02:19 -05:00
keyan
6d8780373a form enhancements 2023-05-11 14:34:42 -05:00
keyan
df1f1a483a require sub selection, allow editting 2023-05-10 19:30:51 -05:00
keyan
2d012ba7fe allow nip05 for users 2023-01-06 18:53:29 -06:00
keyan
30b1ee33aa user search 2022-10-25 12:13:06 -05:00
keyan
e4d150413b search filters 2022-10-20 17:44:44 -05:00
keyan
729bcead69 select instead of dropdown for currency 2022-10-04 16:21:42 -05:00
ekzyis
c184faf017 Use dropdown for fiat selection in settings 2022-09-18 03:45:21 +02:00
keyan
a5d1d8dc0f user suggestions on forward 2022-08-31 14:09:49 -05:00
keyan
016e357ebd clear inputs 2022-08-30 17:02:45 -05:00
keyan
388c7d0240 full powered editing 2022-08-18 13:15:24 -05:00
keyan
ddb4a30c4b spam fees 2022-08-11 15:38:10 -05:00
keyan
82280b0966 add polls 2022-07-30 08:51:04 -05:00
keyan
beef34abfa linkable headers 2022-07-17 10:35:50 -05:00
keyan
08defc561b improved heading and images for markdown 2022-07-13 18:00:48 -05:00
keyan
d978ff5ea5 forward tips from posts 2022-04-19 13:32:39 -05:00
keyan
a627322220 add job company and location 2022-03-07 15:50:13 -06:00
keyan
b954186d31 jobs w/o payments yet 2022-02-24 13:05:57 -06:00
keyan
37f8784789 don't render markdown preview unless user wants to see it 2022-02-10 11:51:44 -06:00
keyan
e37475f927 send to lightning address 2022-01-24 11:25:15 -06:00
keyan
7aa294b57e less hasty fix preventing localStorage call on SSR 2022-01-08 09:31:37 -06:00
keyan
e6c693f241 don't call localStorage on server 2022-01-07 20:05:00 -06:00
keyan
b6a530f5c4 comment draft saving 2022-01-07 12:55:40 -06:00
keyan
e42f1d6bb9 WIP save drafts of posts 2022-01-07 12:28:23 -06:00
keyan
d92f58aaf4 inv & with satistics + filtering 2021-12-16 11:27:12 -06:00
keyan
2d97314d33 dark mode without ability to switch 2021-11-04 14:22:03 -04:00
keyan
e4c1c2f1e1 refine tipping 2021-09-12 11:55:38 -05:00
keyan
0a20f2ea23 WIP tips 2021-09-10 13:55:36 -05:00
keyan
ce0e3dac45 auto-populate link title 2021-08-22 10:25:17 -05:00
keyan
4a770b61b6 cmd or ctrl enter to submit 2021-08-19 16:13:33 -05:00
keyan
b4be2c613b comment edit spagetti 2021-08-10 17:59:06 -05:00
keyan
605aac97ab markdown previews 2021-07-01 18:51:58 -05:00
keyan
4d161a8092 add sticky footer 2021-06-02 19:15:28 -04:00
keyan
80ff13abd6 finish mvp 2021-05-24 19:08:56 -05:00
keyan
a9ea341a7b create reserved usernames 2021-05-21 19:09:11 -05:00
keyan
4f627e2a5c check for usernames on typing 2021-05-21 17:32:21 -05:00
keyan
0eabe1463d attempts at serializable transactions 2021-05-19 20:09:32 -05:00
keyan
157488ea5d make withdrawls mostly work 2021-05-13 16:19:51 -05:00
keyan
ce55fdfe9c withdrawl page 2021-05-13 08:28:38 -05:00
keyan
4b07edf6f5 ready for invoices 2021-05-06 16:15:22 -05:00
keyan
900b70da77 custom auth page 2021-04-24 16:05:07 -05:00
keyan
28ed42fc29 more progress 2021-04-14 18:56:29 -05:00
keyan
bc5d4d4808 tables 2021-04-13 19:57:32 -05:00