1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-11 05:31:56 +00:00
* Changed: Replace a few unnecessary menu components that only display markdown with a generic component.
* Changed: Initial work for letting users override display names and user colors in chat.
* Changed: The FFZ menu button no longer depends on add-ons being loaded to load itself.
* Fixed: Rendering of highlighted messages in Chat on Videos.
* Fixed: Featured channels menu not working when a bad channel is in the list.
This commit is contained in:
SirStendec 2020-01-11 17:13:56 -05:00
parent c91822cdc9
commit 3cbe4ee2fc
19 changed files with 284 additions and 228 deletions

View file

@ -8,6 +8,7 @@ query FFZ_FetchPoll($id: ID!) {
login
displayName
}
durationSeconds
endedAt
startedAt
totalVoters

View file

@ -5,7 +5,9 @@ query FFZ_FetchUser($id: ID, $login: String) {
displayName
profileImageURL(width: 50)
roles {
isAffiliate
isPartner
isStaff
}
}
}

View file

@ -0,0 +1,9 @@
query FFZ_UserSelf($id: ID, $login: String) {
user(id: $id, login: $login) {
id
self {
isEditor
isModerator
}
}
}

View file

@ -194,6 +194,15 @@ export default class TwitchData extends Module {
return get('data.user', data);
}
async getUserSelf(id, login) {
const data = await this.queryApollo(
await import(/* webpackChunkName: 'queries' */ './data/user-self.gql'),
{ id, login }
);
return get('data.user.self', data);
}
async getLastBroadcast(id, login) {
const data = await this.queryApollo(
await import(/* webpackChunkName: 'queries' */ './data/last-broadcast.gql'),