From b05c1c69908db9565c6f2bb408bdf176940bcaf8 Mon Sep 17 00:00:00 2001 From: AuroraHuang22 <75730405+AuroraHuang22@users.noreply.github.com> Date: Mon, 30 Oct 2023 17:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Support=20uploading=20multiple=20fi?= =?UTF-8?q?les=20(#400)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ Support uploading multiple files in Step1 * ✨ Support uploading multiple Arweave hash to ISCN in Step 2 * 🚸 Store arweave payment tx hashes in Map * 💄 Add Info button to display Exif info * 🎨 Support upload mutiple files to numbers * 🩹 Change exinfo default type to object * ✏️ Improve formatting & naming * ✏️ Reset data array * 🐛 Prevent duplicate Arweave uploads * 🎨 Increase ISCN gas fee * 🎨 Update ipfsHash and arweaveId types * 🎨 Update sentArweaveTransactionHashes types --- components/IscnRegisterForm.vue | 443 +++++++++++++++++++++----------- components/IscnUploadForm.vue | 379 ++++++++++++++------------- components/Previewer.vue | 9 +- constant/index.ts | 1 + locales/en.json | 4 +- pages/new/index.vue | 89 +++---- utils/cosmos/iscn/index.ts | 4 +- utils/cosmos/iscn/iscn.type.ts | 8 +- utils/cosmos/iscn/sign.ts | 58 ++++- 9 files changed, 590 insertions(+), 405 deletions(-) diff --git a/components/IscnRegisterForm.vue b/components/IscnRegisterForm.vue index 4c2f29f8..233d17f9 100644 --- a/components/IscnRegisterForm.vue +++ b/components/IscnRegisterForm.vue @@ -34,20 +34,82 @@ 'text-medium-gray', ]" > -
@@ -96,11 +146,11 @@ :label="$t('IscnRegisterForm.label.fingerprints')" class="mb-[12px]" > - - + +
@@ -149,8 +199,8 @@ 'overflow-y-scroll', 'scrollbar-hidden', ]" - :img-src="fileData" - :all-exif="exifInfo" + :img-src="displayImageSrc" + :all-exif="displayExifInfo" />
- - - -