Files: 2f3728d62f4995c91fc3de4f0ca6b5a08ceccfb7 / app / page / image.js
579 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.page.image') |
5 | |
6 | exports.needs = nest({ |
7 | 'translations.sync.strings': 'first', |
8 | 'about.html.image': 'first', |
9 | 'about.obs.name': 'first', |
10 | 'app.html.thread': 'first', |
11 | 'blob.sync.url': 'first' |
12 | }) |
13 | |
14 | exports.create = (api) => { |
15 | var strings = api.translations.sync.strings() |
16 | |
17 | return nest('app.page.image', function (location) { |
18 | return h('Page -image', [ |
19 | h('div.container', [ |
20 | h('img', {src: api.blob.sync.url(location.blob || location)}) |
21 | ]) |
22 | ]) |
23 | }) |
24 | } |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 |
Built with git-ssb-web