Files: 5ddb61498a69d813054a66248db01b1b2bca23eb / main.js
689 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('./config'), |
17 | router: require('./router'), |
18 | styles: require('./styles') |
19 | }, |
20 | require('patch-history'), |
21 | require('patchcore') |
22 | ) |
23 | |
24 | const api = entry(sockets, nest('app.html.app', 'first')) |
25 | |
26 | const app = api.app.html.app() |
27 | |
28 | // TODO (mix) : once app has swapping pages, attach the app to the page here |
29 | // document.body.appendChild(app) |
30 |
Built with git-ssb-web