Files: b1cf9a6ccccdca7700773712ae53acebc92cafef / main.js
582 bytesRaw
1 | const combine = require('depject') |
2 | const entry = require('depject/entry') |
3 | const nest = require('depnest') |
4 | |
5 | const git = require('patch-git') |
6 | const horcrux = require('ssb-horcrux') |
7 | const gatherings = require('patch-gatherings') |
8 | const patchbay = require('./') |
9 | const patchcore = require('patchcore') |
10 | |
11 | // polyfills |
12 | require('setimmediate') |
13 | |
14 | // from more specialized to more general |
15 | const sockets = combine( |
16 | git, |
17 | gatherings, |
18 | horcrux, |
19 | patchbay, |
20 | patchcore |
21 | ) |
22 | |
23 | const api = entry(sockets, nest('app.html.app', 'first')) |
24 | |
25 | const app = api.app.html.app() |
26 | document.body.appendChild(app) |
27 | |
28 |
Built with git-ssb-web