Files: a4727341e869458648277d26f61c051de3eec9da / main.js
882 bytesRaw
1 | const combine = require('depject') |
2 | const entry = require('depject/entry') |
3 | const nest = require('depnest') |
4 | |
5 | // polyfills |
6 | require('setimmediate') |
7 | |
8 | // add inspect right click menu |
9 | require('./context-menu') |
10 | |
11 | // from more specialized to more general |
12 | const sockets = combine( |
13 | { |
14 | about: require('./about'), |
15 | app: require('./app'), |
16 | blob: require('./blob'), |
17 | //config: require('./ssb-config'), |
18 | config: require('./config'), |
19 | message: require('./message'), |
20 | router: require('./router'), |
21 | styles: require('./styles'), |
22 | translations: require('./translations/sync'), |
23 | state: require('./state/obs'), |
24 | }, |
25 | require('patch-history'), |
26 | require('patchcore') |
27 | ) |
28 | |
29 | const api = entry(sockets, nest('app.html.app', 'first')) |
30 | |
31 | const app = api.app.html.app() |
32 | |
33 | // TODO (mix) : once app has swapping pages, attach the app to the page here |
34 | // document.body.appendChild(app) |
35 | |
36 | |
37 |
Built with git-ssb-web