git ssb

2+

mixmix / ticktack



Tree: e13726c12dd37e510f6ffbc69ef6e0bae607bc89

Files: e13726c12dd37e510f6ffbc69ef6e0bae607bc89 / main.js

1178 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 require('./unread'),
16 {
17 about: require('./about'),
18 app: require('./app'),
19 blob: require('./blob'),
20 channel: require('./channel'),
21 //config: require('./ssb-config'),
22 config: require('./config'),
23 // group: require('./group'),
24 message: require('./message'),
25 router: require('./router'),
26 styles: require('./styles'),
27 state: require('./state/obs'),
28 },
29 require('patchcore')
30)
31
32const api = entry(sockets, nest({
33 'app.html.app': 'first',
34 'invite.async.autofollow': 'first'
35}))
36
37document.body.appendChild(api.app.html.app())
38
39api.invite.async.autofollow(
40 'wx.larpa.net:8008:@DTNmX+4SjsgZ7xyDh5xxmNtFqa6pWi5Qtw7cE8aR9TQ=.ed25519~YIRnryeLBhtBa2il9fCWDlAIFWR37Uh63Vep0L6tk6c=',
41 function (err, follows) {
42 console.log('autofollowed', err, follows);
43})
44
45
46
47
48
49
50
51
52

Built with git-ssb-web