mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-21 07:43:50 +02:00
lint: apply pretty import
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import {
|
||||
compareByName,
|
||||
compareByCreatedAt,
|
||||
compareByCreatedAtAscending,
|
||||
compareByUpdatedAt,
|
||||
compareByDisplayName,
|
||||
compareByMemberCount,
|
||||
compareByPrivate,
|
||||
compareByStatus,
|
||||
compareByLastActive,
|
||||
compareByLastSeen,
|
||||
compareByLocation,
|
||||
compareByLocationAt,
|
||||
compareByLocation
|
||||
compareByMemberCount,
|
||||
compareByName,
|
||||
compareByPrivate,
|
||||
compareByStatus,
|
||||
compareByUpdatedAt
|
||||
} from '../compare';
|
||||
|
||||
describe('Compare Functions', () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { sortStatus, isFriendOnline } from '../friend';
|
||||
import { isFriendOnline, sortStatus } from '../friend';
|
||||
|
||||
describe('Friend Utils', () => {
|
||||
describe('sortStatus', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
getEmojiFileName,
|
||||
getPrintFileName,
|
||||
getPrintLocalDate,
|
||||
getEmojiFileName
|
||||
getPrintLocalDate
|
||||
} from '../gallery';
|
||||
|
||||
describe('Gallery Utils', () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { parseLocation, displayLocation } from '../location';
|
||||
import { displayLocation, parseLocation } from '../location';
|
||||
|
||||
describe('Location Utils', () => {
|
||||
describe('parseLocation', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useAuthStore } from '../../stores';
|
||||
import { replaceBioSymbols } from './common';
|
||||
import { useAuthStore } from '../../stores';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
changeLogRemoveLinks,
|
||||
commaNumber,
|
||||
escapeTag,
|
||||
escapeTagRecursive,
|
||||
textToHex,
|
||||
commaNumber,
|
||||
localeIncludes,
|
||||
changeLogRemoveLinks
|
||||
textToHex
|
||||
} from '../string';
|
||||
|
||||
describe('String Utils', () => {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useAvatarStore, useWorldStore } from '../../../stores';
|
||||
import { compareUnityVersion } from '../avatar';
|
||||
import {
|
||||
extractFileId,
|
||||
extractFileVersion,
|
||||
extractVariantVersion
|
||||
} from '../common';
|
||||
import { useAvatarStore, useWorldStore } from '../../../stores';
|
||||
import { compareUnityVersion } from '../avatar';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
||||
import { useAppearanceSettingsStore, useUiStore } from '../../../stores';
|
||||
import { THEME_CONFIG } from '../../constants';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { i18n } from '../../../plugin/i18n';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
import Noty from 'noty';
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { ElMessageBox, ElMessage } from 'element-plus';
|
||||
import { miscRequest } from '../../api';
|
||||
|
||||
import Noty from 'noty';
|
||||
|
||||
import {
|
||||
useAvatarStore,
|
||||
useInstanceStore,
|
||||
useWorldStore,
|
||||
useSearchStore
|
||||
useSearchStore,
|
||||
useWorldStore
|
||||
} from '../../stores';
|
||||
import { compareUnityVersion } from './avatar';
|
||||
import { escapeTag } from './base/string';
|
||||
import { miscRequest } from '../../api';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -96,10 +96,7 @@ function compareByDisplayName(a, b) {
|
||||
* @returns
|
||||
*/
|
||||
function compareById(a, b) {
|
||||
if (
|
||||
typeof a.id !== 'string' ||
|
||||
typeof b.id !== 'string'
|
||||
) {
|
||||
if (typeof a.id !== 'string' || typeof b.id !== 'string') {
|
||||
return 0;
|
||||
}
|
||||
return a.id.localeCompare(b.id);
|
||||
|
||||
@@ -47,7 +47,10 @@ export function handleImageUploadInput(event, options = {}) {
|
||||
const file = files[0];
|
||||
if (file.size >= maxSize) {
|
||||
if (tooLargeMessage) {
|
||||
ElMessage({ message: resolveMessage(tooLargeMessage), type: 'error' });
|
||||
ElMessage({
|
||||
message: resolveMessage(tooLargeMessage),
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
clearInput();
|
||||
return { file: null, clearInput };
|
||||
@@ -55,12 +58,18 @@ export function handleImageUploadInput(event, options = {}) {
|
||||
|
||||
let acceptRegex = null;
|
||||
if (acceptPattern) {
|
||||
acceptRegex = acceptPattern instanceof RegExp ? acceptPattern : new RegExp(acceptPattern);
|
||||
acceptRegex =
|
||||
acceptPattern instanceof RegExp
|
||||
? acceptPattern
|
||||
: new RegExp(acceptPattern);
|
||||
}
|
||||
|
||||
if (acceptRegex && !acceptRegex.test(file.type)) {
|
||||
if (invalidTypeMessage) {
|
||||
ElMessage({ message: resolveMessage(invalidTypeMessage), type: 'error' });
|
||||
ElMessage({
|
||||
message: resolveMessage(invalidTypeMessage),
|
||||
type: 'error'
|
||||
});
|
||||
}
|
||||
clearInput();
|
||||
return { file: null, clearInput };
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { useAppearanceSettingsStore, useUserStore } from '../../stores';
|
||||
import { languageMappings } from '../constants';
|
||||
import { timeToText } from './base/format';
|
||||
import { HueToHex } from './base/ui';
|
||||
import { convertFileUrlToImageUrl } from './common';
|
||||
import { languageMappings } from '../constants';
|
||||
import { timeToText } from './base/format';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { worldRequest } from '../../api';
|
||||
import { parseLocation } from './location';
|
||||
import { rpcWorlds } from '../constants';
|
||||
import { worldRequest } from '../../api';
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {string} location
|
||||
|
||||
Reference in New Issue
Block a user