Commit Graph

17706 Commits (34fce776fcda03f68757be78b5fe8493ee6ed43c)
 

Author SHA1 Message Date
taichi221228 34fce776fc Remove no-unsafe-return rule from eslint-disable in emoji_utils.ts
Removed the no-unsafe-return rule from the eslint-disable and eslint-enable comments in the emoji_utils.ts file, as it is no longer required. This helps to improve code readability and reduces unnecessary complexity.
3 months ago
taichi221228 70e35f837c Remove measureScrollbar function from emoji_utils
The measureScrollbar function has been deleted from the emoji_utils.ts file. This simplifies the module export list by removing a function that was unnecessary or out of context.
3 months ago
taichi221228 ef6e92dd2e Add comments for improving code modularity in emoji_utils.ts
New comments were added in the 'emoji_utils.ts' file to suggest separating the general array operations from the emoji-related functions into different files. This aims to increase the readability and maintainability of the code.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
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.
3 months ago
taichi221228 ac2b7a6cfb Add '@ts-expect-error' to suppress TypeScript errors 3 months ago
taichi221228 9c4f3ecdf6 Rename emoji_utils.js to TS 3 months ago
シュンジョーァ 35683ac154
Remove webauthn credentials on `tootctl accounts modify --disable-2fa` (#29883)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
3 months ago
Oliver Geer 0ad5c212c1
Fix accounts table long display name (#29316) 3 months ago
Christian Schmidt 9ebed5d410
Fix CSS warnings (#32266) 3 months ago
renovate[bot] d0753ec276
Update dependency aws-sdk-s3 to v1.173.0 (#33019)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 months ago
github-actions[bot] 47190087f8
New Crowdin Translations (automated) (#33020)
Co-authored-by: GitHub Actions <noreply@github.com>
3 months ago
renovate[bot] 2e5abe4720
Update Yarn to v4.5.2 (#33021)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 months ago
Matt Jankowski be2d4615ab
Rely on Rails to enable YJIT when available (#33017) 3 months ago
Eugen Rochko d75088d699
Fix pushing hashtag-followed posts to feeds of inactive users (#33018) 3 months ago
Christian Schmidt 0518613dd7
LinkDetailsExtractor adjustments (#31357) 3 months ago
Joshix-1 68c7782940
improve nginx.conf by setting gzip_static to on (#30698) 3 months ago
Claire 4bfb8887bf
Fix duplicate notifications in notification groups when using slow mode (#33014) 3 months ago
Eugen Rochko 62603508c7
Change design of lists in web UI (#32881) 3 months ago
Christian Schmidt 7385016837
`rel="me"` check should be case-insenstive (#32238) 3 months ago
Claire dbddd40c1c
Add stop-gap antispam code (#32981) 3 months ago
Emelia Smith 4517e18b79
Update dependency doorkeeper to v5.8.0 (#33000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 months ago
github-actions[bot] e4d5cc0ca6
New Crowdin Translations (automated) (#33010)
Co-authored-by: GitHub Actions <noreply@github.com>
3 months ago
Eugen Rochko 420ed155ba
Fix wrong video dimensions for some rotated videos (#33008) 3 months ago
Paulo Vilarinho 2526b32ad3
block scheduled status from frozen users (#30729) 3 months ago
Eugen Rochko 683db3ab25
Add ability to middle-mouse click posts in web UI (#32988) 3 months ago
Claire e68b26c8df
Fix posts made in the future being allowed to trend (#32996) 3 months ago
renovate[bot] 174c687ca0
Update dependency json-schema to v5.1.0 (#32992)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 months ago
github-actions[bot] 4252b13a4b
New Crowdin Translations (automated) (#32990)
Co-authored-by: GitHub Actions <noreply@github.com>
3 months ago
Matt Jankowski b66fbaeec2
Add `AccountWarning` case to `Report#history` spec (#32984) 3 months ago
renovate[bot] 41b033e381
Update dependency opentelemetry-instrumentation-rails to '~> 0.33.0' (#32987)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 months ago
Claire 30e9c7137b
Fix error when viewing statuses to deleted replies in moderation view (#32986) 3 months ago
Matt Jankowski 37f00fb018
Use hash arguments to `group` when possible (#32916) 3 months ago
Eugen Rochko 2b5faa2ba3
Change lists to reflect added and removed users retroactively (#32930) 3 months ago
Matt Jankowski f2976ec9a4
Extract `Notification::Groups` concern (#32968) 3 months ago
Matt Jankowski 87e7ad9b8f
Add `LoginActivity` model spec and `BrowserDetection` concern shared example (#32959) 3 months ago
github-actions[bot] 9fc2fc2251
New Crowdin Translations (automated) (#32969)
Co-authored-by: GitHub Actions <noreply@github.com>
3 months ago
renovate[bot] 436a5d295b
Update dependency aws-sdk-s3 to v1.172.0 (#32964)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
3 months ago
Eugen Rochko e856838e0c
Fix notification polling showing a loading bar in web UI (#32960) 3 months ago
Shlee 06fcee099a
DB Replica database_tasks as ENV (#32908) 3 months ago