git ssb

2+

mixmix / ticktack



Tree: 96570266185b2fbe938281bee30bde6029df8d47

Files: 96570266185b2fbe938281bee30bde6029df8d47 / app / page / addressBook.js

913 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3const pull = require('pull-stream')
4
5exports.gives = nest('app.page.addressBook')
6
7exports.needs = nest({
8 'app.html.blogNav': 'first',
9 // 'app.html.scroller': 'first',
10 'app.html.sideNav': 'first',
11 'contact.obs.relationships': 'first',
12 'history.sync.push': 'first',
13 'keys.sync.id': 'first',
14 'translations.sync.strings': 'first',
15})
16
17exports.create = (api) => {
18 return nest('app.page.addressBook', function (location) {
19 // location here can expected to be: { page: 'addressBook'}
20
21 const strings = api.translations.sync.strings()
22 const myKey = api.keys.sync.id()
23 const relationships = api.contact.obs.relationships(myKey)
24
25
26
27 return h('Page -addressBook', [
28 api.app.html.sideNav(location, relationships),
29 h('div.content', [
30 'pageNav',
31 '//// content here ////'
32 ])
33 ])
34 })
35}
36
37

Built with git-ssb-web