Files: 31a6b451195783f711ecd29057d9dc3ea60f92aa / main.js
890 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 | const patchSettings = require('patch-settings') |
14 | |
15 | // polyfills |
16 | require('setimmediate') |
17 | |
18 | // from more specialized to more general |
19 | const sockets = combine( |
20 | // horcrux, |
21 | // ssbchess, |
22 | // patchHub, |
23 | // gatherings, |
24 | // bayGatherings, // TODO collect gatherings into this |
25 | patchbay, |
26 | patchContext, |
27 | patchcore, |
28 | patchSettings |
29 | ) |
30 | |
31 | const api = entry(sockets, nest('app.html.app', 'first')) |
32 | |
33 | const app = api.app.html.app() |
34 | document.body.appendChild(app) |
35 |
Built with git-ssb-web