mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-11 05:31:56 +00:00
4.17.13
* 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:
parent
c91822cdc9
commit
3cbe4ee2fc
19 changed files with 284 additions and 228 deletions
|
@ -8,6 +8,7 @@ query FFZ_FetchPoll($id: ID!) {
|
|||
login
|
||||
displayName
|
||||
}
|
||||
durationSeconds
|
||||
endedAt
|
||||
startedAt
|
||||
totalVoters
|
||||
|
|
|
@ -5,7 +5,9 @@ query FFZ_FetchUser($id: ID, $login: String) {
|
|||
displayName
|
||||
profileImageURL(width: 50)
|
||||
roles {
|
||||
isAffiliate
|
||||
isPartner
|
||||
isStaff
|
||||
}
|
||||
}
|
||||
}
|
9
src/utilities/data/user-self.gql
Normal file
9
src/utilities/data/user-self.gql
Normal file
|
@ -0,0 +1,9 @@
|
|||
query FFZ_UserSelf($id: ID, $login: String) {
|
||||
user(id: $id, login: $login) {
|
||||
id
|
||||
self {
|
||||
isEditor
|
||||
isModerator
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue