Files: 164ee525d1634ae8922a2161019b8894c9a862f7 / main.js
816 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 | app: require('./app'), |
15 | blob: require('./blob'), |
16 | //config: require('./ssb-config'), |
17 | config: require('./config'), |
18 | router: require('./router'), |
19 | styles: require('./styles'), |
20 | translations: require('./translations/sync'), |
21 | state: require('./state/obs'), |
22 | }, |
23 | require('patch-history'), |
24 | require('patchcore') |
25 | ) |
26 | |
27 | const api = entry(sockets, nest('app.html.app', 'first')) |
28 | |
29 | const app = api.app.html.app() |
30 | |
31 | // TODO (mix) : once app has swapping pages, attach the app to the page here |
32 | // document.body.appendChild(app) |
33 | |
34 | |
35 |
Built with git-ssb-web