Update EmojiStatistics.plugin.js
This commit is contained in:
parent
94c5f3e4e9
commit
41648b2e59
|
@ -14,13 +14,8 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "EmojiStatistics",
|
"name": "EmojiStatistics",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "2.9.6",
|
"version": "2.9.7",
|
||||||
"description": "Add some helpful options to show you more information about emojis and emojiservers"
|
"description": "Add some helpful options to show you more information about emojis and emojiservers"
|
||||||
},
|
|
||||||
"changeLog": {
|
|
||||||
"improved": {
|
|
||||||
"Canary Changes": "Preparing Plugins for the changes that are already done on Discord Canary"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -108,14 +103,12 @@ module.exports = (_ => {
|
||||||
this.loadEmojiList();
|
this.loadEmojiList();
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "DiversitySelector"});
|
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "DiversitySelector"});
|
||||||
if (index > -1) children.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
if (index > -1) children.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
|
||||||
text: "Emoji Statistics",
|
text: this.labels.modal_header,
|
||||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
|
||||||
className: BDFDB.disCN._emojistatisticsstatisticsbutton,
|
className: BDFDB.disCN._emojistatisticsstatisticsbutton,
|
||||||
children: BDFDB.ReactUtils.createElement("div", {
|
children: BDFDB.ReactUtils.createElement("div", {
|
||||||
className: BDFDB.disCN.emojipickerdiversityemojiitemimage,
|
className: BDFDB.disCN.emojipickerdiversityemojiitemimage,
|
||||||
style: {
|
style: {backgroundImage: `url(${BDFDB.LibraryModules.EmojiStateUtils.getURL(BDFDB.LibraryModules.EmojiUtils.convertNameToSurrogate("mag_right"))})`}
|
||||||
backgroundImage: "url(/assets/0477c6a43026315dd623bc6367e18acb.svg)"
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
onClick: _ => {
|
onClick: _ => {
|
||||||
|
@ -142,7 +135,7 @@ module.exports = (_ => {
|
||||||
stickyHeader: true,
|
stickyHeader: true,
|
||||||
sortData: false,
|
sortData: false,
|
||||||
columns: [
|
columns: [
|
||||||
{key: "icon", icon: "icon", sortKey: "index"},
|
{key: "icon", cell: "icon", sortKey: "index"},
|
||||||
{key: "name", cell: "name"},
|
{key: "name", cell: "name"},
|
||||||
{key: "total", cell: "amount", reverse: true},
|
{key: "total", cell: "amount", reverse: true},
|
||||||
{key: "global", cell: "amount", reverse: true},
|
{key: "global", cell: "amount", reverse: true},
|
||||||
|
@ -174,7 +167,7 @@ module.exports = (_ => {
|
||||||
local: 0,
|
local: 0,
|
||||||
copies: 0
|
copies: 0
|
||||||
}
|
}
|
||||||
for (let emoji of BDFDB.LibraryModules.GuildEmojiStore.getGuildEmoji(info.id)) {
|
for (let emoji of BDFDB.LibraryModules.GuildEmojiStore.getGuildEmoji(guild.id)) {
|
||||||
if (emoji.managed) {
|
if (emoji.managed) {
|
||||||
itemData.global++;
|
itemData.global++;
|
||||||
if (emojiReplicaList[emoji.name]) itemData.copies++;
|
if (emojiReplicaList[emoji.name]) itemData.copies++;
|
||||||
|
@ -212,7 +205,7 @@ module.exports = (_ => {
|
||||||
};
|
};
|
||||||
case "de": // German
|
case "de": // German
|
||||||
return {
|
return {
|
||||||
modal_header: "Statistiken von Emojis",
|
modal_header: "Emoji Statistiken",
|
||||||
modal_titlescopies: "Kopien",
|
modal_titlescopies: "Kopien",
|
||||||
modal_titlesglobal: "Global",
|
modal_titlesglobal: "Global",
|
||||||
modal_titlesicon: "Symbol",
|
modal_titlesicon: "Symbol",
|
||||||
|
|
Loading…
Reference in New Issue