Commit Graph

7 Commits

Author SHA1 Message Date
Serkan Reis
916beb6d5e
Metadata modal update (#22)
* Add animation_url and youtube_url to metadata modal

* Reset asset and metadata list on upload method change

* Allow the user to add attributes even though the metadata file is missing them

* Add missing attribute check

Co-authored-by: findolor <anakisci@gmail.com>
2022-08-04 14:22:13 +03:00
Serkan Reis
37f9d56d49
Preview & upload support for audio & video files (#14)
* Accept audio & video files for upload

* Rename image related variables

* Implement getAssetType util

* Preview & upload support for video files

* Preview & upload support for audio files

* Preview update for audio files

* New look for audio previews on asset list

* Remove extra refs

Co-authored-by: findolor <anakisci@gmail.com>
2022-08-03 09:31:35 +03:00
Serkan Reis
f06aafcd86
Fix: imageURL not being updated on metadata modal after uploading assets & metadata (#12)
* Fix: imageURL not being updated on metadata modal after upload

* Update MetadataModal.tsx
2022-08-01 16:19:24 +03:00
Serkan Reis
6ae1e4d9ca
Preview assets on metadata modal (#11)
* Name and length check for assets & metadata

* Disable update_metadata button on metadata modal if no metadatafile is specified

* Enable asset preview on metadata modal

* fix: preview error due to missing assets
2022-08-01 12:51:54 +03:00
Serkan Reis
790f5b7c8d
Check matching names and length for assets and metadata (#10)
* Name and length check for assets & metadata

* Disable update_metadata button on metadata modal if no metadatafile is specified
2022-08-01 12:28:12 +03:00
Serkan Reis
d56b9f1b6a Fix: clicking inside the modal window closes the modal 2022-07-28 17:37:20 +03:00
Serkan Reis
7740841168
Upload assets and metadata (#4)
* Initial preview & upload logic

* Refactor image & metadata selection & preview logic

* Refactor image & metadata selection & preview logic - 2

* Establish metadata-modal connection

* Metadata attribute manipulation

* Successful metadata attribute removal & update

* Successful metadata attribute addition & update

* Update existing attributes success

* Display image uri among metadata following the upload

* Fix: buttons being displayed without an image overlay

* Separate upload logic & incorporate useRefs

* Clean up: removed unused imports and structures

* Add radio buttons for upload service selection

* Remove package-lock.json (duplicate .lock files)

* Refactor upload logic & metadata modal

* Utilize serviceType enum in upload logic

* Utilize serviceType enum in upload logic - 2

* Implement user input for NFT.Storage & Pinata API keys

* Update use an existing URI text

* Remove upload_old.tsx

* Fix: reset main metadata fields on metadata modal refresh

* Fix: reset main metadata fields on metadata modal refresh - 2

* Make linter happy

* Make linter happy - 2

* Move upload file under collections

* Post-review update - 1

* Source Pinata endpoint URL from environment variables

* Replace regular file arrays with states

Co-authored-by: findolor <anakisci@gmail.com>
2022-07-28 16:38:43 +03:00