Fix formatting

This commit is contained in:
Natsumi
2021-07-31 19:23:21 +12:00
parent 393335db59
commit abf4889416
2 changed files with 30 additions and 28 deletions
+11 -11
View File
@@ -16,7 +16,7 @@ import ElementUI from 'element-ui';
import locale from 'element-ui/lib/locale/lang/en'; import locale from 'element-ui/lib/locale/lang/en';
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
import {appVersion} from './constants.js'; import { appVersion } from './constants.js';
import sharedRepository from './repository/shared.js'; import sharedRepository from './repository/shared.js';
import configRepository from './repository/config.js'; import configRepository from './repository/config.js';
import webApiService from './service/webapi.js'; import webApiService from './service/webapi.js';
@@ -4982,13 +4982,13 @@ speechSynthesis.getVoices();
inputType: "password", inputType: "password",
inputPattern: /[\s\S]{1,32}/ inputPattern: /[\s\S]{1,32}/
}, },
).then(({value}) => { ).then(({ value }) => {
security.decrypt(args.password, value).then(pwd => { security.decrypt(args.password, value).then(pwd => {
return resolve(pwd); return resolve(pwd);
}).catch(_ => { }).catch(_ => {
return reject(); return reject();
}) })
}).catch(_=>{ }).catch(_ => {
return reject(); return reject();
}) })
}) })
@@ -5017,7 +5017,7 @@ speechSynthesis.getVoices();
inputType: "password", inputType: "password",
inputPattern: /[\s\S]{1,32}/ inputPattern: /[\s\S]{1,32}/
}, },
).then(({value}) => { ).then(({ value }) => {
for (let name in this.loginForm.savedCredentials) { for (let name in this.loginForm.savedCredentials) {
security.decrypt(this.loginForm.savedCredentials[name].loginParmas.password, value).then(pt => { security.decrypt(this.loginForm.savedCredentials[name].loginParmas.password, value).then(pt => {
this.saveCredentials = { username: name, password: pt }; this.saveCredentials = { username: name, password: pt };
@@ -5041,7 +5041,7 @@ speechSynthesis.getVoices();
let key = this.enablePrimaryPasswordDialog.password; let key = this.enablePrimaryPasswordDialog.password;
for (let name in this.loginForm.savedCredentials) { for (let name in this.loginForm.savedCredentials) {
security.encrypt(this.loginForm.savedCredentials[name].loginParmas.password, key).then(ct => { security.encrypt(this.loginForm.savedCredentials[name].loginParmas.password, key).then(ct => {
this.saveCredentials = { username: name, password: ct}; this.saveCredentials = { username: name, password: ct };
this.updateStoredUser(this.loginForm.savedCredentials[name].user); this.updateStoredUser(this.loginForm.savedCredentials[name].user);
}); });
} }
@@ -9598,7 +9598,7 @@ speechSynthesis.getVoices();
D.ref = ref; D.ref = ref;
D.visible = true; D.visible = true;
} }
API.getAvatar({avatarId}).then((args) => { API.getAvatar({ avatarId }).then((args) => {
var { ref } = args; var { ref } = args;
D.ref = ref; D.ref = ref;
if ((ref.imageUrl === API.currentUser.currentAvatarImageUrl) && (!ref.assetUrl)) { if ((ref.imageUrl === API.currentUser.currentAvatarImageUrl) && (!ref.assetUrl)) {
@@ -11303,7 +11303,7 @@ speechSynthesis.getVoices();
$app.methods.friendsListSearchChange = function () { $app.methods.friendsListSearchChange = function () {
var filters = [...this.friendsListSearchFilters]; var filters = [...this.friendsListSearchFilters];
if (filters.length === 0) { if (filters.length === 0) {
filters = [ 'Display Name', 'User Name', 'Rank', 'Status', 'Bio', 'Memo' ]; filters = ['Display Name', 'User Name', 'Rank', 'Status', 'Bio', 'Memo'];
} }
var results = []; var results = [];
if (this.friendsListSearch) { if (this.friendsListSearch) {
@@ -12255,7 +12255,7 @@ speechSynthesis.getVoices();
if (API.cachedAvatarNames.has(fileId)) { if (API.cachedAvatarNames.has(fileId)) {
return API.cachedAvatarNames.get(fileId); return API.cachedAvatarNames.get(fileId);
} }
var args = await API.getAvatarImages({fileId}); var args = await API.getAvatarImages({ fileId });
return this.storeAvatarImage(args); return this.storeAvatarImage(args);
}; };
@@ -12500,7 +12500,7 @@ speechSynthesis.getVoices();
var date = new Date().toJSON(); var date = new Date().toJSON();
var userId = ''; var userId = '';
var location = ref.id; var location = ref.id;
this.downloadQueue.set(ref.id, {ref, type, date, userId, location}); this.downloadQueue.set(ref.id, { ref, type, date, userId, location });
this.downloadQueueTable.data = Array.from(this.downloadQueue.values()); this.downloadQueueTable.data = Array.from(this.downloadQueue.values());
} }
if (!this.downloadInProgress) { if (!this.downloadInProgress) {
@@ -12672,7 +12672,7 @@ speechSynthesis.getVoices();
var { ref } = args; var { ref } = args;
this.checkVRChatCache(ref).then((cacheSize) => { this.checkVRChatCache(ref).then((cacheSize) => {
if (cacheSize === -1) { if (cacheSize === -1) {
this.downloadQueue.set(ref.id, {ref, type, userId, location}); this.downloadQueue.set(ref.id, { ref, type, userId, location });
this.downloadQueueTable.data = Array.from(this.downloadQueue.values()); this.downloadQueueTable.data = Array.from(this.downloadQueue.values());
if (!this.downloadInProgress) { if (!this.downloadInProgress) {
this.downloadVRChatCache(); this.downloadVRChatCache();
@@ -12999,7 +12999,7 @@ speechSynthesis.getVoices();
this.userDialog.isFavoriteWorldsLoading = false; this.userDialog.isFavoriteWorldsLoading = false;
}; };
$app.data.worldGroupVisibilityOptions = [ 'private', 'friends', 'public' ]; $app.data.worldGroupVisibilityOptions = ['private', 'friends', 'public'];
$app.methods.userFavoriteWorldsStatus = function (visibility) { $app.methods.userFavoriteWorldsStatus = function (visibility) {
var style = {}; var style = {};
+2
View File
@@ -1726,6 +1726,8 @@ html
//- dialog: update VRCX //- dialog: update VRCX
el-dialog.x-dialog(ref="VRCXUpdateDialog" :visible.sync="VRCXUpdateDialog.visible" title="VRCX Updater" width="400px") el-dialog.x-dialog(ref="VRCXUpdateDialog" :visible.sync="VRCXUpdateDialog.visible" title="VRCX Updater" width="400px")
div(v-loading="checkingForVRCXUpdate" style="margin-top:15px") div(v-loading="checkingForVRCXUpdate" style="margin-top:15px")
template(v-if="!VRCXUpdateDialog.updatePending && VRCXUpdateDialog.release === appVersion")
span VRCX is up to date.
template(v-if="VRCXUpdateDialog.updatePending") template(v-if="VRCXUpdateDialog.updatePending")
span Update ready for install, restart VRCX to apply. span Update ready for install, restart VRCX to apply.
template(v-else) template(v-else)