Files: 1de8481b3ecc82fb5558ec44c90f9731df320b05 / main.js
670 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 bayGatherings = require('patchbay-gatherings') |
9 | const patchbay = require('./') |
10 | const patchcore = require('patchcore') |
11 | |
12 | // polyfills |
13 | require('setimmediate') |
14 | |
15 | // from more specialized to more general |
16 | const sockets = combine( |
17 | git, |
18 | bayGatherings, //adds menu items |
19 | gatherings, |
20 | horcrux, |
21 | patchbay, |
22 | patchcore |
23 | ) |
24 | |
25 | const api = entry(sockets, nest('app.html.app', 'first')) |
26 | |
27 | const app = api.app.html.app() |
28 | document.body.appendChild(app) |
29 | |
30 |
Built with git-ssb-web