git ssb

2+

mixmix / ticktack



Tree: 9b7b6df024c1c91b5fa96dbbe3c3cbf1e5000f18

Files: 9b7b6df024c1c91b5fa96dbbe3c3cbf1e5000f18 / app / page / error.js

485 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.page.error')
5
6exports.needs = nest({
7 'translations.sync.strings': 'first'
8})
9
10exports.create = (api) => {
11 var strings = api.translations.sync.strings()
12
13 return nest('app.page.error', error)
14
15 function error (location) {
16 return h('Page -error', {title: strings.error}, [
17 h('div.message', strings.errorNotFound),
18 h('pre', [JSON.stringify(location, null, 2)])
19 ])
20 }
21}
22
23

Built with git-ssb-web