refactor(lib): fold utils/perf into lib/perf + utils/ui (DOM utilities) into lib/dom

This commit is contained in:
Psychotoxical
2026-06-30 20:36:23 +02:00
parent 6becd57798
commit 390fdfbcca
144 changed files with 183 additions and 183 deletions
@@ -17,8 +17,8 @@ import {
playListenSessionOpen,
} from '@/features/playback/store/playListenSession';
import { appendTimelineLeaveTrack } from '@/features/playback/store/timelineSessionHistory';
import { getPerfProbeFlags } from '@/utils/perf/perfFlags';
import { bumpPerfCounter } from '@/utils/perf/perfTelemetry';
import { getPerfProbeFlags } from '@/lib/perf/perfFlags';
import { bumpPerfCounter } from '@/lib/perf/perfTelemetry';
import {
getPlaybackCacheServerKey,
getPlaybackIndexKey,
@@ -29,7 +29,7 @@ import {
import { resolvePlaybackUrl } from '@/features/playback/utils/playback/resolvePlaybackUrl';
import { resolveReplayGainDb } from '@/features/playback/utils/audio/resolveReplayGainDb';
import { audioPlayHiResBlendArgs } from '@/lib/audio/hiResCrossfadeResample';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
import { useAuthStore } from '@/store/authStore';
import { getPlayGeneration, setIsAudioPaused } from '@/features/playback/store/engineState';
import {
+1 -1
View File
@@ -1,7 +1,7 @@
import { applyServerPlayQueue } from '@/features/playback/store/applyServerPlayQueue';
import { invoke } from '@tauri-apps/api/core';
import i18n from '@/lib/i18n';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
import { useAuthStore } from '@/store/authStore';
import {
bumpPlayGeneration,
@@ -15,7 +15,7 @@ const hoisted = vi.hoisted(() => {
};
});
vi.mock('@/utils/ui/toast', () => ({ showToast: hoisted.showToastMock }));
vi.mock('@/lib/dom/toast', () => ({ showToast: hoisted.showToastMock }));
vi.mock('@/features/playback/store/playerStore', () => ({
usePlayerStore: {
getState: hoisted.playerStateGet,
+1 -1
View File
@@ -1,4 +1,4 @@
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
import { usePlayerStore } from '@/features/playback/store/playerStore';
/**