Update VC++, Register & forgot password buttons

This commit is contained in:
Natsumi
2022-11-07 15:47:17 +13:00
parent 09dad4e36d
commit d385279742
3 changed files with 55 additions and 2 deletions

View File

@@ -9568,6 +9568,9 @@ speechSynthesis.getVoices();
return;
}
this.photonLastChatBoxMsg.set(photonId, text);
if (this.checkChatboxBlacklist(text)) {
return;
}
this.addEntryPhotonEvent({
photonId,
text,
@@ -22018,6 +22021,46 @@ speechSynthesis.getVoices();
);
};
// App: ChatBox Blacklist
$app.data.chatboxBlacklist = ['NP: ', 'Now Playing', '( ▶️ '];
if (configRepository.getString('VRCX_chatboxBlacklist')) {
$app.data.chatboxBlacklist = JSON.parse(
configRepository.getString('VRCX_chatboxBlacklist')
);
}
$app.data.chatboxBlacklistDialog = {
visible: false,
loading: false
};
API.$on('LOGOUT', function () {
$app.chatboxBlacklistDialog.visible = false;
});
$app.methods.saveChatboxBlacklist = function () {
configRepository.setString(
'VRCX_chatboxBlacklist',
JSON.stringify(this.chatboxBlacklist)
);
};
$app.methods.showChatboxBlacklistDialog = function () {
this.$nextTick(() =>
adjustDialogZ(this.$refs.chatboxBlacklistDialog.$el)
);
var D = this.chatboxBlacklistDialog;
D.visible = true;
};
$app.methods.checkChatboxBlacklist = function (msg) {
for (var i = 0; i < this.chatboxBlacklist.length; ++i) {
if (msg.includes(this.chatboxBlacklist[i])) {
return true;
}
}
return false;
};
$app = new Vue($app);
window.$app = $app;
})();