ucan-wg / ucan-community-web

UCAN community site
https://ucan.xyz/
Apache License 2.0
38 stars 11 forks source link

Upgrade ts-ucan version #14

Closed matheus23 closed 2 years ago

matheus23 commented 2 years ago

I've updated the code to use the new ts-ucans library.

I admit I've done it somewhat hacky - e.g. we're UCAN.validateing twice: In ucans.ts there's both decode and validate. Ideally you'd only need validate, and never decode, as anytime you're using decode you could've also just also validated, and that's what we're doing afterwards most of the time anyway.


Another thing I've tackled in this PR is #10. Now, I'm just grouping multiple attenuations into a single column. image

It still disappears when there's no attenuation, but I now actually think that's not an issue. I get that the idea is to explain what's there, not what could be there.

But yeah, I fixed that it shows the attenuation multiple times, if there are multiple :)