mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
fix buld warning
This commit is contained in:
@@ -2,6 +2,8 @@ import { ref, watch } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
import { checkVRChatCache } from '../shared/utils';
|
||||
import { queryRequest } from '../api';
|
||||
import { getAvatarHistory, preloadOwnAvatars } from '../coordinators/avatarCoordinator';
|
||||
import { database } from '../services/database';
|
||||
import { watchState } from '../services/watchState';
|
||||
|
||||
@@ -48,12 +50,8 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
cachedAvatarModerations.clear();
|
||||
avatarHistory.value = [];
|
||||
if (isLoggedIn) {
|
||||
import('../coordinators/avatarCoordinator').then(
|
||||
({ getAvatarHistory, preloadOwnAvatars }) => {
|
||||
getAvatarHistory();
|
||||
preloadOwnAvatars();
|
||||
}
|
||||
);
|
||||
getAvatarHistory();
|
||||
preloadOwnAvatars();
|
||||
}
|
||||
},
|
||||
{ flush: 'sync' }
|
||||
@@ -86,7 +84,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
||||
* @returns {Promise<string[]>}
|
||||
*/
|
||||
async function getAvatarGallery(avatarId) {
|
||||
const { queryRequest } = await import('../api');
|
||||
|
||||
const D = avatarDialog.value;
|
||||
const args = await queryRequest
|
||||
.fetch('avatarGallery', { avatarId })
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n';
|
||||
|
||||
import { hasGroupPermission, replaceBioSymbols } from '../shared/utils';
|
||||
import { groupRequest, queryRequest } from '../api';
|
||||
import { initUserGroups } from '../coordinators/groupCoordinator';
|
||||
import { watchState } from '../services/watchState';
|
||||
|
||||
export const useGroupStore = defineStore('Group', () => {
|
||||
@@ -93,10 +94,7 @@ export const useGroupStore = defineStore('Group', () => {
|
||||
cachedGroups.clear();
|
||||
currentUserGroups.clear();
|
||||
if (isLoggedIn) {
|
||||
// initUserGroups is called from groupCoordinator via this watcher or externally
|
||||
import('../coordinators/groupCoordinator').then((mod) => {
|
||||
mod.initUserGroups();
|
||||
});
|
||||
initUserGroups();
|
||||
}
|
||||
},
|
||||
{ flush: 'sync' }
|
||||
|
||||
@@ -2,6 +2,7 @@ import { reactive, shallowReactive, watch } from 'vue';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
import { checkVRChatCache } from '../shared/utils';
|
||||
import { preloadOwnWorlds } from '../coordinators/worldCoordinator';
|
||||
import { watchState } from '../services/watchState';
|
||||
|
||||
export const useWorldStore = defineStore('World', () => {
|
||||
@@ -40,9 +41,7 @@ export const useWorldStore = defineStore('World', () => {
|
||||
worldDialog.visible = false;
|
||||
cachedWorlds.clear();
|
||||
if (isLoggedIn) {
|
||||
import('../coordinators/worldCoordinator').then(
|
||||
({ preloadOwnWorlds }) => preloadOwnWorlds()
|
||||
);
|
||||
preloadOwnWorlds();
|
||||
}
|
||||
},
|
||||
{ flush: 'sync' }
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
const ExportDiscordNamesDialog = defineAsyncComponent(() => import('./dialogs/ExportDiscordNamesDialog.vue'));
|
||||
const ExportFriendsListDialog = defineAsyncComponent(() => import('./dialogs/ExportFriendsListDialog.vue'));
|
||||
const ExportAvatarsListDialog = defineAsyncComponent(() => import('./dialogs/ExportAvatarsListDialog.vue'));
|
||||
const RegistryBackupDialog = defineAsyncComponent(() => import('./dialogs/RegistryBackupDialog.vue'));
|
||||
import RegistryBackupDialog from './dialogs/RegistryBackupDialog.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
|
||||
Reference in New Issue
Block a user