git ssb

2+

mixmix / ticktack



Tree: 7458998a2a59e0edaf11b6ce83867a72f96577d6

Files: 7458998a2a59e0edaf11b6ce83867a72f96577d6 / app / page / groupShow.js

613 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.page.groupShow')
5
6exports.needs = nest({
7 'translations.sync.strings': 'first',
8 'app.html.nav': 'first'
9})
10
11exports.create = (api) => {
12 var strings = api.translations.sync.strings()
13 return nest('app.page.groupShow', groupShow)
14
15 function groupShow (location) {
16 // location here can be the root message of a group : { type: 'group', key }
17 // TODO show specific group index described by key
18
19 return h('Page -groupShow', {title: strings.groupShow}, [
20 h('p', `key: ${location.key}`)
21 ])
22 }
23}
24
25
26
27
28

Built with git-ssb-web