mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-08 07:10:54 +00:00
Hide Vodcasts & Host Button (#353)
* Fix occasional vanishing of stream card uptime, avatar and other info * Additionally fix routing issues with the modified avatar div * Add hide vodcast functionality * Add `vuedraggable` to dependencies * Remove LegacyAPI * Add host button with aut-host management menu Messy code, but it works. * Only add `disabled` class to button if chat connection isn't there * Fix for host button not updating it's text properly after un-/hosting * Add tooltip to host button and use alternative way to get the chat inst. * Rework host button stuff into new metadata All is functional, even though the code might be a mess. * Implement Auto-Host settings tab * Fix reassignment to const, hehe * Custom TMI events for Host and Unhost, plus use existing chat connection * Code adjustments, disabling the button when host is loading, etc. * Address code-review suggestions Translation support and a few other fixes * Remove inline styling * Show error in tooltip if hosting didn't work properly or similar issues * Address change requests * Fix mixup * Fix host options not having a background * Fix styling for the host options This adds a small border * Hide host button on own channel * Fix popper * Move `isChannelHosted` method further up * Adjust handle of auto host menu and fix vodcast hiding * Replace loading icon with text * Add setting for host button; Also another small issue * Fix joining your own channel multiple times
This commit is contained in:
parent
ac35ee5fab
commit
941aab9feb
11 changed files with 767 additions and 367 deletions
|
@ -13,15 +13,6 @@ import SettingsContext from './context';
|
|||
import MigrationManager from './migration';
|
||||
|
||||
|
||||
const OVERRIDE_GET = {
|
||||
ffz_enable_highlight_sound: false,
|
||||
ffz_highlight_sound_volume: 0,
|
||||
bttv_channel_emotes: true,
|
||||
bttv_global_emotes: true,
|
||||
bttv_gif_emotes: 1
|
||||
}
|
||||
|
||||
|
||||
// ============================================================================
|
||||
// SettingsManager
|
||||
// ============================================================================
|
||||
|
@ -331,12 +322,7 @@ export default class SettingsManager extends Module {
|
|||
// ========================================================================
|
||||
|
||||
context(env) { return this.main_context.context(env) }
|
||||
get(key) {
|
||||
if ( has(OVERRIDE_GET, key) )
|
||||
return OVERRIDE_GET[key];
|
||||
|
||||
return this.main_context.get(key);
|
||||
}
|
||||
get(key) { return this.main_context.get(key); }
|
||||
uses(key) { return this.main_context.uses(key) }
|
||||
update(key) { return this.main_context.update(key) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue