1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-04 21:30:53 +00:00
* Changed: Update the styling for rich chat embeds to match modern vanilla Twitch.
* Fixed: Do not display FFZ's Alternative Viewer Count if the stream is not live.
* Fixed: Automatically opening the chat when accessing a channel. (Now using route state instead of page elements.)
* Fixed: Dual channel points redemption messages when FFZ is rendering them.
* Fixed: Stopping the host video player when accessing a user's home page.
* Removed: The old, unfinished logviewer module. Logviewer is a dead project.

* API Changed: Add support for rich formatting in rich chat embeds.
* API Changed: `fine-router` can now check state when determining the current route.
This commit is contained in:
SirStendec 2020-07-26 17:50:14 -04:00
parent fa3d73e05a
commit a4fa1d1491
21 changed files with 451 additions and 629 deletions

View file

@ -69,7 +69,7 @@ export const DEFAULT_TYPES = {
},
duration(val) {
return duration_to_string(val);
return this.formatDuration(val);
},
localestring(val) {
@ -257,6 +257,10 @@ export default class TranslationCore {
return formatter.format(value);
}
formatDuration(value) { // eslint-disable-line class-methods-use-this
return duration_to_string(value);
}
formatDate(value, format) {
if ( typeof format === 'string' && format.startsWith('::') ) {
const f = format.substr(2),