git ssb

2+

mixmix / ticktack



Tree: 387dcd7ac040579bb840df3e94bfd3bf9ab361b2

Files: 387dcd7ac040579bb840df3e94bfd3bf9ab361b2 / main.js

1317 bytesRaw
1const combine = require('depject')
2const entry = require('depject/entry')
3const nest = require('depnest')
4
5// polyfills
6require('setimmediate')
7
8// add inspect right click menu
9require('./context-menu')
10
11// from more specialized to more general
12const 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 feed: require('./feed'),
28 // group: require('./group'),
29 message: require('./message'),
30 router: require('./router'),
31 styles: require('./styles'),
32 state: require('./state/obs'),
33 unread: require('./unread'),
34 channel: require('./channel'),
35 backup: require('./backup')
36 },
37 {
38 profile: require('patch-profile'),
39 drafts: require('patch-drafts'),
40 history: require('patch-history'),
41 core: require('patchcore')
42 }
43)
44
45const api = entry(sockets, nest({
46 'app.html.app': 'first'
47}))
48
49document.body.appendChild(api.app.html.app())
50// console.log(api.config.sync.load())
51

Built with git-ssb-web