This commit is contained in:
pa
2026-03-10 17:44:15 +09:00
parent 17b582c904
commit ff1529920b
237 changed files with 419 additions and 419 deletions

View File

@@ -399,7 +399,7 @@
import { THEME_CONFIG, links, navDefinitions } from '../shared/constants';
import { openExternalLink } from '../shared/utils';
import configRepository from '../service/config';
import configRepository from '../services/config';
const CustomNavDialog = defineAsyncComponent(() => import('./dialogs/CustomNavDialog.vue'));

View File

@@ -284,7 +284,7 @@
import { useIntervalFn, useNow } from '@vueuse/core';
import { TooltipWrapper } from '@/components/ui/tooltip';
import { useI18n } from 'vue-i18n';
import { wsState } from '@/service/websocket';
import { wsState } from '@/services/websocket';
import dayjs from 'dayjs';
import timezone from 'dayjs/plugin/timezone';
@@ -299,7 +299,7 @@
parseClockOffset
} from './statusBarUtils';
import configRepository from '../service/config';
import configRepository from '../services/config';
dayjs.extend(utc);
dayjs.extend(timezone);

View File

@@ -13,7 +13,7 @@ vi.mock('../../views/Feed/Feed.vue', () => ({
vi.mock('../../views/Feed/columns.jsx', () => ({
columns: []
}));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -34,10 +34,10 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../plugin/interopApi', () => ({
vi.mock('../../plugins/interopApi', () => ({
initInteropApi: vi.fn()
}));
vi.mock('../../service/database', () => ({
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -48,7 +48,7 @@ vi.mock('../../service/database', () => ({
}
)
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi
@@ -74,10 +74,10 @@ vi.mock('../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../service/jsonStorage', () => ({
vi.mock('../../services/jsonStorage', () => ({
default: vi.fn()
}));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));

View File

@@ -16,7 +16,7 @@ vi.mock('../../views/Feed/Feed.vue', () => ({
vi.mock('../../views/Feed/columns.jsx', () => ({
columns: []
}));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -39,11 +39,11 @@ vi.mock('vue-router', async (importOriginal) => {
};
});
vi.mock('../../plugin/interopApi', () => ({
vi.mock('../../plugins/interopApi', () => ({
initInteropApi: vi.fn()
}));
vi.mock('../../service/database', () => ({
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -55,7 +55,7 @@ vi.mock('../../service/database', () => ({
)
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi
@@ -81,10 +81,10 @@ vi.mock('../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../service/jsonStorage', () => ({
vi.mock('../../services/jsonStorage', () => ({
default: vi.fn()
}));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));

View File

@@ -12,7 +12,7 @@ vi.mock('../../views/Feed/Feed.vue', () => ({
default: { template: '<div />' }
}));
vi.mock('../../views/Feed/columns.jsx', () => ({ columns: [] }));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -33,8 +33,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../service/database', () => ({
vi.mock('../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -45,7 +45,7 @@ vi.mock('../../service/database', () => ({
}
)
}));
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -63,8 +63,8 @@ vi.mock('../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));

View File

@@ -9,7 +9,7 @@ import en from '../../localization/en.json';
// --- Mocks ---
vi.mock('../../service/config', () => ({
vi.mock('../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi
@@ -36,14 +36,14 @@ vi.mock('../../service/config', () => ({
}
}));
vi.mock('../../service/websocket', () => ({
vi.mock('../../services/websocket', () => ({
wsState: { connected: false, messageCount: 0, bytesReceived: 0 },
initWebsocket: vi.fn(),
closeWebSocket: vi.fn(),
reconnectWebSocket: vi.fn()
}));
vi.mock('../../service/webapi', () => ({
vi.mock('../../services/webapi', () => ({
default: {
execute: vi.fn().mockResolvedValue({
status: 200,
@@ -62,13 +62,13 @@ vi.mock('worker-timers', () => ({
clearTimeout: vi.fn()
}));
vi.mock('../../service/jsonStorage', () => ({
vi.mock('../../services/jsonStorage', () => ({
default: vi.fn()
}));
vi.mock('../../service/watchState', () => ({
vi.mock('../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../service/database', () => ({
vi.mock('../../services/database', () => ({
database: new Proxy(
{},
{
@@ -79,7 +79,7 @@ vi.mock('../../service/database', () => ({
}
)
}));
vi.mock('../../plugin/router', () => ({
vi.mock('../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -100,7 +100,7 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../plugin/interopApi', () => ({
vi.mock('../../plugins/interopApi', () => ({
initInteropApi: vi.fn()
}));

View File

@@ -597,7 +597,7 @@
} from '../../ui/dropdown-menu';
import { Badge } from '../../ui/badge';
import { avatarRequest } from '../../../api';
import { database } from '../../../service/database';
import { database } from '../../../services/database';
import { formatJsonVars } from '../../../shared/utils/base/ui';
import { handleImageUploadInput } from '../../../shared/utils/imageUpload';
import { runDeleteVRChatCacheFlow as deleteVRChatCache } from '../../../coordinators/gameCoordinator';

View File

@@ -15,7 +15,7 @@ vi.mock('vue-i18n', () => ({
})
}));
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref } = require('vue');
return {
router: {
@@ -40,8 +40,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -52,7 +52,7 @@ vi.mock('../../../../service/database', () => ({
}
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -70,11 +70,11 @@ vi.mock('../../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../../../service/request', () => ({
vi.mock('../../../../services/request', () => ({
request: vi.fn().mockResolvedValue({ json: {} }),
processBulk: vi.fn(),
buildRequestInit: vi.fn(),

View File

@@ -19,7 +19,7 @@ vi.mock('vue-i18n', () => {
};
});
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref } = require('vue');
return {
router: {
@@ -44,8 +44,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -56,7 +56,7 @@ vi.mock('../../../../service/database', () => ({
}
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -74,11 +74,11 @@ vi.mock('../../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../../../service/request', () => ({
vi.mock('../../../../services/request', () => ({
request: vi.fn().mockResolvedValue({ json: {} }),
processBulk: vi.fn(),
buildRequestInit: vi.fn(),

View File

@@ -10,7 +10,7 @@ vi.mock('../../../../api', () => ({
},
userRequest: {}
}));
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref } = require('vue');
return {
router: {
@@ -35,8 +35,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -47,7 +47,7 @@ vi.mock('../../../../service/database', () => ({
}
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -65,11 +65,11 @@ vi.mock('../../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../../../service/request', () => ({
vi.mock('../../../../services/request', () => ({
request: vi.fn().mockResolvedValue({ json: {} }),
processBulk: vi.fn(),
buildRequestInit: vi.fn(),

View File

@@ -13,7 +13,7 @@ vi.mock('vue-i18n', () => ({
install: vi.fn()
})
}));
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref: vRef } = require('vue');
return {
router: {
@@ -38,8 +38,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -50,7 +50,7 @@ vi.mock('../../../../service/database', () => ({
}
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -68,11 +68,11 @@ vi.mock('../../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../../../service/request', () => ({
vi.mock('../../../../services/request', () => ({
request: vi.fn().mockResolvedValue({ json: {} }),
processBulk: vi.fn(),
buildRequestInit: vi.fn(),

View File

@@ -1,5 +1,5 @@
import { Checkbox } from '@/components/ui/checkbox';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { formatDateFilter } from '@/shared/utils';
import { Button } from '@/components/ui/button';
import { ArrowUpDown } from 'lucide-vue-next';

View File

@@ -1,5 +1,5 @@
import { Checkbox } from '@/components/ui/checkbox';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { ArrowUpDown } from 'lucide-vue-next';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,5 @@
import { Checkbox } from '@/components/ui/checkbox';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { ArrowUpDown } from 'lucide-vue-next';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,5 @@
import { Checkbox } from '@/components/ui/checkbox';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { ArrowUpDown } from 'lucide-vue-next';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,5 @@
import Location from '@/components/Location.vue';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { formatDateFilter } from '@/shared/utils';
import { ArrowUpDown } from 'lucide-vue-next';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,5 @@
import { Checkbox } from '@/components/ui/checkbox';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { formatDateFilter } from '@/shared/utils';
import { ArrowUpDown } from 'lucide-vue-next';
import { Button } from '@/components/ui/button';

View File

@@ -1,6 +1,6 @@
import CountdownTimer from '@/components/CountdownTimer.vue';
import { Button } from '@/components/ui/button';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { SquarePen } from 'lucide-vue-next';
const { t } = i18n.global;

View File

@@ -101,7 +101,7 @@
import { groupRequest, queryRequest } from '../../api';
import { VirtualCombobox } from '../ui/virtual-combobox';
import configRepository from '../../service/config';
import configRepository from '../../services/config';
const { vipFriends, onlineFriends, activeFriends, offlineFriends } = storeToRefs(useFriendStore());
const { currentUserGroups, inviteGroupDialog } = storeToRefs(useGroupStore());

View File

@@ -165,7 +165,7 @@
import { instanceRequest, queryRequest } from '../../api';
import InviteDialog from './InviteDialog/InviteDialog.vue';
import configRepository from '../../service/config';
import configRepository from '../../services/config';
const { t } = useI18n();

View File

@@ -585,7 +585,7 @@
import { VirtualCombobox } from '../ui/virtual-combobox';
import InviteDialog from './InviteDialog/InviteDialog.vue';
import configRepository from '../../service/config';
import configRepository from '../../services/config';
const props = defineProps({
newInstanceDialogLocationTag: {

View File

@@ -41,7 +41,7 @@
import { DataTableLayout } from '../../ui/data-table';
import { InputGroupField } from '../../../components/ui/input-group';
import { createColumns } from './previousInstancesInfoColumns.jsx';
import { database } from '../../../service/database';
import { database } from '../../../services/database';
import { useVrcxVueTable } from '../../../lib/table/useVrcxVueTable';
import { lookupUser } from '../../../coordinators/userCoordinator';

View File

@@ -56,7 +56,7 @@
} from '../../../shared/utils';
import { DataTableLayout } from '../../ui/data-table';
import { createPreviousInstancesColumns } from './previousInstancesColumns.jsx';
import { database } from '../../../service/database';
import { database } from '../../../services/database';
import { useVrcxVueTable } from '../../../lib/table/useVrcxVueTable';
const props = defineProps({

View File

@@ -4,7 +4,7 @@ import DisplayName from '../../DisplayName.vue';
import Location from '../../Location.vue';
import LocationWorld from '../../LocationWorld.vue';
import { Button } from '../../ui/button';
import { i18n } from '../../../plugin';
import { i18n } from '../../../plugins';
import { formatDateFilter } from '../../../shared/utils';
const { t } = i18n.global;

View File

@@ -1,7 +1,7 @@
import { ArrowUpDown } from 'lucide-vue-next';
import { Button } from '../../ui/button';
import { i18n } from '../../../plugin';
import { i18n } from '../../../plugins';
import { formatDateFilter } from '../../../shared/utils';
const { t } = i18n.global;

View File

@@ -67,8 +67,8 @@
compareByLastActiveRef,
userImage
} from '../../../shared/utils';
import { database } from '../../../service/database';
import { processBulk } from '../../../service/request';
import { database } from '../../../services/database';
import { processBulk } from '../../../services/request';
import { useOptionKeySelect } from '../../../composables/useOptionKeySelect';
import { useUserStore } from '../../../stores';
import { userDialogMutualFriendSortingOptions } from '../../../shared/constants';

View File

@@ -19,7 +19,7 @@ vi.mock('vue-i18n', () => {
};
});
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref } = require('vue');
return {
router: {
@@ -44,8 +44,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -56,7 +56,7 @@ vi.mock('../../../../service/database', () => ({
}
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -74,8 +74,8 @@ vi.mock('../../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));

View File

@@ -16,7 +16,7 @@ vi.mock('vue-i18n', () => ({
})
}));
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref } = require('vue');
return {
router: {
@@ -43,8 +43,8 @@ vi.mock('vue-router', async (importOriginal) => {
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -56,7 +56,7 @@ vi.mock('../../../../service/database', () => ({
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -75,11 +75,11 @@ vi.mock('../../../../service/config', () => ({
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../../../service/request', () => ({
vi.mock('../../../../services/request', () => ({
request: vi.fn().mockResolvedValue({ json: {} }),
processBulk: vi.fn(),
buildRequestInit: vi.fn(),

View File

@@ -15,7 +15,7 @@ vi.mock('vue-i18n', () => ({
})
}));
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref } = require('vue');
return {
router: {
@@ -40,8 +40,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -52,7 +52,7 @@ vi.mock('../../../../service/database', () => ({
}
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -70,11 +70,11 @@ vi.mock('../../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../../../service/request', () => ({
vi.mock('../../../../services/request', () => ({
request: vi.fn().mockResolvedValue({ json: {} }),
processBulk: vi.fn(),
buildRequestInit: vi.fn(),

View File

@@ -19,7 +19,7 @@ vi.mock('vue-i18n', () => {
};
});
vi.mock('../../../../plugin/router', () => {
vi.mock('../../../../plugins/router', () => {
const { ref } = require('vue');
return {
router: {
@@ -44,8 +44,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -56,7 +56,7 @@ vi.mock('../../../../service/database', () => ({
}
)
}));
vi.mock('../../../../service/config', () => ({
vi.mock('../../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -74,11 +74,11 @@ vi.mock('../../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../service/watchState', () => ({
vi.mock('../../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));
vi.mock('../../../../service/request', () => ({
vi.mock('../../../../services/request', () => ({
request: vi.fn().mockResolvedValue({ json: {} }),
processBulk: vi.fn(),
buildRequestInit: vi.fn(),

View File

@@ -33,7 +33,7 @@ vi.mock('../../../../shared/utils', () => ({
parseLocation: vi.fn(() => ({ worldId: 'wrld_test', tag: 'wrld_test~123' }))
}));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../services/database', () => ({
database: {
addFriendLogHistory: vi.fn()
}
@@ -48,7 +48,7 @@ const {
playerModerationRequest,
miscRequest
} = await import('../../../../api');
const { database } = await import('../../../../service/database');
const { database } = await import('../../../../services/database');
function createMockUserDialog() {
return ref({

View File

@@ -1,6 +1,6 @@
import CountdownTimer from '@/components/CountdownTimer.vue';
import { Button } from '@/components/ui/button';
import { i18n } from '@/plugin';
import { i18n } from '@/plugins';
import { SquarePen } from 'lucide-vue-next';
const { t } = i18n.global;

View File

@@ -9,7 +9,7 @@ import {
queryRequest
} from '../../../api';
import { copyToClipboard, parseLocation } from '../../../shared/utils';
import { database } from '../../../service/database';
import { database } from '../../../services/database';
/**
* Composable for UserDialog command dispatch.

View File

@@ -9,14 +9,14 @@ vi.mock('../../../../shared/utils', () => ({
timeToText: vi.fn((ms) => `${Math.floor(ms / 1000)}s`)
}));
vi.mock('../../../../service/database', () => ({
vi.mock('../../../../services/database', () => ({
database: {
setWorldMemo: vi.fn(),
deleteWorldMemo: vi.fn()
}
}));
const { database } = await import('../../../../service/database');
const { database } = await import('../../../../services/database');
const { compareUnityVersion } = await import('../../../../shared/utils');
/**

View File

@@ -5,7 +5,7 @@ import {
formatDateFilter,
timeToText
} from '../../../shared/utils';
import { database } from '../../../service/database';
import { database } from '../../../services/database';
/**
* Composable for WorldDialogInfoTab computed properties and actions.

View File

@@ -26,7 +26,7 @@ vi.mock('../../../views/Feed/Feed.vue', () => ({
default: { template: '<div />' }
}));
vi.mock('../../../views/Feed/columns.jsx', () => ({ columns: [] }));
vi.mock('../../../plugin/router', () => ({
vi.mock('../../../plugins/router', () => ({
router: {
beforeEach: vi.fn(),
push: vi.fn(),
@@ -47,8 +47,8 @@ vi.mock('vue-router', async (importOriginal) => {
}))
};
});
vi.mock('../../../plugin/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../service/database', () => ({
vi.mock('../../../plugins/interopApi', () => ({ initInteropApi: vi.fn() }));
vi.mock('../../../services/database', () => ({
database: new Proxy(
{},
{
@@ -59,7 +59,7 @@ vi.mock('../../../service/database', () => ({
}
)
}));
vi.mock('../../../service/config', () => ({
vi.mock('../../../services/config', () => ({
default: {
init: vi.fn(),
getString: vi.fn().mockImplementation((_k, d) => d ?? '{}'),
@@ -77,8 +77,8 @@ vi.mock('../../../service/config', () => ({
remove: vi.fn()
}
}));
vi.mock('../../../service/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../service/watchState', () => ({
vi.mock('../../../services/jsonStorage', () => ({ default: vi.fn() }));
vi.mock('../../../services/watchState', () => ({
watchState: { isLoggedIn: false }
}));