From 336d8a93bafde4abf82dc62974462b668923eb7e Mon Sep 17 00:00:00 2001 From: Akhilesh Thite Date: Thu, 14 Nov 2024 16:03:44 -0800 Subject: [PATCH] Fix p2pad hyper drive key by renaming parameter in generateHyperdriveKey (#67) * add dscan link in explore page * fix: rename parameter in generateHyperdriveKey to ensure correct hyper drive key generation for p2pad * docs: remove duplicate extensions section and update the name * docs: add DP CLI to the explore page --------- Co-authored-by: Akhilesh Thite --- docs/examples/p2pad/dweb.js | 2 +- docs/tutorials/p2pad-code-editor.md | 2 +- explore.md | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/examples/p2pad/dweb.js b/docs/examples/p2pad/dweb.js index 105606a..a86dcfc 100644 --- a/docs/examples/p2pad/dweb.js +++ b/docs/examples/p2pad/dweb.js @@ -44,7 +44,7 @@ async function uploadFile(file) { // Construct the URL based on the protocol let url; if (protocol === 'hyper') { - const hyperdriveUrl = await generateHyperdriveKey('drag-and-drop'); + const hyperdriveUrl = await generateHyperdriveKey('p2pad'); url = `${hyperdriveUrl}`; } else { url = `ipfs://bafyaabakaieac/`; diff --git a/docs/tutorials/p2pad-code-editor.md b/docs/tutorials/p2pad-code-editor.md index c7e4284..3792f29 100644 --- a/docs/tutorials/p2pad-code-editor.md +++ b/docs/tutorials/p2pad-code-editor.md @@ -553,7 +553,7 @@ async function uploadFile(file) { // Construct the URL based on the protocol let url; if (protocol === 'hyper') { - const hyperdriveUrl = await generateHyperdriveKey('drag-and-drop'); + const hyperdriveUrl = await generateHyperdriveKey('p2pad'); url = `${hyperdriveUrl}`; } else { url = `ipfs://bafyaabakaieac/`; diff --git a/explore.md b/explore.md index 8a1703d..86c5b64 100644 --- a/explore.md +++ b/explore.md @@ -14,10 +14,11 @@ Feel free to [submit a pull request](https://github.com/AgregoreWeb/website/) on - [P2Pad Code Editor](/docs/examples/p2pad/) - [Distributed Press Social Reader](//reader.distributed.press/) - [LLM App Generator](/docs//examples/llm-appgen/) +- [Distributed Press CLI](https://github.com/hyphacoop/distributed-press-cli/) ### Extensions: -- [DScan: Decentralized QR code generator](https://chrome.google.com/webstore/detail/dscan-decentralized-qr-co/idpfgkgogjjgklefnkjdpghkifbjenap) +- [DScan: Own Your Identity, Own Your Data](https://chrome.google.com/webstore/detail/dscan-decentralized-qr-co/idpfgkgogjjgklefnkjdpghkifbjenap) ### Blogs / Homepages