Files: 91f795551bfd401dbec69e1b719569052d05ab3c / app / page / error.js
465 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.page.error') |
5 | |
6 | exports.needs = nest({ |
7 | 'translations.sync.strings': 'first', |
8 | 'app.html.nav': 'first' |
9 | }) |
10 | |
11 | exports.create = (api) => { |
12 | var strings = api.translations.sync.strings() |
13 | |
14 | return nest('app.page.error', error) |
15 | |
16 | function error (location) { |
17 | return h('Page -error', {title: strings.error}, [ |
18 | strings.errorNotFound, |
19 | location.error |
20 | ]) |
21 | } |
22 | } |
23 | |
24 | |
25 | |
26 |
Built with git-ssb-web