git ssb

3+

dangerousbeans / scuttle-vue



Tree: b65df85068d01bbc7fd6b0ba8686cccbae6928ee

Files: b65df85068d01bbc7fd6b0ba8686cccbae6928ee / modules / menu.js

480 bytesRaw
1var h = require('hyperscript')
2
3module.exports = {
4 gives: {connection_status: true, menu: true},
5 create: function (api) {
6
7 var status = h('div.status.error')
8 var list = h('div.menu.column')
9
10 var menu = h('div.column', status, list)
11
12 return {
13 connection_status: function (err) {
14 if(err) status.classList.add('error')
15 else status.classList.remove('error')
16 },
17 menu: function () {
18 return menu
19 }
20 }
21 }
22}
23
24
25
26
27
28
29

Built with git-ssb-web