stuff
This commit is contained in:
parent
fe64aa0a9a
commit
a7bc144550
|
@ -3020,6 +3020,7 @@
|
||||||
"userpopoutheadertext_old": ["UserPopoutWrapper", "headerText"],
|
"userpopoutheadertext_old": ["UserPopoutWrapper", "headerText"],
|
||||||
"userpopoutheadertop_old": ["UserPopoutWrapper", "headerTop"],
|
"userpopoutheadertop_old": ["UserPopoutWrapper", "headerTop"],
|
||||||
"userpopoutheaderbottagwithnickname": ["UserPopout", "headerBotTagWithNickname"],
|
"userpopoutheaderbottagwithnickname": ["UserPopout", "headerBotTagWithNickname"],
|
||||||
|
"userpopoutheadertagdiscriminatornonickname": ["UserPopout", "headerTagDiscriminatorNoNickname"],
|
||||||
"userpopoutheadername": ["UserPopout", "headerName"],
|
"userpopoutheadername": ["UserPopout", "headerName"],
|
||||||
"userpopoutheadernamewrapper": ["UserPopout", "headerNameWrapper"],
|
"userpopoutheadernamewrapper": ["UserPopout", "headerNameWrapper"],
|
||||||
"userpopoutheadernormal": ["UserPopout", "headerNormal"],
|
"userpopoutheadernormal": ["UserPopout", "headerNormal"],
|
||||||
|
|
|
@ -459,6 +459,17 @@ img:not([src]), img[src=""], img[src="null"] {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[REPLACE_CLASS_userpopoutheadernamewrapper_old],
|
||||||
|
[REPLACE_CLASS_userpopoutheadernamewrapper],
|
||||||
|
[REPLACE_CLASS_userpopoutheadertagnonickname] {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
line-height: unset;
|
||||||
|
}
|
||||||
|
[REPLACE_CLASS_userpopoutheadertagdiscriminatornonickname] {
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
}
|
||||||
[REPLACE_CLASS_userinfodate] {
|
[REPLACE_CLASS_userinfodate] {
|
||||||
user-select: text;
|
user-select: text;
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
|
|
|
@ -107,6 +107,7 @@ module.exports = (_ => {
|
||||||
ChannelEditorContainer: "render",
|
ChannelEditorContainer: "render",
|
||||||
AutocompleteUserResult: "render",
|
AutocompleteUserResult: "render",
|
||||||
UserPopout: "render",
|
UserPopout: "render",
|
||||||
|
UserPopoutHeader: "default",
|
||||||
UserProfile: "render",
|
UserProfile: "render",
|
||||||
UserInfo: "default",
|
UserInfo: "default",
|
||||||
NowPlayingHeader: "Header",
|
NowPlayingHeader: "Header",
|
||||||
|
@ -140,6 +141,7 @@ module.exports = (_ => {
|
||||||
DiscordTag: "default",
|
DiscordTag: "default",
|
||||||
NameTag: "default",
|
NameTag: "default",
|
||||||
UserPopout: "render",
|
UserPopout: "render",
|
||||||
|
UserPopoutHeader: "default",
|
||||||
NowPlayingHeader: "Header",
|
NowPlayingHeader: "Header",
|
||||||
VoiceUser: "render",
|
VoiceUser: "render",
|
||||||
Account: "render",
|
Account: "render",
|
||||||
|
@ -172,10 +174,6 @@ module.exports = (_ => {
|
||||||
${BDFDB.dotCN.voicedetailschannel}:hover > span[style*="color"] {
|
${BDFDB.dotCN.voicedetailschannel}:hover > span[style*="color"] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
${BDFDB.dotCNS.userpopoutheadernamewrapper + BDFDB.dotCN.bottag} {
|
|
||||||
position: relative;
|
|
||||||
bottom: 1px;
|
|
||||||
}
|
|
||||||
${BDFDB.dotCNS.dmchannel + BDFDB.dotCN.bottag} {
|
${BDFDB.dotCNS.dmchannel + BDFDB.dotCN.bottag} {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
|
@ -445,6 +443,7 @@ module.exports = (_ => {
|
||||||
let changeBackground = false;
|
let changeBackground = false;
|
||||||
let tagClass = "";
|
let tagClass = "";
|
||||||
switch (e.instance.props.className) {
|
switch (e.instance.props.className) {
|
||||||
|
case BDFDB.disCN.userpopoutheadertagnonickname_old:
|
||||||
case BDFDB.disCN.userpopoutheadertagnonickname:
|
case BDFDB.disCN.userpopoutheadertagnonickname:
|
||||||
change = this.settings.places.userPopout;
|
change = this.settings.places.userPopout;
|
||||||
guildId = BDFDB.LibraryModules.LastGuildStore.getGuildId();
|
guildId = BDFDB.LibraryModules.LastGuildStore.getGuildId();
|
||||||
|
@ -485,6 +484,14 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
processUserPopout (e) {
|
processUserPopout (e) {
|
||||||
|
this.handleUserPopout(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
processUserPopoutHeader (e) {
|
||||||
|
this.handleUserPopout(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
handleUserPopout (e) {
|
||||||
if (e.instance.props.user && this.settings.places.userPopout) {
|
if (e.instance.props.user && this.settings.places.userPopout) {
|
||||||
let data = changedUsers[e.instance.props.user.id];
|
let data = changedUsers[e.instance.props.user.id];
|
||||||
if (!e.returnvalue) {
|
if (!e.returnvalue) {
|
||||||
|
@ -499,7 +506,7 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (data && (data.color1 || data.color2 || data.tag)) {
|
if (data && (data.color1 || data.color2 || data.tag)) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutheadernickname]]});
|
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", [BDFDB.disCN.userpopoutheadername_old, BDFDB.disCN.userpopoutheadername]]]});
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
this.changeUserColor(children[index], e.instance.props.user.id, {changeBackground: true});
|
this.changeUserColor(children[index], e.instance.props.user.id, {changeBackground: true});
|
||||||
this.injectBadge(children, e.instance.props.user.id, BDFDB.LibraryModules.LastGuildStore.getGuildId(), 2, {
|
this.injectBadge(children, e.instance.props.user.id, BDFDB.LibraryModules.LastGuildStore.getGuildId(), 2, {
|
||||||
|
|
|
@ -80,7 +80,8 @@ module.exports = (_ => {
|
||||||
MessageUsername: "default",
|
MessageUsername: "default",
|
||||||
VoiceUser: "render",
|
VoiceUser: "render",
|
||||||
NameTag: "default",
|
NameTag: "default",
|
||||||
UserPopout: "render"
|
UserPopout: "render",
|
||||||
|
UserPopoutHeader: "default"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -266,6 +267,7 @@ module.exports = (_ => {
|
||||||
if (userType) {
|
if (userType) {
|
||||||
let inject = false, tagClass = "";
|
let inject = false, tagClass = "";
|
||||||
switch (e.instance.props.className) {
|
switch (e.instance.props.className) {
|
||||||
|
case BDFDB.disCN.userpopoutheadertagnonickname_old:
|
||||||
case BDFDB.disCN.userpopoutheadertagnonickname:
|
case BDFDB.disCN.userpopoutheadertagnonickname:
|
||||||
inject = this.settings.tagPlaces.userPopout;
|
inject = this.settings.tagPlaces.userPopout;
|
||||||
tagClass = BDFDB.disCN.bottagnametag;
|
tagClass = BDFDB.disCN.bottagnametag;
|
||||||
|
@ -285,12 +287,20 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
processUserPopout (e) {
|
processUserPopout (e) {
|
||||||
|
this.handleUserPopout(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
processUserPopoutHeader (e) {
|
||||||
|
this.handleUserPopout(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
handleUserPopout (e) {
|
||||||
if (e.instance.props.user && this.settings.tagPlaces.userPopout) {
|
if (e.instance.props.user && this.settings.tagPlaces.userPopout) {
|
||||||
let userType = this.getUserType(e.instance.props.user, e.instance.props.channel && e.instance.props.channel.id);
|
let userType = this.getUserType(e.instance.props.user, e.instance.props.channel && e.instance.props.channel.id);
|
||||||
if (userType) {
|
if (userType) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", BDFDB.disCN.userpopoutheadertagwithnickname]]});
|
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {props: [["className", [BDFDB.disCN.userpopoutheadername_old, BDFDB.disCN.userpopoutheadername]]]});
|
||||||
if (index > -1) this.injectStaffTag(children, e.instance.props.user, userType, 2, {
|
if (index > -1) this.injectStaffTag(children, e.instance.props.user, userType, 2, {
|
||||||
tagClass: BDFDB.disCNS.userpopoutheaderbottagwithnickname + BDFDB.disCN.bottagnametag,
|
tagClass: BDFDB.disCNS.userpopoutheaderbottagwithnickname_old + BDFDB.disCNS.userpopoutheaderbottagwithnickname + BDFDB.disCN.bottagnametag,
|
||||||
inverted: typeof e.instance.getMode == "function" && e.instance.getMode() !== "Normal"
|
inverted: typeof e.instance.getMode == "function" && e.instance.getMode() !== "Normal"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,6 +123,15 @@
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
}
|
}
|
||||||
|
.userPopout-3XzG_A .headerTagNoNickname-ENx6no {
|
||||||
|
align-items: center;
|
||||||
|
line-height: unset;
|
||||||
|
}
|
||||||
|
.userPopout-3XzG_A .headerTagNoNickname-ENx6no > span:not([class]) {
|
||||||
|
position: relative;
|
||||||
|
top: 1px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
.userPopout-3XzG_A .botTagInvert-18-95s {
|
.userPopout-3XzG_A .botTagInvert-18-95s {
|
||||||
background: var(--brand-experiment, #5865f2);
|
background: var(--brand-experiment, #5865f2);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
Loading…
Reference in New Issue