This commit is contained in:
Mirco Wittrien 2020-05-01 08:10:26 +02:00
parent 911bbb9af2
commit 8e14f00b75
3 changed files with 12 additions and 8 deletions

View File

@ -4377,6 +4377,8 @@
DiscordClassModules.EmojiPicker = BDFDB.ModuleUtils.findByProperties("emojiPicker", "categories");
DiscordClassModules.ExpressionPicker = BDFDB.ModuleUtils.findByProperties("contentWrapper", "navButton", "navList");
DiscordClassModules.ExpressionEmojiPicker = BDFDB.ModuleUtils.findByProperties("emojiPicker", "inspector");
DiscordClassModules.ExpressionEmojiPickerItem = BDFDB.ModuleUtils.findByProperties("emojiItemImage", "emojiItemImageLoading");
DiscordClassModules.ExpressionEmojiPickerInspector = BDFDB.ModuleUtils.findByProperties("inspector", "glyphEmoji");
DiscordClassModules.File = BDFDB.ModuleUtils.findByProperties("downloadButton", "fileNameLink");
DiscordClassModules.Flex = BDFDB.ModuleUtils.findByProperties("alignBaseline", "alignCenter");
DiscordClassModules.FlexChild = BDFDB.ModuleUtils.findByProperties("flexChild", "flex");
@ -5013,9 +5015,11 @@
emojipickercategory: ["EmojiPicker", "category"],
emojipickerdisabled: ["EmojiPicker", "disabled"],
emojipickerdiversityselector: ["EmojiPicker", "diversitySelector"],
emojipickerdiversityselectoritem: ["EmojiPicker", "item"],
emojipickeremojiitem: ["EmojiPicker", "emojiItem"],
emojipickerheader: ["EmojiPicker", "header"],
emojipickeritem: ["EmojiPicker", "item"],
emojipickerinfobar: ["EmojiPicker", "infoBar"],
emojipickerinfobaremoji: ["EmojiPicker", "infoBarEmoji"],
emojipickerpopout: ["EmojiPicker", "popout"],
emojipickerpremiumpromo: ["EmojiPicker", "premiumPromo"],
emojipickerpremiumpromoclose: ["EmojiPicker", "premiumPromoClose"],
@ -5032,7 +5036,11 @@
expressionemojipicker: ["ExpressionEmojiPicker", "emojiPicker"],
expressionemojipickerdiversityselector: ["ExpressionEmojiPicker", "diversitySelector"],
expressionemojipickerdiversityemojiitemimage: ["ExpressionEmojiPicker", "diversityEmojiItemImage"],
expressionemojipickeremojiitemimage: ["ExpressionEmojiPickerItem", "emojiItemImage"],
expressionemojipickeremojiitemimageloading: ["ExpressionEmojiPickerItem", "emojiItemImageLoading"],
expressionemojipickerheader: ["ExpressionEmojiPicker", "header"],
expressionemojipickerinspector: ["ExpressionEmojiPickerInspector", "inspector"],
expressionemojipickerinspectoremoji: ["ExpressionEmojiPickerInspector", "emoji"],
expressionpicker: ["ExpressionPicker", "contentWrapper"],
expressionpickernav: ["ExpressionPicker", "nav"],
expressionpickernavbutton: ["ExpressionPicker", "navButton"],

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,6 @@ var EmojiStatistics = (_ => {
width: 28px;
height: 28px;
margin-right: 12px;
cursor: pointer;
}
${BDFDB.dotCNS.emojipicker + BDFDB.dotCN._emojistatisticsstatisticsbutton} > div {
padding: 4px;
@ -63,10 +62,6 @@ var EmojiStatistics = (_ => {
width: 24px;
height: 24px;
grid-column: 3/4;
}
${BDFDB.dotCNS.expressionemojipicker + BDFDB.dotCN._emojistatisticsstatisticsbutton} > div {
width: 24px;
height: 24px;
}`;
}
@ -125,6 +120,7 @@ var EmojiStatistics = (_ => {
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
className: BDFDB.disCN._emojistatisticsstatisticsbutton,
children: BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.expressionemojipickerdiversityemojiitemimage,
style: {
backgroundImage: "url(/assets/0477c6a43026315dd623bc6367e18acb.svg)"
}
@ -138,7 +134,6 @@ var EmojiStatistics = (_ => {
}
processEmojiPicker (e) {
console.log(e);
this.loadEmojiList();
let [children, index] = BDFDB.ReactUtils.findChildren(e.returnvalue, {name:"DiversitySelector"});
if (index > -1) children.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
@ -146,6 +141,7 @@ var EmojiStatistics = (_ => {
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
className: BDFDB.disCN._emojistatisticsstatisticsbutton,
children: BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.emojipickerdiversityselectoritem,
style: {
backgroundImage: "url(/assets/0477c6a43026315dd623bc6367e18acb.svg)"
}