This commit is contained in:
Mirco Wittrien 2023-03-18 12:22:28 +01:00
parent cd273afb37
commit 1418e266d2
4 changed files with 12 additions and 17 deletions

View File

@ -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 = {

View File

@ -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", {

View File

@ -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))
})
}))

View File

@ -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);