Files: dd39c2da66f15ca736f6e708ea28a6fafe860475 / main.js
1186 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 | //need some modules first |
14 | { |
15 | settings: require('patch-settings'), |
16 | translations: require('./translations/sync'), |
17 | suggestions: require('patch-suggest'), // so that styles can be over-ridden |
18 | }, |
19 | { |
20 | about: require('./about'), |
21 | app: require('./app'), |
22 | blob: require('./blob'), |
23 | blog: require('./blog'), |
24 | contact: require('./contact'), |
25 | //config: require('./ssb-config'), |
26 | config: require('./config'), |
27 | // group: require('./group'), |
28 | message: require('./message'), |
29 | router: require('./router'), |
30 | styles: require('./styles'), |
31 | state: require('./state/obs'), |
32 | unread: require('./unread'), |
33 | }, |
34 | { |
35 | profile: require('patch-profile'), |
36 | history: require('patch-history'), |
37 | core: require('patchcore') |
38 | } |
39 | ) |
40 | |
41 | const api = entry(sockets, nest({ |
42 | 'app.html.app': 'first', |
43 | })) |
44 | |
45 | document.body.appendChild(api.app.html.app()) |
46 | // console.log(api.config.sync.load()) |
47 | |
48 |
Built with git-ssb-web