New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] NFT.storage continue... #159
Conversation
Your Render PR Server URL is https://teia-ui-pr-159.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-cbr41i4gqg4boe46nbj0. |
801abdb
to
15c5184
Compare
I was about to remove every instance of IPFS as we use various gateways. For now I just changed the SUBJKT icon (was DWEB -> IPFS.io), keeping the current gateway used by others, we can switch easily once we decide |
Also add NFTStorage as suggested by NRJF in #150.
As part of the discussion on #150, there are various IPFS options to consider. We should probably spend some time testing those when we have access. We might even consider some kind of failover solution for the client if the rate limit is reached for a particular gateway. |
I was not up to date with that issue! Awesome |
6393ea5
to
efdd92b
Compare
This was setting a .gravatar property to the parsed metadatafile. Does not make sense and is not used anywhere.
The optional second param for HashToURL and CIDToURL allows you to override the IPFS gateway to use.
- use const where it makes sense (easier to read) - fixed the getBalance function even if it should not be there... - added a fetchJSON util function.
Seems to fix #110, but still unexplained...
94ad636
to
fc103e2
Compare
Ah ok... The CI is not building to the stage URL since quite a few commits, related to this somehow even if we use npm everywhere |
Adding typescript as a dev dependency. This is a bug upstream in craco: dilanx/craco#435
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a few comments, nothing dramatic :)
@@ -1,14 +1,18 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of interest: why the changes here?
const buffer = Buffer.from(await file.arrayBuffer()) | ||
console.log(buffer) | ||
this.setState({ identicon: 'ipfs://' + (await ipfs.add(buffer)).path }) | ||
const picture_cid = await uploadFileToIPFSProxy({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure, but can't file
just be passed directly to uploadFileToIPFSProxy
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably!
This was a bit of the trouble in this PR, that's why I roughly typed it @typedef { {path: string?, blob: Blob} } FileHolder
, extracting it from the old code and it's usage mainly to make sense of the code. I would happily clean it further in a separate branch/PR later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, yeah, no need that we need to block merging this pr because of that.
@@ -125,6 +127,36 @@ export const ObjktDisplay = () => { | |||
}, []) | |||
|
|||
const Tab = TABS[tabIndex].component | |||
|
|||
const objkt_classes = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this needs to be put in useState
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't making the useEffect depend on nft alleviates that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done all besides this as I'm not sure ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, well, if it works, it works :)
as soon as you add something async to the effect, it will probably break though.
Thank youu, making the edits now! |
i manually tested the "Cannot edit profile" fix, it worked 👍 if there is nothing left otherwise, i can merge. |
Yep it solves a few important things like subfolders for generative and profile editing. Further edits can be made in another one ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work!
Fixing issues due to the IPFS switch and older unreported ones:
Clean the folders before upload? (macOS creates .DS_Store files and._.
prefixed files, windows has ThumbDB), might be "dangerous" to alter the archive