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
@@ -4,7 +4,7 @@ import { Copy, Trash2 } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useOrbitStore } from '@/features/orbit/store/orbitStore';
import { usePlayerStore } from '@/features/playback/store/playerStore';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
import { computeOrbitDriftMs } from '@/features/orbit/utils/orbit';
import {
clearOrbitEvents,
@@ -11,7 +11,7 @@ import {
} from '@/features/orbit/utils/orbit';
import { switchActiveServer } from '@/utils/server/switchActiveServer';
import { useOrbitAccountPickerStore } from '@/features/orbit/store/orbitAccountPickerStore';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
interface Props {
onClose: () => void;
@@ -5,7 +5,7 @@ import { useTranslation } from 'react-i18next';
import { useOrbitStore } from '@/features/orbit/store/orbitStore';
import { updateOrbitSettings, triggerOrbitShuffleNow } from '@/features/orbit/utils/orbit';
import { ORBIT_DEFAULT_SETTINGS, ORBIT_SHUFFLE_INTERVAL_PRESETS_MIN, type OrbitShuffleIntervalMin } from '@/features/orbit/api/orbit';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
interface Props {
anchorRef: React.RefObject<HTMLElement | null>;
+1 -1
View File
@@ -14,7 +14,7 @@ import {
forgetPendingSuggestion,
resetPendingResendState,
} from '@/features/orbit/utils/orbit';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
import i18n from '@/lib/i18n';
import { estimateLivePosition, type OrbitState } from '@/features/orbit/api/orbit';
import { pushOrbitEvent } from '@/features/orbit/utils/orbitDiag';
+1 -1
View File
@@ -19,7 +19,7 @@ import {
type OrbitState,
type OrbitQueueItem,
} from '@/features/orbit/api/orbit';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
import i18n from '@/lib/i18n';
import { pushOrbitEvent } from '@/features/orbit/utils/orbitDiag';
import { useOrbitOutboxHeartbeat } from '@/features/orbit/hooks/useOrbitOutboxHeartbeat';
@@ -7,7 +7,7 @@ import {
evaluateOrbitSuggestGate,
OrbitSuggestBlockedError,
} from '@/features/orbit/utils/orbit';
import { showToast } from '@/utils/ui/toast';
import { showToast } from '@/lib/dom/toast';
/**
* Shared behaviour for song rows that in "normal mode" swallow a full list