mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-29 07:45:33 +00:00
4.19.12
**Note**: This update does not fix all issues with features not working on Twitch's new channel page layout. Due to changes Twitch has been making to their coding practices, it is significantly harder to support their newer pages. We are still trying to determine the best way to support things going forward. * Added: Chat Actions can be copied as JSON and imported from JSON. (Closes #782) * Fixed: The player stuttering when attempting to play a clip when the Audio Compressor is set to be enabled by default. * Fixed: Custom chat widths, swapping sidebars, and portrait mode not working correctly with the new channel page layout. (Closes #799, Affects #794) * Fixed: Square Avatars not working correctly on the new channel page layout. * Fixed: Searching settings would not properly search for items in Experiments. * Fixed: Emotes ending in punctuation (specifically: `.`, `,`, and `!`) were not being displayed correctly. * Fixed: The order of actions reversing after an inheritance point. (Closes #791) * Changed: Rename `Chat > Bits and Cheering > Display Top Cheerers` to `Chat > Appearance > Display Leaderboard` to bring it in line with the current state of the feature. * Removed: Option to hide offline channels from sidebar. This is no longer trivial to implement due to Twitch changes. (Closes #801)
This commit is contained in:
parent
b3266a2ef3
commit
261c461481
14 changed files with 255 additions and 25 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
<div class="ffz--experiment-list">
|
||||
<section
|
||||
v-for="({key, exp}) of sorted(ffz_data)"
|
||||
v-for="({key, exp}) of visible_ffz"
|
||||
:key="key"
|
||||
:data-key="key"
|
||||
>
|
||||
|
@ -72,6 +72,9 @@
|
|||
<div v-if="! Object.keys(ffz_data).length">
|
||||
{{ t('setting.experiments.none', 'There are no current experiments.') }}
|
||||
</div>
|
||||
<div v-else-if="! visible_ffz.length">
|
||||
{{ t('setting.experiments.none-filter', 'There are no matching experiments.') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 class="tw-mg-t-5 tw-mg-b-1">
|
||||
|
@ -80,7 +83,7 @@
|
|||
|
||||
<div class="ffz--experiment-list">
|
||||
<section
|
||||
v-for="({key, exp}) of sorted(twitch_data)"
|
||||
v-for="({key, exp}) of visible_twitch"
|
||||
:key="key"
|
||||
:data-key="key"
|
||||
>
|
||||
|
@ -146,6 +149,9 @@
|
|||
<div v-if="! Object.keys(twitch_data).length">
|
||||
{{ t('setting.experiments.none', 'There are no current experiments.') }}
|
||||
</div>
|
||||
<div v-else-if="! visible_twitch.length">
|
||||
{{ t('setting.experiments.none-filter', 'There are no matching experiments.') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -154,8 +160,16 @@
|
|||
|
||||
import {has} from 'utilities/object';
|
||||
|
||||
function matches(exp, filter) {
|
||||
return (exp.key && exp.key.toLowerCase().includes(filter)) ||
|
||||
(exp.exp && (
|
||||
(exp.exp.name && exp.exp.name.toLowerCase().includes(filter)) ||
|
||||
(exp.exp.description && exp.exp.description.toLowerCase().includes(filter))
|
||||
));
|
||||
}
|
||||
|
||||
export default {
|
||||
props: ['item'],
|
||||
props: ['item', 'filter'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
@ -166,6 +180,34 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
sorted_ffz() {
|
||||
return this.sorted(this.ffz_data);
|
||||
},
|
||||
|
||||
visible_ffz() {
|
||||
const items = this.sorted_ffz,
|
||||
f = this.filter && this.filter.toLowerCase();
|
||||
if ( ! f )
|
||||
return items;
|
||||
|
||||
return items.filter(x => matches(x, f));
|
||||
},
|
||||
|
||||
sorted_twitch() {
|
||||
return this.sorted(this.twitch_data);
|
||||
},
|
||||
|
||||
visible_twitch() {
|
||||
const items = this.sorted_twitch,
|
||||
f = this.filter && this.filter.toLowerCase();
|
||||
if ( ! f )
|
||||
return items;
|
||||
|
||||
return items.filter(x => matches(x, f));
|
||||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
for(const key in this.ffz_data)
|
||||
if ( has(this.ffz_data, key) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue