mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-11 21:51:56 +00:00
4.17.11
* Added: Current Title rule for settings profiles. Matches against the title of the current stream or video. Allows for regular expressions. * API Added: Added several methods for working with polls to the Twitch data module. * Changed: Move queries into a separate file to reduce initial load file size. * Fixed: Remove debug logging from stream up-time metadata. * Fixed: Display the count of new settings on the FFZ menu button when not disabled. * Maintenance: Updated to the current version of `displacejs`, no longer using a fork.
This commit is contained in:
parent
51eea310a8
commit
a4a16af5e1
14 changed files with 464 additions and 102 deletions
8
src/utilities/data/poll-archive.gql
Normal file
8
src/utilities/data/poll-archive.gql
Normal file
|
@ -0,0 +1,8 @@
|
|||
mutation FFZ_ArchivePoll($id: ID!) {
|
||||
archivePoll(input: {pollID: $id}) {
|
||||
poll {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
12
src/utilities/data/poll-create.gql
Normal file
12
src/utilities/data/poll-create.gql
Normal file
|
@ -0,0 +1,12 @@
|
|||
mutation FFZ_CreatePoll($input: CreatePollInput!) {
|
||||
createPoll(input: $input) {
|
||||
poll {
|
||||
id
|
||||
status
|
||||
choices {
|
||||
id
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
25
src/utilities/data/poll-get.gql
Normal file
25
src/utilities/data/poll-get.gql
Normal file
|
@ -0,0 +1,25 @@
|
|||
query FFZ_FetchPoll($id: ID!) {
|
||||
poll(id: $id) {
|
||||
id
|
||||
status
|
||||
title
|
||||
ownedBy {
|
||||
id
|
||||
login
|
||||
displayName
|
||||
}
|
||||
endedAt
|
||||
startedAt
|
||||
totalVoters
|
||||
choices {
|
||||
id
|
||||
title
|
||||
votes {
|
||||
id
|
||||
base
|
||||
bits
|
||||
total
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
8
src/utilities/data/poll-terminate.gql
Normal file
8
src/utilities/data/poll-terminate.gql
Normal file
|
@ -0,0 +1,8 @@
|
|||
mutation FFZ_TerminatePoll($id: ID!) {
|
||||
terminatePoll(input: {pollID: $id}) {
|
||||
poll {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue