git ssb

2+

ev / mvd



Commit ca2a51b5710795fc000ddb897a6fc04659a776b3

use latest ssb-query, and generate an index by timestamp using the flumeview-query index plugin system

Ev Bogue committed on 10/10/2018, 7:58:11 PM
Parent: ba9d1ee13be51bb18e691b534340aacdafbec267

Files changed

bin.jschanged
package-lock.jsonchanged
package.jsonchanged
mvd-indexes.jsadded
bin.jsView
@@ -35,9 +35,10 @@
3535 .use(require('scuttlebot/plugins/replicate'))
3636 .use(require('ssb-friends'))
3737 .use(require('ssb-blobs'))
3838 .use(require('ssb-backlinks'))
39- .use(require('./query'))
39 + .use(require('ssb-query'))
40 + .use(require('./mvd-indexes'))
4041 .use(require('ssb-links'))
4142 .use(require('ssb-ebt'))
4243 .use(require('ssb-search'))
4344 .use(require('scuttlebot/plugins/invite'))
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 226286 bytes
New file size: 227598 bytes
package.jsonView
@@ -35,9 +35,9 @@
3535 "pull-reconnect": "0.0.3",
3636 "pull-stream": "^3.6.9",
3737 "pull-stringify": "^2.0.0",
3838 "rc": "^1.2.8",
39- "scuttlebot": "^12.2.0",
39 + "scuttlebot": "^12.2.3",
4040 "simple-mime": "^0.1.0",
4141 "split-buffer": "^1.0.0",
4242 "ssb-avatar": "^0.2.0",
4343 "ssb-backlinks": "^0.7.3",
@@ -45,12 +45,13 @@
4545 "ssb-client": "^4.6.0",
4646 "ssb-ebt": "^5.2.3",
4747 "ssb-feed": "^2.3.0",
4848 "ssb-friends": "^3.1.3",
49- "ssb-keys": "^7.1.2",
49 + "ssb-keys": "^7.1.3",
5050 "ssb-links": "^3.0.3",
5151 "ssb-markdown": "^3.6.0",
5252 "ssb-mentions": "^0.5.0",
53 + "ssb-query": "^2.3.0",
5354 "ssb-ref": "^2.12.0",
5455 "ssb-search": "^1.1.2",
5556 "visualize-buffer": "0.0.1"
5657 }
mvd-indexes.jsView
@@ -1,0 +1,20 @@
1 +var Indexes = require('flumeview-query/indexes')
2 +var pkg = require('./package.json')
3 +exports.name = 'mvd-indexes'
4 +exports.version = pkg.version
5 +exports.manifest = {}
6 +
7 +exports.init = function (sbot, config) {
8 +
9 + var view =
10 + sbot._flumeUse('query/mvd', Indexes(1, {
11 + indexes: [
12 + {key: 'chr', value: [['value', 'timestamp' ]]}
13 + ]
14 + }))
15 +
16 + var indexes = view.indexes()
17 + sbot.query.add(indexes[0])
18 +
19 + return {}
20 +}

Built with git-ssb-web