Skip to content

Commit 5b7aadb

Browse files
About page display node version (#170)
* Update target property from localhost to 127.0.0.1 * System section, node version on about page * about component node version included * back to localhost
1 parent cb08f1f commit 5b7aadb

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

service/src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const version = packageJson.version.split(".");
55
module.exports = {
66
api: {
77
name: packageJson.name,
8+
nodeVersion: process.versions.node,
89
description: packageJson.description,
910
version: {
1011
major: parseInt(version[0]),

web-app/src/ng1/about/about.component.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class AboutController {
88
this.name = api.name;
99
this.serverVersion = api.version;
1010
this.apk = api.apk;
11+
this.nodeVersion = api.nodeVersion;
1112
});
1213
}
1314
}

web-app/src/ng1/about/about.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="content-flex about-content">
2-
<h2>About {{$ctrl.name}} {{$ctrl.serverVersion.major}}.{{$ctrl.serverVersion.minor}}.{{$ctrl.serverVersion.micro}}</h2>
2+
<h2>About MAGE Server {{$ctrl.serverVersion.major}}.{{$ctrl.serverVersion.minor}}.{{$ctrl.serverVersion.micro}}</h2>
33
<p>
44
MAGE is a dynamic, secure, mobile situational awareness and field data collection platform that supports
55
low-bandwidth and disconnected users. MAGE can integrate with existing command centers and common operating
@@ -26,7 +26,10 @@ <h2 class="top-gap-l">Mobile Applications</h2>
2626
<h2 class="top-gap-l">API</h2>
2727
<p>Browse and try the MAGE API live with <a ui-sref="swagger">Swagger UI.</a></p>
2828
<p><strong>Important:</strong> Swagger interactive documentation will modify MAGE data via API calls; please be careful with <strong>POST/PUT/DELETE</strong> operations.</p>
29-
29+
<h2>System</h2>
30+
<ul>
31+
<li>Node Version: {{$ctrl.nodeVersion}} </li>
32+
</ul>
3033
<h2 class="top-gap-l">Acknowledgements</h2>
3134
<div class="row bottom-gap-l">
3235
<div class="col-md-6">

0 commit comments

Comments
 (0)