mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 08:13:52 +02:00
Linter bracket spacing 1
This commit is contained in:
103
html/src/app.js
103
html/src/app.js
@@ -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');
|
||||
}
|
||||
@@ -655,12 +655,12 @@ speechSynthesis.getVoices();
|
||||
if (
|
||||
args.json.length > 0 &&
|
||||
((options.params.offset += args.json.length),
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
options.N > 0
|
||||
? options.N > options.params.offset
|
||||
: options.N < 0
|
||||
? args.json.length
|
||||
: options.params.n === args.json.length)
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
options.N > 0
|
||||
? options.N > options.params.offset
|
||||
: options.N < 0
|
||||
? args.json.length
|
||||
: options.params.n === args.json.length)
|
||||
) {
|
||||
this.bulk(options);
|
||||
} else if ('done' in options) {
|
||||
@@ -1032,7 +1032,7 @@ speechSynthesis.getVoices();
|
||||
(this.worlddialogshortname &&
|
||||
this.locationobject.shortName &&
|
||||
this.worlddialogshortname ===
|
||||
this.locationobject.shortName) ||
|
||||
this.locationobject.shortName) ||
|
||||
this.currentuserid === this.locationobject.userId
|
||||
) {
|
||||
this.isUnlocked = true;
|
||||
@@ -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
|
||||
|
||||
@@ -5256,7 +5254,7 @@ speechSynthesis.getVoices();
|
||||
if (i > 0) {
|
||||
if (
|
||||
data[i - 1].created_at ===
|
||||
this.sharedFeed.gameLog.lastEntryDate &&
|
||||
this.sharedFeed.gameLog.lastEntryDate &&
|
||||
forceUpdate === false
|
||||
) {
|
||||
return;
|
||||
@@ -5287,9 +5285,9 @@ speechSynthesis.getVoices();
|
||||
if (
|
||||
feedItem.type === 'OnPlayerLeft' &&
|
||||
Date.parse(feedItem.created_at) >=
|
||||
currentUserLeaveTime &&
|
||||
currentUserLeaveTime &&
|
||||
Date.parse(feedItem.created_at) <=
|
||||
currentUserLeaveTime + 5 * 1000
|
||||
currentUserLeaveTime + 5 * 1000
|
||||
) {
|
||||
wristArr.splice(k, 1);
|
||||
w--;
|
||||
@@ -5305,7 +5303,7 @@ speechSynthesis.getVoices();
|
||||
feedItem.type === 'OnPlayerJoined' &&
|
||||
Date.parse(feedItem.created_at) >= locationJoinTime &&
|
||||
Date.parse(feedItem.created_at) <=
|
||||
locationJoinTime + 20 * 1000
|
||||
locationJoinTime + 20 * 1000
|
||||
) {
|
||||
wristArr.splice(k, 1);
|
||||
w--;
|
||||
@@ -5458,7 +5456,7 @@ speechSynthesis.getVoices();
|
||||
if (i > 0) {
|
||||
if (
|
||||
data[i - 1].created_at ===
|
||||
this.sharedFeed.feedTable.lastEntryDate &&
|
||||
this.sharedFeed.feedTable.lastEntryDate &&
|
||||
forceUpdate === false
|
||||
) {
|
||||
return;
|
||||
@@ -5538,7 +5536,7 @@ speechSynthesis.getVoices();
|
||||
if (i > 0) {
|
||||
if (
|
||||
data[i - 1].created_at ===
|
||||
this.sharedFeed.notificationTable.lastEntryDate &&
|
||||
this.sharedFeed.notificationTable.lastEntryDate &&
|
||||
forceUpdate === false
|
||||
) {
|
||||
return;
|
||||
@@ -5604,7 +5602,7 @@ speechSynthesis.getVoices();
|
||||
if (i > 0) {
|
||||
if (
|
||||
data[i - 1].created_at ===
|
||||
this.sharedFeed.friendLogTable.lastEntryDate &&
|
||||
this.sharedFeed.friendLogTable.lastEntryDate &&
|
||||
forceUpdate === false
|
||||
) {
|
||||
return;
|
||||
@@ -5673,7 +5671,7 @@ speechSynthesis.getVoices();
|
||||
if (i > 0) {
|
||||
if (
|
||||
data[i - 1].created_at ===
|
||||
this.sharedFeed.moderationAgainstTable.lastEntryDate &&
|
||||
this.sharedFeed.moderationAgainstTable.lastEntryDate &&
|
||||
forceUpdate === false
|
||||
) {
|
||||
return;
|
||||
@@ -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
|
||||
@@ -6759,7 +6761,7 @@ speechSynthesis.getVoices();
|
||||
if (this.loginForm.lastUserLoggedIn) {
|
||||
var user =
|
||||
this.loginForm.savedCredentials[
|
||||
this.loginForm.lastUserLoggedIn
|
||||
this.loginForm.lastUserLoggedIn
|
||||
];
|
||||
if (typeof user !== 'undefined') {
|
||||
webApiService.clearCookies();
|
||||
@@ -7228,9 +7230,9 @@ speechSynthesis.getVoices();
|
||||
.then(({ value }) => {
|
||||
let saveCredential =
|
||||
this.loginForm.savedCredentials[
|
||||
Object.keys(
|
||||
this.loginForm.savedCredentials
|
||||
)[0]
|
||||
Object.keys(
|
||||
this.loginForm.savedCredentials
|
||||
)[0]
|
||||
];
|
||||
security
|
||||
.decrypt(
|
||||
@@ -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',
|
||||
@@ -9414,7 +9416,7 @@ speechSynthesis.getVoices();
|
||||
if (
|
||||
ref.location !== this.lastLocation.location &&
|
||||
ref.travelingToLocation !==
|
||||
this.lastLocation.location
|
||||
this.lastLocation.location
|
||||
) {
|
||||
// fix $location_at with private
|
||||
ref.$location_at = joinTime;
|
||||
@@ -10550,8 +10552,9 @@ speechSynthesis.getVoices();
|
||||
}
|
||||
if (this.debugPhotonLogging) {
|
||||
var displayName = this.getDisplayNameFromPhotonId(senderId);
|
||||
var feed = `RPC ${displayName} ${this.photonEventType[eventData.EventType]
|
||||
}${eventName}`;
|
||||
var feed = `RPC ${displayName} ${
|
||||
this.photonEventType[eventData.EventType]
|
||||
}${eventName}`;
|
||||
console.log('VrcRpc:', feed);
|
||||
}
|
||||
}
|
||||
@@ -11580,8 +11583,8 @@ speechSynthesis.getVoices();
|
||||
|
||||
$app.methods.formatSeconds = function (duration) {
|
||||
var pad = function (num, size) {
|
||||
return `000${num}`.slice(size * -1);
|
||||
},
|
||||
return `000${num}`.slice(size * -1);
|
||||
},
|
||||
time = parseFloat(duration).toFixed(3),
|
||||
hours = Math.floor(time / 60 / 60),
|
||||
minutes = Math.floor(time / 60) % 60,
|
||||
@@ -11798,7 +11801,7 @@ speechSynthesis.getVoices();
|
||||
(this.nowPlaying.startTime -
|
||||
this.nowPlaying.offset +
|
||||
this.nowPlaying.length) *
|
||||
1000
|
||||
1000
|
||||
);
|
||||
}
|
||||
} else if (!this.discordHideImage && L.thumbnailImageUrl) {
|
||||
@@ -12611,7 +12614,7 @@ speechSynthesis.getVoices();
|
||||
API.getUser({
|
||||
userId: id
|
||||
});
|
||||
} catch { }
|
||||
} catch {}
|
||||
return;
|
||||
}
|
||||
API.getFriendStatus({
|
||||
@@ -15764,8 +15767,9 @@ speechSynthesis.getVoices();
|
||||
if (type === 'search') {
|
||||
try {
|
||||
var response = await webApiService.execute({
|
||||
url: `${this.avatarRemoteDatabaseProvider
|
||||
}?${type}=${encodeURIComponent(search)}&n=5000`,
|
||||
url: `${
|
||||
this.avatarRemoteDatabaseProvider
|
||||
}?${type}=${encodeURIComponent(search)}&n=5000`,
|
||||
method: 'GET',
|
||||
headers: {
|
||||
Referer: 'https://vrcx.pypy.moe'
|
||||
@@ -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;
|
||||
@@ -21726,7 +21731,7 @@ speechSynthesis.getVoices();
|
||||
if (
|
||||
(asset.content_type === 'application/x-msdownload' ||
|
||||
asset.content_type ===
|
||||
'application/x-msdos-program') &&
|
||||
'application/x-msdos-program') &&
|
||||
asset.state === 'uploaded'
|
||||
) {
|
||||
var downloadUrl = asset.browser_download_url;
|
||||
@@ -21857,7 +21862,7 @@ speechSynthesis.getVoices();
|
||||
if (
|
||||
(asset.content_type === 'application/x-msdownload' ||
|
||||
asset.content_type ===
|
||||
'application/x-msdos-program') &&
|
||||
'application/x-msdos-program') &&
|
||||
asset.state === 'uploaded'
|
||||
) {
|
||||
var downloadUrl = asset.browser_download_url;
|
||||
@@ -25775,4 +25780,4 @@ speechSynthesis.getVoices();
|
||||
$app = new Vue($app);
|
||||
window.$app = $app;
|
||||
})();
|
||||
// #endregion
|
||||
// #endregion
|
||||
|
||||
Reference in New Issue
Block a user