1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 23:00:54 +00:00
* Added: Highlight rules now have priorities. Priorities allow for finer control over which color is used to highlight a message, as well as giving priority to specific rules when highlighting individual words.
* Added: Setting to set a priority for the built-in highlighting when someone mentions you by name.
* Changed: The `chat:receive-message` event no longer fires if there are no registered event listeners, to improve performance.
* Changed: Attempt to more accurately display re-sub notices in Chat on Videos by parsing out the re-sub message from the start of the message.
* Changed: Apply the user's selected `Action Style` to Chat on Videos.
* Fixed: Messages being re-tokenized incorrectly sometimes due to an incorrect flag being passed by the chat line component.
* Fixed: Update the logic for inserting a "Live Message Separator" to duplicate the logic used by Twitch.
* API Added: `chat:buffer-message` event that is fired when a chat message is copied into the buffer of visible messages. If you wish to run an event when a chat message becomes visible to the user, this is what you want to use.
* API Added: `FFZEvent` instances now have a `_reset()` method for resetting their defaultPrevented / propagationStopped state. For use by the constructing method only. This is intended for allowing the re-use of FFZEvent instances when firing many events in succession.
* API Changed: The various settings used for applying filters during message tokenization have been renamed to start with `__filter:`
This commit is contained in:
SirStendec 2021-04-30 17:38:49 -04:00
parent e7803c7db1
commit ae85bf76b9
11 changed files with 452 additions and 106 deletions

View file

@ -51,6 +51,24 @@
</figure>
</div>
</div>
<div
v-if="priority"
:class="editing ? 'tw-mg-r-05' : 'tw-mg-x-05'"
class="tw-flex-shrink-0 tw-relative tw-tooltip__container"
>
<span v-if="! editing">{{ term.p }}</span>
<input
v-else
v-model.number="edit_data.p"
type="number"
step="1"
class="tw-block tw-border-radius-medium tw-font-size-6 ffz-min-width-unset ffz-input tw-pd-x-1 tw-pd-y-05"
style="width: 5rem"
>
<div class="tw-tooltip tw-tooltip--down tw-tooltip--align-right">
{{ t('settings.terms.priority.tip', 'Priority') }}
</div>
</div>
<div
v-if="removable && (editing || display.remove)"
class="tw-flex-shrink-0 tw-mg-r-05 tw-mg-y-05 tw-flex tw-align-items-center ffz-checkbox tw-relative tw-tooltip__container"
@ -180,6 +198,10 @@ export default {
type: Boolean,
default: false
},
priority: {
type: Boolean,
default: false
},
removable: {
type: Boolean,
default: false
@ -258,6 +280,13 @@ export default {
},
save() {
if ( this.priority && this.edit_data.p ) {
if ( typeof this.edit_data.p === 'number' )
this.edit_data.p = Math.floor(this.edit_data.p);
else
this.edit_data.p = 0;
}
if ( this.valid )
this.$emit('save', this.edit_data);
this.cancel();