mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 02:28:31 +00:00
Add-Ons Loader System (#606)
Implements an Add-on Loader so that other add-ons, such as the FFZ Add-on Pack, can be loaded directly by FFZ without requiring the user to install multiple extensions into their browser.
This commit is contained in:
parent
d9f252ee4e
commit
a305d03b2c
20 changed files with 716 additions and 11 deletions
|
@ -5,16 +5,17 @@ import RavenLogger from './raven';
|
|||
|
||||
import Logger from 'utilities/logging';
|
||||
import Module from 'utilities/module';
|
||||
import { timeout } from 'utilities/object';
|
||||
|
||||
import {DEBUG} from 'utilities/constants';
|
||||
|
||||
import SettingsManager from './settings/index';
|
||||
import AddonManager from './addons';
|
||||
import ExperimentManager from './experiments';
|
||||
import {TranslationManager} from './i18n';
|
||||
import SocketClient from './socket';
|
||||
import Site from 'site';
|
||||
import Vue from 'utilities/vue';
|
||||
import { timeout } from './utilities/object';
|
||||
|
||||
class FrankerFaceZ extends Module {
|
||||
constructor() {
|
||||
|
@ -51,6 +52,7 @@ class FrankerFaceZ extends Module {
|
|||
this.inject('i18n', TranslationManager);
|
||||
this.inject('socket', SocketClient);
|
||||
this.inject('site', Site);
|
||||
this.inject('addons', AddonManager);
|
||||
|
||||
this.register('vue', Vue);
|
||||
|
||||
|
@ -158,6 +160,7 @@ const VER = FrankerFaceZ.version_info = {
|
|||
|
||||
|
||||
FrankerFaceZ.utilities = {
|
||||
addon: require('utilities/addon'),
|
||||
dom: require('utilities/dom'),
|
||||
color: require('utilities/color'),
|
||||
events: require('utilities/events'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue