|
@@ -13,6 +13,16 @@ async function initialize() {
|
|
|
+ ' at ' + (new Date()).toISOString()
|
|
|
);
|
|
|
console.log("https://ipfs.io/ipfs/" + pin.cid.toString());
|
|
|
+ const pin_list_tag = document.createElement('ul');
|
|
|
+ for await(const { cid, type } of node.pin.ls()) {
|
|
|
+ const pin_item_tag = document.createElement('li');
|
|
|
+ const pin_link_tag = document.createElement('a');
|
|
|
+ pin_link_tag.href = "https://dweb.link/ipfs/" + cid.toString();
|
|
|
+ pin_link_tag.innerText = cid.toString();
|
|
|
+ pin_item_tag.appendChild(pin_link_tag);
|
|
|
+ pin_list_tag.appendChild(pin_item_tag);
|
|
|
+ }
|
|
|
+ document.body.appendChild(pin_list_tag);
|
|
|
}
|
|
|
|
|
|
initialize();
|