mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 17:53:48 +02:00
rename
This commit is contained in:
@@ -7,7 +7,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(),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
|
||||
|
||||
// Mock AppDebug
|
||||
vi.mock('../../../service/appConfig', () => ({
|
||||
vi.mock('../../../services/appConfig', () => ({
|
||||
AppDebug: { endpointDomain: 'https://api.vrchat.cloud/api/1' }
|
||||
}));
|
||||
|
||||
@@ -10,7 +10,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', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -5,7 +5,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', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@ vi.mock('vue-sonner', () => ({
|
||||
toast: { error: vi.fn() }
|
||||
}));
|
||||
|
||||
vi.mock('../../../service/request', () => ({
|
||||
vi.mock('../../../services/request', () => ({
|
||||
$throw: vi.fn()
|
||||
}));
|
||||
|
||||
vi.mock('../../../service/appConfig', () => ({
|
||||
vi.mock('../../../services/appConfig', () => ({
|
||||
AppDebug: { endpointDomain: 'https://api.vrchat.cloud/api/1' }
|
||||
}));
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ vi.mock('../../../views/Feed/Feed.vue', () => ({
|
||||
default: {}
|
||||
}));
|
||||
vi.mock('../../../views/Feed/columns.jsx', () => ({ columns: [] }));
|
||||
vi.mock('../../../plugin/router', () => ({
|
||||
vi.mock('../../../plugins/router', () => ({
|
||||
default: { push: vi.fn() }
|
||||
}));
|
||||
|
||||
|
||||
@@ -13,7 +13,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', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -5,7 +5,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', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ vi.mock('../../../views/Feed/Feed.vue', () => ({
|
||||
default: { name: 'Feed' }
|
||||
}));
|
||||
vi.mock('../../../views/Feed/columns.jsx', () => ({ columns: [] }));
|
||||
vi.mock('../../../plugin/router', () => ({
|
||||
vi.mock('../../../plugins/router', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -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', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -5,7 +5,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', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -10,7 +10,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', () => ({
|
||||
default: { push: vi.fn(), currentRoute: { value: {} } }
|
||||
}));
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { escapeTag } from './string';
|
||||
import { i18n } from '../../../plugin/i18n';
|
||||
import { i18n } from '../../../plugins/i18n';
|
||||
|
||||
const TIME_UNIT_KEYS = {
|
||||
y: 'common.time_units.y',
|
||||
|
||||
@@ -8,12 +8,12 @@ import {
|
||||
THEME_COLORS,
|
||||
THEME_CONFIG
|
||||
} from '../../constants';
|
||||
import { i18n } from '../../../plugin/i18n';
|
||||
import { router } from '../../../plugin/router';
|
||||
import { i18n } from '../../../plugins/i18n';
|
||||
import { router } from '../../../plugins/router';
|
||||
import { textToHex } from './string';
|
||||
import { useAppearanceSettingsStore } from '../../../stores';
|
||||
|
||||
import configRepository from '../../../service/config.js';
|
||||
import configRepository from '../../../services/config.js';
|
||||
|
||||
const THEME_COLOR_STORAGE_KEY = 'VRCX_themeColor';
|
||||
const THEME_COLOR_STYLE_ID = 'app-theme-color-style';
|
||||
|
||||
@@ -15,10 +15,10 @@ import {
|
||||
} from './fileUtils';
|
||||
import { escapeTag, replaceBioSymbols } from './base/string';
|
||||
import { getFaviconUrl, replaceVrcPackageUrl } from './urlUtils';
|
||||
import { AppDebug } from '../../service/appConfig.js';
|
||||
import { AppDebug } from '../../services/appConfig.js';
|
||||
import { compareUnityVersion } from './avatar';
|
||||
import { getAvailablePlatforms } from './platformUtils';
|
||||
import { i18n } from '../../plugin/i18n';
|
||||
import { i18n } from '../../plugins/i18n';
|
||||
import { queryRequest } from '../../api';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { localeIncludes } from './base/string';
|
||||
import removeConfusables, { removeWhitespace } from '../../service/confusables';
|
||||
import removeConfusables, { removeWhitespace } from '../../services/confusables';
|
||||
|
||||
/**
|
||||
* Tests whether a name matches a query using locale-aware comparison.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { toast } from 'vue-sonner';
|
||||
|
||||
import { $throw } from '../../service/request';
|
||||
import { AppDebug } from '../../service/appConfig.js';
|
||||
import { $throw } from '../../services/request';
|
||||
import { AppDebug } from '../../services/appConfig.js';
|
||||
import { extractFileId } from './index.js';
|
||||
import { imageRequest } from '../../api';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useFriendStore, useUserStore } from '../../stores';
|
||||
import { database } from '../../service/database';
|
||||
import { database } from '../../services/database';
|
||||
|
||||
/**
|
||||
* @returns {Promise<void>}
|
||||
|
||||
Reference in New Issue
Block a user