stuff
This commit is contained in:
parent
ca9b471b8e
commit
e2e9cd3506
|
@ -5628,8 +5628,6 @@ var BDFDB = {
|
||||||
|
|
||||||
LibraryComponents.BadgeComponents = Object.assign({}, BDFDB.ModuleUtils.findByProperties("IconBadge", "NumberBadge") || {});
|
LibraryComponents.BadgeComponents = Object.assign({}, BDFDB.ModuleUtils.findByProperties("IconBadge", "NumberBadge") || {});
|
||||||
|
|
||||||
LibraryComponents.BlobMask = BDFDB.ModuleUtils.findByName("BlobMask");
|
|
||||||
|
|
||||||
LibraryComponents.BotTag = reactInitialized ? class BDFDB_BotTag extends LibraryModules.React.Component {
|
LibraryComponents.BotTag = reactInitialized ? class BDFDB_BotTag extends LibraryModules.React.Component {
|
||||||
render() {
|
render() {
|
||||||
return BDFDB.ReactUtils.createElement("span", {
|
return BDFDB.ReactUtils.createElement("span", {
|
||||||
|
@ -6006,11 +6004,14 @@ var BDFDB = {
|
||||||
|
|
||||||
LibraryComponents.GuildComponents = Object.assign({}, BDFDB.ModuleUtils.findByProperties("Separator", "DragPlaceholder") || {});
|
LibraryComponents.GuildComponents = Object.assign({}, BDFDB.ModuleUtils.findByProperties("Separator", "DragPlaceholder") || {});
|
||||||
|
|
||||||
LibraryComponents.GuildComponents.GuildDropTarget = BDFDB.ModuleUtils.findByName("GuildDropTarget");
|
LibraryComponents.GuildComponents.BlobMask = BDFDB.ModuleUtils.findByName("BlobMask");
|
||||||
|
|
||||||
LibraryComponents.GuildComponents.GuildPill = BDFDB.ModuleUtils.findByString("opacity:1,height:", "20:8", "default.item");
|
|
||||||
|
|
||||||
LibraryComponents.GuildComponents.Guild = reactInitialized ? class BDFDB_Guild extends Library.React.Component {
|
LibraryComponents.GuildComponents.Guild = reactInitialized ? class BDFDB_Guild extends Library.React.Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
|
||||||
|
this.state = {hovered: false};
|
||||||
|
}
|
||||||
handleMouseEnter(e) {
|
handleMouseEnter(e) {
|
||||||
if (!this.props.sorting) this.setState({hovered: true});
|
if (!this.props.sorting) this.setState({hovered: true});
|
||||||
if (typeof this.props.onMouseEnter == "function") this.props.onMouseEnter(e, this);
|
if (typeof this.props.onMouseEnter == "function") this.props.onMouseEnter(e, this);
|
||||||
|
@ -6037,7 +6038,7 @@ var BDFDB = {
|
||||||
children: BDFDB.ReactUtils.createElement(LibraryComponents.GuildComponents.DragPlaceholder, {})
|
children: BDFDB.ReactUtils.createElement(LibraryComponents.GuildComponents.DragPlaceholder, {})
|
||||||
}) : BDFDB.ReactUtils.createElement("div", {
|
}) : BDFDB.ReactUtils.createElement("div", {
|
||||||
className: BDFDB.disCN.guildcontainer,
|
className: BDFDB.disCN.guildcontainer,
|
||||||
children: BDFDB.ReactUtils.createElement(LibraryComponents.BlobMask, {
|
children: BDFDB.ReactUtils.createElement(LibraryComponents.GuildComponents.BlobMask, {
|
||||||
selected: this.state.isDropHovering || this.props.selected || this.state.hovered,
|
selected: this.state.isDropHovering || this.props.selected || this.state.hovered,
|
||||||
upperBadge: LibraryComponents.GuildComponents.renderIconBadge(this.props.audio, this.props.video),
|
upperBadge: LibraryComponents.GuildComponents.renderIconBadge(this.props.audio, this.props.video),
|
||||||
lowerBadge: this.props.badge > 0 ? LibraryComponents.GuildComponents.renderMentionBadge(this.props.badge) : null,
|
lowerBadge: this.props.badge > 0 ? LibraryComponents.GuildComponents.renderMentionBadge(this.props.badge) : null,
|
||||||
|
@ -6084,6 +6085,10 @@ var BDFDB = {
|
||||||
}
|
}
|
||||||
} : LibraryComponents.GuildComponents.Guild;
|
} : LibraryComponents.GuildComponents.Guild;
|
||||||
|
|
||||||
|
LibraryComponents.GuildComponents.GuildDropTarget = BDFDB.ModuleUtils.findByName("GuildDropTarget");
|
||||||
|
|
||||||
|
LibraryComponents.GuildComponents.Pill = BDFDB.ModuleUtils.findByString("opacity:1,height:", "20:8", "default.item");
|
||||||
|
|
||||||
LibraryComponents.MessageComponents = Object.assign({}, BDFDB.ModuleUtils.findByProperties("Message", "MessageTimestamp") || {});
|
LibraryComponents.MessageComponents = Object.assign({}, BDFDB.ModuleUtils.findByProperties("Message", "MessageTimestamp") || {});
|
||||||
|
|
||||||
LibraryComponents.MessageOptionPopout = BDFDB.ModuleUtils.findByName("MessageOptionPopout")
|
LibraryComponents.MessageOptionPopout = BDFDB.ModuleUtils.findByName("MessageOptionPopout")
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue