Commit b714a98d566d8d711d18a69c2dd4af1a8a792fc4
invite screen
Joran committed on 12/16/2016, 6:20:51 AMParent: beaa246b81fabfab993c5f929b6e74c5487ee11d
Files changed
modules_basic/invite.js | changed |
modules_basic/invite.js | ||
---|---|---|
@@ -35,9 +35,9 @@ | ||
35 | 35 … | var data = self.invite_parse(invite) |
36 | 36 … | if(!data) return cb(new Error('not a valid invite code:' + invite)) |
37 | 37 … | |
38 | 38 … | onProgress('connecting...') |
39 | - | |
39 … | + | |
40 | 40 … | api.sbot_gossip_connect(data.remote, function (err) { |
41 | 41 … | if(err) console.log(err) |
42 | 42 … | }) |
43 | 43 … | |
@@ -87,16 +87,21 @@ | ||
87 | 87 … | //connect to server |
88 | 88 … | //request follow |
89 | 89 … | //post pub announce |
90 | 90 … | //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 … | + ) | |
95 | 101 … | ), |
96 | - h('button', 'accept', {onclick: attempt}), | |
97 | - progress | |
98 | - ) | |
102 … | + h('div.col-sm-12.well', "Status:", progress) | |
103 … | + ) | |
99 | 104 … | |
100 | 105 … | function attempt () { |
101 | 106 … | self.invite_accept(invite, function (message) { |
102 | 107 … | progress.next(message) |
@@ -122,5 +127,4 @@ | ||
122 | 127 … | return div |
123 | 128 … | } |
124 | 129 … | } |
125 | 130 … | } |
126 | - |
Built with git-ssb-web