This commit is contained in:
Mirco Wittrien 2019-11-21 20:55:37 +01:00
parent d80539536d
commit 42d7375580
5 changed files with 14 additions and 11 deletions

View File

@ -3,7 +3,7 @@
class CreationDate { class CreationDate {
getName () {return "CreationDate";} getName () {return "CreationDate";}
getVersion () {return "1.3.3";} getVersion () {return "1.3.4";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -11,6 +11,7 @@ class CreationDate {
constructor () { constructor () {
this.changelog = { this.changelog = {
"fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]] "improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
}; };
@ -234,7 +235,7 @@ class CreationDate {
let renderChildren = e.returnvalue.props.children; let renderChildren = e.returnvalue.props.children;
e.returnvalue.props.children = (...args) => { e.returnvalue.props.children = (...args) => {
let renderedChildren = renderChildren(...args); let renderedChildren = renderChildren(...args);
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: "DiscordTag"}); let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: ["DiscordTag", "ColoredFluxTag"]});
if (index > -1) this.injectDate(children, 1, children[index].props.user); if (index > -1) this.injectDate(children, 1, children[index].props.user);
return renderedChildren; return renderedChildren;
}; };

View File

@ -236,7 +236,6 @@ class EditChannels {
data.name = channelnameinput.value.trim() || null; data.name = channelnameinput.value.trim() || null;
data.color = BDFDB.ColorUtils.getSwatchColor(modal, 1); data.color = BDFDB.ColorUtils.getSwatchColor(modal, 1);
console.log(data.color);
if (data.color != null && !BDFDB.ObjectUtils.is(data.color)) { if (data.color != null && !BDFDB.ObjectUtils.is(data.color)) {
if (data.color[0] < 30 && data.color[1] < 30 && data.color[2] < 30) data.color = BDFDB.ColorUtils.change(data.color, 30); if (data.color[0] < 30 && data.color[1] < 30 && data.color[2] < 30) data.color = BDFDB.ColorUtils.change(data.color, 30);
else if (data.color[0] > 225 && data.color[1] > 225 && data.color[2] > 225) data.color = BDFDB.ColorUtils.change(data.color, -30); else if (data.color[0] > 225 && data.color[1] > 225 && data.color[2] > 225) data.color = BDFDB.ColorUtils.change(data.color, -30);

View File

@ -3,7 +3,7 @@
class JoinedAtDate { class JoinedAtDate {
getName () {return "JoinedAtDate";} getName () {return "JoinedAtDate";}
getVersion () {return "1.1.6";} getVersion () {return "1.1.7";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -11,6 +11,7 @@ class JoinedAtDate {
constructor () { constructor () {
this.changelog = { this.changelog = {
"fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]] "improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
}; };
@ -236,7 +237,7 @@ class JoinedAtDate {
let renderChildren = e.returnvalue.props.children; let renderChildren = e.returnvalue.props.children;
e.returnvalue.props.children = (...args) => { e.returnvalue.props.children = (...args) => {
let renderedChildren = renderChildren(...args); let renderedChildren = renderChildren(...args);
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: "DiscordTag"}); let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: ["DiscordTag", "ColoredFluxTag"]});
if (index > -1) this.injectDate(e.instance, children, 1, children[index].props.user); if (index > -1) this.injectDate(e.instance, children, 1, children[index].props.user);
return renderedChildren; return renderedChildren;
}; };

View File

@ -3,7 +3,7 @@
class LastMessageDate { class LastMessageDate {
getName () {return "LastMessageDate";} getName () {return "LastMessageDate";}
getVersion () {return "1.1.0";} getVersion () {return "1.1.1";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -11,6 +11,7 @@ class LastMessageDate {
constructor () { constructor () {
this.changelog = { this.changelog = {
"fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]] "improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
}; };
@ -243,7 +244,7 @@ class LastMessageDate {
let renderChildren = e.returnvalue.props.children; let renderChildren = e.returnvalue.props.children;
e.returnvalue.props.children = (...args) => { e.returnvalue.props.children = (...args) => {
let renderedChildren = renderChildren(...args); let renderedChildren = renderChildren(...args);
let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: "DiscordTag"}); let [children, index] = BDFDB.ReactUtils.findChildren(renderedChildren, {name: ["DiscordTag", "ColoredFluxTag"]});
if (index > -1) this.injectDate(e.instance, children, 1, children[index].props.user); if (index > -1) this.injectDate(e.instance, children, 1, children[index].props.user);
return renderedChildren; return renderedChildren;
}; };

View File

@ -3,7 +3,7 @@
class OwnerTag { class OwnerTag {
getName () {return "OwnerTag";} getName () {return "OwnerTag";}
getVersion () {return "1.2.1";} getVersion () {return "1.2.2";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -11,7 +11,7 @@ class OwnerTag {
constructor () { constructor () {
this.changelog = { this.changelog = {
"fixed":[["Chat","Elements now properly get added to the chat again"]], "fixed":[["BetterRoleColors","Fixed now working when BRC is enabled ......"]],
"improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]] "improved":[["New Library Structure & React","Restructured my Library and switched to React rendering instead of DOM manipulation"]]
}; };
@ -31,6 +31,7 @@ class OwnerTag {
color: #b3b3b3; color: #b3b3b3;
} }
`; `;
this.defaults = { this.defaults = {
settings: { settings: {
addInChatWindow: {value:true, inner:true, description:"Messages"}, addInChatWindow: {value:true, inner:true, description:"Messages"},
@ -164,7 +165,7 @@ class OwnerTag {
let usertype = this.getUserType(e.instance.props.user); let usertype = this.getUserType(e.instance.props.user);
if (usertype && BDFDB.DataUtils.get(this, "settings", "addInUserPopout")) { if (usertype && BDFDB.DataUtils.get(this, "settings", "addInUserPopout")) {
let nameTag = e.node.querySelector(BDFDB.dotCN.nametag); let nameTag = e.node.querySelector(BDFDB.dotCN.nametag);
let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:"DiscordTag", up:true}); let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:["DiscordTag", "ColoredFluxTag"], up:true});
if (nameTag && tagProps) this.appendOwnerTag(nameTag, e.instance.props.user, usertype, ((tagProps.botClass || "") + " " + BDFDB.disCNS.bottagnametag).trim(), tagProps.invertBotTagColor); if (nameTag && tagProps) this.appendOwnerTag(nameTag, e.instance.props.user, usertype, ((tagProps.botClass || "") + " " + BDFDB.disCNS.bottagnametag).trim(), tagProps.invertBotTagColor);
} }
} }
@ -173,7 +174,7 @@ class OwnerTag {
let usertype = this.getUserType(e.instance.props.user); let usertype = this.getUserType(e.instance.props.user);
if (usertype && BDFDB.DataUtils.get(this, "settings", "addInUserProfil")) { if (usertype && BDFDB.DataUtils.get(this, "settings", "addInUserProfil")) {
let nameTag = e.node.querySelector(BDFDB.dotCN.nametag); let nameTag = e.node.querySelector(BDFDB.dotCN.nametag);
let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:"DiscordTag", up:true}); let tagProps = BDFDB.ReactUtils.findProps(nameTag, {name:["DiscordTag", "ColoredFluxTag"], up:true});
if (nameTag && tagProps) this.appendOwnerTag(nameTag, e.instance.props.user, usertype, ((tagProps.botClass || "") + " " + BDFDB.disCNS.bottagnametag).trim(), tagProps.invertBotTagColor); if (nameTag && tagProps) this.appendOwnerTag(nameTag, e.instance.props.user, usertype, ((tagProps.botClass || "") + " " + BDFDB.disCNS.bottagnametag).trim(), tagProps.invertBotTagColor);
} }
} }