From ba6a09a754aa180502f9b4ec00e98d5793bf9035 Mon Sep 17 00:00:00 2001
From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
Date: Mon, 24 Jul 2023 09:24:20 -0700
Subject: [PATCH 1/2] fix: url-encoded dag-PB names can be explored
fixes https://github.com/ipld/explore.ipld.io/issues/122
---
src/bundles/explore.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bundles/explore.js b/src/bundles/explore.js
index 34bd4b40..b8a41f3d 100644
--- a/src/bundles/explore.js
+++ b/src/bundles/explore.js
@@ -103,7 +103,7 @@ const makeBundle = () => {
}
// add the root cid to the start
pathParts.unshift(cid)
- const path = pathParts.join('/')
+ const path = pathParts.map((part) => encodeURIComponent(part)).join('/')
const hash = `#/explore/${path}`
store.doUpdateHash(hash)
}
From 6c594b860e958fca2649a5298889fadc9bd0b950 Mon Sep 17 00:00:00 2001
From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
Date: Mon, 24 Jul 2023 10:10:35 -0700
Subject: [PATCH 2/2] fix: get fleek preview for explorer-components
---
.gitignore | 1 +
index.html | 2 +-
src/lib/get-raw-block.ts | 1 -
vite.config.ts | 42 +++++++++++++++++++++-------------------
4 files changed, 24 insertions(+), 22 deletions(-)
diff --git a/.gitignore b/.gitignore
index 68c3352f..e68bfaab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
storybook-static
+dist-vite
diff --git a/index.html b/index.html
index ff872cac..4b117773 100644
--- a/index.html
+++ b/index.html
@@ -18,7 +18,7 @@
typescript & jsx than babel+typescript, which we're required to use to get our bundled assets working properly
for explore.ipld.io
-->
-
+