Merge pull request #76 from fawni/feat/twitch-channels-sort

Add custom sorting to the twitch channels widget
This commit is contained in:
Svilen Markov
2024-05-18 11:05:55 +01:00
committed by GitHub
5 changed files with 158 additions and 1 deletions
+4
View File
@@ -1068,6 +1068,7 @@ Preview:
| ---- | ---- | -------- | ------- |
| channels | array | yes | |
| collapse-after | integer | no | 5 |
| sort-by | string | no | viewers |
##### `channels`
A list of channels to display.
@@ -1075,6 +1076,9 @@ A list of channels to display.
##### `collapse-after`
How many channels are visible before the "SHOW MORE" button appears. Set to `-1` to never collapse.
##### `sort-by`
Can be used to specify the order in which the channels are displayed. Possible values are `viewers` and `live`.
### Twitch top games
Display a list of games with the most viewers on Twitch.