fix buld warning

This commit is contained in:
pa
2026-03-13 10:46:32 +09:00
parent c2854edabe
commit b6c4e65559
4 changed files with 10 additions and 15 deletions
+3 -5
View File
@@ -2,6 +2,8 @@ import { ref, watch } from 'vue';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { checkVRChatCache } from '../shared/utils'; import { checkVRChatCache } from '../shared/utils';
import { queryRequest } from '../api';
import { getAvatarHistory, preloadOwnAvatars } from '../coordinators/avatarCoordinator';
import { database } from '../services/database'; import { database } from '../services/database';
import { watchState } from '../services/watchState'; import { watchState } from '../services/watchState';
@@ -48,13 +50,9 @@ export const useAvatarStore = defineStore('Avatar', () => {
cachedAvatarModerations.clear(); cachedAvatarModerations.clear();
avatarHistory.value = []; avatarHistory.value = [];
if (isLoggedIn) { if (isLoggedIn) {
import('../coordinators/avatarCoordinator').then(
({ getAvatarHistory, preloadOwnAvatars }) => {
getAvatarHistory(); getAvatarHistory();
preloadOwnAvatars(); preloadOwnAvatars();
} }
);
}
}, },
{ flush: 'sync' } { flush: 'sync' }
); );
@@ -86,7 +84,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
* @returns {Promise<string[]>} * @returns {Promise<string[]>}
*/ */
async function getAvatarGallery(avatarId) { async function getAvatarGallery(avatarId) {
const { queryRequest } = await import('../api');
const D = avatarDialog.value; const D = avatarDialog.value;
const args = await queryRequest const args = await queryRequest
.fetch('avatarGallery', { avatarId }) .fetch('avatarGallery', { avatarId })
+2 -4
View File
@@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n';
import { hasGroupPermission, replaceBioSymbols } from '../shared/utils'; import { hasGroupPermission, replaceBioSymbols } from '../shared/utils';
import { groupRequest, queryRequest } from '../api'; import { groupRequest, queryRequest } from '../api';
import { initUserGroups } from '../coordinators/groupCoordinator';
import { watchState } from '../services/watchState'; import { watchState } from '../services/watchState';
export const useGroupStore = defineStore('Group', () => { export const useGroupStore = defineStore('Group', () => {
@@ -93,10 +94,7 @@ export const useGroupStore = defineStore('Group', () => {
cachedGroups.clear(); cachedGroups.clear();
currentUserGroups.clear(); currentUserGroups.clear();
if (isLoggedIn) { if (isLoggedIn) {
// initUserGroups is called from groupCoordinator via this watcher or externally initUserGroups();
import('../coordinators/groupCoordinator').then((mod) => {
mod.initUserGroups();
});
} }
}, },
{ flush: 'sync' } { flush: 'sync' }
+2 -3
View File
@@ -2,6 +2,7 @@ import { reactive, shallowReactive, watch } from 'vue';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { checkVRChatCache } from '../shared/utils'; import { checkVRChatCache } from '../shared/utils';
import { preloadOwnWorlds } from '../coordinators/worldCoordinator';
import { watchState } from '../services/watchState'; import { watchState } from '../services/watchState';
export const useWorldStore = defineStore('World', () => { export const useWorldStore = defineStore('World', () => {
@@ -40,9 +41,7 @@ export const useWorldStore = defineStore('World', () => {
worldDialog.visible = false; worldDialog.visible = false;
cachedWorlds.clear(); cachedWorlds.clear();
if (isLoggedIn) { if (isLoggedIn) {
import('../coordinators/worldCoordinator').then( preloadOwnWorlds();
({ preloadOwnWorlds }) => preloadOwnWorlds()
);
} }
}, },
{ flush: 'sync' } { flush: 'sync' }
+1 -1
View File
@@ -226,7 +226,7 @@
const ExportDiscordNamesDialog = defineAsyncComponent(() => import('./dialogs/ExportDiscordNamesDialog.vue')); const ExportDiscordNamesDialog = defineAsyncComponent(() => import('./dialogs/ExportDiscordNamesDialog.vue'));
const ExportFriendsListDialog = defineAsyncComponent(() => import('./dialogs/ExportFriendsListDialog.vue')); const ExportFriendsListDialog = defineAsyncComponent(() => import('./dialogs/ExportFriendsListDialog.vue'));
const ExportAvatarsListDialog = defineAsyncComponent(() => import('./dialogs/ExportAvatarsListDialog.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 { t } = useI18n();
const router = useRouter(); const router = useRouter();