Manav Rathi 1 год назад
Родитель
Сommit
2a8417af1c

+ 1 - 1
web/apps/photos/src/components/PhotoViewer/FileInfo/index.tsx

@@ -17,7 +17,7 @@ import { t } from "i18next";
 import { AppContext } from "pages/_app";
 import { GalleryContext } from "pages/gallery";
 import { useContext, useEffect, useMemo, useState } from "react";
-import { getEXIFLocation } from "services/upload/exifService";
+import { getEXIFLocation } from "services/exif";
 import { EnteFile } from "types/file";
 import { PublicCollectionGalleryContext } from "utils/publicCollectionGallery";
 import {

+ 1 - 1
web/apps/photos/src/components/PhotoViewer/index.tsx

@@ -44,9 +44,9 @@ import isElectron from "is-electron";
 import { AppContext } from "pages/_app";
 import { GalleryContext } from "pages/gallery";
 import downloadManager, { LoadedLivePhotoSourceURL } from "services/download";
+import { getParsedExifData } from "services/exif";
 import { trashFiles } from "services/fileService";
 import { getFileType } from "services/typeDetectionService";
-import { getParsedExifData } from "services/upload/exifService";
 import { SetFilesDownloadProgressAttributesCreator } from "types/gallery";
 import { isClipboardItemPresent } from "utils/common";
 import { pauseVideo, playVideo } from "utils/photoFrame";

+ 0 - 0
web/apps/photos/src/services/upload/exifService.ts → web/apps/photos/src/services/exif.ts


+ 1 - 1
web/apps/photos/src/services/updateCreationTimeWithExif.ts

@@ -9,7 +9,7 @@ import {
     updateExistingFilePubMetadata,
 } from "utils/file";
 import downloadManager from "./download";
-import { getParsedExifData } from "./upload/exifService";
+import { getParsedExifData } from "./exif";
 
 const EXIF_TIME_TAGS = [
     "DateTimeOriginal",

+ 1 - 1
web/apps/photos/src/services/upload/metadata.ts

@@ -22,7 +22,7 @@ import {
     type LivePhotoAssets2,
     type UploadAsset2,
 } from "types/upload";
-import { getEXIFLocation, getEXIFTime, getParsedExifData } from "./exifService";
+import { getEXIFLocation, getEXIFTime, getParsedExifData } from "../exif";
 import {
     MAX_FILE_NAME_LENGTH_GOOGLE_EXPORT,
     getClippedMetadataJSONMapKeyForFile,

+ 1 - 1
web/apps/photos/src/utils/file/index.ts

@@ -11,6 +11,7 @@ import { t } from "i18next";
 import isElectron from "is-electron";
 import { moveToHiddenCollection } from "services/collectionService";
 import DownloadManager from "services/download";
+import { updateFileCreationDateInEXIF } from "services/exif";
 import {
     deleteFromTrash,
     trashFiles,
@@ -19,7 +20,6 @@ import {
 } from "services/fileService";
 import { heicToJPEG } from "services/heic-convert";
 import { getFileType } from "services/typeDetectionService";
-import { updateFileCreationDateInEXIF } from "services/upload/exifService";
 import {
     EncryptedEnteFile,
     EnteFile,