Lim Chee Aun
ffbae70178
Remove newline from regex for shortcode
2024-04-19 08:41:16 +08:00
Lim Chee Aun
9235d2c800
Hide poll button if maxOptions <= 1
...
It's not a poll if there's only 1 option
2024-04-18 23:12:29 +08:00
Lim Chee Aun
b9058c6e3d
Debounced auto-submit for GIF search field
2024-04-17 08:26:35 +08:00
Lim Chee Aun
effbe189e1
Revert "Test upgrade react-hotkeys-hook for the keys fix"
...
This reverts commit 9285a0ba9a
.
2024-04-16 00:09:53 +08:00
Lim Chee Aun
6f22ec3842
Fix missing idempotency key
2024-04-13 17:07:28 +08:00
Lim Chee Aun
aefda31c2a
Temporary quick fix, remove dash from hashtag regex
2024-04-13 00:11:00 +08:00
Lim Chee Aun
9285a0ba9a
Test upgrade react-hotkeys-hook for the keys fix
2024-04-13 00:11:00 +08:00
Lim Chee Aun
c18efef7b6
GIF picker
2024-04-02 17:51:48 +08:00
Lim Chee Aun
ff336628f8
Fix media description not recognized if programmatically entered
2024-04-02 17:45:14 +08:00
Lim Chee Aun
4abb1aeaed
Fix poll got false value
2024-03-27 09:46:37 +08:00
Lim Chee Aun
13f5621488
Fix char counter not showing properly on Firefox
2024-03-24 16:37:58 +08:00
Lim Chee Aun
fef033b282
Show relative time if replying to old post
...
Ref: https://blog.joinmastodon.org/2023/11/improving-the-quality-of-conversations-on-mastodon/
2024-03-13 13:30:58 +08:00
Lim Chee Aun
0e1be5dbdc
MVP-ish initial implementation of Quote
...
The menuExtras is hacky, I know.
2024-03-09 21:29:44 +08:00
Lim Chee Aun
531147cbc3
It's time for Intl.Segmenter
...
Remove runes2
2024-03-04 19:38:46 +08:00
Lim Chee Aun
6292557bc9
Default modal to light, add solid class instead
2024-03-03 17:31:06 +08:00
Lim Chee Aun
707b51a1a0
Don't trigger auto list if meta/ctrl+enter
2024-02-26 14:57:09 +08:00
Lim Chee Aun
b6c4045cb4
Escape HTML chars in composer highlights
...
This is very embarrassing, I know
2024-01-17 11:31:33 +08:00
Lim Chee Aun
16e2ac9bce
Test better equal checks
2024-01-06 12:31:25 +08:00
Lim Chee Aun
7223baaaad
Better error handling for image desc generator
...
400 doesn't throw error
2024-01-06 12:23:15 +08:00
Lim Chee Aun
fe54eb11a7
Experimental opt-in description generator
2023-12-27 23:33:59 +08:00
Lim Chee Aun
7b246fc660
It's time to use CloseWatcher
...
It shipped since Chrome 120 https://chromestatus.com/feature/4722261258928128
2023-12-20 21:02:22 +08:00
Lim Chee Aun
ac60890c9a
Revert "Don't highlight mention when it's prepended by a dot"
...
This reverts commit 5fef0b3fb5
.
2023-12-17 18:25:58 +08:00
Matthieu Rakotojaona
5fef0b3fb5
Don't highlight mention when it's prepended by a dot
2023-12-12 19:18:56 +01:00
Lim Chee Aun
94c2f43c38
Add basic unicode awareness to mention highlighting
2023-12-05 18:30:15 +08:00
Lim Chee Aun
d27de2337a
Disable highlighting if slow perf
2023-11-30 23:46:55 +08:00
Lim Chee Aun
4f41646000
Multiple fixes on composer highlighting
...
- Hide scrollbar for the faux highlight div
- Use unicode-aware split for highlighting exceeded characters
- Disable highlight of mentions, hashtags, etc if exceeded max characters
- Sync scroll as often as possible
2023-11-26 18:25:29 +08:00
Lim Chee Aun
1383296861
Fix null style
2023-11-19 12:06:39 +08:00
Lim Chee Aun
eb203a0498
Replace lookbehind regex
...
because older Safari doesn't support it
2023-11-19 12:06:03 +08:00
Lim Chee Aun
3a326194ad
Use static avatar in composer
2023-11-12 11:01:44 +08:00
Lim Chee Aun
82a9a7212d
Fix highlight bugs & maybe some perf issues
2023-11-09 19:11:00 +08:00
Lim Chee Aun
1882338078
Basic text highlighting for composer
...
This will probably be very buggy
2023-11-08 23:16:16 +08:00
Lim Chee Aun
678fc100c8
Allow shifts to open composer in new window
2023-11-05 17:41:29 +08:00
Lim Chee Aun
674e1fd1ff
Fix textarea styles leaked to other textareas
2023-11-04 12:02:41 +08:00
Lim Chee Aun
3c790ebff4
Better segmentation of languages with <hr>
2023-10-30 23:50:15 +08:00
Lim Chee Aun
3092a8bba1
Show hashtag usage total counts
2023-10-30 09:22:39 +08:00
Lim Chee Aun
b6d8c46e2c
Remove console log
2023-10-26 21:29:39 +08:00
Lim Chee Aun
0038c2225b
Fix 1 more esc clash
2023-10-26 11:16:34 +08:00
Lim Chee Aun
05ee27e045
Time to remove this auto-shrink text effect in composer
...
It was fun…
2023-10-24 23:23:51 +08:00
Lim Chee Aun
0247c041f2
Fix composer not opening for Pleroma instances
...
Pleroma doesn't have `configuration` in instance API response
2023-10-24 14:30:50 +08:00
Lim Chee Aun
6540dd5642
Only set CW if there's spoiler text
...
Some posts have sensitive media but no spoiler text
2023-10-15 11:24:44 +08:00
Lim Chee Aun
806ad2c6a2
Fix media re-rendering due to url object keep being recreated
2023-10-12 23:19:48 +08:00
Lim Chee Aun
a095a30500
Breaking news: upgrade to masto v6
...
Expecting bugs!
Also include some fixes for states init.
2023-10-12 12:48:09 +08:00
Lim Chee Aun
eace6c4d9b
Slight adjustments to media alt edit sheet
2023-10-05 18:07:36 +08:00
Lim Chee Aun
4723358d2d
Fix borked image when restore from draft
2023-10-05 18:01:18 +08:00
Lim Chee Aun
fd1b45900d
Different copy for toast when replying or editing
2023-09-28 15:45:38 +08:00
Lim Chee Aun
173cad2275
So all this while been using the wrong API for autocomplete mentions
...
🫣 🫣 🫣
2023-09-27 13:37:12 +08:00
Lim Chee Aun
d4dca0e81f
Support non-rectangular custom emojis 😩
...
Platforms like Misskey have irregularly-shaped custom emojis (emojos?)
- So far this handles horizontally-wide emojis, not tall ones (haven't seen any)
- text-overflow: ellipsis is not used because it can't ellipsis-fy wide emoji images
2023-09-24 15:45:01 +08:00
Lim Chee Aun
887503e40b
Auto-list composing
...
Automatically create lists like "- " or "12. " when press Enter
2023-09-16 22:57:35 +08:00
Lim Chee Aun
2d94f229c3
Fix weird textarea height on first render
2023-09-10 15:29:25 +08:00
Lim Chee Aun
a9109f4839
Show account block in Composer
2023-09-03 19:48:36 +08:00