Files: 1b9e4fefcc2bb238e43c37df39cb776444d8978e / app / page / error.js
470 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 | }) |
9 | |
10 | exports.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 | strings.errorNotFound, |
18 | h('pre', [JSON.stringify(location, null, 2)]) |
19 | ]) |
20 | } |
21 | } |
22 | |
23 | |
24 | |
25 | |
26 |
Built with git-ssb-web