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