a demonstration replicated social networking web app built with anproto wiredove.net/
social ed25519 protocols

always make Delete Everything button available

+13 -9
+13 -9
settings.js
··· 18 18 19 19 const div = h('div', {classList: 'message'}, [ 20 20 textarea, 21 - button 21 + button, 22 + deleteEverything 22 23 ]) 23 24 24 25 return div ··· 45 46 location.reload() 46 47 } 47 48 }, ['Delete key']), 48 - h('button', { 49 - onclick: async () => { 50 - await bogbot.clear() 51 - window.location.hash = '#' 52 - location.reload() 53 - } 54 - }, ['Delete everything']) 55 49 ]) 56 50 return span 57 51 } 58 52 53 + const deleteEverything = h('button', { 54 + onclick: async () => { 55 + await bogbot.clear() 56 + window.location.hash = '#' 57 + location.reload() 58 + } 59 + }, ['Delete everything']) 60 + 61 + 59 62 //const didweb = async () => { 60 63 // const input = h('input', {placeholder: 'https://yourwebsite.com/'}) 61 64 // const get = await bogbot.get('didweb') ··· 90 93 //await didweb(), 91 94 //h('hr'), 92 95 h('p', ['Import Keypair']), 93 - await editKey() 96 + await editKey(), 97 + deleteEverything 94 98 ]) 95 99 96 100 return div