mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-30 08:08:32 +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
src/main.js
13
src/main.js
|
@ -9,7 +9,6 @@ import SettingsManager from './settings/index';
|
|||
import {TranslationManager} from './i18n';
|
||||
import SocketClient from './socket';
|
||||
import Site from 'site';
|
||||
import LegacyAPI from './api';
|
||||
import Vue from 'utilities/vue';
|
||||
|
||||
class FrankerFaceZ extends Module {
|
||||
|
@ -39,8 +38,6 @@ class FrankerFaceZ extends Module {
|
|||
this.inject('socket', SocketClient);
|
||||
this.inject('site', Site);
|
||||
|
||||
this.inject('_api', LegacyAPI);
|
||||
|
||||
this.register('vue', Vue);
|
||||
|
||||
|
||||
|
@ -121,13 +118,3 @@ FrankerFaceZ.utilities = {
|
|||
|
||||
window.FrankerFaceZ = FrankerFaceZ;
|
||||
window.ffz = new FrankerFaceZ();
|
||||
|
||||
// Make FFZ:AP Run
|
||||
FrankerFaceZ.chat_commands = {};
|
||||
FrankerFaceZ.settings_info = {};
|
||||
FrankerFaceZ.utils = {
|
||||
process_int: a => a
|
||||
}
|
||||
window.App = true;
|
||||
if ( window.jQuery )
|
||||
window.jQuery.noty = {themes: {}};
|
Loading…
Add table
Add a link
Reference in a new issue