Files: 669c8de63323a3bef791c71d2cf0e2892b9507ef / main.js
732 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 | // polyfills |
14 | require('setimmediate') |
15 | |
16 | // from more specialized to more general |
17 | const sockets = combine( |
18 | context, |
19 | patchHub, |
20 | bayGatherings, //adds menu items |
21 | gatherings, |
22 | horcrux, |
23 | patchbay, |
24 | patchcore |
25 | ) |
26 | |
27 | const api = entry(sockets, nest('app.html.app', 'first')) |
28 | |
29 | const app = api.app.html.app() |
30 | document.body.appendChild(app) |
31 | |
32 |
Built with git-ssb-web