stuff
This commit is contained in:
parent
fb0d49126f
commit
422f4c9806
|
@ -163,10 +163,8 @@
|
|||
"UserSettingsCog",
|
||||
"UserProfileActions",
|
||||
"Event",
|
||||
"UserGeneric",
|
||||
"GroupDMUser",
|
||||
"GroupDM",
|
||||
"DM",
|
||||
"User",
|
||||
"Developer",
|
||||
"Slate",
|
||||
|
@ -181,13 +179,12 @@
|
|||
"Channel"
|
||||
],
|
||||
"ContextMenuTypesMap": {
|
||||
"GroupDMUserContextMenu": "DMContextMenu",
|
||||
"UserGenericContextMenu": "DMContextMenu"
|
||||
"GroupDMUserContextMenu": "UserContextMenu"
|
||||
},
|
||||
"ContextMenuSubItemsMap": {
|
||||
"UserContextMenu": {
|
||||
"key": "user",
|
||||
"items": ["useHideNoVideoParticipantsItem", "useHideSelfVideoItem", "usePreviewVideoItem", "useChangeIdentityItem", "useMoveToAudienceItem", "useAddFriendNicknameItem", "useAddNoteItem", "useBlockUserItem", "useUserRelationshipItems", "useCallUserItem", "useFocusVideoItem", "useInviteUserToGuildItems", "useMentionUserItem", "useMessageUserItem", "useUserProfileItem", "useUserRolesItems", "useUserVolumeItem", "useWatchStreamItem"]
|
||||
"keys": ["user", "channel"],
|
||||
"items": ["useHideNoVideoParticipantsItem", "useHideSelfVideoItem", "usePreviewVideoItem", "useChangeIdentityItem", "useMoveToAudienceItem", "useAddFriendNicknameItem", "useAddNoteItem", "useBlockUserItem", "useUserRelationshipItems", "useUserManagementItems", "useCallUserItem", "useFocusVideoItem", "useInviteUserToGuildItems", "useMentionUserItem", "useMessageUserItem", "useUserProfileItem", "useUserRolesItems", "useUserVolumeItem", "useWatchStreamItem", "useCloseDMItem", "useMuteChannelItem"]
|
||||
}
|
||||
},
|
||||
"PatchTypes": [
|
||||
|
@ -212,6 +209,8 @@
|
|||
"QuickSwitchResult": "Result"
|
||||
},
|
||||
"Finder": {
|
||||
"useMuteChannelItem": {"strings": ["DM", "MenuItem", "Messages.MUTE_CHANNEL"], "lazyLoaded": true},
|
||||
"useUserManagementItems": {"strings": ["canManageUser", "MenuItem", "Messages.BAN_USER"], "lazyLoaded": true},
|
||||
"useUserRelationshipItems": {"strings": ["ContextMenu", "isFriend", "addRelationship", "Messages.REMOVE_FRIEND"], "lazyLoaded": true},
|
||||
"Account": {"class": "accountinfo"},
|
||||
"App": {"class": "app"},
|
||||
|
|
|
@ -926,6 +926,9 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
[REPLACE_CLASS_inputnumberbuttons]:hover + [REPLACE_CLASS_input]:not([REPLACE_CLASS_inputfocused]):not([REPLACE_CLASS_inputerror]):not([REPLACE_CLASS_inputsuccess]):not([REPLACE_CLASS_inputdisabled]):not(:focus) {
|
||||
border-color: #040405;
|
||||
}
|
||||
[REPLACE_CLASS_inputnumberwrapper] [REPLACE_CLASS_input] {
|
||||
text-align: right;
|
||||
}
|
||||
[REPLACE_CLASS_inputnumberwrapperdefault] [REPLACE_CLASS_input] {
|
||||
padding-right: 25px;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name BetterFriendList
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.4.4
|
||||
* @version 1.4.5
|
||||
* @description Adds extra Controls to the Friends Page, for example sort by Name/Status, Search and All/Request/Blocked Amount
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "BetterFriendList",
|
||||
"author": "DevilBro",
|
||||
"version": "1.4.4",
|
||||
"version": "1.4.5",
|
||||
"description": "Adds extra Controls to the Friends Page, for example sort by Name/Status, Search and All/Request/Blocked Amount"
|
||||
}
|
||||
};
|
||||
|
@ -184,7 +184,7 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
onUserContextMenu (e) {
|
||||
if (e.instance.props.user && e.subType == "useUserRelationshipItems") {
|
||||
if (e.instance.props.user && e.subType == "useUserRelationshipItems" && BDFDB.LibraryModules.RelationshipStore.isFriend(e.instance.props.user.id)) {
|
||||
let favorized = favorizedFriends.indexOf(e.instance.props.user.id) > -1;
|
||||
let hidden = hiddenFriends.indexOf(e.instance.props.user.id) > -1;
|
||||
e.returnvalue.push(this.settings.general.addFavorizedCategory && BDFDB.ContextMenuUtils.createItem(BDFDB.LibraryComponents.MenuItems.MenuItem, {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name BetterNsfwTag
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.2.8
|
||||
* @version 1.2.9
|
||||
* @description Adds a more noticeable Tag to NSFW Channels
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "BetterNsfwTag",
|
||||
"author": "DevilBro",
|
||||
"version": "1.2.8",
|
||||
"version": "1.2.9",
|
||||
"description": "Adds a more noticeable Tag to NSFW Channels"
|
||||
}
|
||||
};
|
||||
|
@ -83,7 +83,8 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
processChannelItem (e) {
|
||||
if (e.instance.props.channel && e.instance.props.channel.nsfw) e.instance.props.children.push(BDFDB.ReactUtils.createElement("div", {
|
||||
if (e.instance.props.channel && e.instance.props.channel.nsfw && !BDFDB.ReactUtils.findChild(e.instance.props.children, {key: "NFSW_TAG"})) e.instance.props.children.push(BDFDB.ReactUtils.createElement("div", {
|
||||
key: "NFSW_TAG",
|
||||
className: BDFDB.disCNS._betternsfwtagtag + BDFDB.disCN.channelchildiconbase,
|
||||
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Badges.TextBadge, {
|
||||
style: {borderRadius: "3px"},
|
||||
|
|
Loading…
Reference in New Issue