Commit 2e24f63f3e975823d94bc8e83243dd998d9caa5f
preview confirm path
Dominic Tarr committed on 9/3/2019, 12:06:51 AMParent: 3b86de48d30d83f3f0fa77997f6ec0ff7532dc59
Files changed
index.js | changed |
index.js | |||
---|---|---|---|
@@ -1,12 +1,20 @@ | |||
1 | 1 … | #! /usr/bin/env node | |
2 … | + | ||
3 … | +//var log = console.log | ||
4 … | +//console.log = function () { | ||
5 … | +// var args = [].slice.call(arguments) | ||
6 … | +// console.error(new Error('log trace')) | ||
7 … | +// log.apply(null, args) | ||
8 … | +//} | ||
9 … | + | ||
2 | 10 … | var fs = require('fs') | |
3 | 11 … | var path = require('path') | |
4 | 12 … | var ref = require('ssb-ref') | |
5 | 13 … | var Stack = require('stack') | |
6 | 14 … | ||
7 | 15 … | //refactor to ditch these things | |
8 | -var nested = require('libnested') | ||
16 … | +hvar nested = require('libnested') | ||
9 | 17 … | var pull = require('pull-stream') | |
10 | 18 … | var URL = require('url') | |
11 | 19 … | var QS = require('qs') | |
12 | 20 … | var u = require('yap-util') | |
@@ -34,9 +42,11 @@ | |||
34 | 42 … | //core: render an avatar, select | |
35 | 43 … | .use('avatar', require('./apis/avatar')(sbot)) | |
36 | 44 … | .use('identitySelect', require('./apis/identity-select')(sbot)) | |
37 | 45 … | //called by preview (to clarify who you are mentioning) | |
46 … | + .list('preview-confirm') | ||
38 | 47 … | .use('mentions', require('./apis/mentions')(sbot)) | |
48 … | + .list('preview-confirm', 'mentions') | ||
39 | 49 … | .use('messageLayout', require('./message-layout')) | |
40 | 50 … | ||
41 | 51 … | // .use('messageLink', require('./apis/message-link')(sbot)) | |
42 | 52 … | // .use('channelLink', require('./apis/channel-link')(sbot)) | |
@@ -68,10 +78,8 @@ | |||
68 | 78 … | .group('gatherings', require('yap-gatherings')(sbot)) | |
69 | 79 … | .group('tags', require('yap-tags')(sbot)) | |
70 | 80 … | .setDefault('patch/public') | |
71 | 81 … | ||
72 | - console.log(coherence.dump()) | ||
73 | - | ||
74 | 82 … | var actions = { | |
75 | 83 … | //note: opts is post body | |
76 | 84 … | ||
77 | 85 … | //sets id in cookie |
Built with git-ssb-web