very simple testing harnesses for dnslink-* plugins

merge-requests/18/merge
Michał 'rysiek' Woźniak 2022-11-24 13:00:04 +00:00
rodzic 478b12b1df
commit 79b176c0b2
2 zmienionych plików z 37 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<script>
self.LibResilientPluginConstructors = self.LibResilientPluginConstructors || new Map()
self.log = console.log
</script>
<script src="./index.js"></script>
<script>
var theplugin = LibResilientPluginConstructors.get('dnslink-fetch')(self)
</script>
</head>
<body>
<h1>DNSLink/<code>fetch()</code></h1>
<p>This is a simple debugging harness for the <code>dnslink-fetch</code> plugin of LibResilient.</p>
<p>The plugin should now have been initialized in the <code>theplugin</code> global variable. Open your browser's JavaScript console to start playing with it.</p>
</body>
</html>

Wyświetl plik

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<script src="../../lib/ipfs.js"></script>
<script>
self.LibResilientPluginConstructors = self.LibResilientPluginConstructors || new Map()
self.log = console.log
</script>
<script src="./index.js"></script>
<script>
var theplugin = LibResilientPluginConstructors.get('dnslink-ipfs')(self)
</script>
</head>
<body>
<h1>DNSLink/IPFS</h1>
<p>This is a simple debugging harness for the <code>dnslink-ipfs</code> plugin of LibResilient.</p>
<p>The plugin should now have been initialized in the <code>theplugin</code> global variable. Open your browser's JavaScript console to start playing with it.</p>
</body>
</html>