Files: c57ff654a8c9a637c6b7842e46cb621585484e81 / main.js
825 bytesRaw
1 | const combine = require('depject') |
2 | const entry = require('depject/entry') |
3 | const nest = require('depnest') |
4 | |
5 | const horcrux = require('ssb-horcrux') |
6 | const ssbchess = require('ssb-chess') |
7 | const patchHub = require('patch-hub') |
8 | const gatherings = require('patch-gatherings') |
9 | const bayGatherings = require('patchbay-gatherings') |
10 | const patchbay = require('./') |
11 | const patchContext = require('patch-context') |
12 | const patchcore = require('patchcore') |
13 | |
14 | // polyfills |
15 | require('setimmediate') |
16 | |
17 | // from more specialized to more general |
18 | const sockets = combine( |
19 | // horcrux, |
20 | // ssbchess, |
21 | // patchHub, |
22 | // gatherings, |
23 | // bayGatherings, // TODO collect gatherings into this |
24 | patchbay, |
25 | patchContext, |
26 | patchcore |
27 | ) |
28 | |
29 | const api = entry(sockets, nest('app.html.app', 'first')) |
30 | |
31 | const app = api.app.html.app() |
32 | document.body.appendChild(app) |
33 |
Built with git-ssb-web