Compare commits

...

2 Commits

Author SHA1 Message Date
Urban Guacamole 683aa0cb49 Update README 2 years ago
Urban Guacamole c5a35e441b Fix ipfs versoin 2 years ago

@ -1,13 +1,10 @@
# About
## What is this?
If you don't know what Torrent Paradise is, see the [website](https://torrent-paradise.ml/about.html).
If you don't know what Torrent Paradise/nextgen is, see the [website](https://cloudflare-ipfs.com/ipfs/QmQjsKamNFZRvCMXDvZXQmRYjsmSkmZG5pBCTY4LtMj8hs/about.html).
This is a repository of all the tools I use to build and run torrent-paradise.ml. The 'code name' of the project is nextgen (next gen torrent search), so don't be surprised if it comes up somewhere.
## Can you help me?
Maybe, open an issue. Be sure to demonstrate an effort that you tried to solve the problem yourself.
# Setup
Here's what the setup looks like rn:

@ -3,5 +3,5 @@ include head.html
.container.content.legible
h2 Decentralization with IPFS
p With IPFS (see the #[a(href="https://ipfs.io") official website]), a copy of the site and the whole index can be distributed just like a torrent. When you open it via IPFS, your IPFS node fetches the parts of the index and website it needs from the network.
p Address in IPFS is /ipns/torrent-paradise.ml. You can also use /ipns/12D3KooWB3GY1u6zMLqnf3MJ8zhX3SS1oBj7VXk3xp6sJJiFGZXp in case the domain doesn't work.
p Address in IPFS is /ipns/12D3KooWB3GY1u6zMLqnf3MJ8zhX3SS1oBj7VXk3xp6sJJiFGZXp in case the domain doesn't work.
p There are public IPFS #[a(href="https://cloudflare-ipfs.com/ipns/12D3KooWB3GY1u6zMLqnf3MJ8zhX3SS1oBj7VXk3xp6sJJiFGZXp") gateways] available.

@ -619,3 +619,20 @@ async function getDocumentForId(docid) {
doc["id"] = docid;
return inxFetcher.combinedIndex.get(docid);
}
function passResultToResultpage(results) {
let resultPageIframe = document.getElementById("resultPage");
resultPageIframe.contentWindow.postMessage({
type: "results",
results: JSON.stringify(results)
}, '*');
}
function passQueryToResultpage(query) {
let resultPageIframe = document.getElementById("resultPage");
resultPageIframe.contentWindow.postMessage({
type: "query",
query: query
}, '*');
}

@ -3,5 +3,5 @@ include head.html
.container.content.legible
h2 Decentralization with IPFS
p With IPFS (see the #[a(href="https://ipfs.io") official website]), a copy of the site and the whole index can be distributed just like a torrent. When you open it via IPFS, your IPFS node fetches the parts of the index and website it needs from the network.
p Address in IPFS is /ipns/torrent-paradise.ml. You can also use /ipns/12D3KooWB3GY1u6zMLqnf3MJ8zhX3SS1oBj7VXk3xp6sJJiFGZXp in case the domain doesn't work.
p Address in IPFS is /ipns/12D3KooWB3GY1u6zMLqnf3MJ8zhX3SS1oBj7VXk3xp6sJJiFGZXp in case the domain doesn't work.
p There are public IPFS #[a(href="https://cloudflare-ipfs.com/ipns/12D3KooWB3GY1u6zMLqnf3MJ8zhX3SS1oBj7VXk3xp6sJJiFGZXp") gateways] available.

Loading…
Cancel
Save