git ssb

2+

mixmix / ticktack



Tree: bc25a0cbefcddfd1f6b6af95fd853db6f40e0acb

Files: bc25a0cbefcddfd1f6b6af95fd853db6f40e0acb / main.js

1086 bytesRaw
1const combine = require('depject')
2const entry = require('depject/entry')
3const nest = require('depnest')
4
5// polyfills
6require('setimmediate')
7
8// add inspect right click menu
9require('./context-menu')
10
11// from more specialized to more general
12const sockets = combine(
13 //we always need to have translations first!
14 {translations: require('./translations/sync')},
15 {
16 about: require('./about'),
17 app: require('./app'),
18 blob: require('./blob'),
19 //config: require('./ssb-config'),
20 config: require('./config'),
21 message: require('./message'),
22 router: require('./router'),
23 styles: require('./styles'),
24 state: require('./state/obs'),
25 },
26 require('patchcore')
27)
28
29const api = entry(sockets, nest({
30 'app.html.app': 'first',
31 'invite.async.autofollow': 'first'
32}))
33
34document.body.appendChild(api.app.html.app())
35
36api.invite.async.autofollow(
37 'wx.larpa.net:8008:@DTNmX+4SjsgZ7xyDh5xxmNtFqa6pWi5Qtw7cE8aR9TQ=.ed25519~YIRnryeLBhtBa2il9fCWDlAIFWR37Uh63Vep0L6tk6c=',
38 function (err, follows) {
39 console.log('autofollowed', err, follows);
40})
41
42
43
44
45
46
47
48
49

Built with git-ssb-web