lib
This commit is contained in:
parent
d31a3681d6
commit
fe5d9ae796
|
@ -1012,14 +1012,15 @@
|
||||||
BannedCard: "BannedUser",
|
BannedCard: "BannedUser",
|
||||||
InvitationCard: "InviteRow",
|
InvitationCard: "InviteRow",
|
||||||
InviteCard: "InviteRow",
|
InviteCard: "InviteRow",
|
||||||
|
MemberCard: "Member",
|
||||||
PopoutContainer: "Popout",
|
PopoutContainer: "Popout",
|
||||||
QuickSwitchChannelResult: "Channel",
|
QuickSwitchChannelResult: "Channel",
|
||||||
QuickSwitchGuildResult: "Guild",
|
QuickSwitchGuildResult: "Guild",
|
||||||
QuickSwitchResult: "Result",
|
QuickSwitchResult: "Result",
|
||||||
MemberCard: "Member",
|
|
||||||
WebhookCard: "Webhook"
|
WebhookCard: "Webhook"
|
||||||
};
|
};
|
||||||
WebModulesData.Forceobserve = [
|
WebModulesData.Forceobserve = [
|
||||||
|
"GuildIcon",
|
||||||
"QuickSwitchChannelResult",
|
"QuickSwitchChannelResult",
|
||||||
"QuickSwitchGuildResult"
|
"QuickSwitchGuildResult"
|
||||||
];
|
];
|
||||||
|
@ -1033,6 +1034,7 @@
|
||||||
EmojiPicker: "emojipicker",
|
EmojiPicker: "emojipicker",
|
||||||
FriendRow: "friendsrow",
|
FriendRow: "friendsrow",
|
||||||
Guild: "guildouter",
|
Guild: "guildouter",
|
||||||
|
GuildIcon: "avataricon",
|
||||||
InstantInviteModal: "invitemodalwrapper",
|
InstantInviteModal: "invitemodalwrapper",
|
||||||
InvitationCard: "invitemodalinviterow",
|
InvitationCard: "invitemodalinviterow",
|
||||||
InviteCard: "guildsettingsinvitecard",
|
InviteCard: "guildsettingsinvitecard",
|
||||||
|
@ -7635,6 +7637,23 @@
|
||||||
|
|
||||||
LibraryComponents.TextElement = BDFDB.ModuleUtils.findByName("Text");
|
LibraryComponents.TextElement = BDFDB.ModuleUtils.findByName("Text");
|
||||||
|
|
||||||
|
LibraryComponents.TextGradientElement = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.TextGradientElement") || reactInitialized && class BDFDB_TextGradientElement extends LibraryModules.React.Component {
|
||||||
|
render() {
|
||||||
|
if (this.props.gradient && this.props.children) return BDFDB.ReactUtils.createElement("span", {
|
||||||
|
children: this.props.children,
|
||||||
|
ref: instance => {
|
||||||
|
let ele = BDFDB.ReactUtils.findDOMNode(instance);
|
||||||
|
if (ele) {
|
||||||
|
ele.style.setProperty("background-image", this.props.gradient, "important");
|
||||||
|
ele.style.setProperty("color", "transparent", "important");
|
||||||
|
ele.style.setProperty("-webkit-background-clip", "text", "important");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return this.props.children || null;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
LibraryComponents.TextInput = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.TextInput") || reactInitialized && class BDFDB_TextInput extends LibraryModules.React.Component {
|
LibraryComponents.TextInput = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.TextInput") || reactInitialized && class BDFDB_TextInput extends LibraryModules.React.Component {
|
||||||
handleChange(e) {
|
handleChange(e) {
|
||||||
e = BDFDB.ObjectUtils.is(e) ? e.currentTarget.value : e;
|
e = BDFDB.ObjectUtils.is(e) ? e.currentTarget.value : e;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue