From cdf18f08c62d46ae94e983e9d27ea2e8b9cb04dc Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Mon, 14 Jul 2025 16:44:43 -0600 Subject: [PATCH] dont require account for upload (temp) --- src/pages/migration/MigrationUpload.tsx | 267 +++++++++++------------- 1 file changed, 126 insertions(+), 141 deletions(-) diff --git a/src/pages/migration/MigrationUpload.tsx b/src/pages/migration/MigrationUpload.tsx index 5b8b86a3..b398c2a9 100644 --- a/src/pages/migration/MigrationUpload.tsx +++ b/src/pages/migration/MigrationUpload.tsx @@ -175,162 +175,147 @@ export function MigrationUploadPage() { - {user.account ? ( -
- - - {t("migration.upload.title")} - - - {t("migration.upload.description")} - +
+ + + {t("migration.upload.title")} + + + {t("migration.upload.description")} + - -
-
-

- {t("migration.upload.file.description")}: -

+ +
+
+

+ {t("migration.upload.file.description")}: +

+
+ + + + + {selectedFile && ( +
+ + {selectedFile.name} + {uploadedData?.exportDate && ( +
+ {t("migration.upload.exportedOn")}:{" "} + {new Date( + uploadedData?.exportDate || "", + ).toLocaleDateString()} +
+ )} +
- + )} - + {status === "processing" && ( +
+ + {t("migration.upload.status.processing")} +
+ )} - {selectedFile && ( -
- - {selectedFile.name} - {uploadedData?.exportDate && ( -
- {t("migration.upload.exportedOn")}:{" "} - {new Date( - uploadedData?.exportDate || "", - ).toLocaleDateString()} -
- )} + {status === "error" && ( +
+ + {t("migration.upload.status.error")} +
+ )} +
+ + + {uploadedData && ( + + + {t("migration.upload.dataPreview")} + + + +
+
+
+ + + {t("migration.upload.items.bookmarks")}
- )} - - {status === "processing" && ( -
- - {t("migration.upload.status.processing")} +
+ {uploadedData.bookmarks + ? Object.keys(uploadedData.bookmarks).length + : 0}
- )} +
- {status === "error" && ( -
- - {t("migration.upload.status.error")} +
+
+ + + {t("migration.upload.items.progress")} +
+
+ {uploadedData.progress + ? Object.keys(uploadedData.progress).length + : 0} +
+
+
+ +
+ {status === "success" ? ( +
+ + {t("migration.upload.status.success")} +
+ ) : ( + )}
+ )} - {uploadedData && ( - - - {t("migration.upload.dataPreview")} - - - -
-
-
- - - {t("migration.upload.items.bookmarks")} - -
-
- {uploadedData.bookmarks - ? Object.keys(uploadedData.bookmarks).length - : 0} -
-
- -
-
- - - {t("migration.upload.items.progress")} - -
-
- {uploadedData.progress - ? Object.keys(uploadedData.progress).length - : 0} -
-
-
- -
- {status === "success" ? ( -
- - {t("migration.upload.status.success")} -
- ) : ( - - )} -
-
- )} - -
- - - {status === "success" && ( - - )} -
-
- ) : ( -
- - {t("migration.loginRequired")} - - + + {status === "success" && ( + + )}
- )} +
);