mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 00:03:51 +02:00
eslint fix
This commit is contained in:
@@ -92,6 +92,7 @@ function getPlatformInfo(unityPackages) {
|
||||
/**
|
||||
*
|
||||
* @param {string} unitySortNumber
|
||||
* @param sdkUnityVersion
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function compareUnityVersion(unitySortNumber, sdkUnityVersion) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
*
|
||||
* @param {array} array
|
||||
* @param {Array} array
|
||||
* @param {*} item
|
||||
* @returns {boolean}
|
||||
*/
|
||||
@@ -17,8 +17,8 @@ function removeFromArray(array, item) {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {array} a
|
||||
* @param {array} b
|
||||
* @param {Array} a
|
||||
* @param {Array} b
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function arraysMatch(a, b) {
|
||||
@@ -36,7 +36,7 @@ function arraysMatch(a, b) {
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {array} array
|
||||
* @param {Array} array
|
||||
* @param {number} fromIndex
|
||||
* @param {number} toIndex
|
||||
* @returns {void}
|
||||
|
||||
@@ -38,7 +38,10 @@ async function getBundleLocation(input) {
|
||||
}
|
||||
if (
|
||||
unityPackage.platform === 'standalonewindows' &&
|
||||
compareUnityVersion(unityPackage.unitySortNumber, sdkUnityVersion)
|
||||
compareUnityVersion(
|
||||
unityPackage.unitySortNumber,
|
||||
sdkUnityVersion
|
||||
)
|
||||
) {
|
||||
assetUrl = unityPackage.assetUrl;
|
||||
if (unityPackage.variant !== 'standard') {
|
||||
@@ -61,7 +64,10 @@ async function getBundleLocation(input) {
|
||||
unityPackage = unityPackages[i];
|
||||
if (
|
||||
unityPackage.platform === 'standalonewindows' &&
|
||||
compareUnityVersion(unityPackage.unitySortNumber, sdkUnityVersion)
|
||||
compareUnityVersion(
|
||||
unityPackage.unitySortNumber,
|
||||
sdkUnityVersion
|
||||
)
|
||||
) {
|
||||
assetUrl = unityPackage.assetUrl;
|
||||
break;
|
||||
|
||||
@@ -316,6 +316,7 @@ async function refreshCustomScript() {
|
||||
/**
|
||||
*
|
||||
* @param {number} hue
|
||||
* @param isDarkMode
|
||||
* @returns {string}
|
||||
*/
|
||||
function HueToHex(hue, isDarkMode) {
|
||||
|
||||
@@ -59,6 +59,7 @@ function getEmojiFileName(emoji) {
|
||||
* @param {number} fps
|
||||
* @param {number} frameCount
|
||||
* @param {string} loopStyle
|
||||
* @param size
|
||||
*/
|
||||
function generateEmojiStyle(url, fps, frameCount, loopStyle, size) {
|
||||
let framesPerLine = 2;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { localeIncludes } from './base/string';
|
||||
import removeConfusables, { removeWhitespace } from '../../services/confusables';
|
||||
import removeConfusables, {
|
||||
removeWhitespace
|
||||
} from '../../services/confusables';
|
||||
|
||||
/**
|
||||
* Tests whether a name matches a query using locale-aware comparison.
|
||||
|
||||
@@ -4,7 +4,6 @@ import { displayLocation } from './locationParser';
|
||||
* Extracts the notification title and body from a notification object.
|
||||
* This is the single source of truth for notification message content,
|
||||
* used by desktop toast, XS overlay, OVRT overlay, and TTS.
|
||||
*
|
||||
* @param {object} noty - The notification object
|
||||
* @param {string} message - Pre-built invite/request message string
|
||||
* @param {string} [displayNameOverride] - Optional override for the display
|
||||
@@ -212,7 +211,6 @@ const CUSTOM_FORMAT_MESSAGES = {
|
||||
/**
|
||||
* Combines title and body into a single notification text string.
|
||||
* Handles per-type formatting differences for XS/OVRT overlays.
|
||||
*
|
||||
* @param {string} title
|
||||
* @param {string} body
|
||||
* @param {string} type - The notification type
|
||||
@@ -236,7 +234,6 @@ export function toNotificationText(title, body, type) {
|
||||
* Extract a userId from a notification object by checking common fields.
|
||||
* Does NOT perform display-name-based lookups - the caller should handle
|
||||
* that fallback when a cached user map is available.
|
||||
*
|
||||
* @param {object} noty
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/**
|
||||
* Generic resolver for user/world/group references.
|
||||
* Normalises the input, optionally fetches the display name if missing.
|
||||
*
|
||||
* @param {string|object|null|undefined} input
|
||||
* @param {object} opts
|
||||
* @param {object} opts.emptyDefault - value to return when input is falsy
|
||||
|
||||
@@ -181,8 +181,7 @@ function userImage(
|
||||
}
|
||||
if (
|
||||
(isUserDialogIcon && user.userIcon) ||
|
||||
(displayVRCPlusIconsAsAvatar &&
|
||||
user.userIcon)
|
||||
(displayVRCPlusIconsAsAvatar && user.userIcon)
|
||||
) {
|
||||
if (isIcon) {
|
||||
return convertFileUrlToImageUrl(user.userIcon);
|
||||
@@ -233,10 +232,7 @@ function userImageFull(user, displayVRCPlusIconsAsAvatar = false) {
|
||||
if (!user) {
|
||||
return '';
|
||||
}
|
||||
if (
|
||||
displayVRCPlusIconsAsAvatar &&
|
||||
user.userIcon
|
||||
) {
|
||||
if (displayVRCPlusIconsAsAvatar && user.userIcon) {
|
||||
return user.userIcon;
|
||||
}
|
||||
if (user.profilePicOverride) {
|
||||
|
||||
Reference in New Issue
Block a user