Skip to content

armgit / ente

Public Imported from GitHub
0

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

Outline the plan

Manav Rathiaa111b2a245e
diff --git a/desktop/src/main/stores/upload-status.ts b/desktop/src/main/stores/upload-status.ts
index 25af7a49e2..e2d1880ce2 100644
--- a/desktop/src/main/stores/upload-status.ts
+++ b/desktop/src/main/stores/upload-status.ts
@@ -1,12 +1,31 @@
import Store, { Schema } from "electron-store";
export interface UploadStatusStore {
+ /**
+ * The name of the collection (when uploading to a singular collection) or
+ * the root collection (when uploading to separate * albums) to which we
+ * these uploads are meant to go to.
+ */
+ collectionName: string;
+ /**
+ * Paths of regular files that need to be uploaded.
+ */
filePaths: string[];
+ /**
+ * Paths of zip files that need to be uploaded.
+ */
zipPaths: string[];
- collectionName: string;
+ /**
+ * For each zip file, which of its entries (paths) within the zip file that
+ * need to be uploaded.
+ */
+ zipEntries: Record<string, string[]>;
}
const uploadStatusSchema: Schema<UploadStatusStore> = {
+ collectionName: {
+ type: "string",
+ },
filePaths: {
type: "array",
items: {
@@ -19,8 +38,8 @@ const uploadStatusSchema: Schema<UploadStatusStore> = {
type: "string",
},
},
- collectionName: {
- type: "string",
+ zipEntries: {
+ type: "object",
},
};