1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-11 16:40:55 +00:00
* Added: `Current Channel` rule for profiles, to match all pages associated with a certain channel without needing many page rules.
* Fixed: Unreadable text in light theme when importing a profile.
* Changed: Display a matching page URL in the `Current Page` rule for profiles.
* Changed: Do not display an inactive profile warning on the Add-Ons settings page, since those are not affected by profiles.
* Changed: Update Vue to a more recent version.
* Maintenance: Update the chat types enum based on the latest version of Twitch.
* API Added: `TwitchData` module (`site.twitch_data`) for querying Twitch's API for data.
This commit is contained in:
SirStendec 2019-06-14 21:24:48 -04:00
parent c34b7e30e2
commit 275248ca36
24 changed files with 819 additions and 88 deletions

View file

@ -109,8 +109,9 @@ export const Page = {
let i = 1;
for(const part of route.parts) {
if ( typeof part === 'object' ) {
if ( config.values[part.name] != null )
parts.push([i, config.values[part.name]]);
const val = config.values[part.name];
if ( val && val.length )
parts.push([i, val]);
i++;
}
@ -141,4 +142,22 @@ export const Page = {
values: {}
}),
editor: () => import(/* webpackChunkName: 'main-menu' */ './components/page.vue')
};
export const Channel = {
createTest(config = {}) {
const login = config.login,
id = config.id;
return ctx => ctx.channelID === id || (ctx.channelID == null && ctx.channelLogin === login);
},
title: 'Current Channel',
i18n: 'settings.filter.channel',
default: () => ({
login: null,
id: null
}),
editor: () => import(/* webpackChunkName: 'main-menu' */ './components/channel.vue')
};