This commit is contained in:
Mirco Wittrien 2021-05-21 16:12:36 +02:00
parent 35fc3931ec
commit 01f2c693a5
4 changed files with 40 additions and 16 deletions

View File

@ -2,7 +2,7 @@
* @name CreationDate
* @author DevilBro
* @authorId 278543574059057154
* @version 1.4.1
* @version 1.4.2
* @description Displays the Creation Date of an Account in the UserPopout and UserModal
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,12 +17,12 @@ module.exports = (_ => {
"info": {
"name": "CreationDate",
"author": "DevilBro",
"version": "1.4.1",
"version": "1.4.2",
"description": "Displays the Creation Date of an Account in the UserPopout and UserModal"
},
"changeLog": {
"improved": {
"New Settings": "Changed the Settings Panel for the Plugin, Settings got reset sowwy ~w~"
"New User Popout": "Fixed for the new User Popout, which will be released soon-ish"
}
}
};
@ -83,6 +83,7 @@ module.exports = (_ => {
this.patchedModules = {
after: {
UserPopout: "render",
UserPopoutHeader: "default",
AnalyticsContext: "render"
}
};
@ -153,7 +154,7 @@ module.exports = (_ => {
BDFDB.PatchUtils.forceAllUpdates(this);
}
}
processUserPopout (e) {
if (e.instance.props.user && this.settings.places.userPopout) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
@ -161,6 +162,13 @@ module.exports = (_ => {
}
}
processUserPopoutHeader (e) {
if (e.instance.props.user && this.settings.places.userPopout) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
if (index > -1) this.injectDate(children, 2, e.instance.props.user);
}
}
processAnalyticsContext (e) {
if (typeof e.returnvalue.props.children == "function" && e.instance.props.section == BDFDB.DiscordConstants.AnalyticsSections.PROFILE_MODAL && this.settings.places.userProfile) {
let renderChildren = e.returnvalue.props.children;

View File

@ -2,7 +2,7 @@
* @name JoinedAtDate
* @author DevilBro
* @authorId 278543574059057154
* @version 1.2.6
* @version 1.2.7
* @description Displays the Joined At Date of a Member in the UserPopout and UserModal
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,12 +17,12 @@ module.exports = (_ => {
"info": {
"name": "JoinedAtDate",
"author": "DevilBro",
"version": "1.2.6",
"version": "1.2.7",
"description": "Displays the Joined At Date of a Member in the UserPopout and UserModal"
},
"changeLog": {
"improved": {
"New Settings": "Changed the Settings Panel for the Plugin, Settings got reset sowwy ~w~"
"New User Popout": "Fixed for the new User Popout, which will be released soon-ish"
}
}
};
@ -88,6 +88,7 @@ module.exports = (_ => {
this.patchedModules = {
after: {
UserPopout: "render",
UserPopoutHeader: "default",
AnalyticsContext: "render"
}
};
@ -159,9 +160,16 @@ module.exports = (_ => {
}
processUserPopout (e) {
if (e.instance.props.user && e.instance.props.guild && this.settings.places.userPopout) {
if (e.instance.props.user && this.settings.places.userPopout) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
if (index > -1) this.injectDate(e.instance, children, 2, e.instance.props.user, e.instance.props.guild.id);
if (index > -1) this.injectDate(e.instance, children, 2, e.instance.props.user, e.instance.props.guildId);
}
}
processUserPopoutHeader (e) {
if (e.instance.props.user && this.settings.places.userPopout) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
if (index > -1) this.injectDate(e.instance, children, 2, e.instance.props.user, e.instance.props.guildId);
}
}

View File

@ -2,7 +2,7 @@
* @name LastMessageDate
* @author DevilBro
* @authorId 278543574059057154
* @version 1.2.1
* @version 1.2.2
* @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,12 +17,12 @@ module.exports = (_ => {
"info": {
"name": "LastMessageDate",
"author": "DevilBro",
"version": "1.2.1",
"version": "1.2.2",
"description": "Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal"
},
"changeLog": {
"improved": {
"New Settings": "Changed the Settings Panel for the Plugin, Settings got reset sowwy ~w~"
"New User Popout": "Fixed for the new User Popout, which will be released soon-ish"
}
}
};
@ -89,6 +89,7 @@ module.exports = (_ => {
this.patchedModules = {
after: {
UserPopout: "render",
UserPopoutHeader: "default",
AnalyticsContext: "render"
}
};
@ -170,9 +171,16 @@ module.exports = (_ => {
}
processUserPopout (e) {
if (e.instance.props.user && e.instance.props.guild && this.settings.places.userPopout) {
if (e.instance.props.user && this.settings.places.userPopout) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
if (index > -1) this.injectDate(e.instance, children, 2, e.instance.props.user, e.instance.props.guild.id);
if (index > -1) this.injectDate(e.instance, children, 2, e.instance.props.user, e.instance.props.guildId);
}
}
processUserPopoutHeader (e) {
if (e.instance.props.user && this.settings.places.userPopout) {
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "CustomStatus"});
if (index > -1) this.injectDate(e.instance, children, 2, e.instance.props.user, e.instance.props.guildId);
}
}

View File

@ -4217,8 +4217,8 @@ img[src="/assets/cef02719c12d8aaf38894c16dca7fbe6.svg"] { /* rolesettings addr
.headerStreaming-2FjmGz { /* popout headerstreaming */
background: #593695;
}
.headerTop-3C2Zn0, /* popout old header inner */
.activity-11LB_k, /* popout old activity */
#app-mount .headerTop-3C2Zn0, /* popout old header inner */
#app-mount .activity-11LB_k, /* popout old activity */
.headerTop-2y3V6H, /* popout new header inner */
.activity-fViXj7 { /* popout new activity */
background: transparent;