Files: 890a328ec16a614760b6633754e1dc90ec3ce40e / exports.js
1279 bytesRaw
1 | const bulk = require('bulk-require') |
2 | |
3 | const patchcore = require('patchcore') |
4 | delete patchcore.patchcore.message.html.action.reply |
5 | // prune an action we don't want |
6 | |
7 | const patchbay = { |
8 | patchbay: { |
9 | about: bulk(__dirname, [ 'about/**/*.js' ]), |
10 | app: bulk(__dirname, [ 'app/**/*.js' ]), |
11 | blob: bulk(__dirname, [ 'blob/**/*.js' ]), |
12 | channel: bulk(__dirname, [ 'channel/**/*.js' ]), |
13 | contact: bulk(__dirname, [ 'contact/**/*.js' ]), |
14 | message: bulk(__dirname, [ 'message/**/*.js' ]), |
15 | router: bulk(__dirname, [ 'router/**/*.js' ]), |
16 | styles: bulk(__dirname, [ 'styles/**/*.js' ]), |
17 | sbot: bulk(__dirname, [ 'sbot/**/*.js' ]), |
18 | |
19 | config: require('./config'), // shouldn't be in here ? |
20 | contextMenu: require('patch-context'), |
21 | suggestions: require('patch-suggest'), |
22 | settings: require('patch-settings'), |
23 | drafts: require('patch-drafts'), |
24 | history: require('patch-history') |
25 | } |
26 | } |
27 | |
28 | const plugins = { |
29 | scry: require('patchbay-scry'), |
30 | darkCrystal: require('patchbay-dark-crystal'), |
31 | poll: require('patchbay-poll'), |
32 | inbox: require('patch-inbox'), // TODO needs work |
33 | chess: require('ssb-chess-mithril'), |
34 | book: require('patchbay-book'), |
35 | gatherings: require('patchbay-gatherings') |
36 | } |
37 | |
38 | module.exports = { |
39 | plugins, |
40 | patchbay, |
41 | patchcore |
42 | } |
43 |
Built with git-ssb-web