Files: aa4c25f3c365e275c42b08f8e34ef4e6c2b66d93 / app / page / addressBook.js
913 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | const pull = require('pull-stream') |
4 | |
5 | exports.gives = nest('app.page.addressBook') |
6 | |
7 | exports.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 | |
17 | exports.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