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 PMParent: ba9d1ee13be51bb18e691b534340aacdafbec267
Files changed
bin.js | changed |
package-lock.json | changed |
package.json | changed |
mvd-indexes.js | added |
bin.js | |||
---|---|---|---|
@@ -35,9 +35,10 @@ | |||
35 | 35 … | .use(require('scuttlebot/plugins/replicate')) | |
36 | 36 … | .use(require('ssb-friends')) | |
37 | 37 … | .use(require('ssb-blobs')) | |
38 | 38 … | .use(require('ssb-backlinks')) | |
39 | - .use(require('./query')) | ||
39 … | + .use(require('ssb-query')) | ||
40 … | + .use(require('./mvd-indexes')) | ||
40 | 41 … | .use(require('ssb-links')) | |
41 | 42 … | .use(require('ssb-ebt')) | |
42 | 43 … | .use(require('ssb-search')) | |
43 | 44 … | .use(require('scuttlebot/plugins/invite')) |
package-lock.json | ||
---|---|---|
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.json | ||
---|---|---|
@@ -35,9 +35,9 @@ | ||
35 | 35 … | "pull-reconnect": "0.0.3", |
36 | 36 … | "pull-stream": "^3.6.9", |
37 | 37 … | "pull-stringify": "^2.0.0", |
38 | 38 … | "rc": "^1.2.8", |
39 | - "scuttlebot": "^12.2.0", | |
39 … | + "scuttlebot": "^12.2.3", | |
40 | 40 … | "simple-mime": "^0.1.0", |
41 | 41 … | "split-buffer": "^1.0.0", |
42 | 42 … | "ssb-avatar": "^0.2.0", |
43 | 43 … | "ssb-backlinks": "^0.7.3", |
@@ -45,12 +45,13 @@ | ||
45 | 45 … | "ssb-client": "^4.6.0", |
46 | 46 … | "ssb-ebt": "^5.2.3", |
47 | 47 … | "ssb-feed": "^2.3.0", |
48 | 48 … | "ssb-friends": "^3.1.3", |
49 | - "ssb-keys": "^7.1.2", | |
49 … | + "ssb-keys": "^7.1.3", | |
50 | 50 … | "ssb-links": "^3.0.3", |
51 | 51 … | "ssb-markdown": "^3.6.0", |
52 | 52 … | "ssb-mentions": "^0.5.0", |
53 … | + "ssb-query": "^2.3.0", | |
53 | 54 … | "ssb-ref": "^2.12.0", |
54 | 55 … | "ssb-search": "^1.1.2", |
55 | 56 … | "visualize-buffer": "0.0.1" |
56 | 57 … | } |
mvd-indexes.js | ||
---|---|---|
@@ -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