stuff
This commit is contained in:
parent
fbacba79cb
commit
2826c76dfc
|
@ -7769,9 +7769,10 @@ module.exports = (_ => {
|
|||
InternalBDFDB._processAvatarRender = function (user, avatar) {
|
||||
if (BDFDB.ReactUtils.isValidElement(avatar) && BDFDB.ObjectUtils.is(user) && (avatar.props.className || "").indexOf(BDFDB.disCN.bdfdbbadgeavatar) == -1) {
|
||||
avatar.props[InternalData.userIdAttribute] = user.id;
|
||||
let role = "", className = BDFDB.DOMUtils.formatClassName((avatar.props.className || "").replace(BDFDB.disCN.avatar, "")), addBadge = InternalBDFDB.settings.general.showSupportBadges;
|
||||
let role = "", note = "", className = BDFDB.DOMUtils.formatClassName((avatar.props.className || "").replace(BDFDB.disCN.avatar, "")), addBadge = InternalBDFDB.settings.general.showSupportBadges;
|
||||
if (BDFDB_Patrons[user.id] && BDFDB_Patrons[user.id].active) {
|
||||
role = BDFDB_Patrons[user.id].text || (BDFDB_Patron_Tiers[BDFDB_Patrons[user.id].tier] || {}).text;
|
||||
note = BDFDB_Patrons[user.id].text && (BDFDB_Patron_Tiers[BDFDB_Patrons[user.id].tier] || {}).text;
|
||||
className = BDFDB.DOMUtils.formatClassName(className, addBadge && BDFDB.disCN.bdfdbhasbadge, BDFDB.disCN.bdfdbbadgeavatar, BDFDB.disCN.bdfdbsupporter, BDFDB.disCN[`bdfdbsupporter${BDFDB_Patrons[user.id].tier}`]);
|
||||
}
|
||||
if (user.id == InternalData.myId) {
|
||||
|
@ -7792,7 +7793,8 @@ module.exports = (_ => {
|
|||
newProps[InternalData.userIdAttribute] = user.id;
|
||||
avatar = BDFDB.ReactUtils.createElement("div", newProps);
|
||||
if (addBadge) avatar.props.children.push(BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TooltipContainer, {
|
||||
text: role,
|
||||
text: [role, note && BDFDB.ReactUtils.createElement("span", {children: note})],
|
||||
tooltipConfig: {className: BDFDB.disCN.bdfdbbadgetooltip},
|
||||
children: BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN.bdfdbbadge
|
||||
})
|
||||
|
@ -7806,9 +7808,10 @@ module.exports = (_ => {
|
|||
if (wrapper) wrapper.setAttribute(InternalData.userIdAttribute, user.id);
|
||||
if (Node.prototype.isPrototypeOf(avatar) && (avatar.className || "").indexOf(BDFDB.disCN.bdfdbbadgeavatar) == -1) {
|
||||
avatar.setAttribute(InternalData.userIdAttribute, user.id);
|
||||
let role = "", addBadge = InternalBDFDB.settings.general.showSupportBadges;
|
||||
let role = "", note = "", addBadge = InternalBDFDB.settings.general.showSupportBadges;
|
||||
if (BDFDB_Patrons[user.id] && BDFDB_Patrons[user.id].active) {
|
||||
role = BDFDB_Patrons[user.id].text || (BDFDB_Patron_Tiers[BDFDB_Patrons[user.id].tier] || {}).text;
|
||||
note = BDFDB_Patrons[user.id].text && (BDFDB_Patron_Tiers[BDFDB_Patrons[user.id].tier] || {}).text;
|
||||
avatar.className = BDFDB.DOMUtils.formatClassName(avatar.className, addBadge && BDFDB.disCN.bdfdbhasbadge, BDFDB.disCN.bdfdbbadgeavatar, BDFDB.disCN.bdfdbsupporter, BDFDB.disCN[`bdfdbsupporter${BDFDB_Patrons[user.id].tier}`]);
|
||||
}
|
||||
else if (user.id == InternalData.myId) {
|
||||
|
@ -7819,7 +7822,7 @@ module.exports = (_ => {
|
|||
if (addBadge && role && !avatar.querySelector(BDFDB.dotCN.bdfdbbadge)) {
|
||||
let badge = document.createElement("div");
|
||||
badge.className = BDFDB.disCN.bdfdbbadge;
|
||||
badge.addEventListener("mouseenter", _ => BDFDB.TooltipUtils.create(badge, role, {position: "top"}));
|
||||
badge.addEventListener("mouseenter", _ => BDFDB.TooltipUtils.create(badge, [role, note && BDFDB.ReactUtils.createElement("span", {children: note})], {position: "top", className: BDFDB.disCN.bdfdbbadgetooltip}));
|
||||
avatar.appendChild(badge);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -574,6 +574,7 @@
|
|||
"avatarDisabled": "disabled-6G33EE",
|
||||
"badge": "badge-7R_W3s",
|
||||
"badgeAvatar": "avatar-hF52Er",
|
||||
"badgeTooltip": "badgeTooltip-e4Jh6_",
|
||||
"bdControlsCustom": "custom-L9FFs5",
|
||||
"bdRepoEntry": "entry-9JnAPs",
|
||||
"bdRepoFooterControls": "controls-p0SrvV",
|
||||
|
@ -1613,6 +1614,7 @@
|
|||
"badgewrapper": ["NotFound", "badgeWrapper"],
|
||||
"bdfdbbadge": ["BDFDB", "badge"],
|
||||
"bdfdbbadgeavatar": ["BDFDB", "badgeAvatar"],
|
||||
"bdfdbbadgetooltip": ["BDFDB", "badgeTooltip"],
|
||||
"bdfdbdev": ["BDFDB", "dev"],
|
||||
"bdfdbhasbadge": ["BDFDB", "hasBadge"],
|
||||
"bdfdbsupporter": ["BDFDB", "supporter"],
|
||||
|
@ -4857,6 +4859,7 @@
|
|||
}
|
||||
},
|
||||
"BDFDB_Patrons": {
|
||||
"266072167349747712": {"active": true, "tier": "t3", "text": "King", "id": "Duckx (dogu)"},
|
||||
"646354877336911884": {"active": true, "tier": "t3", "text": "", "id": "case (kharri)"},
|
||||
"431078101997584395": {"active": true, "tier": "t2", "text": "", "id": "LEMI (f4g8)"},
|
||||
"268824390337036298": {"active": true, "tier": "t2", "text": "", "id": "lonelyw0lf (GriWa)"},
|
||||
|
|
|
@ -43,6 +43,16 @@
|
|||
height: 32% !important;
|
||||
}
|
||||
|
||||
/* Duckx */
|
||||
.supporter-Z3FfwL.tier3-yTxjsy.hasBadge-4rT8_u[data-user-id="266072167349747712"] .badge-7R_W3s {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"><path fill="white" d="M13.6572 5.42868C13.8879 5.29002 14.1806 5.30402 14.3973 5.46468C14.6133 5.62602 14.7119 5.90068 14.6473 6.16202L13.3139 11.4954C13.2393 11.7927 12.9726 12.0007 12.6666 12.0007H3.33325C3.02725 12.0007 2.76058 11.792 2.68592 11.4954L1.35258 6.16202C1.28792 5.90068 1.38658 5.62602 1.60258 5.46468C1.81992 5.30468 2.11192 5.29068 2.34325 5.42868L5.13192 7.10202L7.44592 3.63068C7.46173 3.60697 7.48377 3.5913 7.50588 3.57559C7.5192 3.56612 7.53255 3.55663 7.54458 3.54535L6.90258 2.90268C6.77325 2.77335 6.77325 2.56068 6.90258 2.43135L7.76458 1.56935C7.89392 1.44002 8.10658 1.44002 8.23592 1.56935L9.09792 2.43135C9.22725 2.56068 9.22725 2.77335 9.09792 2.90268L8.45592 3.54535C8.46794 3.55686 8.48154 3.56651 8.49516 3.57618C8.51703 3.5917 8.53897 3.60727 8.55458 3.63068L10.8686 7.10202L13.6572 5.42868ZM2.66667 12.6673H13.3333V14.0007H2.66667V12.6673Z"/></svg>') center/cover no-repeat !important;
|
||||
background: #ffd300 !important;
|
||||
top: 69% !important;
|
||||
left: -0.5% !important;
|
||||
width: 32% !important;
|
||||
height: 32% !important;
|
||||
}
|
||||
|
||||
/* M I R A I */
|
||||
.supporter-Z3FfwL.tier4-5RNl6k.hasBadge-4rT8_u[data-user-id="678545936212951042"] .badge-7R_W3s {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 16 16"><path fill="white" d="M13.6572 5.42868C13.8879 5.29002 14.1806 5.30402 14.3973 5.46468C14.6133 5.62602 14.7119 5.90068 14.6473 6.16202L13.3139 11.4954C13.2393 11.7927 12.9726 12.0007 12.6666 12.0007H3.33325C3.02725 12.0007 2.76058 11.792 2.68592 11.4954L1.35258 6.16202C1.28792 5.90068 1.38658 5.62602 1.60258 5.46468C1.81992 5.30468 2.11192 5.29068 2.34325 5.42868L5.13192 7.10202L7.44592 3.63068C7.46173 3.60697 7.48377 3.5913 7.50588 3.57559C7.5192 3.56612 7.53255 3.55663 7.54458 3.54535L6.90258 2.90268C6.77325 2.77335 6.77325 2.56068 6.90258 2.43135L7.76458 1.56935C7.89392 1.44002 8.10658 1.44002 8.23592 1.56935L9.09792 2.43135C9.22725 2.56068 9.22725 2.77335 9.09792 2.90268L8.45592 3.54535C8.46794 3.55686 8.48154 3.56651 8.49516 3.57618C8.51703 3.5917 8.53897 3.60727 8.55458 3.63068L10.8686 7.10202L13.6572 5.42868ZM2.66667 12.6673H13.3333V14.0007H2.66667V12.6673Z"/></svg>') center/cover no-repeat !important;
|
||||
|
|
Loading…
Reference in New Issue