From 1418e266d27d4c372ab9f68ba022518fa2d96d48 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 18 Mar 2023 12:22:28 +0100 Subject: [PATCH] fixes --- Library/0BDFDB.plugin.js | 6 +++--- .../DisplayServersAsChannels.plugin.js | 4 ++-- Plugins/EditUsers/EditUsers.plugin.js | 9 +++------ .../FriendNotifications/FriendNotifications.plugin.js | 10 ++++------ 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 157ab66349..a52c4eeba3 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 3.1.5 + * @version 3.1.6 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -1689,7 +1689,7 @@ module.exports = (_ => { let icon = data.config.avatar ? BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Avatars.Avatar, { src: data.config.avatar, - size: Internal.LibraryComponents.Avatars.Sizes.SIZE_24 + size: Internal.LibraryComponents.AvatarConstants.Sizes.SIZE_24 }) : ((data.config.icon || data.config.type && Internal.DiscordConstants.ToastIcons[data.config.type]) ? BDFDB.ReactUtils.createElement(Internal.LibraryComponents.SvgIcon, { name: data.config.type && Internal.DiscordConstants.ToastIcons[data.config.type] && Internal.LibraryComponents.SvgIcon.Names[Internal.DiscordConstants.ToastIcons[data.config.type]], iconSVG: data.config.icon, @@ -7897,7 +7897,7 @@ module.exports = (_ => { } if (role) { if (avatar.type == "img") avatar = BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Avatars.Avatar, Object.assign({}, avatar.props, { - size: Internal.LibraryComponents.Avatars.Sizes.SIZE_40 + size: Internal.LibraryComponents.AvatarConstants.Sizes.SIZE_40 })); delete avatar.props.className; let newProps = { diff --git a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js index 3a4b72ec04..d3c7dd4fd2 100644 --- a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js +++ b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js @@ -2,7 +2,7 @@ * @name DisplayServersAsChannels * @author DevilBro * @authorId 278543574059057154 - * @version 1.6.6 + * @version 1.6.7 * @description Displays Servers in a similar way as Channels * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -354,7 +354,7 @@ module.exports = (_ => { [ options.isDm && returnvalue.props.icon && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, { src: returnvalue.props.icon, - size: BDFDB.LibraryComponents.Avatars.Sizes.SIZE_24 + size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_24 }), options.badges, ].flat(10).filter(n => n).map(badge => BDFDB.ReactUtils.createElement("div", { diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 85b3868f96..26fa41e1f9 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -2,7 +2,7 @@ * @name EditUsers * @author DevilBro * @authorId 278543574059057154 - * @version 4.7.7 + * @version 4.7.8 * @description Allows you to locally edit Users * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -14,10 +14,7 @@ module.exports = (_ => { const changeLog = { - "added": { - "Settings Restructure": "Slightly changed the settings layout of the customization modal", - "Theme Settings": "You can now change the color sheme of other users" - } + }; return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { @@ -355,7 +352,7 @@ module.exports = (_ => { children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, { className: BDFDB.disCN.listavatar, src: this.getUserAvatar(id), - size: BDFDB.LibraryComponents.Avatars.Sizes.SIZE_32, + size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_32, onClick: _ => this.openUserSettingsModal(BDFDB.LibraryStores.UserStore.getUser(id)) }) })) diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index f5a853dafc..93b6fdc427 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -2,7 +2,7 @@ * @name FriendNotifications * @author DevilBro * @authorId 278543574059057154 - * @version 1.8.9 + * @version 1.9.0 * @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -14,9 +14,7 @@ module.exports = (_ => { const changeLog = { - "fixed": { - "Screensharing Notice": "" - } + }; return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class { @@ -173,7 +171,7 @@ module.exports = (_ => { BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, { className: BDFDB.disCN._friendnotificationslogavatar, src: log.avatar, - size: BDFDB.LibraryComponents.Avatars.Sizes.SIZE_40 + size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_40 }), _this.createStatusDot(log.status, log.mobile, {marginRight: 6}), BDFDB.ReactUtils.createElement("div", { @@ -424,7 +422,7 @@ module.exports = (_ => { className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.listavatar, cardData.disabled && BDFDB.disCN.avatardisabled), src: BDFDB.UserUtils.getAvatar(cardData.id), status: BDFDB.UserUtils.getStatus(cardData.id), - size: BDFDB.LibraryComponents.Avatars.Sizes.SIZE_40, + size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_40, onClick: _ => { let observed = this.getObservedData(); let data = observed[type][cardData.id] || Object.assign({}, defaultSettings);