git ssb

1+

Daan Patchwork / manyverse



Commit 4621b1c1e2db903f9a1de595d9f0160a3cf91bd2

dx: refactor and annotate ssb plugins in backend

Andre Staltz committed on 11/27/2019, 1:31:16 PM
Parent: 2c02b6a771a179bd9830739019e19ef94ebb0a7a

Files changed

src/backend/ssb.tschanged
src/backend/ssb.tsView
@@ -56,32 +56,38 @@
5656 logStreams: false,
5757 });
5858
5959 SecretStack({appKey: require('ssb-caps').shs})
60+ // Core
6061 .use(require('ssb-master'))
62+ .use(require('ssb-db'))
63+ // Replication
64+ .use(require('ssb-replicate')) // needs: db
65+ .use(require('ssb-friends')) // needs: db, replicate
66+ .use(require('ssb-ebt')) // needs: db, replicate, friends
67+ // Connections
6168 .use(require('./multiserver'))
69+ .use(require('ssb-lan'))
6270 .use(bluetoothTransportAndPlugin(bluetoothManager, {scope: 'public'}))
63- .use(require('ssb-db'))
64- .use(require('ssb-lan'))
65- .use(require('ssb-conn')) // needs: lan, bluetooth
66- .use(require('ssb-dht-invite'))
67- .use(require('ssb-room/tunnel/client'))
68- .use(require('ssb-replicate'))
69- .use(require('ssb-backlinks'))
70- .use(require('ssb-about'))
71- .use(require('ssb-friends'))
72- .use(require('ssb-suggest-fork')) // needs: backlinks, about, friends
71+ .use(require('ssb-conn')) // needs: db, friends, lan, bluetooth
72+ .use(require('ssb-room/tunnel/client')) // needs: conn
73+ .use(require('ssb-dht-invite')) // needs: db, conn
74+ .use(require('ssb-invite-client')) // needs: db, conn
75+ // Queries
76+ .use(require('ssb-query')) // needs: db
77+ .use(require('ssb-private')) // needs: db
78+ .use(require('ssb-backlinks')) // needs: db
79+ .use(require('ssb-about')) // needs: db, backlinks
80+ .use(require('ssb-suggest-fork')) // needs: db, backlinks, about, friends
81+ .use(require('ssb-threads')) // needs: db, backlinks, friends
82+ // Blobs
7383 .use(require('ssb-blobs'))
74- .use(require('ssb-serve-blobs'))
75- .use(require('ssb-private'))
76- .use(require('ssb-query'))
77- .use(require('ssb-threads'))
78- .use(require('ssb-invite-client'))
79- .use(require('ssb-ebt')) // needs: replicate
80- .use(require('./plugins/blobsUtils'))
81- .use(require('./plugins/connUtils'))
82- .use(require('./plugins/feedUtilsBack'))
83- .use(require('./plugins/friendsUtils'))
84+ .use(require('ssb-serve-blobs')) // needs: blobs
85+ // Customizations
86+ .use(require('./plugins/blobsUtils')) // needs: blobs
87+ .use(require('./plugins/connUtils')) // needs: conn
88+ .use(require('./plugins/feedUtilsBack')) // needs: db, blobs, blobsUtils
89+ .use(require('./plugins/friendsUtils')) // needs: db
8490 .use(require('./plugins/keysUtils'))
85- .use(require('./plugins/syncing'))
86- .use(require('./plugins/votes'))
91+ .use(require('./plugins/syncing')) // needs: db
92+ .use(require('./plugins/votes')) // needs: backlinks
8793 .call(null, config);

Built with git-ssb-web