mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 23:00:54 +00:00
4.25.0
* Fixed: Smooth Scrolling no longer causing chat to scroll. (Closes #1068) * Fixed: Issue with users using certain external stylesheets causing chat messages to become impossible to read on mouse hover. (Closes #1066) * Fixed: Issues with badge sorting causing some badges to be overridden when they shouldn't be. * Changed: Improve caching of badge data, such that re-rendering chat lines requires less computation. * Changed: Refactor how chat lines listen for settings changes to reduce code duplication. * Changed: Refactor how chat lines are invalidated to minimize work when changing settings. * API Added: `chat:rerender-lines` event that, when emitted, causes all chat lines to be re-rendered. * API Added: `chat:update-line-tokens` event that, when emitted, causes all chat lines to have their tokens invalidated and recalculated. * API Added: `chat:update-line-badges` event that, when emitted, causes all chat lines to have their cached badges invalidated and recalculated. * API Changed: `chat:update-lines-by-user` now has extra properties for separately invalidating tokens or badges. The full signature is `chat:update-lines-by-user(id, login, invalidate_tokens = true, invalidate_badges = true)`
This commit is contained in:
parent
d5478d71cd
commit
3c1d61993a
10 changed files with 256 additions and 121 deletions
|
@ -32,6 +32,50 @@ export const BAD_HOTKEYS = [
|
|||
];
|
||||
|
||||
|
||||
export const RERENDER_SETTINGS = [
|
||||
'chat.name-format',
|
||||
'chat.me-style',
|
||||
'chat.rituals.show',
|
||||
'chat.subs.show',
|
||||
'chat.subs.compact',
|
||||
'chat.actions.inline',
|
||||
'chat.timestamp-format',
|
||||
'chat.points.allow-highlight',
|
||||
'chat.filtering.display-deleted',
|
||||
'chat.filtering.display-mod-action',
|
||||
'chat.replies.style'
|
||||
];
|
||||
|
||||
export const UPDATE_BADGE_SETTINGS = [
|
||||
'chat.badges.style',
|
||||
'chat.badges.hidden',
|
||||
'chat.badges.custom-mod',
|
||||
'chat.badges.custom-vip',
|
||||
];
|
||||
|
||||
export const UPDATE_TOKEN_SETTINGS = [
|
||||
'chat.emotes.enabled',
|
||||
'chat.emotes.2x',
|
||||
'chat.emotes.animated',
|
||||
'chat.emoji.style',
|
||||
'chat.bits.stack',
|
||||
'chat.rich.enabled',
|
||||
'chat.rich.hide-tokens',
|
||||
'chat.rich.all-links',
|
||||
'chat.rich.minimum-level',
|
||||
'chat.filtering.process-own',
|
||||
'chat.filtering.mention-priority',
|
||||
'chat.filtering.debug',
|
||||
'chat.fix-bad-emotes',
|
||||
'__filter:highlight-terms',
|
||||
'__filter:highlight-users',
|
||||
'__filter:highlight-badges',
|
||||
'__filter:block-terms',
|
||||
'__filter:block-users',
|
||||
'__filter:block-badges'
|
||||
];
|
||||
|
||||
|
||||
export const KEYS = {
|
||||
Tab: 9,
|
||||
Enter: 13,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue