Files: 6e3760338297dc69b6f60760d58b197927d44110 / app / page / image.js
641 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('img', {src: api.blob.sync.url(location.blob || location)}) |
19 | }) |
20 | // |
21 | // function threadNew (location) { |
22 | // return h('Page -Im', {title: "Image"}, [ |
23 | // blob.sync.url(location) |
24 | // ]) |
25 | // } |
26 | } |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 |
Built with git-ssb-web