This commit is contained in:
Mirco Wittrien 2021-02-05 23:24:38 +01:00
parent fcdc37dbf9
commit 78b6ed4b0e
5 changed files with 13 additions and 18 deletions

View File

@ -16,13 +16,13 @@ module.exports = (_ => {
"info": {
"name": "BDFDB",
"author": "DevilBro",
"version": "1.3.7",
"version": "1.3.8",
"description": "Give other plugins utility functions"
},
"rawUrl": "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js",
"changeLog": {
"fixed": {
"Server Mark as Read": "Fixed issue with BDFDB.GuildUtils.markAsRead not working"
"Server Component": "Fixed Issue with Server Component"
}
}
};
@ -5641,7 +5641,7 @@ module.exports = (_ => {
this.props.audio = this.props.state ? currentVoiceChannel && currentVoiceChannel.guild_id == this.props.guild.id && !hasVideo : false;
this.props.video = this.props.state ? currentVoiceChannel && currentVoiceChannel.guild_id == this.props.guild.id && hasVideo : false;
this.props.screenshare = this.props.state ? !!LibraryModules.StreamUtils.getAllApplicationStreams().filter(stream => stream.guildId == this.props.guild.id)[0] : false;
this.props.isCurrentUserInThisGuildVoice = this.props.state ? LibraryModules.CurrentVoiceUtils.getGuildId() == this.props.guild.id : false;
this.props.participating = this.props.state ? LibraryModules.CurrentVoiceUtils.getGuildId() == this.props.guild.id : false;
this.props.animatable = this.props.state ? LibraryModules.IconUtils.hasAnimatedGuildIcon(this.props.guild) : false;
this.props.unavailable = this.props.state ? LibraryModules.GuildUnavailableStore.unavailableGuilds.includes(this.props.guild.id) : false;
let isDraggedGuild = this.props.draggingGuildId === this.props.guild.id;
@ -5651,7 +5651,7 @@ module.exports = (_ => {
className: BDFDB.disCN.guildcontainer,
children: BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.GuildComponents.BlobMask, {
selected: this.state.isDropHovering || this.props.selected || this.state.hovered,
upperBadge: this.props.unavailable ? InternalComponents.LibraryComponents.GuildComponents.Items.renderUnavailableBadge() : InternalComponents.LibraryComponents.GuildComponents.Items.renderIconBadge(this.props.audio, this.props.video, this.props.screenshare, this.props.isCurrentUserInThisGuildVoice),
upperBadge: this.props.unavailable ? InternalComponents.LibraryComponents.GuildComponents.Items.renderUnavailableBadge() : InternalComponents.LibraryComponents.GuildComponents.Items.renderIconBadge(BDFDB.ObjectUtils.extract(this.props, "audio", "video", "screenshare", "participating")),
lowerBadge: this.props.badge > 0 ? InternalComponents.LibraryComponents.GuildComponents.Items.renderMentionBadge(this.props.badge) : null,
lowerBadgeWidth: InternalComponents.LibraryComponents.Badges.getBadgeWidthForValue(this.props.badge),
children: BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.NavItem, {

View File

@ -14,7 +14,7 @@ module.exports = (_ => {
"info": {
"name": "BadgesEverywhere",
"author": "DevilBro",
"version": "1.6.5",
"version": "1.6.6",
"description": "Display Badges (Nitro, HypeSquad, etc...) in the chat/memberlist/userpopout"
}
};

View File

@ -14,7 +14,7 @@ module.exports = (_ => {
"info": {
"name": "MessageUtilities",
"author": "DevilBro",
"version": "1.8.5",
"version": "1.8.6",
"description": "Offer a number of useful message options. Remap the keybindings in the settings"
}
};

View File

@ -14,13 +14,8 @@ module.exports = (_ => {
"info": {
"name": "PluginRepo",
"author": "DevilBro",
"version": "2.1.2",
"version": "2.1.3",
"description": "Allow you to look at all plugins from the plugin repo and download them on the fly"
},
"changeLog": {
"fixed": {
"New Settings Order": "Fixed for new settings order"
}
}
};
@ -115,7 +110,7 @@ module.exports = (_ => {
DESC: "descending"
};
const pluginRepoIcon = `<svg width="35" height="32" viewBox="0 0 35 32"><path fill="COLOR_1" d="M 0,15.999383 V 31.998776 H 3.7511774 7.5023548 V 27.329198 22.659712 H 10.29036 c 3.818555,0 4.869971,-0.180687 6.757328,-1.16151 C 25.163552,17.280747 24.374039,3.6154073 15.841944,0.62878797 14.041781,-0.00131638 14.060789,2.2791846e-8 6.5391829,2.2791846e-8 H 0 V 15.999383 M 12.7486,7.7097692 c 2.862662,0.8058133 3.33341,5.6369388 0.711135,7.2975188 -0.599676,0.379824 -0.882691,0.41296 -3.5265609,0.41296 H 7.5023548 V 11.510851 7.6015465 h 2.4308193 c 1.9412269,0 2.5083879,0.021803 2.8154259,0.1082227 z"/><path fill="COLOR_2" d="m 21.064702,0 c 1.967452,1.766478 3.332467,4.063209 4.090139,6.5585938 0.151187,0.4101248 0.282303,0.8253185 0.382275,1.2460937 0.09454,0.3980164 0.168822,0.5574636 0.300807,0.6445313 1.418028,0.9347589 1.551379,3.8505502 0.238139,5.2285152 -0.312888,0.328422 -0.361335,0.426261 -0.532679,1.095704 -0.12405,0.484431 -0.284496,0.954562 -0.461656,1.416015 -0.817671,2.517439 -2.289982,4.820475 -4.441079,6.572266 0.414023,0.623399 1.264807,1.81072 3.085359,4.314453 l 3.553282,4.886719 3.860356,0.01758 L 35,32 V 30.449219 28.896484 L 31.902107,24.96875 28.802124,21.041016 29.222,20.882812 c 3.46357,-1.309954 5.364216,-4.300415 5.71742,-8.992187 C 35.390461,5.9003448 32.612138,1.7225284 27.300178,0.40820312 25.841921,0.04743681 25.241818,0 22.182283,0 Z m -2.477479,24.140625 c -0.208425,0.11463 -0.413274,0.232173 -0.630859,0.337891 -2.267583,1.101803 -3.819887,1.414393 -7.56613,1.484375 v 2.099609 3.935547 h 4.102673 4.100582 v -4.488281 c 0,-1.919086 0.0021,-2.772654 -0.0063,-3.369141 z"/></svg>`;
const pluginRepoIcon = `<svg width="37" height="32" viewBox="0 0 37 32"><path fill="COLOR_1" d="m 0,0 v 32 h 8.1672381 v -9.355469 h 4.7914989 c 7.802754,0 11.77368,-5.650788 11.77368,-11.345703 C 24.732417,5.6491106 20.8074,0 12.913386,0 Z m 8.1672381,7.5488281 h 4.7461479 c 4.928055,-0.045198 4.928055,7.9534009 0,7.9082029 H 8.1672381 Z"/><path fill="COLOR_2" d="M 23.173828 0 C 26.168987 2.3031072 27.920961 5.6614952 28.433594 9.2128906 C 29.159183 10.362444 29.181906 11.885963 28.511719 13.064453 C 28.098967 17.002739 26.191156 20.761973 22.810547 23.197266 L 29.287109 32 L 37 32 L 37 28.941406 L 30.65625 21.017578 C 34.580442 19.797239 37 16.452154 37 10.53125 C 36.81748 3.0284249 31.662 0 25 0 L 23.173828 0 z M 20.34375 24.603516 C 18.404231 25.464995 16.135462 25.970703 13.521484 25.970703 L 12.085938 25.970703 L 12.085938 32 L 20.34375 32 L 20.34375 24.603516 z"/></svg>`;
const RepoListComponent = class PluginList extends BdApi.React.Component {
componentDidMount() {

View File

@ -14,7 +14,7 @@ module.exports = (_ => {
"info": {
"name": "ThemeRepo",
"author": "DevilBro",
"version": "2.1.2",
"version": "2.1.3",
"description": "Allow you to preview all themes from the theme repo and download them on the fly"
},
"changeLog": {
@ -115,7 +115,7 @@ module.exports = (_ => {
DESC: "descending"
};
const themeRepoIcon = `<svg width="39" height="32" viewBox="0 0 39 32"><path fill="COLOR_1" d="m 0,3.8369956 v 3.8369068 h 4.2485624 4.24866 V 19.836368 31.998734 h 4.1396556 4.139655 V 19.836368 7.6739024 h 4.248562 4.248659 V 3.8369956 0 H 12.636878 0 v 3.8369956 z"/><path fill="COLOR_2" d="m 26.726212,3.7539002 v 3.7539002 l 0.599235,0.047207 c 2.895848,0.2282931 4.458187,2.8030736 3.228908,5.3213946 -0.789652,1.617734 -1.78074,1.964611 -5.613855,1.964611 H 22.441379 V 11.981369 9.1218131 H 20.335184 18.229088 V 20.560312 31.9987 h 2.106096 2.106195 v -5.070253 -5.070353 l 0.692251,0.02077 0.69225,0.02066 3.690081,5.031466 3.690084,5.031477 3.896976,0.01877 L 39,32 v -1.551755 -1.551744 l -3.127411,-3.927389 -3.127409,-3.927388 0.422565,-0.158416 c 3.495667,-1.309944 5.41554,-4.30099 5.772,-8.992777 C 39.488279,4.6720596 35.120865,0 27.824452,0 h -1.09824 v 3.7539002 z"/></svg>`;
const themeRepoIcon = `<svg width="42" height="32" viewBox="0 0 42 32"><path fill="COLOR_1" d="M 0,0 V 7.671875 H 8.6211458 V 32 H 16.922769 V 7.672 l 8.621146,-1.25e-4 V 0 Z"/><path fill="COLOR_2" d="M 29.542969 0 L 29.542969 7.5488281 L 30.056641 7.5488281 C 35.246318 7.5488281 35.246318 14.869141 30.056641 14.869141 L 25.234375 14.869141 L 25.234375 11.671875 L 20.921875 11.671875 L 20.921875 32 L 25.234375 32 L 25.234375 21.830078 L 26.705078 21.830078 L 34.236328 32 L 42 32 L 42 28.931641 L 35.613281 21.017578 C 39.562947 19.797239 41.998047 16.452154 41.998047 10.53125 C 41.814341 3.0284252 36.625168 0 29.919922 0 L 29.542969 0 z"/></svg>`;
const RepoListComponent = class ThemeList extends BdApi.React.Component {
componentDidMount() {
@ -1066,7 +1066,7 @@ module.exports = (_ => {
BDFDB.NotificationUtils.notice(this.labels.notice_outdated_themes.replace("{{var0}}", outdated), {
type: "danger",
className: BDFDB.disCNS._themereponotice + BDFDB.disCN._themerepooutdatednotice,
customIcon: themeRepoIcon.replace(/COLOR_[0-9]+/gi, "currentColor"),
customIcon: themeRepoIcon.replace(/COLOR_1/gi, "#fff").replace(/COLOR_2/gi, "#b9bbbe"),
buttons: [{
contents: BDFDB.LanguageUtils.LanguageStrings.OPEN,
close: true,
@ -1083,7 +1083,7 @@ module.exports = (_ => {
BDFDB.NotificationUtils.notice(this.labels.notice_new_themes.replace("{{var0}}", newEntries), {
type: "success",
className: BDFDB.disCNS._themereponotice + BDFDB.disCN._themereponewentriesnotice,
customIcon: themeRepoIcon.replace(/COLOR_[0-9]+/gi, "currentColor"),
customIcon: themeRepoIcon.replace(/COLOR_1/gi, "#fff").replace(/COLOR_2/gi, "#b9bbbe"),
buttons: [{
contents: BDFDB.LanguageUtils.LanguageStrings.OPEN,
close: true,
@ -1104,7 +1104,7 @@ module.exports = (_ => {
BDFDB.NotificationUtils.notice(this.labels.notice_failed_themes.replace("{{var0}}", wrongUrls.length), {
type: "danger",
className: BDFDB.disCNS._themereponotice + BDFDB.disCN._themerepofailnotice,
customIcon: themeRepoIcon.replace(/COLOR_[0-9]+/gi, "currentColor"),
customIcon: themeRepoIcon.replace(/COLOR_1/gi, "#fff").replace(/COLOR_2/gi, "#b9bbbe"),
buttons: [{
contents: this.labels.list,
onClick: _ => {