git ssb

2+

mixmix / ticktack



Tree: bc9472388e14fcf3a02a4397b3d69d16bf96390d

Files: bc9472388e14fcf3a02a4397b3d69d16bf96390d / main.js

1288 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 // 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 channel: require('./channel'),
34 backup: require('./backup')
35 },
36 {
37 profile: require('patch-profile'),
38 drafts: require('patch-drafts'),
39 history: require('patch-history'),
40 core: require('patchcore')
41 }
42)
43
44const api = entry(sockets, nest({
45 'app.html.app': 'first'
46}))
47
48document.body.appendChild(api.app.html.app())
49// console.log(api.config.sync.load())
50

Built with git-ssb-web