From 74287816141588172089103aae155537acc98950 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Fri, 12 Mar 2021 20:16:39 -0500 Subject: [PATCH] 4.20.77 * Changed: The FFZ Control Center's home page now displays a list of new settings when you have new settings, as well as recently updated add-ons. A GitHub link was added as well. The Twitter embed will properly use light theme when appropriate. * Changed: [Add-Ons](~add_ons) now supports sorting by update time, as well as name. * Changed: The FFZ Control Center will now appear larger depending on your window size. * Fixed: The [Add-Ons](~add_ons) list not being properly searchable in the FFZ Control Center. * Fixed: Appearance of unread counters in the FFZ Control Center's navigation. * Fixed: Messages not highlighting correctly when a viewer card is open. --- package.json | 2 +- src/addons.js | 2 +- .../main_menu/components/addon-list.vue | 23 +- src/modules/main_menu/components/addon.vue | 29 ++- .../main_menu/components/home-page.vue | 218 +++++++++++++++++- .../main_menu/components/main-menu.vue | 1 + .../main_menu/components/menu-page.vue | 3 +- .../main_menu/components/menu-tree.vue | 4 +- src/modules/main_menu/index.js | 99 +++++++- .../modules/chat/viewer_card.jsx | 2 +- styles/dialog.scss | 11 +- styles/widgets.scss | 55 ++++- 12 files changed, 415 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 47581bbd..44f504fa 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frankerfacez", "author": "Dan Salvato LLC", - "version": "4.20.76", + "version": "4.20.77", "description": "FrankerFaceZ is a Twitch enhancement suite.", "license": "Apache-2.0", "scripts": { diff --git a/src/addons.js b/src/addons.js index 8488d3db..bab92d9e 100644 --- a/src/addons.js +++ b/src/addons.js @@ -46,7 +46,7 @@ export default class AddonManager extends Module { title: 'Add-Ons', no_filter: true, - getExtraSearch: () => Object.values(this.addons).map(addon => addon.search_terms), + getExtraTerms: () => Object.values(this.addons).map(addon => addon.search_terms), isReady: () => this.enabled, getAddons: () => Object.values(this.addons), diff --git a/src/modules/main_menu/components/addon-list.vue b/src/modules/main_menu/components/addon-list.vue index 81adf7b4..535a2890 100644 --- a/src/modules/main_menu/components/addon-list.vue +++ b/src/modules/main_menu/components/addon-list.vue @@ -6,7 +6,7 @@ +
+
+ +
+

@@ -91,6 +106,7 @@ export default { ready: this.item.isReady(), reload: this.item.isReloadRequired(), unlisted: [], + sort_by: 0, unlisted_open: false } }, @@ -104,6 +120,11 @@ export default { const addons = this.item.getAddons(); addons.sort((a, b) => { + if ( this.sort_by === 1 ) { + if ( a.updated > b.updated ) return -1; + if ( b.updated > a.updated ) return 1; + } + if ( a.sort < b.sort ) return -1; if ( b.sort < a.sort ) return 1; diff --git a/src/modules/main_menu/components/addon.vue b/src/modules/main_menu/components/addon.vue index b8fb5577..e6133ac0 100644 --- a/src/modules/main_menu/components/addon.vue +++ b/src/modules/main_menu/components/addon.vue @@ -1,38 +1,53 @@