3958 Commits

Author SHA1 Message Date
taichi221228
a190973414 Remove deepMerge function from emoji_utils
The deepMerge function was removed from the emoji_utils file. This function was not used in the code and was deemed unnecessary, hence it was removed. Also, with its removal, the corresponding import was deleted.
2024-11-22 13:38:34 +01:00
taichi221228
5de29a1706 Refactor intersect function in emoji_utils.ts
This commit refactors the intersect function in the emoji_utils.ts file. The `a` and `b` parameters are more explicitly defined as empty arrays, and the indexOf method is replaced with the includes method for better readability and performance. Additionally, the placement of the eslint-disable directive has been adjusted to improve linting results.
2024-11-22 13:38:34 +01:00
taichi221228
d922b619e3 Refactor uniq function for TS compliance and efficiency improvements
This commit refactors the `uniq` function found in the emoji utilities to accept an explicitly defined array as an argument, improving overall TypeScript compliance. It also replaces the `.indexOf` method with the more efficient `.includes` method for better performance.
2024-11-22 13:38:34 +01:00
taichi221228
728ca82d79 Added clarifying comment to emoji_utils.ts function
A comment has been added to the 'getData' function in emoji_utils.ts to clarify that the source code version does not match that of DefinitelyTyped. The note also highlights the challenges in maintaining type consistency due to outdated and non-existing properties.
2024-11-22 13:38:34 +01:00
taichi221228
33d58fb936 Refactor emoji utilities by introducing type aliases
This commit introduces type aliases to the emoji utilities in JavaScript code, specifically `RawEmoji` and `GetDataArgs`. These changes help to simplify function signatures. By extracting complex types into separate type aliases, the code readability has been improved significantly.
2024-11-22 13:38:34 +01:00
taichi221228
9d94b32448 Remove unused JSON constant from emoji utilities
The unused constant `_JSON` was removed from the `emoji_utils.ts` file. This decluttering enhances the manageability and readability of the code.
2024-11-22 13:38:34 +01:00
taichi221228
a172892470 Refactor emoji utils in mastodon features
The refactoring of emoji utilities in the mastodon feature has been done to enhance readability and maintenance of the code. The types and functions involved in sanitizing and getting data have been clarified, including the introduction of an interface for skin tones. Additionally, erroneous typescript comments have been removed and the emojis type has been exported for further use.
2024-11-22 13:38:34 +01:00
taichi221228
5b34a4e347 Add comments for skin_tone in emoji_utils.ts
This commit adds detailed comments explaining the usage of `skin_tone` in emoji_utils.ts, noting its absence in the type definition link and the need for a separate type with DefinitelyTyped. It also highlights potential mismatch issues between versions of `@types/emoji-mart` and `emoji-mart`, given they have different maintainers and packages.
2024-11-22 13:38:34 +01:00
taichi221228
4845f5a50d Refactor and improve emoji sanitization function
The emoji sanitization function has been refactored for better handling of emoji variations. New types have been imported from 'emoji-mart', allowing for a more precise type assignment for the emoji input and output. Bound checking operations have been adjusted to better accommodate and handle custom emojis and skin variations.
2024-11-22 13:38:34 +01:00
taichi221228
562c8778fb Refactor unifiedToNative function in emoji_utils
The unifiedToNative function in emoji_utils.ts has been refactored for cleaner coding practices. Lint disabling has been moved to a different part of the code, and type checking has been revised to specify that the input unified is of type Emoji['unified']. The function's variables have been updated to const for better securities against undesired changes.
2024-11-22 13:38:34 +01:00
taichi221228
77a0621ecc Remove unnecessary stringFromCodePoint function polyfill in emoji_utils
Removed the unnecessary stringFromCodePoint function polyfill from the emoji_utils.ts file. Instead, we use the built-in JavaScript function String.fromCodePoint to simplify the code.
2024-11-22 13:38:34 +01:00
taichi221228
88afeb3654 Refactor buildSearch function in emoji_utils.ts
The buildSearch function has been refactored for better coding practices. More explicit typings and declaration were used, and the logic related to array search has been simplified for better readability. The 'eslint-disable' comment line was moved to a more appropriate location after these changes.
2024-11-22 13:38:34 +01:00
taichi221228
ac2b7a6cfb Add '@ts-expect-error' to suppress TypeScript errors 2024-11-22 13:38:34 +01:00
taichi221228
9c4f3ecdf6 Rename emoji_utils.js to TS 2024-11-22 13:38:34 +01:00
Oliver Geer
0ad5c212c1
Fix accounts table long display name (#29316) 2024-11-22 09:50:47 +00:00
Christian Schmidt
9ebed5d410
Fix CSS warnings (#32266) 2024-11-22 08:58:04 +00:00
github-actions[bot]
47190087f8
New Crowdin Translations (automated) (#33020)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-22 08:44:09 +00:00
Claire
4bfb8887bf
Fix duplicate notifications in notification groups when using slow mode (#33014) 2024-11-21 16:10:07 +00:00
Eugen Rochko
62603508c7
Change design of lists in web UI (#32881) 2024-11-21 16:10:04 +00:00
github-actions[bot]
e4d5cc0ca6
New Crowdin Translations (automated) (#33010)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-21 10:58:45 +00:00
Eugen Rochko
683db3ab25
Add ability to middle-mouse click posts in web UI (#32988) 2024-11-20 15:56:35 +00:00
github-actions[bot]
4252b13a4b
New Crowdin Translations (automated) (#32990)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-20 08:24:50 +00:00
github-actions[bot]
9fc2fc2251
New Crowdin Translations (automated) (#32969)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-19 09:05:39 +00:00
Eugen Rochko
e856838e0c
Fix notification polling showing a loading bar in web UI (#32960) 2024-11-19 08:57:12 +00:00
github-actions[bot]
02985aae69
New Crowdin Translations (automated) (#32927)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-18 09:20:37 +00:00
Jeong Arm
60801ab914
Add missing autofocus on boost modal (#32953) 2024-11-18 08:48:27 +00:00
github-actions[bot]
c546aa57cb
New Crowdin Translations (automated) (#32900)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-15 10:30:11 +00:00
Emelia Smith
ddfb3d123b
Improve display of statuses in admin panel (#30813) 2024-11-15 09:38:01 +00:00
Claire
2de018256a
Fix filters not being correctly applied to boosted posts (#32895) 2024-11-14 19:42:43 +00:00
Claire
ec663eaba1
Fix Content Warning and filter states not applying to boosted posts properly (#32887) 2024-11-14 12:50:36 +00:00
github-actions[bot]
aaebf142aa
New Crowdin Translations (automated) (#32884)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-14 09:39:33 +00:00
github-actions[bot]
baad795384
New Crowdin Translations (automated) (#32868)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-13 09:33:02 +00:00
Eugen Rochko
32e5e1d3f1
Fix a few visual issues with annual reports in web UI (#32807) 2024-11-12 12:35:35 +00:00
github-actions[bot]
0d06d70d11
New Crowdin Translations (automated) (#32811)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-12 08:47:59 +00:00
Christian Schmidt
157fba4698
Backspace hotkey should override default behaviour (#32826) 2024-11-10 16:16:07 +00:00
github-actions[bot]
8df867b20a
New Crowdin Translations (automated) (#32803)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-08 09:53:47 +00:00
Claire
6ae1fcd059
Fix list of follow requests not having a back button (#32797) 2024-11-07 11:45:46 +00:00
github-actions[bot]
4ed3ce2377
New Crowdin Translations (automated) (#32793)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-07 09:45:05 +00:00
Claire
d482211aa6
Fix out-of-view post contents being inconsistent with in-view post contents (#32778) 2024-11-06 13:30:53 +00:00
github-actions[bot]
871e3b25e8
New Crowdin Translations (automated) (#32782)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-06 08:21:13 +00:00
Eugen Rochko
d6349c0e9a
Add year in review feature to web UI (#32709) 2024-11-05 14:40:07 +00:00
github-actions[bot]
933fa81baf
New Crowdin Translations (automated) (#32772)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-05 08:41:09 +00:00
Claire
0a1b5df202
Fix alt-text pop-in not using the translated description (#32766) 2024-11-04 11:08:19 +00:00
github-actions[bot]
2271b39a5c
New Crowdin Translations (automated) (#32733)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-11-04 08:56:11 +00:00
github-actions[bot]
e78db58b65
New Crowdin Translations (automated) (#32708)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-10-31 10:01:05 +00:00
Renato "Lond" Cerqueira
01e25af2e3
Fix 'unknown' media attachment rendering in detailed view (#32713) 2024-10-31 09:37:31 +00:00
github-actions[bot]
0a599d08d8
New Crowdin Translations (automated) (#32695)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-10-30 10:02:02 +00:00
Claire
742eb549ab
Fix preview cards with long titles erroneously causing layout changes (#32678) 2024-10-30 08:34:56 +00:00
Nathan Sparrow
de1d8dc63a
Embed modal mobile fix (#32641) 2024-10-29 15:12:35 +00:00
github-actions[bot]
244aaf9a38
New Crowdin Translations (automated) (#32687)
Co-authored-by: GitHub Actions <noreply@github.com>
2024-10-29 09:29:22 +00:00