mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 10:13:48 +02:00
rename
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 }
|
||||
}));
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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');
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 }
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user