canary/ptb fixes

This commit is contained in:
Mirco Wittrien 2019-09-05 08:28:37 +02:00
parent b6cb8ddba8
commit e6fc8a2d52
3 changed files with 5 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -1311,7 +1311,6 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
ChannelMember: 'member',
CircleIconButton: 'guildbuttoncontainer',
EmojiPicker: 'emojipicker',
FriendsOnline: 'friendsonline',
FriendRow: 'friendsrow',
Guild: 'guildcontainer',
GuildHeader: 'guildheader',
@ -3699,7 +3698,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
DiscordClassModules.GuildSettingsInvite = BDFDB.WebModules.findByProperties('countdownColumn', 'inviteSettingsInviteRow');
DiscordClassModules.GuildSettingsMember = BDFDB.WebModules.findByProperties('member', 'membersFilterPopout');
DiscordClassModules.GuildServer = BDFDB.WebModules.findByProperties('blobContainer', 'pill');
DiscordClassModules.GuildsItems = BDFDB.WebModules.findByProperties('guildSeparator', 'guildsError', 'friendsOnline');
DiscordClassModules.GuildsItems = BDFDB.WebModules.findByProperties('guildSeparator', 'guildsError');
DiscordClassModules.GuildsWrapper = BDFDB.WebModules.findByProperties('scrollerWrap', 'unreadMentionsBar', 'wrapper');
DiscordClassModules.HeaderBar = BDFDB.WebModules.findByProperties('container', 'children', 'toolbar');
DiscordClassModules.HeaderBarExtras = BDFDB.WebModules.findByProperties('headerBarLoggedOut', 'search');
@ -3718,7 +3717,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
DiscordClassModules.Member = BDFDB.WebModules.findByProperties('member', 'memberInner');
DiscordClassModules.MembersWrap = BDFDB.WebModules.findByProperties('membersWrap', 'membersGroup');
DiscordClassModules.Mention = BDFDB.WebModules.findByProperties('wrapperHover', 'wrapperNoHover');
DiscordClassModules.Message = BDFDB.WebModules.findByProperties('message', 'content');
DiscordClassModules.Message = BDFDB.WebModules.findByProperties('containerCozy', 'content');
DiscordClassModules.MessageAccessory = BDFDB.WebModules.findByProperties('embedWrapper', 'gifFavoriteButton');
DiscordClassModules.MessageBody = BDFDB.WebModules.findByProperties('buttonContainer', 'isMentioned');
DiscordClassModules.MessageFile = BDFDB.WebModules.findByProperties('cancelButton', 'filenameLinkWrapper');
@ -4167,7 +4166,6 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
friends: ['Friends', 'container'],
friendscolumn: ['Friends', 'friendsColumn'],
friendscolumnnamewrap: ['Friends', 'friendsColumnName'],
friendsonline: ['GuildsItems', 'friendsOnline'],
friendsrow: ['Friends', 'friendsRow'],
friendstable: ['Friends', 'friendsTable'],
friendstableheader: ['Friends', 'friendsTableHeader'],

View File

@ -3,7 +3,7 @@
class FriendNotifications {
getName () {return "FriendNotifications";}
getVersion () {return "1.2.6";}
getVersion () {return "1.2.7";}
getAuthor () {return "DevilBro";}
@ -11,12 +11,10 @@ class FriendNotifications {
constructor () {
this.changelog = {
"improved":[["Notification Message","You can now customize the message depending on the status"]],
"fixed":[["Mute Sound Bug","Fixed the bug where desktop notifications could not be muted"],["Settings Bug","Fixed the bug where disabling/changing settings for users would not work, unless the plugin was restarted"],["Log Bug","Fixed the bug where the time log would display weirdly"]]
"fixed":[["Canary/PTB","Fixed bugs for complete new look in canary/ptb"]]
};
this.patchModules = {
"FriendsOnline":"componentDidMount",
"StandardSidebarView":"componentWillUnmount"
};
}
@ -71,9 +69,6 @@ class FriendNotifications {
</div>`;
this.css = `
${BDFDB.dotCN.guilds} > ${BDFDB.dotCN.friendsonline} {
cursor: pointer;
}
.${this.name}-modal .log-time {
width: 110px;
}
@ -493,11 +488,6 @@ class FriendNotifications {
}
}
processFriendsOnline (instance, wrapper) {
BDFDB.addEventListener(this, wrapper, "mouseenter", () => {BDFDB.createTooltip("Timelog", wrapper, {type:"right"});});
BDFDB.addEventListener(this, wrapper, "click", () => {this.showTimeLog();});
}
processStandardSidebarView (instance, wrapper) {
if (this.SettingsUpdated) {
delete this.SettingsUpdated;