Files: 5b17ba2a85122774945850eeb89c50eaded5c446 / app / html / settings / zz-version.js
510 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | const { version } = require('../../../package.json') |
4 | |
5 | exports.gives = nest({ |
6 | 'app.html.settings': true |
7 | }) |
8 | |
9 | exports.create = function (api) { |
10 | return nest({ |
11 | 'app.html.settings': versionsData |
12 | }) |
13 | |
14 | function versionsData () { |
15 | return { |
16 | title: 'Installer version', |
17 | body: h('Version', [ |
18 | h('p', [ |
19 | h('code', process.platform), |
20 | ' version ', |
21 | h('code', version) |
22 | ]) |
23 | ]) |
24 | } |
25 | } |
26 | } |
27 |
Built with git-ssb-web