canary/ptb fixes
This commit is contained in:
parent
b6cb8ddba8
commit
e6fc8a2d52
File diff suppressed because one or more lines are too long
|
@ -1311,7 +1311,6 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
||||||
ChannelMember: 'member',
|
ChannelMember: 'member',
|
||||||
CircleIconButton: 'guildbuttoncontainer',
|
CircleIconButton: 'guildbuttoncontainer',
|
||||||
EmojiPicker: 'emojipicker',
|
EmojiPicker: 'emojipicker',
|
||||||
FriendsOnline: 'friendsonline',
|
|
||||||
FriendRow: 'friendsrow',
|
FriendRow: 'friendsrow',
|
||||||
Guild: 'guildcontainer',
|
Guild: 'guildcontainer',
|
||||||
GuildHeader: 'guildheader',
|
GuildHeader: 'guildheader',
|
||||||
|
@ -3699,7 +3698,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
||||||
DiscordClassModules.GuildSettingsInvite = BDFDB.WebModules.findByProperties('countdownColumn', 'inviteSettingsInviteRow');
|
DiscordClassModules.GuildSettingsInvite = BDFDB.WebModules.findByProperties('countdownColumn', 'inviteSettingsInviteRow');
|
||||||
DiscordClassModules.GuildSettingsMember = BDFDB.WebModules.findByProperties('member', 'membersFilterPopout');
|
DiscordClassModules.GuildSettingsMember = BDFDB.WebModules.findByProperties('member', 'membersFilterPopout');
|
||||||
DiscordClassModules.GuildServer = BDFDB.WebModules.findByProperties('blobContainer', 'pill');
|
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.GuildsWrapper = BDFDB.WebModules.findByProperties('scrollerWrap', 'unreadMentionsBar', 'wrapper');
|
||||||
DiscordClassModules.HeaderBar = BDFDB.WebModules.findByProperties('container', 'children', 'toolbar');
|
DiscordClassModules.HeaderBar = BDFDB.WebModules.findByProperties('container', 'children', 'toolbar');
|
||||||
DiscordClassModules.HeaderBarExtras = BDFDB.WebModules.findByProperties('headerBarLoggedOut', 'search');
|
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.Member = BDFDB.WebModules.findByProperties('member', 'memberInner');
|
||||||
DiscordClassModules.MembersWrap = BDFDB.WebModules.findByProperties('membersWrap', 'membersGroup');
|
DiscordClassModules.MembersWrap = BDFDB.WebModules.findByProperties('membersWrap', 'membersGroup');
|
||||||
DiscordClassModules.Mention = BDFDB.WebModules.findByProperties('wrapperHover', 'wrapperNoHover');
|
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.MessageAccessory = BDFDB.WebModules.findByProperties('embedWrapper', 'gifFavoriteButton');
|
||||||
DiscordClassModules.MessageBody = BDFDB.WebModules.findByProperties('buttonContainer', 'isMentioned');
|
DiscordClassModules.MessageBody = BDFDB.WebModules.findByProperties('buttonContainer', 'isMentioned');
|
||||||
DiscordClassModules.MessageFile = BDFDB.WebModules.findByProperties('cancelButton', 'filenameLinkWrapper');
|
DiscordClassModules.MessageFile = BDFDB.WebModules.findByProperties('cancelButton', 'filenameLinkWrapper');
|
||||||
|
@ -4167,7 +4166,6 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
|
||||||
friends: ['Friends', 'container'],
|
friends: ['Friends', 'container'],
|
||||||
friendscolumn: ['Friends', 'friendsColumn'],
|
friendscolumn: ['Friends', 'friendsColumn'],
|
||||||
friendscolumnnamewrap: ['Friends', 'friendsColumnName'],
|
friendscolumnnamewrap: ['Friends', 'friendsColumnName'],
|
||||||
friendsonline: ['GuildsItems', 'friendsOnline'],
|
|
||||||
friendsrow: ['Friends', 'friendsRow'],
|
friendsrow: ['Friends', 'friendsRow'],
|
||||||
friendstable: ['Friends', 'friendsTable'],
|
friendstable: ['Friends', 'friendsTable'],
|
||||||
friendstableheader: ['Friends', 'friendsTableHeader'],
|
friendstableheader: ['Friends', 'friendsTableHeader'],
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class FriendNotifications {
|
class FriendNotifications {
|
||||||
getName () {return "FriendNotifications";}
|
getName () {return "FriendNotifications";}
|
||||||
|
|
||||||
getVersion () {return "1.2.6";}
|
getVersion () {return "1.2.7";}
|
||||||
|
|
||||||
getAuthor () {return "DevilBro";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -11,12 +11,10 @@ class FriendNotifications {
|
||||||
|
|
||||||
constructor () {
|
constructor () {
|
||||||
this.changelog = {
|
this.changelog = {
|
||||||
"improved":[["Notification Message","You can now customize the message depending on the status"]],
|
"fixed":[["Canary/PTB","Fixed bugs for complete new look in canary/ptb"]]
|
||||||
"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"]]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.patchModules = {
|
this.patchModules = {
|
||||||
"FriendsOnline":"componentDidMount",
|
|
||||||
"StandardSidebarView":"componentWillUnmount"
|
"StandardSidebarView":"componentWillUnmount"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -71,9 +69,6 @@ class FriendNotifications {
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
this.css = `
|
this.css = `
|
||||||
${BDFDB.dotCN.guilds} > ${BDFDB.dotCN.friendsonline} {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.${this.name}-modal .log-time {
|
.${this.name}-modal .log-time {
|
||||||
width: 110px;
|
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) {
|
processStandardSidebarView (instance, wrapper) {
|
||||||
if (this.SettingsUpdated) {
|
if (this.SettingsUpdated) {
|
||||||
delete this.SettingsUpdated;
|
delete this.SettingsUpdated;
|
||||||
|
|
Loading…
Reference in New Issue