chore(npm): update deps

This commit is contained in:
Natsumi
2022-05-06 20:11:44 +12:00
parent 0655baaa6f
commit f08a07b55c
3 changed files with 378 additions and 276 deletions

View File

@@ -13,6 +13,7 @@ import locale from 'element-ui/lib/locale/lang/en';
import {v4 as uuidv4} from 'uuid';
import * as workerTimers from 'worker-timers';
import 'default-passive-events';
import Konami from 'konami';
import {appVersion} from './constants.js';
import configRepository from './repository/config.js';
@@ -78,6 +79,10 @@ speechSynthesis.getVoices();
}
});
var konamiCode = new Konami(() => {
$app.toggleCustomEndpoint();
});
VRCXStorage.GetArray = function (key) {
try {
var array = JSON.parse(this.Get(key));
@@ -10725,7 +10730,7 @@ speechSynthesis.getVoices();
};
$app.methods.getFriendLog = async function () {
await database.cleanLegendFromFriendLog(); // fix dataebase spam crap
await database.cleanLegendFromFriendLog(); // fix database spam crap
var friendLogCurrentArray = await database.getFriendLogCurrent();
for (var friend of friendLogCurrentArray) {
this.friendLog.set(friend.userId, friend);
@@ -19056,6 +19061,19 @@ speechSynthesis.getVoices();
);
$app.methods.toggleCustomEndpoint = function () {
this.enableCustomEndpoint = !this.enableCustomEndpoint;
if (this.enableCustomEndpoint) {
this.$message({
message:
'Custom endpoint option enabled',
type: 'success'
});
} else {
this.$message({
message:
'Custom endpoint option disabled',
type: 'success'
});
}
configRepository.setBool(
'VRCX_enableCustomEndpoint',
this.enableCustomEndpoint