Update ShowConnections.plugin.js

This commit is contained in:
Mirco Wittrien 2021-06-01 10:01:42 +02:00 committed by GitHub
parent 89890a2431
commit 5565f5fbb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @name ShowConnections * @name ShowConnections
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.0.2 * @version 1.0.3
* @description Shows the connected Accounts of a User in the UserPopout * @description Shows the connected Accounts of a User in the UserPopout
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": { "info": {
"name": "ShowConnections", "name": "ShowConnections",
"author": "DevilBro", "author": "DevilBro",
"version": "1.0.2", "version": "1.0.3",
"description": "Shows the connected Accounts of a User in the UserPopout" "description": "Shows the connected Accounts of a User in the UserPopout"
}, },
"changeLog": { "changeLog": {
@ -26,6 +26,7 @@ module.exports = (_ => {
}, },
"added": { "added": {
"Filter": "You can now enable/disable certain Connections so they don't show", "Filter": "You can now enable/disable certain Connections so they don't show",
"Position": "You can now change the order and place them at the top of the UserPopout",
"Customization": "You can now disable the Tooltip Color, change the Icons to a white Version, disable the Verified Badge", "Customization": "You can now disable the Tooltip Color, change the Icons to a white Version, disable the Verified Badge",
} }
} }
@ -83,7 +84,8 @@ module.exports = (_ => {
general: { general: {
useColoredIcons: {value: true, description: "Use colored Version of the Icons"}, useColoredIcons: {value: true, description: "Use colored Version of the Icons"},
useColoredTooltips: {value: true, description: "Use colored Version of the Tooltips"}, useColoredTooltips: {value: true, description: "Use colored Version of the Tooltips"},
showVerifiedBadge: {value: true, description: "Show the Badge for verified Connections"}, placeAtTop: {value: false, description: "Places the Connections at the Top of the UserPopout Body"},
ShowVerifiedBadge: {value: true, description: "Show the Badge for verified Connections"},
openWebpage: {value: true, description: "Open the Connection Page when clicking the Icon"} openWebpage: {value: true, description: "Open the Connection Page when clicking the Icon"}
}, },
connections: {} connections: {}
@ -178,7 +180,7 @@ module.exports = (_ => {
if (connections.length) { if (connections.length) {
let isLightTheme = BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight; let isLightTheme = BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight;
let bodyInner = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutbodyinnerwrapper]]}); let bodyInner = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutbodyinnerwrapper]]});
if (bodyInner) bodyInner.props.children.splice(bodyInner.props.children.length - 1, 0, [ if (bodyInner) bodyInner.props.children.splice(this.settings.general.placeAtTop ? 0 : bodyInner.props.children.length - 1, 0, [
BDFDB.ReactUtils.createElement("div", { BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.userpopoutbodytitle, className: BDFDB.disCN.userpopoutbodytitle,
children: BDFDB.LanguageUtils.LanguageStrings.CONNECTIONS children: BDFDB.LanguageUtils.LanguageStrings.CONNECTIONS