git ssb

16+

Dominic / patchbay



Commit df5498c00b9dbc44e316e9e81294f5e27dc557af

add "Installer version" to /settings page

mixmix committed on 1/28/2019, 3:02:37 AM
Parent: 5e49975bd655888b5d5e8e4bc2d699a35e99061e

Files changed

app/html/settings/zz-version.jsadded
app/html/settings/zz-version.jsView
@@ -1,0 +1,26 @@
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 +}

Built with git-ssb-web