git ssb

16+

Dominic / patchbay



Tree: f71fea8e1b697393fa7ec2d89f4d95256309882b

Files: f71fea8e1b697393fa7ec2d89f4d95256309882b / 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 context,
21 patchHub,
22 bayGatherings, //adds menu items
23 gatherings,
24 horcrux,
25 patchbay,
26 patchcore,
27 ssbchess
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