mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
rename
This commit is contained in:
@@ -334,11 +334,11 @@
|
||||
import { Slider } from '../../components/ui/slider';
|
||||
import { TooltipWrapper } from '../../components/ui/tooltip';
|
||||
import { avatarRequest } from '../../api';
|
||||
import { database } from '../../service/database';
|
||||
import { database } from '../../services/database';
|
||||
import { getColumns } from './columns';
|
||||
import { getPlatformInfo } from '../../shared/utils/avatar';
|
||||
import { getTagColor } from '../../shared/constants';
|
||||
import { processBulk } from '../../service/request';
|
||||
import { processBulk } from '../../services/request';
|
||||
import { useAvatarCardGrid } from './composables/useAvatarCardGrid';
|
||||
import { useDataTableScrollHeight } from '../../composables/useDataTableScrollHeight';
|
||||
import { useVrcxVueTable } from '../../lib/table/useVrcxVueTable';
|
||||
@@ -346,7 +346,7 @@
|
||||
import ImageCropDialog from '../../components/dialogs/ImageCropDialog.vue';
|
||||
import ManageTagsDialog from './ManageTagsDialog.vue';
|
||||
import MyAvatarCard from './components/MyAvatarCard.vue';
|
||||
import configRepository from '../../service/config.js';
|
||||
import configRepository from '../../services/config.js';
|
||||
import { showAvatarDialog, selectAvatarWithoutConfirmation, applyAvatar } from '../../coordinators/avatarCoordinator';
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
getPlatformInfo,
|
||||
timeToText
|
||||
} from '../../shared/utils';
|
||||
import { i18n } from '../../plugin';
|
||||
import { i18n } from '../../plugins';
|
||||
|
||||
const { t } = i18n.global;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
|
||||
vi.mock('../../../../service/config.js', () => ({
|
||||
vi.mock('../../../../services/config.js', () => ({
|
||||
default: {
|
||||
getString: vi.fn().mockResolvedValue('0.6'),
|
||||
setString: vi.fn()
|
||||
@@ -247,7 +247,7 @@ describe('useAvatarCardGrid', () => {
|
||||
|
||||
describe('persistence', () => {
|
||||
it('calls configRepository.setString when scale changes', async () => {
|
||||
const config = (await import('../../../../service/config.js'))
|
||||
const config = (await import('../../../../services/config.js'))
|
||||
.default;
|
||||
const { cardScale } = createGrid();
|
||||
cardScale.value = 0.7;
|
||||
@@ -258,7 +258,7 @@ describe('useAvatarCardGrid', () => {
|
||||
});
|
||||
|
||||
it('calls configRepository.setString when spacing changes', async () => {
|
||||
const config = (await import('../../../../service/config.js'))
|
||||
const config = (await import('../../../../services/config.js'))
|
||||
.default;
|
||||
const { cardSpacing } = createGrid();
|
||||
cardSpacing.value = 0.8;
|
||||
@@ -269,7 +269,7 @@ describe('useAvatarCardGrid', () => {
|
||||
});
|
||||
|
||||
it('uses custom config keys', async () => {
|
||||
const config = (await import('../../../../service/config.js'))
|
||||
const config = (await import('../../../../services/config.js'))
|
||||
.default;
|
||||
const { cardScale } = createGrid({
|
||||
scaleConfigKey: 'CUSTOM_SCALE'
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
watch
|
||||
} from 'vue';
|
||||
|
||||
import configRepository from '../../../service/config.js';
|
||||
import configRepository from '../../../services/config.js';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user