git ssb

16+

Dominic / patchbay



Commit b714a98d566d8d711d18a69c2dd4af1a8a792fc4

invite screen

Joran committed on 12/16/2016, 6:20:51 AM
Parent: beaa246b81fabfab993c5f929b6e74c5487ee11d

Files changed

modules_basic/invite.jschanged
modules_basic/invite.jsView
@@ -35,9 +35,9 @@
3535 var data = self.invite_parse(invite)
3636 if(!data) return cb(new Error('not a valid invite code:' + invite))
3737
3838 onProgress('connecting...')
39-
39 +
4040 api.sbot_gossip_connect(data.remote, function (err) {
4141 if(err) console.log(err)
4242 })
4343
@@ -87,16 +87,21 @@
8787 //connect to server
8888 //request follow
8989 //post pub announce
9090 //post follow pub
91- var div = h('div.column',
92- h('div',
93- "you have been invited to join:", h('br'),
94- h('code', data.invite)
91 + var div = h('div',
92 + h('div.col-sm-6.col-sm-offset-3',
93 + h('div.jumbotron',
94 + h('div',
95 + h('h1', "Welcome to the Cryptoverse!"),
96 + h("p", "This is your invite code:"),
97 + h('div.invite', data.invite)
98 + ),
99 + h('button.btn.btn-success.btn-lg', 'Connect', {onclick: attempt})
100 + )
95101 ),
96- h('button', 'accept', {onclick: attempt}),
97- progress
98- )
102 + h('div.col-sm-12.well', "Status:", progress)
103 + )
99104
100105 function attempt () {
101106 self.invite_accept(invite, function (message) {
102107 progress.next(message)
@@ -122,5 +127,4 @@
122127 return div
123128 }
124129 }
125130 }
126-

Built with git-ssb-web