git ssb

16+

Dominic / patchbay



Tree: 66a7fd1cf12b5221406be1e90eab65b504217376

Files: 66a7fd1cf12b5221406be1e90eab65b504217376 / main.js

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

Built with git-ssb-web