mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
fix
This commit is contained in:
@@ -842,7 +842,7 @@
|
|||||||
} from '../../../shared/utils/imageUpload';
|
} from '../../../shared/utils/imageUpload';
|
||||||
import { favoriteRequest, miscRequest, userRequest, worldRequest } from '../../../api';
|
import { favoriteRequest, miscRequest, userRequest, worldRequest } from '../../../api';
|
||||||
import { Badge } from '../../ui/badge';
|
import { Badge } from '../../ui/badge';
|
||||||
import { database } from '../../../service/database.js';
|
import { database } from '../../../service/database';
|
||||||
import { formatJsonVars } from '../../../shared/utils/base/ui';
|
import { formatJsonVars } from '../../../shared/utils/base/ui';
|
||||||
|
|
||||||
import ImageCropDialog from '../ImageCropDialog.vue';
|
import ImageCropDialog from '../ImageCropDialog.vue';
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
import { avatarFavorites } from './database/avatarFavorites.js';
|
import { avatarFavorites } from './avatarFavorites.js';
|
||||||
import { avatarTags } from './database/avatarTags.js';
|
import { avatarTags } from './avatarTags.js';
|
||||||
import { feed } from './database/feed.js';
|
import { feed } from './feed.js';
|
||||||
import { friendFavorites } from './database/friendFavorites.js';
|
import { friendFavorites } from './friendFavorites.js';
|
||||||
import { friendLogCurrent } from './database/friendLogCurrent.js';
|
import { friendLogCurrent } from './friendLogCurrent.js';
|
||||||
import { friendLogHistory } from './database/friendLogHistory.js';
|
import { friendLogHistory } from './friendLogHistory.js';
|
||||||
import { gameLog } from './database/gameLog.js';
|
import { gameLog } from './gameLog.js';
|
||||||
import { memos } from './database/memos.js';
|
import { memos } from './memos.js';
|
||||||
import { moderation } from './database/moderation.js';
|
import { moderation } from './moderation.js';
|
||||||
import { mutualGraph } from './database/mutualGraph.js';
|
import { mutualGraph } from './mutualGraph.js';
|
||||||
import { notifications } from './database/notifications.js';
|
import { notifications } from './notifications.js';
|
||||||
import { tableAlter } from './database/tableAlter.js';
|
import { tableAlter } from './tableAlter.js';
|
||||||
import { tableFixes } from './database/tableFixes.js';
|
import { tableFixes } from './tableFixes.js';
|
||||||
import { tableSize } from './database/tableSize.js';
|
import { tableSize } from './tableSize.js';
|
||||||
import { worldFavorites } from './database/worldFavorites.js';
|
import { worldFavorites } from './worldFavorites.js';
|
||||||
|
|
||||||
import sqliteService from './sqlite.js';
|
import sqliteService from '../sqlite.js';
|
||||||
|
|
||||||
const dbVars = {
|
const dbVars = {
|
||||||
userId: '',
|
userId: '',
|
||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
GROUP_EXACT_TYPES,
|
GROUP_EXACT_TYPES,
|
||||||
getNotificationCategory,
|
getNotificationCategory,
|
||||||
getNotificationTs
|
getNotificationTs
|
||||||
} from '../notificationCategory';
|
} from '../utils/notificationCategory';
|
||||||
|
|
||||||
describe('getNotificationCategory', () => {
|
describe('getNotificationCategory', () => {
|
||||||
test('returns "other" for falsy type', () => {
|
test('returns "other" for falsy type', () => {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {
|
|||||||
getNotificationMessage,
|
getNotificationMessage,
|
||||||
getUserIdFromNoty,
|
getUserIdFromNoty,
|
||||||
toNotificationText
|
toNotificationText
|
||||||
} from '../notificationMessage';
|
} from '../utils/notificationMessage';
|
||||||
|
|
||||||
// Mock displayLocation to return a predictable string
|
// Mock displayLocation to return a predictable string
|
||||||
vi.mock('../utils', () => ({
|
vi.mock('../utils', () => ({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { resolveRef } from '../resolveRef';
|
import { resolveRef } from '../utils/resolveRef';
|
||||||
|
|
||||||
describe('resolveRef', () => {
|
describe('resolveRef', () => {
|
||||||
const emptyDefault = { id: '', name: '' };
|
const emptyDefault = { id: '', name: '' };
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useFriendStore, useUserStore } from '../../stores';
|
import { useFriendStore, useUserStore } from '../../stores';
|
||||||
import { database } from '../../service/database.js';
|
import { database } from '../../service/database';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { displayLocation } from './utils';
|
import { displayLocation } from './locationParser';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extracts the notification title and body from a notification object.
|
* Extracts the notification title and body from a notification object.
|
||||||
@@ -37,7 +37,7 @@ import { userRequest } from '../../api';
|
|||||||
import { watchState } from '../../service/watchState';
|
import { watchState } from '../../service/watchState';
|
||||||
|
|
||||||
import configRepository from '../../service/config';
|
import configRepository from '../../service/config';
|
||||||
import gameLogService from '../../service/gamelog.js';
|
import gameLogService from '../../service/gameLog.js';
|
||||||
|
|
||||||
import * as workerTimers from 'worker-timers';
|
import * as workerTimers from 'worker-timers';
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ import {
|
|||||||
hasGroupPermission,
|
hasGroupPermission,
|
||||||
replaceBioSymbols
|
replaceBioSymbols
|
||||||
} from '../shared/utils';
|
} from '../shared/utils';
|
||||||
import { database } from '../service/database.js';
|
import { database } from '../service/database';
|
||||||
import { groupDialogFilterOptions } from '../shared/constants/';
|
import { groupDialogFilterOptions } from '../shared/constants/';
|
||||||
import { useGameStore } from './game';
|
import { useGameStore } from './game';
|
||||||
import { useInstanceStore } from './instance';
|
import { useInstanceStore } from './instance';
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ import {
|
|||||||
instanceContentSettings
|
instanceContentSettings
|
||||||
} from '../shared/constants';
|
} from '../shared/constants';
|
||||||
import { database } from '../service/database';
|
import { database } from '../service/database';
|
||||||
import { resolveRef } from '../shared/resolveRef';
|
import { resolveRef } from '../shared/utils/resolveRef';
|
||||||
import { useAppearanceSettingsStore } from './settings/appearance';
|
import { useAppearanceSettingsStore } from './settings/appearance';
|
||||||
import { useFriendStore } from './friend';
|
import { useFriendStore } from './friend';
|
||||||
import { useGroupStore } from './group';
|
import { useGroupStore } from './group';
|
||||||
|
|||||||
@@ -27,12 +27,12 @@ import {
|
|||||||
getNotificationMessage,
|
getNotificationMessage,
|
||||||
getUserIdFromNoty as getUserIdFromNotyBase,
|
getUserIdFromNoty as getUserIdFromNotyBase,
|
||||||
toNotificationText
|
toNotificationText
|
||||||
} from '../../shared/notificationMessage';
|
} from '../../shared/utils/notificationMessage';
|
||||||
import { database, dbVars } from '../../service/database';
|
import { database, dbVars } from '../../service/database';
|
||||||
import {
|
import {
|
||||||
getNotificationCategory,
|
getNotificationCategory,
|
||||||
getNotificationTs
|
getNotificationTs
|
||||||
} from '../../shared/notificationCategory';
|
} from '../../shared/utils/notificationCategory';
|
||||||
import { AppDebug } from '../../service/appConfig';
|
import { AppDebug } from '../../service/appConfig';
|
||||||
import { createOverlayDispatch } from './overlayDispatch';
|
import { createOverlayDispatch } from './overlayDispatch';
|
||||||
import { useAdvancedSettingsStore } from '../settings/advanced';
|
import { useAdvancedSettingsStore } from '../settings/advanced';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { extractFileId, extractFileVersion } from '../../shared/utils';
|
|||||||
import {
|
import {
|
||||||
getNotificationMessage,
|
getNotificationMessage,
|
||||||
toNotificationText
|
toNotificationText
|
||||||
} from '../../shared/notificationMessage';
|
} from '../../shared/utils/notificationMessage';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the overlay dispatch functions for the Notification store.
|
* Creates the overlay dispatch functions for the Notification store.
|
||||||
|
|||||||
Reference in New Issue
Block a user