Files: 3734f09bcf0c150f93dc4e556b99bab42b27be3a / main.js
1109 bytesRaw
1 | const combine = require('depject') |
2 | const entry = require('depject/entry') |
3 | const nest = require('depnest') |
4 | |
5 | // polyfills |
6 | require('setimmediate') |
7 | |
8 | // add inspect right click menu |
9 | require('./context-menu') |
10 | |
11 | // from more specialized to more general |
12 | const 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 | //config: require('./ssb-config'), |
21 | config: require('./config'), |
22 | message: require('./message'), |
23 | router: require('./router'), |
24 | styles: require('./styles'), |
25 | state: require('./state/obs'), |
26 | }, |
27 | require('patchcore') |
28 | ) |
29 | |
30 | const api = entry(sockets, nest({ |
31 | 'app.html.app': 'first', |
32 | 'invite.async.autofollow': 'first' |
33 | })) |
34 | |
35 | document.body.appendChild(api.app.html.app()) |
36 | |
37 | api.invite.async.autofollow( |
38 | 'wx.larpa.net:8008:@DTNmX+4SjsgZ7xyDh5xxmNtFqa6pWi5Qtw7cE8aR9TQ=.ed25519~YIRnryeLBhtBa2il9fCWDlAIFWR37Uh63Vep0L6tk6c=', |
39 | function (err, follows) { |
40 | console.log('autofollowed', err, follows); |
41 | }) |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | |
48 | |
49 | |
50 |
Built with git-ssb-web