Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

lint-fix

Manav Rathi289d52c682e0
diff --git a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
index 9b5d59eacd..1ea50873c7 100644
--- a/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
+++ b/web/apps/photos/src/components/Search/SearchBar/searchInput/MenuWithPeople.tsx
@@ -5,8 +5,8 @@ import { t } from "i18next";
import { AppContext } from "pages/_app";
import { useContext } from "react";
import { components } from "react-select";
-import { IndexStatus } from "utils/storage/mlIDbStorage";
import { Suggestion, SuggestionType } from "types/search";
+import { IndexStatus } from "utils/storage/mlIDbStorage";
const { Menu } = components;
diff --git a/web/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx b/web/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx
index 3b995b8499..da462a3b5a 100644
--- a/web/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx
+++ b/web/apps/photos/src/components/Search/SearchBar/searchInput/index.tsx
@@ -10,6 +10,7 @@ import { components } from "react-select";
import AsyncSelect from "react-select/async";
import { InputActionMeta } from "react-select/src/types";
import { City } from "services/locationSearchService";
+import { Person } from "services/ml/types";
import {
getAutoCompleteSuggestions,
getDefaultOptions,
@@ -17,7 +18,6 @@ import {
import { Collection } from "types/collection";
import { LocationTagData } from "types/entity";
import { EnteFile } from "types/file";
-import { Person } from "services/ml/types";
import {
ClipSearchScores,
DateValue,
diff --git a/web/apps/photos/src/components/ml/PeopleList.tsx b/web/apps/photos/src/components/ml/PeopleList.tsx
index ea317fbec6..65a41b3552 100644
--- a/web/apps/photos/src/components/ml/PeopleList.tsx
+++ b/web/apps/photos/src/components/ml/PeopleList.tsx
@@ -3,8 +3,8 @@ import { Skeleton, styled } from "@mui/material";
import { Legend } from "components/PhotoViewer/styledComponents/Legend";
import { t } from "i18next";
import React, { useEffect, useState } from "react";
-import { EnteFile } from "types/file";
import { Face, Person } from "services/ml/types";
+import { EnteFile } from "types/file";
import { getPeopleList, getUnidentifiedFaces } from "utils/machineLearning";
const FaceChipContainer = styled("div")`
diff --git a/web/apps/photos/src/constants/mlConfig.ts b/web/apps/photos/src/constants/mlConfig.ts
index d8aaeb4104..0ee2009420 100644
--- a/web/apps/photos/src/constants/mlConfig.ts
+++ b/web/apps/photos/src/constants/mlConfig.ts
@@ -1,5 +1,5 @@
-import { JobConfig } from "types/common/job";
import { MLSearchConfig, MLSyncConfig } from "services/ml/types";
+import { JobConfig } from "types/common/job";
export const DEFAULT_ML_SYNC_JOB_CONFIG: JobConfig = {
intervalSec: 5,
diff --git a/web/apps/photos/src/services/ml/types.ts b/web/apps/photos/src/services/ml/types.ts
index 97eb9c0702..2ee42b36a3 100644
--- a/web/apps/photos/src/services/ml/types.ts
+++ b/web/apps/photos/src/services/ml/types.ts
@@ -1,7 +1,7 @@
import { DebugInfo } from "hdbscan";
import PQueue from "p-queue";
-import { EnteFile } from "types/file";
import { Dimensions } from "services/ml/geom";
+import { EnteFile } from "types/file";
import { Box, Point } from "./geom";
export interface MLSyncResult {
diff --git a/web/apps/photos/src/utils/machineLearning/faceAlign.ts b/web/apps/photos/src/utils/machineLearning/faceAlign.ts
index 435f43d2b9..3e6846ff80 100644
--- a/web/apps/photos/src/utils/machineLearning/faceAlign.ts
+++ b/web/apps/photos/src/utils/machineLearning/faceAlign.ts
@@ -1,7 +1,7 @@
import { Matrix } from "ml-matrix";
+import { Point } from "services/ml/geom";
import { FaceAlignment, FaceDetection } from "services/ml/types";
import { getSimilarityTransformation } from "similarity-transformation";
-import { Point } from "services/ml/geom";
const ARCFACE_LANDMARKS = [
[38.2946, 51.6963],
diff --git a/web/apps/photos/src/utils/machineLearning/faceCrop.ts b/web/apps/photos/src/utils/machineLearning/faceCrop.ts
index 211c08d65b..6a9a1efcd0 100644
--- a/web/apps/photos/src/utils/machineLearning/faceCrop.ts
+++ b/web/apps/photos/src/utils/machineLearning/faceCrop.ts
@@ -1,7 +1,7 @@
+import { Box } from "services/ml/geom";
import { FaceAlignment, FaceCrop, FaceCropConfig } from "services/ml/types";
import { cropWithRotation } from "utils/image";
import { enlargeBox } from ".";
-import { Box } from "services/ml/geom";
export function getFaceCrop(
imageBitmap: ImageBitmap,