Linter bracket spacing 1

This commit is contained in:
Natsumi
2023-05-10 17:11:14 +12:00
parent debaba13b0
commit b538d614e3
10 changed files with 77 additions and 72 deletions
+26 -21
View File
@@ -435,7 +435,7 @@ speechSynthesis.getVoices();
console.log(init, response.data);
}
return response;
} catch (e) { }
} catch (e) {}
if (response.status === 200) {
this.$throw(0, 'Invalid JSON response');
}
@@ -1114,7 +1114,7 @@ speechSynthesis.getVoices();
);
this.avatarName = avatarInfo.avatarName;
this.ownerId = avatarInfo.ownerId;
} catch (err) { }
} catch (err) {}
}
if (typeof this.userid === 'undefined' || !this.ownerId) {
this.color = '';
@@ -2902,7 +2902,7 @@ speechSynthesis.getVoices();
if (object === Object(object)) {
details = object;
}
} catch (err) { }
} catch (err) {}
}
ref.details = details;
}
@@ -4624,7 +4624,7 @@ speechSynthesis.getVoices();
}
try {
socket.close();
} catch (err) { }
} catch (err) {}
if ($app.debugWebSocket) {
console.log('WebSocket closed');
}
@@ -4644,7 +4644,7 @@ speechSynthesis.getVoices();
var json = JSON.parse(data);
try {
json.content = JSON.parse(json.content);
} catch (err) { }
} catch (err) {}
this.$emit('PIPELINE', {
json
});
@@ -4677,7 +4677,7 @@ speechSynthesis.getVoices();
this.webSocket = null;
try {
socket.close();
} catch (err) { }
} catch (err) {}
};
// #endregion
@@ -4698,8 +4698,6 @@ speechSynthesis.getVoices();
// #endregion
// API
// #endregion
// #region | Misc
@@ -5967,7 +5965,8 @@ speechSynthesis.getVoices();
break;
case 'invite':
this.speak(
`${noty.senderUsername
`${
noty.senderUsername
} has invited you to ${this.displayLocation(
noty.details.worldId,
noty.details.worldName
@@ -6025,7 +6024,8 @@ speechSynthesis.getVoices();
case 'PortalSpawn':
if (noty.displayName) {
this.speak(
`${noty.displayName
`${
noty.displayName
} has spawned a portal to ${this.displayLocation(
noty.instanceId,
noty.worldName
@@ -6148,7 +6148,8 @@ speechSynthesis.getVoices();
case 'invite':
AppApi.XSNotification(
'VRCX',
`${noty.senderUsername
`${
noty.senderUsername
} has invited you to ${this.displayLocation(
noty.details.worldId,
noty.details.worldName
@@ -6237,7 +6238,8 @@ speechSynthesis.getVoices();
if (noty.displayName) {
AppApi.XSNotification(
'VRCX',
`${noty.displayName
`${
noty.displayName
} has spawned a portal to ${this.displayLocation(
noty.instanceId,
noty.worldName
@@ -7349,7 +7351,7 @@ speechSynthesis.getVoices();
$app.methods.getMemo = async function (userId) {
try {
return await database.getMemo(userId);
} catch (err) { }
} catch (err) {}
return {
userId: '',
editedAt: '',
@@ -7996,7 +7998,7 @@ speechSynthesis.getVoices();
});
worldName = args.ref.name;
}
} catch (err) { }
} catch (err) {}
}
return worldName;
};
@@ -8019,7 +8021,7 @@ speechSynthesis.getVoices();
groupId
});
groupName = args.ref.name;
} catch (err) { }
} catch (err) {}
return groupName;
};
@@ -8834,7 +8836,7 @@ speechSynthesis.getVoices();
};
try {
avatarInfo = await $app.getAvatarName(currentAvatarImageUrl);
} catch (err) { }
} catch (err) {}
var feed = {
created_at: new Date().toJSON(),
type: 'Avatar',
@@ -10550,7 +10552,8 @@ speechSynthesis.getVoices();
}
if (this.debugPhotonLogging) {
var displayName = this.getDisplayNameFromPhotonId(senderId);
var feed = `RPC ${displayName} ${this.photonEventType[eventData.EventType]
var feed = `RPC ${displayName} ${
this.photonEventType[eventData.EventType]
}${eventName}`;
console.log('VrcRpc:', feed);
}
@@ -12611,7 +12614,7 @@ speechSynthesis.getVoices();
API.getUser({
userId: id
});
} catch { }
} catch {}
return;
}
API.getFriendStatus({
@@ -15764,7 +15767,8 @@ speechSynthesis.getVoices();
if (type === 'search') {
try {
var response = await webApiService.execute({
url: `${this.avatarRemoteDatabaseProvider
url: `${
this.avatarRemoteDatabaseProvider
}?${type}=${encodeURIComponent(search)}&n=5000`,
method: 'GET',
headers: {
@@ -18088,7 +18092,8 @@ speechSynthesis.getVoices();
args.push(`vrchat://launch?id=${location}`);
}
}
var { launchArguments, vrcLaunchPathOverride } = this.launchOptionsDialog;
var { launchArguments, vrcLaunchPathOverride } =
this.launchOptionsDialog;
if (launchArguments) {
args.push(launchArguments);
}
@@ -21299,7 +21304,7 @@ speechSynthesis.getVoices();
try {
var args = await API.getFavoriteWorlds(params);
worldLists.push([list.displayName, list.visibility, args.json]);
} catch (err) { }
} catch (err) {}
}
this.userFavoriteWorlds = worldLists;
this.userDialog.isFavoriteWorldsLoading = false;
+10 -10
View File
@@ -1,23 +1,23 @@
import en from './strings/en.json' assert {type: 'JSON'};
import en from './strings/en.json' assert { type: 'JSON' };
import elements_en from 'element-ui/lib/locale/lang/en';
import ja from './strings/ja.json' assert {type: 'JSON'};
import ja from './strings/ja.json' assert { type: 'JSON' };
import elements_ja from 'element-ui/lib/locale/lang/ja';
import zh_TW from './strings/zh_TW.json' assert {type: 'JSON'};
import zh_TW from './strings/zh_TW.json' assert { type: 'JSON' };
import elements_zh_TW from 'element-ui/lib/locale/lang/zh-TW';
import ko from './strings/ko.json' assert {type: 'JSON'};
import ko from './strings/ko.json' assert { type: 'JSON' };
import elements_ko from 'element-ui/lib/locale/lang/ko';
import zh_CN from './strings/zh_CN.json' assert {type: 'JSON'};
import zh_CN from './strings/zh_CN.json' assert { type: 'JSON' };
import elements_zh_CN from 'element-ui/lib/locale/lang/zh-CN';
const localized_en = {...en, ...elements_en};
const localized_zh_TW = {...zh_TW, ...elements_zh_TW};
const localized_zh_CN = {...zh_CN, ...elements_zh_CN};
const localized_ko = {...ko, ...elements_ko};
const localized_ja = {...ja, ...elements_ja};
const localized_en = { ...en, ...elements_en };
const localized_zh_TW = { ...zh_TW, ...elements_zh_TW };
const localized_zh_CN = { ...zh_CN, ...elements_zh_CN };
const localized_ko = { ...ko, ...elements_ko };
const localized_ja = { ...ja, ...elements_ja };
export {
localized_en as en,
+2 -2
View File
@@ -1,5 +1,5 @@
import sqliteService from '../service/sqlite.js';
import sharedRepository, {SharedRepository} from './shared.js';
import sharedRepository, { SharedRepository } from './shared.js';
var dirtyKeySet = new Set();
@@ -76,4 +76,4 @@ class ConfigRepository extends SharedRepository {
var self = new ConfigRepository();
window.configRepository = self;
export {self as default, ConfigRepository};
export { self as default, ConfigRepository };
+1 -1
View File
@@ -1986,4 +1986,4 @@ class Database {
var self = new Database();
window.database = self;
export {self as default, Database};
export { self as default, Database };
+1 -1
View File
@@ -105,4 +105,4 @@ class SharedRepository {
var self = new SharedRepository();
window.sharedRepository = self;
export {self as default, SharedRepository};
export { self as default, SharedRepository };
+4 -4
View File
@@ -27,12 +27,12 @@ async function encrypt(plaintext, key) {
let sharedKey = await window.crypto.subtle.importKey(
'raw',
stdAESKey(key),
{name: 'AES-GCM', length: 256},
{ name: 'AES-GCM', length: 256 },
true,
['encrypt']
);
let cipher = await window.crypto.subtle.encrypt(
{name: 'AES-GCM', iv},
{ name: 'AES-GCM', iv },
sharedKey,
new TextEncoder().encode(plaintext)
);
@@ -49,12 +49,12 @@ async function decrypt(ciphertext, key) {
let sharedKey = await window.crypto.subtle.importKey(
'raw',
stdAESKey(key),
{name: 'AES-GCM', length: 256},
{ name: 'AES-GCM', length: 256 },
true,
['decrypt']
);
let plaintext = await window.crypto.subtle.decrypt(
{name: 'AES-GCM', iv: text.slice(0, 12)},
{ name: 'AES-GCM', iv: text.slice(0, 12) },
sharedKey,
text.slice(12)
);
+1 -1
View File
@@ -116,4 +116,4 @@ class GameLogService {
var self = new GameLogService();
window.gameLogService = self;
export {self as default, GameLogService as LogWatcherService};
export { self as default, GameLogService as LogWatcherService };
+1 -1
View File
@@ -27,4 +27,4 @@ class SQLiteService {
var self = new SQLiteService();
window.sqliteService = self;
export {self as default, SQLiteService};
export { self as default, SQLiteService };
+1 -1
View File
@@ -29,4 +29,4 @@ class WebApiService {
var self = new WebApiService();
window.webApiService = self;
export {self as default, WebApiService};
export { self as default, WebApiService };
+2 -2
View File
@@ -163,7 +163,7 @@ Vue.component('marquee-text', MarqueeText);
});
var removeFromArray = function (array, item) {
var {length} = array;
var { length } = array;
for (var i = 0; i < length; ++i) {
if (array[i] === item) {
array.splice(i, 1);
@@ -479,7 +479,7 @@ Vue.component('marquee-text', MarqueeText);
};
$app.methods.playNoty = function (json) {
var {noty, message, image} = JSON.parse(json);
var { noty, message, image } = JSON.parse(json);
var message = escapeTag(message);
var text = '';
var img = '';