From 888933f3446ac9fe7aaabf63dc13bf478547fdf1 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 29 Oct 2023 21:20:46 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 10 +++++----- Library/_res/0BDFDB.data.json | 11 ++++------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 9cf49c0dfb..6cd103dc83 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 3.4.5 + * @version 3.4.6 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -6232,12 +6232,12 @@ module.exports = (_ => { if (!guild) return BDFDB.ReactUtils.createElement("div", { className: BDFDB.disCN.guildsummaryemptyguild }); - let icon = BDFDB.ReactUtils.createElement(Internal.LibraryComponents.GuildIconComponents.Icon, { + let icon = BDFDB.ReactUtils.createElement(Internal.LibraryComponents.GuildIcon, { className: BDFDB.disCN.guildsummaryicon, guild: guild, showTooltip: this.props.showTooltip, tooltipPosition: "top", - size: Internal.LibraryComponents.GuildIconComponents.Icon.Sizes.SMALLER + size: Internal.LibraryComponents.GuildIcon.Sizes.SMALLER }); return this.props.switchOnClick ? BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Clickable, { className: BDFDB.disCN.guildsummaryclickableicon, @@ -7005,9 +7005,9 @@ module.exports = (_ => { text: guild.name, children: BDFDB.ReactUtils.createElement("div", { className: BDFDB.DOMUtils.formatClassName(this.props.guildClassName, BDFDB.disCN.settingsguild, this.props.disabled.includes(guild.id) && BDFDB.disCN.settingsguilddisabled), - children: BDFDB.ReactUtils.createElement(Internal.LibraryComponents.GuildIconComponents.Icon, { + children: BDFDB.ReactUtils.createElement(Internal.LibraryComponents.GuildIcon, { guild: guild, - size: this.props.size || Internal.LibraryComponents.GuildIconComponents.Icon.Sizes.MEDIUM + size: this.props.size || Internal.LibraryComponents.GuildIcon.Sizes.MEDIUM }), onClick: e => { let isDisabled = this.props.disabled.includes(guild.id); diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 4e488f542c..93324f7574 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -321,10 +321,7 @@ "FormTitle": [".tag", ".errorSeparator"] }}, "GuildBadge": {"strings": ["VERIFIED_AND_PARTNERED", "renderBadge", "flowerStarClassName"]}, - "GuildIconComponents": {"strings": ["SMOL", "badgeStrokeColor"], "map": { - "Icon": [".apply"], - "Sizes": ["\"SMOL\"", "\"SMALLER\""] - }}, + "GuildIcon": {"strings": ["SMOL", "badgeStrokeColor"], "funcStrings": ["render()"]}, "GuildTooltipMutedText": {"strings": [".muteConfig", "color:\"text-muted\""]}, "Heading": {"strings": ["data-excessive", ".defaultColor"]}, "HeaderBarComponents": {"strings": ["isAuthenticated", ".HEADER_BAR"]}, @@ -373,9 +370,9 @@ "Spinner": [".spinningCircleInner"], "Types": ["WANDERING_CUBES", "wanderingCubes"] }}, - "StatusComponents": {"strings": ["().status}", ".isMobile", ".ONLINE"], "exported": false, "value": "exports", "map": { - "Status": ["().status}", ".isMobile", ".ONLINE"], - "Types": ["\"online\"", "\"unknown\""] + "StatusComponents": {"props": ["Status", "StatusTypes"], "exported": false, "value": "exports", "map": { + "Status": ["Status"], + "Types": ["StatusTypes"] }}, "Text": {"strings": ["lineClamp:", ".selectable", ".defaultColor"]}, "TextElement": {"strings": [".strong]", ".STANDARD"]},