Files: 2b05be8ee023fdd9580d6a845ba074a425756685 / app / html / settings / zz-version.js
534 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 | group: 'general', |
17 | title: 'Installer version', |
18 | body: h('Version', [ |
19 | h('p', [ |
20 | h('code', process.platform), |
21 | ' version ', |
22 | h('code', version) |
23 | ]) |
24 | ]) |
25 | } |
26 | } |
27 | } |
28 |
Built with git-ssb-web