eslint fix

This commit is contained in:
pa
2026-03-10 22:42:22 +09:00
parent 699bf620e5
commit 4877010006
124 changed files with 980 additions and 1121 deletions
+6 -4
View File
@@ -104,10 +104,12 @@ export const useAuthStore = defineStore('Auth', () => {
*
*/
async function init() {
const [lastUserLoggedIn, savedEnableCustomEndpoint] = await Promise.all([
configRepository.getString('lastUserLoggedIn', ''),
configRepository.getBool('VRCX_enableCustomEndpoint', false)
]);
const [lastUserLoggedIn, savedEnableCustomEndpoint] = await Promise.all(
[
configRepository.getString('lastUserLoggedIn', ''),
configRepository.getBool('VRCX_enableCustomEndpoint', false)
]
);
loginForm.value.lastUserLoggedIn = lastUserLoggedIn;
enableCustomEndpoint.value = savedEnableCustomEndpoint;
}
+1 -3
View File
@@ -1,9 +1,7 @@
import { ref, watch } from 'vue';
import { defineStore } from 'pinia';
import {
checkVRChatCache
} from '../shared/utils';
import { checkVRChatCache } from '../shared/utils';
import { database } from '../services/database';
import { watchState } from '../services/watchState';
-1
View File
@@ -7,7 +7,6 @@ import {
/**
* Creates the media parser functions for the GameLog store.
*
* @param {object} deps
* @param {import('vue').Ref} deps.nowPlaying
* @param {Function} deps.setNowPlaying
+1 -4
View File
@@ -2,10 +2,7 @@ import { reactive, ref, watch } from 'vue';
import { defineStore } from 'pinia';
import { useI18n } from 'vue-i18n';
import {
hasGroupPermission,
replaceBioSymbols
} from '../shared/utils';
import { hasGroupPermission, replaceBioSymbols } from '../shared/utils';
import { groupRequest, queryRequest } from '../api';
import { groupDialogFilterOptions } from '../shared/constants/';
import { watchState } from '../services/watchState';
-2
View File
@@ -85,8 +85,6 @@ export const useInviteStore = defineStore('Invite', () => {
});
}
return {
inviteMessageTable,
inviteResponseMessageTable,
-1
View File
@@ -50,4 +50,3 @@ export const useLocationStore = defineStore('Location', () => {
setLastLocationDestinationTime
};
});
+6 -6
View File
@@ -3,13 +3,13 @@ import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
/**
* @typedef {Object} ConfirmResult
* @typedef {object} ConfirmResult
* @property {boolean} ok
* @property {'ok' | 'cancel' | 'dismiss' | 'replaced'} reason
*/
/**
* @typedef {Object} ConfirmOptions
* @typedef {object} ConfirmOptions
* @property {string} title
* @property {string} description
* @property {string=} confirmText
@@ -18,7 +18,7 @@ import { useI18n } from 'vue-i18n';
*/
/**
* @typedef {Object} AlertOptions
* @typedef {object} AlertOptions
* @property {string} title
* @property {string} description
* @property {string=} confirmText
@@ -26,14 +26,14 @@ import { useI18n } from 'vue-i18n';
*/
/**
* @typedef {Object} PromptResult
* @typedef {object} PromptResult
* @property {boolean} ok
* @property {'ok' | 'cancel' | 'dismiss' | 'replaced'} reason
* @property {string} value
*/
/**
* @typedef {Object} PromptOptions
* @typedef {object} PromptOptions
* @property {string} title
* @property {string} description
* @property {string=} confirmText
@@ -46,7 +46,7 @@ import { useI18n } from 'vue-i18n';
*/
/**
* @typedef {Object} OtpPromptOptions
* @typedef {object} OtpPromptOptions
* @property {string} title
* @property {string} description
* @property {'totp' | 'emailOtp' | 'otp'} mode
+1 -3
View File
@@ -173,12 +173,10 @@ export const useModerationStore = defineStore('Moderation', () => {
}
}
/**
* Get user moderations
* @param {string} userId
* @return {object} moderations
* @returns {object} moderations
* @property {boolean} isBlocked
* @property {boolean} isMuted
* @property {boolean} isAvatarInteractionDisabled
+5 -1
View File
@@ -21,7 +21,11 @@ import { AppDebug } from '../services/appConfig';
import { database } from '../services/database';
import { useAvatarStore } from './avatar';
import { applyAvatar } from '../coordinators/avatarCoordinator';
import { showUserDialog, lookupUser, applyUser } from '../coordinators/userCoordinator';
import {
showUserDialog,
lookupUser,
applyUser
} from '../coordinators/userCoordinator';
import { useFavoriteStore } from './favorite';
import { useFriendStore } from './friend';
import { useGameLogStore } from './gameLog';
+5 -1
View File
@@ -15,7 +15,11 @@ import { useGroupStore } from './group';
import { showGroupDialog } from '../coordinators/groupCoordinator';
import { showWorldDialog } from '../coordinators/worldCoordinator';
import { showAvatarDialog } from '../coordinators/avatarCoordinator';
import { applyUser, showUserDialog, lookupUser } from '../coordinators/userCoordinator';
import {
applyUser,
showUserDialog,
lookupUser
} from '../coordinators/userCoordinator';
import { useModalStore } from './modal';
import { useUserStore } from './user';
import { useWorldStore } from './world';
+8 -2
View File
@@ -405,7 +405,10 @@ export const useAppearanceSettingsStore = defineStore(
});
}
if (randomUserColours.value) {
const colour = await getNameColour(userStore.currentUser.id, isDarkMode.value);
const colour = await getNameColour(
userStore.currentUser.id,
isDarkMode.value
);
userStore.setCurrentUserColour(colour);
userColourInit();
} else {
@@ -1042,7 +1045,10 @@ export const useAppearanceSettingsStore = defineStore(
if (!randomUserColours.value) {
return;
}
const colour = await getNameColour(userStore.currentUser.id, isDarkMode.value);
const colour = await getNameColour(
userStore.currentUser.id,
isDarkMode.value
);
userStore.setCurrentUserColour(colour);
await userColourInit();
}
+1 -1
View File
@@ -203,7 +203,7 @@ export const useUiStore = defineStore('Ui', () => {
}
/**
* @param {Object} data
* @param {object} data
* @param {string} data.type
* @param {string} data.id
* @param {string?} data.tag
+4 -1
View File
@@ -14,7 +14,10 @@ import { useFriendStore } from './friend';
import { useGameStore } from './game';
import { useGroupStore } from './group';
import { handleGroupUserInstances } from '../coordinators/groupCoordinator';
import { getCurrentUser, updateAutoStateChange } from '../coordinators/userCoordinator';
import {
getCurrentUser,
updateAutoStateChange
} from '../coordinators/userCoordinator';
import { useModerationStore } from './moderation';
import { useUserStore } from './user';
import { useVRCXUpdaterStore } from './vrcxUpdater';
+1 -1
View File
@@ -98,7 +98,7 @@ export const useVrStore = defineStore('Vr', () => {
}
/**
* @typedef {Object} VrConfigVarsPayload
* @typedef {object} VrConfigVarsPayload
* @property {boolean} overlayNotifications
* @property {boolean} hideDevicesFromFeed
* @property {boolean} vrOverlayCpuUsage
+9 -10
View File
@@ -34,7 +34,11 @@ import { useGameStore } from './game';
import { useGroupStore } from './group';
import { showGroupDialog } from '../coordinators/groupCoordinator';
import { showWorldDialog } from '../coordinators/worldCoordinator';
import { showAvatarDialog, selectAvatarWithConfirmation, selectAvatarWithoutConfirmation } from '../coordinators/avatarCoordinator';
import {
showAvatarDialog,
selectAvatarWithConfirmation,
selectAvatarWithoutConfirmation
} from '../coordinators/avatarCoordinator';
import { showUserDialog, addCustomTag } from '../coordinators/userCoordinator';
import { useInstanceStore } from './instance';
import { useLocationStore } from './location';
@@ -279,7 +283,6 @@ export const useVrcxStore = defineStore('Vrcx', () => {
*
*/
/**
*
* @param data
@@ -655,10 +658,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
}
avatarRequest.getAvatar({ avatarId: avatarIdFav }).then(() => {
showAvatarDialog(avatarIdFav);
addLocalAvatarFavorite(
avatarIdFav,
avatarGroup
);
addLocalAvatarFavorite(avatarIdFav, avatarGroup);
});
break;
case 'addavatardb':
@@ -679,10 +679,9 @@ export const useVrcxStore = defineStore('Vrcx', () => {
// Makes sure the window is focused
shouldFocusWindow = true;
} else {
selectAvatarWithoutConfirmation(avatarId)
.then(() => {
toast.success('Avatar changed via launch command');
});
selectAvatarWithoutConfirmation(avatarId).then(() => {
toast.success('Avatar changed via launch command');
});
shouldFocusWindow = false;
}
break;
+1 -3
View File
@@ -1,9 +1,7 @@
import { reactive, shallowReactive, watch } from 'vue';
import { defineStore } from 'pinia';
import {
checkVRChatCache
} from '../shared/utils';
import { checkVRChatCache } from '../shared/utils';
import { watchState } from '../services/watchState';
export const useWorldStore = defineStore('World', () => {