git ssb

2+

mixmix / ticktack



Commit 185726ad095a6c5929db01ebe9fd455cee110ebc

Merge branch 'master' of github.com:ticktackim/ticktack-wp1 into mandarin

mix irving committed on 8/21/2017, 8:52:46 AM
Parent: 453934416f185d2a473203da01c31cc7ea36e1aa
Parent: 1d5204eb5cf8d3b7004c01b71b184796a5582121

Files changed

README.mdchanged
config.jschanged
main.jschanged
default-config.jsonadded
README.mdView
@@ -1,13 +1,12 @@
11 # Ticktack
22
33 ## Planning
44
5-Workplan 1 : https://hackmd.io/BwZhCYHZwNgFgLRxAU0XAhjECCcBGSDBGSfOSEDAE2oDMBWXIA==?view#
5+Workplan 1
66
7-Trello : https://trello.com/b/93eXDvVP/ticktack
7+Trello
88
9-
109 ## Development
1110
1211 ### Repos
1312
config.jsView
@@ -3,15 +3,9 @@
33 const ssbKeys = require('ssb-keys')
44 const Path = require('path')
55
66 const appName = 'ssb' //'ticktack-ssb'
7-const opts = process.env.ssb_appname== 'ssb' ? {} :{
8- port: 43750,
9- blobsPort: 43751,
10- ws: {
11- port: 43751
12- }
13-}
7+const opts = process.env.ssb_appname== 'ssb' ? {} : require('./default-config.json')
148
159 exports.gives = nest('config.sync.load')
1610 exports.create = (api) => {
1711 var config
@@ -25,4 +19,5 @@
2519 }
2620 return config
2721 })
2822 }
23+
main.jsView
@@ -30,16 +30,21 @@
3030 require('patchcore')
3131 )
3232
3333 const api = entry(sockets, nest({
34- 'app.html.app': 'first',
35- 'invite.async.autofollow': 'first'
34+ 'app.html.app': 'first',
35+ 'invite.async.autofollow': 'first',
36+ 'config.sync.load': 'first'
3637 }))
3738
3839 document.body.appendChild(api.app.html.app())
3940
40-api.invite.async.autofollow(
41- 'wx.larpa.net:8008:@DTNmX+4SjsgZ7xyDh5xxmNtFqa6pWi5Qtw7cE8aR9TQ=.ed25519~YIRnryeLBhtBa2il9fCWDlAIFWR37Uh63Vep0L6tk6c=',
42- function (err, follows) {
43- console.log('autofollowed', err, follows);
44-})
41+var invite = api.config.sync.load().autoinvite
42+if(invite)
43+ api.invite.async.autofollow(
44+ invite,
45+ function (err, follows) {
46+ console.log('autofollowed', err, follows);
47+ })
48+else
49+ console.log('no invite')
4550
default-config.jsonView
@@ -1,0 +1,9 @@
1+{
2+ "port": 43750,
3+ "blobsPort": 43751,
4+ "ws": { "port": 43751 },
5+ "caps": {"shs": "ErgQF85hFQpUXp69IXtLW+nXDgFIOKKDOWFX/st2aWk="},
6+ "autoinvite": "128.199.132.182:43750:@7xMrWP8708+LDvaJrRMRQJEixWYp4Oipa9ohqY7+NyQ=.ed25519~YC4ZnjHH8qzsyHe2sihW8WDlhxSUH33IthOi4EsldwQ="
7+}
8+
9+

Built with git-ssb-web