-
Notifications
You must be signed in to change notification settings - Fork 23
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
chore: update dependencies and ipld #287
Conversation
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
The accent color is already used for raw leaves in the d3 graph, this makes sure we remove confusion between git-raw and raw License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
29502c3
to
d72adbc
Compare
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
IPFS publishing is broken atm and does not seem to be very useful in this repo anyway – actual website is build at https://github.com/ipfs/explore.ipld.io License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This aims to match changes that happened in ipfs-webui over past year. License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
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.
Thank you @rafaelramalho19 for untangling this mess ❤️
LGTM, added small cosmetic fixes and chores:
- multihash-as-hex was broken due to type change in js-ipfs
- bumped i18next stack to match ipfs-webui
- bumped some deps related to cid decoding just in case
- fixed CI
This PR partially reverts #287 because `/api/v0/dag` in go-ipfs do not implement latest IPLD features yet, and ipfs-http-client delegates path traversal and resolution to go-ipfs, so codecs in JS are never used. By reverting to standalone js-ipld we decouple IPLD explorer from what is available in go-ipfs – we simply fetch raw block and do all decoding the old way, in JS. We will revisit this in the future, after IPLD Prime work lands in go-ipfs, but for now this is the only way to fix IPLD Explorer to work against go-ipfs backend. License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This PR partially reverts #287 because `/api/v0/dag` in go-ipfs do not implement latest IPLD features yet, and ipfs-http-client delegates path traversal and resolution to go-ipfs, so codecs in JS are never used. By reverting to standalone js-ipld we decouple IPLD explorer from what is available in go-ipfs – we simply fetch raw block and do all decoding the old way, in JS. We will revisit this in the future, after IPLD Prime work lands in go-ipfs, but for now this is the only way to fix IPLD Explorer to work against go-ipfs backend.
'git-raw': { shortName: 'GIT', name: 'Git', color: '#378085' }, | ||
'raw': { shortName: 'RAW', name: 'Raw Block', color: '#f14e32' }, // eslint-disable-line quote-props |
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.
the color for git-raw
gets swapped for raw
here. @lidel @rafaelramalho19
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.
This was intentional: we used the same accent for git and raw
blocks, and raw ones are way more important in CIDv1 world (used for leaves).
I want to add raw
and dag-cbor
examples (ipld/explore.ipld.io#62 (comment)), but had no bandwidth for that, so for now only ensured we remove confusion between git
and raw
@loadable/component
to match webui next releaseNotes