1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-28 15:27:43 +00:00

Add a limited legacy API to support at least basic channel and global emotes from FFZ:AP.

This commit is contained in:
SirStendec 2017-11-16 00:25:51 -05:00
parent 21b598b92d
commit c86895797c
5 changed files with 351 additions and 6 deletions

View file

@ -9,6 +9,7 @@ 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 {
@ -38,6 +39,8 @@ class FrankerFaceZ extends Module {
this.inject('socket', SocketClient);
this.inject('site', Site);
this.inject('_api', LegacyAPI);
this.register('vue', Vue);
@ -87,8 +90,8 @@ class FrankerFaceZ extends Module {
/* eslint class-methods-use-this: off */
api() {
throw new Error('Not Implemented');
api(...args) {
return this._api.create(...args);
}
}
@ -117,4 +120,13 @@ FrankerFaceZ.utilities = {
window.FrankerFaceZ = FrankerFaceZ;
window.ffz = new FrankerFaceZ();
window.ffz = new FrankerFaceZ();
// Make FFZ:AP Run
FrankerFaceZ.chat_commands = {};
FrankerFaceZ.settings_info = {};
FrankerFaceZ.utils = {
process_int(a,b,c) { return a }
}
window.App = true;
jQuery.noty = {themes: {}};