Commit graph

348 commits

Author SHA1 Message Date
Lim Chee Aun
acb7084d18 All the updates for Lingui v5
Possibly might break if I accidentally miss something
2024-12-21 15:26:28 +08:00
Lim Chee Aun
e652ce8d9b Include Prettier & format everything properly
My bad for not including prettier
2024-12-04 15:15:56 +08:00
Sorin Davidoi
46b5faab31
fix(lang): respect fallback languages
If `navigator.languages` returns `['da', 'en-US', 'en']`, and the Danish
language is not available, the user interface should be in English.

Currently it is shown in Norwegian, because only `'da'` is taken into
account when deciding on the preferred language (and `match` selects
`nb-NO` using the default `'best fit'` algorithm).

While the Norwegian and Danish languages are similar, I would argue that
this is a bug, as `navigator.languages` cleary states that the fallback
language should be English.

Another potential solution would be to pass `{ algorithm: 'lookup' }` to
the `match` function. However, this might break some cases when a
`'best fit'` approach would be appropriate (e.g. Swiss German falling
back to German).

See https://helvede.net/@jwcph/113497955274343365.
2024-11-19 00:59:40 +02:00
Lim Chee Aun
6a4e14267a Attempt to fix column focus bug 2024-11-14 19:22:35 +08:00
Lim Chee Aun
cc591237f5 Embrace chroma.js and okLCH 2024-11-12 18:58:56 +08:00
Scott Feeney
7b926f73fb Merge branch 'main' into feature-detect 2024-11-11 15:36:06 -08:00
Lim Chee Aun
a1a4b01ace Allowlist groupable notifications 2024-11-07 16:15:07 +08:00
Lim Chee Aun
50136fb8c8 Add [ and ] to focus columns 2024-11-01 17:42:25 +08:00
Lim Chee Aun
8d98ccff83 Fix cloak mode issues on Safari 2024-10-18 18:35:09 +08:00
Lim Chee Aun
e092e469d1 Prettier-ify 2024-10-14 19:38:09 +08:00
Chee Aun
29822cbf2d
Merge pull request #735 from Steffo99/feature/paste-attach
Allow pasting attachments on Akkoma / Pleroma instances
2024-10-14 15:45:41 +08:00
Lim Chee Aun
f85cf22558 Cache another regex 2024-10-13 11:32:52 +08:00
Lim Chee Aun
66e8bfe18c Move emojis check condition to top 2024-10-13 11:30:05 +08:00
Lim Chee Aun
82163c0b88 Fix text nodes extraction fails on template element 2024-10-13 11:30:05 +08:00
Stefano Pigozzi
54fcaf80b0
Use a global regex for replaceAll 2024-10-12 22:39:40 +02:00
Scott Feeney
59d5c73359 Run prettier 2024-10-10 17:38:06 -07:00
Scott Feeney
22f0703162 Store nodeInfo separately + other feedback 2024-10-10 17:31:16 -07:00
Stefano Pigozzi
6bd3ad0143
Merge remote-tracking branch 'cheeaun/main' into feature/paste-attach
# Conflicts:
#	src/locales/en.po
2024-10-11 02:03:27 +02:00
Scott Feeney
ad0ab0c845 Shrink the size of the feature detection change 2024-10-10 16:59:37 -07:00
Scott Feeney
839023cefc Use NodeInfo to detect features if available
For Mastodon <=4.3 (all current stable releases of Mastodon), the
NodeInfo request will always fail due to mastodon/mastodon#23135 and
fall back to the existing behavior. For other server software, this will
allow for more accurate checking of feature availability.

Fixes #808: adds support for exclusive lists with GoToSocial 0.17+.
2024-10-10 16:59:37 -07:00
Lim Chee Aun
48537742a2 Time to try fetchPriority=low 2024-10-11 02:11:08 +08:00
Stefano Pigozzi
e94b8edacc
Do not save state between regex executions
Fixes #843.

See https://stackoverflow.com/questions/2630418/javascript-regex-returning-true-then-false-then-true-etc for more information!
2024-10-04 13:19:09 +02:00
Lim Chee Aun
65bd6fb1ef It's micro-optimization week
Includes experimental replacing dangerouslySetInnerHTML with setting actual DOM
2024-09-25 17:18:30 +08:00
Lim Chee Aun
80d4a45a65 s/jsx/js extension
Somehow vscode refactor "Move to a new file" preserves the jsx extension
2024-09-23 12:43:55 +08:00
Stefano Pigozzi
aa332743d4
Merge branch 'main' into feature/paste-attach
# Conflicts:
#	src/locales/en.po
2024-09-23 04:18:43 +02:00
Lim Chee Aun
c8abb95e8e Improve grouping for server-side grouping
Migrate from v2_alpha to v2
2024-09-22 13:55:37 +08:00
Lim Chee Aun
4cc6a6a12c Forgot to commit this 2024-09-22 13:54:43 +08:00
Lim Chee Aun
8f6b4c6420 Try non-blocking init 2024-09-16 19:11:45 +08:00
Lim Chee Aun
4ae1c38269 Battle against slow startup time
Seems like Intl and tinyld could be the cause
2024-09-16 17:39:06 +08:00
Lim Chee Aun
572358f0f4 Another attempt 2024-09-16 16:13:00 +08:00
Lim Chee Aun
942dac4be0 Let's benchmark deeper 2024-09-16 15:32:42 +08:00
Stefano Pigozzi
2fbef61934
Merge remote-tracking branch 'upstream/main' into feature/paste-attach
# Conflicts:
#	src/locales/en.po
2024-09-10 16:54:08 +02:00
Lim Chee Aun
07e72be5bb Try delay run localeTargetLanguages 2024-09-10 12:33:05 +08:00
Stefano Pigozzi
e2d97916af
Remove log 2024-09-07 03:27:57 +02:00
Stefano Pigozzi
33d6edda38
Split local-visibility-post feature into @pleroma and @akkoma variants
Co-authored-by: Lim Chee Aun <cheeaun@gmail.com>
2024-09-07 03:14:50 +02:00
Stefano Pigozzi
7f06187d75
Merge remote-tracking branch 'origin/main' into feature/akkoma-local-only
# Conflicts:
#	src/locales/en.po
2024-09-05 15:46:56 +02:00
Stefano Pigozzi
53f7c39c77
Remove unused pleroma variable 2024-09-05 10:42:44 +02:00
Stefano Pigozzi
9a60078b40
Remove pleroma maxMediaAttachments override
Co-authored-by: Lim Chee Aun <cheeaun@gmail.com>
2024-09-05 10:42:27 +02:00
Stefano Pigozzi
72d735916e
Rename @pleroma/local-only to @pleroma/local-visibility-post 2024-09-05 10:19:53 +02:00
Stefano Pigozzi
bf792c77f4
Remove unused notContainAnyOma regex 2024-09-05 10:19:01 +02:00
Stefano Pigozzi
9e600ce31c
Merge branch 'cheeaun:main' into feature/paste-attach 2024-09-05 01:19:43 +02:00
Stefano Pigozzi
5479f91a6e
Set maxMediaAttachments to 1000 if Pleroma extensions are detected 2024-09-05 01:08:19 +02:00
Lim Chee Aun
ba6738e1f5 Use PHANPY_WEBSITE as redirect_uri 2024-09-04 17:52:53 +08:00
Lim Chee Aun
925319b8bb Fix Threads url regex 2024-09-02 21:01:43 +08:00
Lim Chee Aun
9fd17ad5e6 Check code_challenge_methods_supported too 2024-08-31 23:10:38 +08:00
Lim Chee Aun
a75e816e6c Try handle Threads' link 2024-08-29 16:50:07 +08:00
Stefano Pigozzi
8f6d1da008
Add support for Pleroma instances 2024-08-28 13:17:46 +02:00
Lim Chee Aun
7c56b64e8a OAuth PKCE is in.
Reference PR: https://github.com/mastodon/mastodon/pull/31129
2024-08-27 13:50:03 +08:00
Lim Chee Aun
1d69a1da71 Get vapid key to instance config 2024-08-27 11:46:29 +08:00
Lim Chee Aun
5d2f8ffddc Use secure same-site session cookie instead of sessionStorage 2024-08-25 16:35:07 +08:00