Something went wrong. Try again.
a demonstration replicated social networking web app built with anproto wiredove.net
social ed25519 protocols
Something went wrong. Try again.
12345678910111213141516171819202122232425262728import { h } from 'h'import { apds } from 'apds'
export const importBlob = async () => { const textarea = h('textarea', {placeholder: 'Import a bog5 message or blob'})
const button = h('button', { onclick: async () => { if (textarea.value) { try { const blob = await apds.make(textarea.value) const msg = await apds.open(textarea.value) window.location.hash = await apds.hash(textarea.value) if (msg) { await apds.add(textarea.value) } } catch (err) { } } } }, ['Import'])
return h('div', {classList: 'message'}, [ textarea, button ])}