Files: 9b05eee01a12392729755fabfccef269c4748684 / app / page / image.js
490 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 | 'about.html.image': 'first', |
8 | 'about.obs.name': 'first', |
9 | 'app.html.thread': 'first', |
10 | 'blob.sync.url': 'first' |
11 | }) |
12 | |
13 | exports.create = (api) => { |
14 | return nest('app.page.image', function (location) { |
15 | return h('Page -image', [ |
16 | h('div.container', [ |
17 | h('img', {src: api.blob.sync.url(location.blob || location)}) |
18 | ]) |
19 | ]) |
20 | }) |
21 | } |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 |
Built with git-ssb-web