This commit is contained in:
Mirco Wittrien 2019-09-12 22:39:24 +02:00
parent a14d25d4cc
commit fbc8177ebf
3 changed files with 19 additions and 20 deletions

File diff suppressed because one or more lines are too long

View File

@ -1329,23 +1329,6 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
return Node.prototype.isPrototypeOf(node) ? node : null;
};
};
var LibraryComponents = {};
LibraryComponents.Button = BDFDB.WebModules.findByProperties('Colors', 'Hovers', 'Looks');
LibraryComponents.ContextMenu = BDFDB.WebModules.findByName('NativeContextMenu');;
LibraryComponents.ContextMenuItem = BDFDB.WebModules.findByString("{className:(0,l.default)(i.default.item,(t={},t[i.default.clickable]=!v");
LibraryComponents.ContextMenuItemGroup = BDFDB.WebModules.findByString('{className:i.default.itemGroup}');
LibraryComponents.ContextMenuSliderItem = BDFDB.WebModules.findByName('SliderMenuItem');
LibraryComponents.ContextMenuSubItem = BDFDB.WebModules.findByName('FluxContainer(SubMenuItem)');
LibraryComponents.ContextMenuToggleItem = LibraryModules.React && LibraryModules.React.Component ? (class OtherItem extends LibraryModules.React.Component {
handleToggle() {
this.props.active = !this.props.active;
if (this.props.action) this.props.action(this.props.active);
this.forceUpdate();
}
render() {return LibraryModules.React.createElement(BDFDB.WebModules.findByName('ToggleMenuItem'), Object.assign({}, this.props, {action: this.handleToggle.bind(this)}));}
}) : undefined;
BDFDB.LibraryComponents = Object.assign({}, LibraryComponents);
var myDataUser = LibraryModules.CurrentUserStore && typeof LibraryModules.CurrentUserStore.getCurrentUser == 'function' ? LibraryModules.CurrentUserStore.getCurrentUser() : null;
BDFDB.myData = new Proxy(myDataUser || {}, {
@ -5047,6 +5030,23 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
return classname;
}
};
var LibraryComponents = {};
LibraryComponents.Button = BDFDB.WebModules.findByProperties('Colors', 'Hovers', 'Looks');
LibraryComponents.ContextMenu = BDFDB.WebModules.findByName('NativeContextMenu');
LibraryComponents.ContextMenuItem = BDFDB.WebModules.findByString("{className:(0,l.default)(i.default.item,(t={},t[i.default.clickable]=!v");
LibraryComponents.ContextMenuItemGroup = BDFDB.WebModules.findByString('{className:i.default.itemGroup}');
LibraryComponents.ContextMenuSliderItem = BDFDB.WebModules.findByName('SliderMenuItem');
LibraryComponents.ContextMenuSubItem = BDFDB.WebModules.findByName('FluxContainer(SubMenuItem)');
LibraryComponents.ContextMenuToggleItem = LibraryModules.React && LibraryModules.React.Component ? (class OtherItem extends LibraryModules.React.Component {
handleToggle() {
this.props.active = !this.props.active;
if (this.props.action) this.props.action(this.props.active);
this.forceUpdate();
}
render() {return LibraryModules.React.createElement(BDFDB.WebModules.findByName('ToggleMenuItem'), Object.assign({}, this.props, {action: this.handleToggle.bind(this)}));}
}) : undefined;
BDFDB.LibraryComponents = Object.assign({}, LibraryComponents);
BDFDB.getLibraryStrings = function () {
switch (BDFDB.getDiscordLanguage().id) {
@ -6304,7 +6304,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
BDFDB.WebModules.DevFuncs.listen = function (strings) {
strings = Array.isArray(strings) ? strings : Array.from(arguments);
BDFDB.WebModules.DevFuncs.listenstop();
BDFDB.WebModules.DevFuncs.listen.p = BDFDB.WebModules.patch(BDFDB.WebModules.findByProperties(strings), strings[0], "WebpackSearch", {before: e => {
BDFDB.WebModules.DevFuncs.listen.p = BDFDB.WebModules.patch(BDFDB.WebModules.findByProperties(strings), strings[0], "WebpackSearch", {after: e => {
console.log(e);
}});
};

View File

@ -149,7 +149,6 @@ class CharCounter {
}
processNote (instance, wrapper, returnvalue) {
console.log(wrapper);
this.appendCounter(wrapper.firstElementChild, BDFDB.containsClass(wrapper, BDFDB.disCN.usernotepopout) ? "popout" : (BDFDB.containsClass(wrapper, BDFDB.disCN.usernoteprofile) ? "profile" : null), false);
}