ekzyis
e243c1c224
Add cancel button for editing all post types + bio ( #310 )
...
* Add cancel button when editing any post type
* Add cancel button when editing bio
---------
Co-authored-by: ekzyis <ek@stacker.news>
2023-06-12 12:35:28 -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
369bd82a84
make freebie comments visible case by case
2023-06-03 20:01:50 -05:00
keyan
56f08e0144
allow ctrl-click of post button
2023-06-03 17:49:04 -05:00
keyan
d815cae715
add 'stacking since' to profile
2023-06-02 19:55:45 -05:00
keyan
d4988694c8
make room in header to pwa back button
2023-06-01 19:34:26 -05:00
keyan
56314bac4e
fix window navigation error on firefox
2023-06-01 15:29:20 -05:00
keyan
c4b96b998f
only request notification permissions on the notifications page
2023-06-01 14:41:20 -05:00
keyan
f4b81b0ff0
fix notification clicking after refactor
2023-06-01 13:22:39 -05:00
keyan
3de8df5ab5
enhancements for footer version with prod support
2023-06-01 12:57:31 -05:00
ekzyis
61e0a100c0
Show version in footer ( #294 )
...
Co-authored-by: ekzyis <ek@stacker.news>
2023-06-01 12:19:45 -05:00
keyan
15850f0dbb
move free posts message about sub select
2023-05-31 19:54:35 -05:00
ekzyis
40b7fde621
refactor: create component per notification type ( #298 )
...
Co-authored-by: ekzyis <ek@stacker.news>
2023-05-31 19:51:30 -05:00
ekzyis
0c251ca376
Add thread subscriptions ( #293 )
...
* Add thread subscriptions
* remove dead code: reply only notifications
* break out thread subscription queries to reduce search space
* one db dip for item lists/threads re:meSubscription
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-05-31 19:44:06 -05:00
ekzyis
e97509eea7
Use PWA with display: standalone ( #292 )
...
* Use next-pwa
* Use standalone + back button
* Use Notification API
* Use custom service worker
* Use url_handlers
* Add offline page
* Use smaller icon in notification
* Only prompt for notifications if logged in
* small enhancements to standalone pwa
* remove unused back arrow
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: keyan <keyan.kousha+huumn@gmail.com>
2023-05-31 17:28:33 -05:00
ekzyis
5c55afc97c
Fix no dupes check after link unshortening
2023-05-21 12:50:14 -05:00
ekzyis
4af445d242
Fix fetched data not shown if last action was title clear
...
There are two flows when clearing both inputs:
1. First clear title, then clear URL, then enter new URL
In this case, new data will be fetched when the URL is cleared since the title is empty. Due to the fetch with empty variables, the fetched data is essentially reset.
Entering a new URL thus triggers a new fetch (since title is still empty) and the fetched data is shown since it is different compared to the previous render.
2. First clear URL, then clear title, then enter new URL
In this case, new data will not be fetched when the URL is cleared since the title is not empty.
When entering a new URL, new data is fetched but will not be shown since the fetched data was never reset and thus did not change compared to the previous render.
This is fixed by always either a) resetting the fetched data or b) fetching new data if the URL changed.
2023-05-21 12:27:01 -05:00
keyan
87e86526f8
fix submit button not being disabled
2023-05-18 13:02:19 -05:00
keyan
9d31d56ec0
fix missing advanced options in bounty/discussion form
2023-05-16 13:30:19 -05:00
ekzyis
0effc065c6
Mix default and custom tips during sort
2023-05-14 19:41:36 -05:00
ekzyis
c05a76d664
Fix duplicate tips
2023-05-14 19:41:36 -05:00
ekzyis
342b2b76ca
Use numeric input
2023-05-14 19:41:36 -05:00
ekzyis
8d35cd0194
Save custom tips
2023-05-14 19:41:36 -05:00
keyan
6d8780373a
form enhancements
2023-05-11 14:34:42 -05:00
keyan
5bb6b5f2e7
placeholder when there aren't comments
2023-05-10 19:41:17 -05:00
keyan
df1f1a483a
require sub selection, allow editting
2023-05-10 19:30:51 -05:00
keyan
95420fe39b
update footer
2023-05-09 17:52:24 -05:00
keyan
01d29e013e
fix job editting bug
2023-05-08 14:14:32 -05:00
keyan
e2aceee234
higher tip defaults
2023-05-06 18:29:20 -05:00
keyan
347a6a54d2
improve comment performance
2023-05-06 16:51:17 -05:00
keyan
1a5d8880dd
decapitalize all caps titles
2023-05-06 10:54:04 -05:00
keyan
aef1163ea0
add amboss link in footer
2023-05-05 16:22:22 -05:00
keyan
b406f0c340
avoid db dip for sub
2023-05-05 12:39:57 -05:00
keyan
7e0103bce3
add separate podcast link
2023-05-05 11:54:28 -05:00
keyan
83a4568ec4
add social media to footer
2023-05-04 18:15:08 -05:00
keyan
833b31980e
add jobs rss and style footer popovers consistently
2023-05-04 16:41:56 -05:00
ekzyis
d98421d9cd
Add RSS feeds for ~bitcoin and ~nostr
2023-05-04 13:43:40 -05:00
keyan
236ee552c6
navbar fixes
2023-05-02 19:22:38 -05:00
keyan
4e817a232d
sub related enchancements
2023-05-02 11:55:10 -05:00
keyan
4be5286122
hide cowboy hat setting
2023-05-01 16:52:02 -05:00
keyan
a241d683d8
nostr sub
2023-05-01 15:58:30 -05:00
keyan
d6c92fec62
prevent layout shift when loading dupes
2023-04-26 13:02:42 -05:00
ekzyis
f2f205dc80
Disable post button for 3 seconds max
2023-04-26 13:02:42 -05:00
ekzyis
259b5b7a36
Don't run dupes query empty
2023-04-26 13:02:42 -05:00
ekzyis
29bee1c740
Show dupes loading
2023-04-26 13:02:42 -05:00
ekzyis
d43c7cc222
Disable post button while dupes are loading
2023-04-26 13:02:42 -05:00
keyan
e4a3095cb4
give pinned item recent sort by default
2023-03-19 10:43:33 -05:00
keyan
ff34bd0124
don't show price on error
2023-03-04 12:16:50 -06:00
keyan
183201a1b8
don't autofocus top-level reply
2023-02-24 10:08:15 -06:00
ekzyis
5d572c2fe3
Autofocus reply inputs ( #242 )
2023-02-24 09:52:09 -06:00