stuff
This commit is contained in:
parent
f872c295dc
commit
38b927b2d7
|
@ -2,7 +2,7 @@
|
|||
* @name BDFDB
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 3.6.1
|
||||
* @version 3.6.2
|
||||
* @description Required Library for DevilBro's Plugins
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -1760,7 +1760,7 @@ module.exports = (_ => {
|
|||
|
||||
let icon = data.config.avatar ? BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Avatars.Avatar, {
|
||||
src: data.config.avatar,
|
||||
size: Internal.LibraryComponents.AvatarConstants.Sizes.SIZE_24
|
||||
size: Internal.LibraryComponents.AvatarConstants.AvatarSizes.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,
|
||||
|
@ -8100,7 +8100,7 @@ module.exports = (_ => {
|
|||
}
|
||||
if (role) {
|
||||
if (avatar.type == "img") avatar = BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Avatars.Avatar, Object.assign({}, avatar.props, {
|
||||
size: Internal.LibraryComponents.AvatarConstants.Sizes.SIZE_40
|
||||
size: Internal.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_40
|
||||
}));
|
||||
delete avatar.props.className;
|
||||
let newProps = {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name DisplayServersAsChannels
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.7.4
|
||||
* @version 1.7.5
|
||||
* @description Displays Servers in a similar way as Channels
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -353,7 +353,7 @@ module.exports = (_ => {
|
|||
[
|
||||
options.isDm && returnvalue.props.icon && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, {
|
||||
src: returnvalue.props.icon,
|
||||
size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_24
|
||||
size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_24
|
||||
}),
|
||||
options.badges,
|
||||
].flat(10).filter(n => n).map(badge => BDFDB.ReactUtils.createElement("div", {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name EditUsers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 4.8.7
|
||||
* @version 4.8.8
|
||||
* @description Allows you to locally edit Users
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -367,7 +367,7 @@ module.exports = (_ => {
|
|||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, {
|
||||
className: BDFDB.disCN.listavatar,
|
||||
src: this.getUserAvatar(id),
|
||||
size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_32,
|
||||
size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_32,
|
||||
onClick: _ => this.openUserSettingsModal(BDFDB.LibraryStores.UserStore.getUser(id))
|
||||
})
|
||||
});
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name FriendNotifications
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.9.9
|
||||
* @version 2.0.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
|
||||
|
@ -176,7 +176,7 @@ module.exports = (_ => {
|
|||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, {
|
||||
className: BDFDB.disCN._friendnotificationslogavatar,
|
||||
src: log.avatar,
|
||||
size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_40
|
||||
size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_40
|
||||
}),
|
||||
_this.createStatusDot(log.status, log.mobile, {marginRight: 6}),
|
||||
BDFDB.ReactUtils.createElement("div", {
|
||||
|
@ -424,7 +424,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.AvatarConstants.Sizes.SIZE_40,
|
||||
size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_40,
|
||||
onClick: _ => {
|
||||
let observed = this.getObservedData();
|
||||
let data = observed[type][cardData.id] || Object.assign({}, defaultSettings);
|
||||
|
@ -476,7 +476,7 @@ module.exports = (_ => {
|
|||
BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates);
|
||||
this.SettingsUpdated = true;
|
||||
}
|
||||
}));
|
||||
}, true));
|
||||
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.CollapseContainer, {
|
||||
title: title,
|
||||
collapseStates: collapseStates,
|
||||
|
|
Loading…
Reference in New Issue