chore: Enforce import order via @ianvs/prettier-plugin-sort-imports (#2542)
This commit is contained in:
committed by
dermotduffy
parent
95f35bd326
commit
a96dc2e863
@@ -1,4 +1,5 @@
|
||||
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
||||
|
||||
import { Timer } from '../utils/timer';
|
||||
|
||||
export class CachedValueController<T> implements ReactiveController {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { LitElement, ReactiveController } from 'lit';
|
||||
import { throttle } from 'lodash-es';
|
||||
|
||||
import { GalleryExtendEvent } from '../../components/gallery/types';
|
||||
import { fireAdvancedCameraCardEvent } from '../../utils/fire-advanced-camera-card-event';
|
||||
import { scrollIntoView } from '../../utils/scroll';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { HassEntity } from 'home-assistant-js-websocket';
|
||||
|
||||
import frigateSVG from '../camera-manager/frigate/assets/frigate.svg';
|
||||
import motioneyeSVG from '../camera-manager/motioneye/assets/motioneye.svg';
|
||||
import reolinkSVG from '../camera-manager/reolink/assets/reolink.svg';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { LitElement, ReactiveController } from 'lit';
|
||||
import { isEqual } from 'lodash-es';
|
||||
|
||||
import { KeyboardShortcut } from '../config/schema/view';
|
||||
|
||||
export class KeyAssignerController implements ReactiveController {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
||||
|
||||
import { LazyUnloadCondition } from '../config/schema/common/media-actions';
|
||||
|
||||
type LazyLoadListener = (loaded: boolean) => void;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
||||
import { debounce } from 'lodash-es';
|
||||
|
||||
import { CameraDimensionsConfig } from '../config/schema/cameras';
|
||||
import { MediaLoadedInfoEventDetail } from '../types';
|
||||
import { aspectRatioToString, setOrRemoveStyleProperty } from '../utils/basic';
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
} from 'date-fns';
|
||||
import { LitElement } from 'lit';
|
||||
import { isEqual, orderBy } from 'lodash-es';
|
||||
|
||||
import { CameraManager, CameraQueryClassifier } from '../camera-manager/manager';
|
||||
import { DateRange, PartialDateRange } from '../camera-manager/range';
|
||||
import {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { isEqual, throttle } from 'lodash-es';
|
||||
import Masonry from 'masonry-layout';
|
||||
|
||||
import { ViewDisplayConfig } from '../config/schema/common/display';
|
||||
import {
|
||||
forceReflow,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
||||
|
||||
import { MediaLoadedInfo, MediaLoadedInfoEventDetail } from '../types';
|
||||
import { onAbort } from '../utils/abort-signal';
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
||||
import { isEqual, omit } from 'lodash-es';
|
||||
|
||||
import {
|
||||
MediaLoadedInfo,
|
||||
MediaLoadedInfoEventDetail,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { LitElement } from 'lit';
|
||||
|
||||
import { FullscreenElement, MediaPlayerController, PIPElement } from '../../types';
|
||||
import { screenshotImage } from '../../utils/screenshot';
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import JSMpeg from '@cycjimmy/jsmpeg-player';
|
||||
import { LitElement } from 'lit';
|
||||
|
||||
import { FullscreenElement, MediaPlayerController, PIPElement } from '../../types';
|
||||
|
||||
export class JSMPEGMediaPlayerController implements MediaPlayerController {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { LitElement } from 'lit';
|
||||
|
||||
import { FullscreenElement, MediaPlayerController, PIPElement } from '../../types';
|
||||
import { CachedValueController } from '../cached-value-controller';
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { LitElement } from 'lit';
|
||||
|
||||
import { FullscreenElement, MediaPlayerController, PIPElement } from '../../types';
|
||||
import { hideMediaControlsTemporarily, setControlsOnVideo } from '../../utils/controls';
|
||||
import { screenshotVideo } from '../../utils/screenshot';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { format } from 'date-fns';
|
||||
|
||||
import { CameraManager } from '../../camera-manager/manager';
|
||||
import { CameraManagerCameraMetadata } from '../../camera-manager/types';
|
||||
import { ViewItemManager } from '../../card-controller/view/item-manager';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { StyleInfo } from 'lit/directives/style-map';
|
||||
|
||||
import { CameraManager } from '../camera-manager/manager';
|
||||
import { CallManager } from '../card-controller/call/manager';
|
||||
import { FoldersManager } from '../card-controller/folders/manager';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { LitElement } from 'lit';
|
||||
import { isEqual, orderBy } from 'lodash-es';
|
||||
|
||||
import { dispatchActionExecutionRequest } from '../card-controller/actions/utils/execution-request.js';
|
||||
import type { LockManagerEpoch } from '../card-controller/lock/types';
|
||||
import type { SubmenuInteraction } from '../components/submenu/types.js';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { NonEmptyTuple } from 'type-fest';
|
||||
|
||||
import { FolderPathComponent, FolderQuery } from '../card-controller/folders/types';
|
||||
import { ViewManagerEpoch, ViewModifier } from '../card-controller/view/types';
|
||||
import { localize } from '../localize/localize';
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import type { Handler } from '@use-gesture/vanilla';
|
||||
import {
|
||||
createGesture,
|
||||
dragAction,
|
||||
pinchAction,
|
||||
wheelAction,
|
||||
type Handler,
|
||||
} from '@use-gesture/vanilla';
|
||||
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
||||
|
||||
import { dispatchActionExecutionRequest } from '../../card-controller/actions/utils/execution-request.js';
|
||||
import {
|
||||
PTZAction,
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
||||
import { isEqual } from 'lodash-es';
|
||||
|
||||
import { EnabledProxyConfig } from '../config/schema/common/proxy.js';
|
||||
import { homeAssistantGetSignedURLIfNecessary } from '../ha/sign-path.js';
|
||||
import { HomeAssistant } from '../ha/types.js';
|
||||
import {
|
||||
CreateProxiedEndpointOptions,
|
||||
createProxiedEndpointIfNecessary,
|
||||
CreateProxiedEndpointOptions,
|
||||
} from '../ha/web-proxy.js';
|
||||
import { Endpoint } from '../types.js';
|
||||
import { errorToConsole } from '../utils/basic.js';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { LitElement } from 'lit';
|
||||
import { isEqual, orderBy } from 'lodash-es';
|
||||
|
||||
import { dispatchActionExecutionRequest } from '../card-controller/actions/utils/execution-request';
|
||||
import { ActionsConfig, StatusBarItem } from '../config/schema/actions/types';
|
||||
import { STATUS_BAR_PRIORITY_DEFAULT } from '../config/schema/common/const';
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { format } from 'date-fns';
|
||||
|
||||
import { CameraManager } from '../../../camera-manager/manager';
|
||||
import { CameraManagerCameraMetadata } from '../../../camera-manager/types';
|
||||
import {
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
TimelineOptionsCluster,
|
||||
TimelineWindow,
|
||||
} from 'vis-timeline';
|
||||
|
||||
import { CameraManager } from '../../camera-manager/manager';
|
||||
import { rangesOverlap } from '../../camera-manager/range';
|
||||
import { convertRangeToCacheFriendlyTimes } from '../../camera-manager/utils/range-to-cache-friendly';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { add, sub } from 'date-fns';
|
||||
import { DataSet } from 'vis-data';
|
||||
import { IdType, TimelineItem, TimelineWindow } from 'vis-timeline/esnext';
|
||||
|
||||
import { CameraManager } from '../../camera-manager/manager';
|
||||
import {
|
||||
compressRanges,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { DateType, IdType, Timeline, TimelineWindow } from 'vis-timeline';
|
||||
|
||||
import { CameraManager } from '../../camera-manager/manager';
|
||||
import { ViewItemManager } from '../../card-controller/view/item-manager';
|
||||
import { ViewManagerEpoch } from '../../card-controller/view/types';
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
import Panzoom, { PanzoomEventDetail, PanzoomObject } from '@dermotduffy/panzoom';
|
||||
import { round, throttle } from 'lodash-es';
|
||||
|
||||
import { arefloatsApproximatelyEqual, isHoverableDevice } from '../../utils/basic';
|
||||
import { fireAdvancedCameraCardEvent } from '../../utils/fire-advanced-camera-card-event';
|
||||
import {
|
||||
isZoomEmpty,
|
||||
PartialZoomSettings,
|
||||
ZOOM_DEFAULT_PAN_X,
|
||||
ZOOM_DEFAULT_PAN_Y,
|
||||
ZOOM_DEFAULT_SCALE,
|
||||
ZOOM_PRECISION,
|
||||
ZoomSettingsObserved,
|
||||
isZoomEmpty,
|
||||
} from './types';
|
||||
|
||||
export class ZoomController {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { ViewContext } from 'view';
|
||||
|
||||
import { MergeContextViewModifier } from '../../card-controller/view/modifiers/merge-context.js';
|
||||
import { ViewManagerInterface } from '../../card-controller/view/types.js';
|
||||
import { PartialZoomSettings, ZoomSettingsObserved } from './types.js';
|
||||
|
||||
Reference in New Issue
Block a user