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