diff options
| author | Ev Bogue <ev@evbogue.com> | 2019-10-20 10:31:34 -0500 | 
|---|---|---|
| committer | Ev Bogue <ev@evbogue.com> | 2019-10-20 10:31:34 -0500 | 
| commit | 58169f4f06879f4e708fcd3ccb0ebfc8eaab9eae (patch) | |
| tree | 12eb021ea9f13b989e35417b51f7540f4f364283 | |
| parent | 1ee649a527f3211d3d16361e7d578287b63b57d3 (diff) | |
comment out newer additions that are not quite ready for primetime
| -rw-r--r-- | gossip.js | 2 | ||||
| -rw-r--r-- | render.js | 16 | ||||
| -rw-r--r-- | server.js | 4 | 
3 files changed, 11 insertions, 11 deletions
| @@ -260,7 +260,7 @@ function sync (subs, keys) {                }              }            }) -        }, index * 100000) +        }, index * 1000)        })      })    }) @@ -1,4 +1,4 @@ -function addButton (post, message, keys) { +/*function addButton (post, message, keys) {    function readFile () {      if (this.files && this.files[0]) { @@ -88,7 +88,7 @@ function addButton (post, message, keys) {      }, ['Publish'])    ]) -  var button = h('button', {/*classList: 'right',*/ +  var button = h('button', {classList: 'right',      onclick: function () {        message.appendChild(h('button', {classList: 'right',           onclick: function () { @@ -115,7 +115,7 @@ function addButton (post, message, keys) {    return button -} +}*/  function getHeader (post, keys, mini) { @@ -158,7 +158,7 @@ function render (msg, keys, preview) {    bog().then(log => {      if (log) {        log.reverse().forEach(function (nextPost) { -        if (nextPost.located == msg.key) { +        /*if (nextPost.located == msg.key) {            var locatedExists = document.getElementById('located:' + msg.key)            var located = h('div', {id: 'located:' + msg.key}, [h('strong', ['Location: ']), nextPost.loc])            if (locatedExists) { @@ -188,7 +188,7 @@ function render (msg, keys, preview) {              valuatedExists.parentNode.removeChild(valuatedExists)            }            message.appendChild(valuated) -        } +        }*/          if (nextPost.edited == msg.key) {            var messageExists = (document.getElementById(nextPost.key) !== null) @@ -294,12 +294,12 @@ function render (msg, keys, preview) {            }          }, ['Edit']))        } -      message.appendChild(addButton(msg, message, keys)) +      /*message.appendChild(addButton(msg, message, keys))*/      }    } else if (msg.type == 'name') {      message.appendChild(getHeader(msg, keys))      message.appendChild(h('span', ['identified ', h('a', {href: '#' + msg.named }, [msg.named.substring(0, 10) + '...']), ' as ' + msg.name])) -  } else if (msg.type == 'location') { +  } /*else if (msg.type == 'location') {      message.appendChild(getHeader(msg, keys))      message.appendChild(h('span', [h('a', {href: '#' + msg.located }, [msg.located.substring(0, 10) + '...']), ' is located: ' + msg.loc]))    } else if (msg.type == 'value') { @@ -312,7 +312,7 @@ function render (msg, keys, preview) {        var image = h('img', {src: nacl.util.encodeUTF8(openedImg)})        message.appendChild(image)      }) -  } +  }*/    messageDiv.appendChild(message)    return messageDiv @@ -41,7 +41,7 @@ bog.keys().then(key => {          bog.unbox(req.box, req.requester, key).then(unboxed => {            var unboxedreq = JSON.parse(nacl.util.encodeUTF8(unboxed))            //console.log(unboxedreq) -          if (unboxedreq.blobFile) { +          /*if (unboxedreq.blobFile) {              var openedimg = nacl.sign.open(nacl.util.decodeBase64(unboxedreq.blobFile), nacl.util.decodeBase64(unboxedreq.author.substring(1)))              if (openedimg) {                //console.log(openedimg) @@ -84,7 +84,7 @@ bog.keys().then(key => {                  })                }              }  -          } +          }*/            if (unboxedreq.seq === 0) {              console.log(req.requester + ' asked the full log of ' + unboxedreq.author)              fs.readFile(bogdir + unboxedreq.author, 'UTF-8', function (err, data) { | 
