mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 01:27:17 +00:00
Move
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { ensureElectron } from "@/base/electron";
|
import { ensureElectron } from "@/base/electron";
|
||||||
import log from "@/base/log";
|
import log from "@/base/log";
|
||||||
|
import { writeStream } from "@/gallery/utils/native-stream";
|
||||||
import type { Collection } from "@/media/collection";
|
import type { Collection } from "@/media/collection";
|
||||||
import { mergeMetadata, type EnteFile } from "@/media/file";
|
import { mergeMetadata, type EnteFile } from "@/media/file";
|
||||||
import {
|
import {
|
||||||
@@ -20,7 +21,6 @@ import {
|
|||||||
} from "@/new/photos/services/export";
|
} from "@/new/photos/services/export";
|
||||||
import { getAllLocalFiles } from "@/new/photos/services/files";
|
import { getAllLocalFiles } from "@/new/photos/services/files";
|
||||||
import { safeDirectoryName, safeFileName } from "@/new/photos/utils/native-fs";
|
import { safeDirectoryName, safeFileName } from "@/new/photos/utils/native-fs";
|
||||||
import { writeStream } from "@/new/photos/utils/native-stream";
|
|
||||||
import { CustomError } from "@ente/shared/error";
|
import { CustomError } from "@ente/shared/error";
|
||||||
import { LS_KEYS, getData, setData } from "@ente/shared/storage/localStorage";
|
import { LS_KEYS, getData, setData } from "@ente/shared/storage/localStorage";
|
||||||
import QueueProcessor, {
|
import QueueProcessor, {
|
||||||
|
@@ -5,8 +5,8 @@ import { ensureElectron } from "@/base/electron";
|
|||||||
import { nameAndExtension } from "@/base/file-name";
|
import { nameAndExtension } from "@/base/file-name";
|
||||||
import log from "@/base/log";
|
import log from "@/base/log";
|
||||||
import { type Location } from "@/base/types";
|
import { type Location } from "@/base/types";
|
||||||
|
import { readStream } from "@/gallery/utils/native-stream";
|
||||||
import type { UploadItem } from "@/new/photos/services/upload/types";
|
import type { UploadItem } from "@/new/photos/services/upload/types";
|
||||||
import { readStream } from "@/new/photos/utils/native-stream";
|
|
||||||
import { maybeParseInt } from "@/utils/parse";
|
import { maybeParseInt } from "@/utils/parse";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -6,6 +6,7 @@ import { basename, nameAndExtension } from "@/base/file-name";
|
|||||||
import log from "@/base/log";
|
import log from "@/base/log";
|
||||||
import { CustomErrorMessage } from "@/base/types/ipc";
|
import { CustomErrorMessage } from "@/base/types/ipc";
|
||||||
import { detectFileTypeInfoFromChunk } from "@/gallery/utils/detect-type";
|
import { detectFileTypeInfoFromChunk } from "@/gallery/utils/detect-type";
|
||||||
|
import { readStream } from "@/gallery/utils/native-stream";
|
||||||
import {
|
import {
|
||||||
EncryptedMagicMetadata,
|
EncryptedMagicMetadata,
|
||||||
EnteFile,
|
EnteFile,
|
||||||
@@ -34,7 +35,6 @@ import {
|
|||||||
RANDOM_PERCENTAGE_PROGRESS_FOR_PUT,
|
RANDOM_PERCENTAGE_PROGRESS_FOR_PUT,
|
||||||
UPLOAD_RESULT,
|
UPLOAD_RESULT,
|
||||||
} from "@/new/photos/services/upload/types";
|
} from "@/new/photos/services/upload/types";
|
||||||
import { readStream } from "@/new/photos/utils/native-stream";
|
|
||||||
import { mergeUint8Arrays } from "@/utils/array";
|
import { mergeUint8Arrays } from "@/utils/array";
|
||||||
import { ensureInteger, ensureNumber } from "@/utils/ensure";
|
import { ensureInteger, ensureNumber } from "@/utils/ensure";
|
||||||
import { CustomError, handleUploadError } from "@ente/shared/error";
|
import { CustomError, handleUploadError } from "@ente/shared/error";
|
||||||
|
@@ -3,6 +3,7 @@ import log from "@/base/log";
|
|||||||
import { type Electron } from "@/base/types/ipc";
|
import { type Electron } from "@/base/types/ipc";
|
||||||
import { downloadAndRevokeObjectURL } from "@/base/utils/web";
|
import { downloadAndRevokeObjectURL } from "@/base/utils/web";
|
||||||
import { detectFileTypeInfo } from "@/gallery/utils/detect-type";
|
import { detectFileTypeInfo } from "@/gallery/utils/detect-type";
|
||||||
|
import { writeStream } from "@/gallery/utils/native-stream";
|
||||||
import {
|
import {
|
||||||
EncryptedEnteFile,
|
EncryptedEnteFile,
|
||||||
EnteFile,
|
EnteFile,
|
||||||
@@ -22,7 +23,6 @@ import {
|
|||||||
updateMagicMetadata,
|
updateMagicMetadata,
|
||||||
} from "@/new/photos/services/magic-metadata";
|
} from "@/new/photos/services/magic-metadata";
|
||||||
import { safeFileName } from "@/new/photos/utils/native-fs";
|
import { safeFileName } from "@/new/photos/utils/native-fs";
|
||||||
import { writeStream } from "@/new/photos/utils/native-stream";
|
|
||||||
import { withTimeout } from "@/utils/promise";
|
import { withTimeout } from "@/utils/promise";
|
||||||
import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";
|
import { LS_KEYS, getData } from "@ente/shared/storage/localStorage";
|
||||||
import type { User } from "@ente/shared/user/types";
|
import type { User } from "@ente/shared/user/types";
|
||||||
|
@@ -2,9 +2,9 @@ import { isDesktop } from "@/base/app";
|
|||||||
import log from "@/base/log";
|
import log from "@/base/log";
|
||||||
import { CustomErrorMessage } from "@/base/types/ipc";
|
import { CustomErrorMessage } from "@/base/types/ipc";
|
||||||
import { workerBridge } from "@/base/worker/worker-bridge";
|
import { workerBridge } from "@/base/worker/worker-bridge";
|
||||||
import { detectFileTypeInfo } from "@/gallery/utils/detect-type";
|
|
||||||
import { isHEICExtension, needsJPEGConversion } from "@/media/formats";
|
import { isHEICExtension, needsJPEGConversion } from "@/media/formats";
|
||||||
import { heicToJPEG } from "@/media/heic-convert";
|
import { heicToJPEG } from "@/media/heic-convert";
|
||||||
|
import { detectFileTypeInfo } from "./detect-type";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This will be set to false if we get an error from the Node.js side of our
|
* This will be set to false if we get an error from the Node.js side of our
|
@@ -16,7 +16,7 @@ import type { EnteFile, LivePhotoSourceURL, SourceURLs } from "@/media/file";
|
|||||||
import { FileType } from "@/media/file-type";
|
import { FileType } from "@/media/file-type";
|
||||||
import { decodeLivePhoto } from "@/media/live-photo";
|
import { decodeLivePhoto } from "@/media/live-photo";
|
||||||
import { convertToMP4 } from "./ffmpeg";
|
import { convertToMP4 } from "./ffmpeg";
|
||||||
import { renderableImageBlob } from "@/new/photos/utils/file";
|
import { renderableImageBlob } from "@/gallery/utils/convert";
|
||||||
import { CustomError } from "@ente/shared/error";
|
import { CustomError } from "@ente/shared/error";
|
||||||
import HTTPService from "@ente/shared/network/HTTPService";
|
import HTTPService from "@ente/shared/network/HTTPService";
|
||||||
|
|
||||||
|
@@ -2,17 +2,17 @@ import { ensureElectron } from "@/base/electron";
|
|||||||
import log from "@/base/log";
|
import log from "@/base/log";
|
||||||
import type { Electron } from "@/base/types/ipc";
|
import type { Electron } from "@/base/types/ipc";
|
||||||
import { ComlinkWorker } from "@/base/worker/comlink-worker";
|
import { ComlinkWorker } from "@/base/worker/comlink-worker";
|
||||||
|
import {
|
||||||
|
readConvertToMP4Done,
|
||||||
|
readConvertToMP4Stream,
|
||||||
|
writeConvertToMP4Stream,
|
||||||
|
} from "@/gallery/utils/native-stream";
|
||||||
import { parseMetadataDate, type ParsedMetadata } from "@/media/file-metadata";
|
import { parseMetadataDate, type ParsedMetadata } from "@/media/file-metadata";
|
||||||
import {
|
import {
|
||||||
toDataOrPathOrZipEntry,
|
toDataOrPathOrZipEntry,
|
||||||
type DesktopUploadItem,
|
type DesktopUploadItem,
|
||||||
type UploadItem,
|
type UploadItem,
|
||||||
} from "@/new/photos/services/upload/types";
|
} from "@/new/photos/services/upload/types";
|
||||||
import {
|
|
||||||
readConvertToMP4Done,
|
|
||||||
readConvertToMP4Stream,
|
|
||||||
writeConvertToMP4Stream,
|
|
||||||
} from "@/new/photos/utils/native-stream";
|
|
||||||
import type { Remote } from "comlink";
|
import type { Remote } from "comlink";
|
||||||
import {
|
import {
|
||||||
ffmpegPathPlaceholder,
|
ffmpegPathPlaceholder,
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import { basename } from "@/base/file-name";
|
import { basename } from "@/base/file-name";
|
||||||
import type { ElectronMLWorker } from "@/base/types/ipc";
|
import type { ElectronMLWorker } from "@/base/types/ipc";
|
||||||
|
import { renderableImageBlob } from "@/gallery/utils/convert";
|
||||||
|
import { readStream } from "@/gallery/utils/native-stream";
|
||||||
import type { EnteFile } from "@/media/file";
|
import type { EnteFile } from "@/media/file";
|
||||||
import { FileType } from "@/media/file-type";
|
import { FileType } from "@/media/file-type";
|
||||||
import { decodeLivePhoto } from "@/media/live-photo";
|
import { decodeLivePhoto } from "@/media/live-photo";
|
||||||
import { renderableImageBlob } from "../../utils/file";
|
|
||||||
import { readStream } from "../../utils/native-stream";
|
|
||||||
import DownloadManager from "../download";
|
import DownloadManager from "../download";
|
||||||
import type { UploadItem } from "../upload/types";
|
import type { UploadItem } from "../upload/types";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user