Files: 08f7f6c18cb0575d7b590616918aeeca015ef462 / main.js
776 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 patchContext = require('patch-context') |
9 | const patchbay = require('./') |
10 | const patchcore = require('patchcore') |
11 | const patchSettings = require('patch-settings') |
12 | |
13 | // polyfills |
14 | require('setimmediate') |
15 | |
16 | // from more specialized to more general |
17 | const sockets = combine( |
18 | // horcrux, |
19 | ssbchess, |
20 | // patchHub, |
21 | require('patchbay-gatherings'), |
22 | require('patch-history'), |
23 | patchbay, |
24 | patchContext, |
25 | patchSettings, |
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