refactor(imports): replace relative imports with path aliases (#2741)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-13 20:18:22 +02:00
1 parent a59b80ce11
commit 84dcf6b8a8
1834 files changed
+11601 -10725

No files matched your search

@@ -1,6 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {describe, expect, it} from 'vitest';
import {
ALL_CORNERS,
ALL_RESIZE_EDGES,
@@ -18,7 +17,8 @@ import {
type ResizeEdge,
reconcileToGeometry,
snapPointToCorner,
} from './FloatingPaneMath';
} from '@app/features/ui/floating_pane/FloatingPaneMath';
import {describe, expect, it} from 'vitest';
const BASE_GEOMETRY: FloatingPaneGeometry = {
viewport: {width: 1000, height: 600},
@@ -11,7 +11,7 @@ export type {
ResizeStart,
Size,
WidthRange,
} from './FloatingPaneMath';
} from '@app/features/ui/floating_pane/FloatingPaneMath';
export {
ALL_CORNERS,
ALL_RESIZE_EDGES,
@@ -26,8 +26,12 @@ export {
pickCornerForFling,
reconcileToGeometry,
snapPointToCorner,
} from './FloatingPaneMath';
export type {FloatingPaneResizeHandlesProps} from './FloatingPaneResizeHandles';
export {FloatingPaneResizeHandles} from './FloatingPaneResizeHandles';
export type {FloatingPanePointerHandlers, FloatingPaneResult, UseFloatingPaneOptions} from './useFloatingPane';
export {useFloatingPane} from './useFloatingPane';
} from '@app/features/ui/floating_pane/FloatingPaneMath';
export type {FloatingPaneResizeHandlesProps} from '@app/features/ui/floating_pane/FloatingPaneResizeHandles';
export {FloatingPaneResizeHandles} from '@app/features/ui/floating_pane/FloatingPaneResizeHandles';
export type {
FloatingPanePointerHandlers,
FloatingPaneResult,
UseFloatingPaneOptions,
} from '@app/features/ui/floating_pane/useFloatingPane';
export {useFloatingPane} from '@app/features/ui/floating_pane/useFloatingPane';
@@ -1,9 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {appZoomLayoutPx} from '@app/features/ui/utils/AppZoomUtils';
import {canUseWindowFocusedHoverControls} from '@app/features/ui/utils/WindowFocusInteractionGuard';
import type React from 'react';
import {useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState} from 'react';
import {
type Corner,
clampPoint,
@@ -17,7 +13,11 @@ import {
type ResizeEdge,
type ResizeStart,
reconcileToGeometry,
} from './FloatingPaneMath';
} from '@app/features/ui/floating_pane/FloatingPaneMath';
import {appZoomLayoutPx} from '@app/features/ui/utils/AppZoomUtils';
import {canUseWindowFocusedHoverControls} from '@app/features/ui/utils/WindowFocusInteractionGuard';
import type React from 'react';
import {useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState} from 'react';
const DRAG_ACTIVATION_DISTANCE_SQ = 9;