Lim Chee Aun
4def6eef5a
Refactor this out for no particular reason
2024-03-31 20:53:08 +08:00
Lim Chee Aun
2b6beee875
More logic to prevent recursive/wrong quote posts
2024-03-31 20:35:24 +08:00
Lim Chee Aun
d2af509eaf
Hacky way to show on-screen keyboard
...
Doesn't work some of the time.
2024-03-27 21:22:47 +08:00
Lim Chee Aun
1692637e22
Possibly fix weird race conditions
...
No idea how this happen at all
2024-03-27 14:58:32 +08:00
Lim Chee Aun
fd59a39021
Preliminary support for severed relationships notifications
...
Reference: https://github.com/mastodon/mastodon/pull/27511
This is done purely based on the above codebase without real testing.
2024-03-24 14:13:58 +08:00
Lim Chee Aun
f6a9f7807e
Allow Lists to be in Shortcuts (except columns)
...
…and all various Lists-related improvements
2024-03-23 23:52:05 +08:00
Lim Chee Aun
69c47489e3
Fix some at-mentions not handled
2024-03-15 18:20:45 +08:00
Lim Chee Aun
ac07479edd
Fix wrong account shown for multiple same-username links
2024-03-08 14:52:31 +08:00
Lim Chee Aun
cf1c10b338
Show text from poll too
2024-03-07 12:34:38 +08:00
Lim Chee Aun
201ca6ce4a
Catch-up (beta)
2024-02-26 14:02:58 +08:00
Lim Chee Aun
a8b5c8cd64
Experimental "cloud" shortcuts settings import/export
2024-02-26 14:00:53 +08:00
Lim Chee Aun
a3236ea0f0
Report post/profile
2024-02-26 13:59:26 +08:00
Lim Chee Aun
3295b1ab96
Remove the need for setStates
2024-02-14 17:16:53 +08:00
Lim Chee Aun
36f38230c4
Attempt to shorten links if not shortened
...
This usually comes from non-Mastodon instances
2024-02-03 20:36:25 +08:00
Lim Chee Aun
ff35c458c3
Don't return
2024-01-30 18:57:28 +08:00
Lim Chee Aun
f3d77dd04e
Experimental reply parent hint
2024-01-30 14:34:54 +08:00
Lim Chee Aun
a2d995ec07
Support unofficial status.quote
2024-01-25 12:59:53 +08:00
Lim Chee Aun
500f877d4b
Fix error when r is undefined
2024-01-11 10:44:37 +08:00
Lim Chee Aun
ffabd6188d
Truncate URLs
2024-01-10 01:48:20 +08:00
Lim Chee Aun
147a12cbcb
Handle cards with iframe embeds
2024-01-06 16:46:45 +08:00
Lim Chee Aun
16e2ac9bce
Test better equal checks
2024-01-06 12:31:25 +08:00
Lim Chee Aun
c0987209a8
Only threadify & unfurl non-reblog post object
2024-01-04 18:56:11 +08:00
Lim Chee Aun
1adcca5666
Fix destructure error
2024-01-03 07:27:39 +08:00
Lim Chee Aun
d8ceb03d74
Throttle scroll events
2024-01-02 12:25:25 +08:00
Lim Chee Aun
bd38122f1b
Extract unfurling out of status component
2023-12-30 18:13:56 +08:00
Lim Chee Aun
d7d838ebf8
Rebuild useScroll, less states
2023-12-29 18:29:08 +08:00
Lim Chee Aun
f21a65da9a
Micro optimizations
2023-12-29 11:27:01 +08:00
Lim Chee Aun
a97478097b
Queue all the microtasks
2023-12-29 08:25:58 +08:00
Lim Chee Aun
88547fa403
Fix slow code blocking whole component render
2023-12-28 18:39:56 +08:00
Lim Chee Aun
1765defa56
Remove dup regex, add another GTS url pattern
2023-12-28 15:42:27 +08:00
Lim Chee Aun
fe54eb11a7
Experimental opt-in description generator
2023-12-27 23:33:59 +08:00
Lim Chee Aun
cfe41cb802
Test queueMicrotask
2023-12-27 23:32:52 +08:00
Lim Chee Aun
f520e30858
Extend self-hosting variables
2023-12-25 19:25:48 +08:00
Lim Chee Aun
7cfa839e1c
Perf fixes
2023-12-24 22:49:23 +08:00
Lim Chee Aun
6dd54633e0
Finally revisiting this CW thing
...
Respect reading:expand:spoilers and reading:expand:media but differently than Mastodon's logic
2023-12-24 21:07:46 +08:00
Lim Chee Aun
8ca768b957
Apply auth for remote-instance API calls
2023-12-23 23:07:08 +08:00
Lim Chee Aun
6bcee318e4
Change intervals
2023-12-22 10:19:06 +08:00
Lim Chee Aun
49fd8a5dc9
Further rate limit this threadify calls
...
Every post calls threadify and clogs the RAF
2023-12-22 09:54:50 +08:00
Lim Chee Aun
92d6fe7ebe
Let's add speech
2023-12-21 18:17:14 +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
9983c8086c
Only show followed hashtags for non-followings
2023-12-20 16:04:37 +08:00
Lim Chee Aun
8ce720f305
Add all the relationships
2023-12-20 13:55:56 +08:00
Lim Chee Aun
ec4320d53e
Slightly more accurate content length
2023-12-17 18:25:58 +08:00
Lim Chee Aun
aa8cbe046c
New experiment: followed tag indicator
2023-12-15 01:58:44 +08:00
Lim Chee Aun
cbb7378601
Guard against invalid URLs
2023-12-03 20:40:00 +08:00
Lim Chee Aun
7019c09e5b
Better resolving of links
2023-11-25 21:26:27 +08:00
Lim Chee Aun
25e13144a3
s/Calckey/Firefish
2023-11-25 21:22:51 +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
83bdc82049
Add more unfurling
...
- Fix regex
- Handle trunks.social and Phanpy links too
2023-11-05 16:13:00 +08:00
Lim Chee Aun
2c6d18bcfc
Reduce to 50
2023-11-04 19:19:42 +08:00
Lim Chee Aun
0bc1b598c3
Breaking: rewrote filters implementation
2023-11-03 21:45:31 +08:00
Lim Chee Aun
6b3602c6ae
Remove debugging console logs
2023-11-02 13:44:32 +08:00
Lim Chee Aun
ab5a115084
Replace semver with compare-versions
...
Also, semver wasn't even in package.json, it worked because a lot of deps use it
2023-11-02 13:38:39 +08:00
Lim Chee Aun
48b505b382
Fix old columns mode setting wrongly applied
...
Deprecate it more now
2023-11-02 12:59:52 +08:00
Lim Chee Aun
0cc956b8c0
Fix initial authenticated: false bug
2023-11-01 17:02:52 +08:00
Lim Chee Aun
146e5d1a7e
Filter out invalid notifications
2023-10-29 23:27:01 +08:00
Lim Chee Aun
4efc922b7b
Remove dup key
2023-10-27 18:51:10 +08:00
Lim Chee Aun
5d5ab906ba
Further robustify trending news
...
- Convert back to RGB for max compat
- Better variable names
- Add fallback if there's no blurhash
- Refactor color utils
- Use alpha instead of light/dark colors
2023-10-25 19:18:47 +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
61756fac1d
Fix unneccesary re-renders in Notifications
2023-10-23 16:24:30 +08:00
Lim Chee Aun
66fa6fbe52
Memoize getHTMLText
2023-10-19 22:57:56 +08:00
Lim Chee Aun
965f948899
Recode some nested modal closing logic
...
Seems more robust
2023-10-19 16:06:55 +08:00
Lim Chee Aun
32bf258bbf
Test memoize enhanceContent
2023-10-15 01:19:21 +08:00
Lim Chee Aun
f56a44ac97
Complete transition from mem to moize
2023-10-14 20:33:40 +08:00
Lim Chee Aun
0a7f158b70
Memoize translated results
...
First step in migrating to moize
2023-10-14 20:10:34 +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
b8767f3618
Fix load wrong account's stuff when adding new account
...
Some account-based calls were called before states are initialized
2023-10-11 19:07:36 +08:00
Lim Chee Aun
8cd3e38f22
Move this up, Intl stuff seems to run slow sometimes
2023-10-04 10:19:28 +08:00
Lim Chee Aun
be964f933c
Better throttle instead of debounce
2023-10-04 10:05:21 +08:00
Lim Chee Aun
4436c337dd
Cleanup
2023-10-03 15:07:47 +08:00
Lim Chee Aun
48f1527cc6
Robustify useTruncated
...
Also attempt to fix weird scrollHeight bug again
2023-10-03 13:03:03 +08:00
Lim Chee Aun
f05267b216
MVP implementation of listing muted/blocked users
2023-10-02 17:51:36 +08:00
Lim Chee Aun
13cf7b3f92
It's time for global media alt modal
2023-09-28 15:48:32 +08:00
Lim Chee Aun
0f5edef199
Miss one here
2023-09-28 11:22:05 +08:00
Lim Chee Aun
b7416bc17d
Handle Takahe links
2023-09-28 11:19:24 +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
baca2b5851
For debugging
2023-09-21 19:44:26 +08:00
Lim Chee Aun
7e01b4a33a
Ignore cmd/ctrl/shift/alt keys + middle clicks
2023-09-21 13:03:16 +08:00
Lim Chee Aun
674c99a05d
Fix Lemmy post links not working
...
Because it's self-referential
2023-09-21 13:02:40 +08:00
Lim Chee Aun
f9b2ab3b94
Refactor truncated class
...
Also removed the hack fix, not sure why/how it's even fixed.
Don't even know how to explain the logic.
Will revisit and investigate more if the bug happens.
This `useTruncated` can now be reusable.
2023-09-19 16:27:22 +08:00
Lim Chee Aun
59dae782b2
Fix typo 🙈 🙈 🙈
2023-09-17 12:54:48 +08:00
Lim Chee Aun
1a714d214b
Fix not all classes removed
...
This is due to DomTokenList being dynamic, looping it while removing items from it cause wrong indices
2023-09-16 15:45:09 +08:00
Lim Chee Aun
7d28744234
Fix some links have same class names from the app itself
...
Srsly need to sanitize the HTML one day
2023-09-16 14:47:35 +08:00
Lim Chee Aun
27274eeab1
Rework the modal close + focus logic
...
- 'Esc' a modal will focus on "behind" nested modal
- All modals will have 'esc'
2023-09-14 20:39:23 +08:00
Lim Chee Aun
979c3b1498
Add this to hideAllModals
2023-09-12 23:55:41 +08:00
Lim Chee Aun
b57d8adf18
Add Generic Accounts modal
...
Also refactored whole bunch of stuff
2023-09-12 11:27:54 +08:00
Lim Chee Aun
a0f16057a0
Make this more readable
2023-09-10 15:29:52 +08:00
Lim Chee Aun
8018d06cdf
Another (better) way of updating safe area insets
...
Hopefully this works
2023-09-09 14:10:52 +08:00
Lim Chee Aun
0d090eb555
Keyboard shortcuts help sheet
2023-09-06 22:54:05 +08:00
Lim Chee Aun
b472e496d1
Fix bug: hashtags opening account sheet
2023-09-04 20:10:08 +08:00
Lim Chee Aun
c5766e431c
Fix error when opts is null/undefined
2023-09-03 19:44:26 +08:00
Lim Chee Aun
d4dce2fa45
Differentiate username displays
...
When there're mentions of multiple same username + different instances in a post
2023-09-03 10:07:06 +08:00
Lim Chee Aun
39d96f22a0
Make code blocks focusable
2023-09-02 20:49:25 +08:00
Lim Chee Aun
0e745663f0
Yes, push notifications (beta).
...
Heck this feature is tough.
2023-09-01 15:40:00 +08:00
Lim Chee Aun
91419b3243
Enable relative path hosting
2023-08-30 17:46:22 +08:00
Lim Chee Aun
a5865825da
Init states again after login to new account
2023-08-30 17:42:33 +08:00
Lim Chee Aun
1fae2f3208
2nd pass grouping of 1-account-many-statuses fav/boost
2023-08-27 13:06:26 +08:00
Lim Chee Aun
ccd79e5348
Further polish hashtag stuffing logic
2023-08-20 10:17:56 +08:00
Lim Chee Aun
de10faee88
Further apply text color to links
2023-08-18 13:48:45 +08:00
Lim Chee Aun
ac8a4c7fbf
Instead of return false, return the default locale arg
2023-08-14 18:03:05 +08:00