versions() added java, python3, optimized gcc
This commit is contained in:
parent
cac6ec27da
commit
4a786c0270
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.0.15 | 2019-03-02 | `versions()` added java, python3, optimized gcc |
|
||||||
| 4.0.14 | 2019-03-01 | updated typescript typings |
|
| 4.0.14 | 2019-03-01 | updated typescript typings |
|
||||||
| 4.0.13 | 2019-03-01 | `diskLayout()` added device (/dev/sda...) linux, mac |
|
| 4.0.13 | 2019-03-01 | `diskLayout()` added device (/dev/sda...) linux, mac |
|
||||||
| 4.0.12 | 2019-03-01 | `diskLayout()` linux rewritten - better detection |
|
| 4.0.12 | 2019-03-01 | `diskLayout()` linux rewritten - better detection |
|
||||||
|
|||||||
@ -80,10 +80,15 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.0.15</th>
|
||||||
|
<td>2019-03-02</td>
|
||||||
|
<td><span class="code">versions()</span>added java, python3, optimized gcc</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.0.14</th>
|
<th scope="row">4.0.14</th>
|
||||||
<td>2019-03-01</td>
|
<td>2019-03-01</td>
|
||||||
<td><span class="code">updated typescript typings</td>
|
<td>updated typescript typings</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.0.13</th>
|
<th scope="row">4.0.13</th>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span></div>
|
<div class="subtitle"><span id="typed"></span></div>
|
||||||
<div class="version">Current Version: <span id="version">4.0.14</span></div>
|
<div class="version">Current Version: <span id="version">4.0.15</span></div>
|
||||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
@ -193,7 +193,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row number-section">
|
<div class="row number-section">
|
||||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||||
<div class="numbers">8,167</div>
|
<div class="numbers">8,197</div>
|
||||||
<div class="title">Lines of code</div>
|
<div class="title">Lines of code</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||||
@ -218,52 +218,76 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row index">
|
<div class="row index">
|
||||||
<a href="gettingstarted.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="gettingstarted.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-download"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Getting Started</div>
|
<div class="icons"><i class="fal fa-download"></i></div>
|
||||||
|
<div class="icontitle">Getting Started</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="general.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="general.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-th-list"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">General</div>
|
<div class="icons"><i class="fal fa-th-list"></i></div>
|
||||||
|
<div class="icontitle">General</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="system.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="system.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-server"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">System</div>
|
<div class="icons"><i class="fal fa-server"></i></div>
|
||||||
|
<div class="icontitle">System</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="cpu.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="cpu.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-microchip"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">CPU</div>
|
<div class="icons"><i class="fal fa-microchip"></i></div>
|
||||||
|
<div class="icontitle">CPU</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="memory.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="memory.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-memory"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Memory</div>
|
<div class="icons"><i class="fal fa-memory"></i></div>
|
||||||
|
<div class="icontitle">Memory</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="battery.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="battery.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-battery-half"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Battery</div>
|
<div class="icons"><i class="fal fa-battery-half"></i></div>
|
||||||
|
<div class="icontitle">Battery</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="graphics.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="graphics.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-desktop"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Graphics</div>
|
<div class="icons"><i class="fal fa-desktop"></i></div>
|
||||||
|
<div class="icontitle">Graphics</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="os.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="os.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-window"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">OS</div>
|
<div class="icons"><i class="fal fa-window"></i></div>
|
||||||
|
<div class="icontitle">OS</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="processes.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="processes.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-chart-line"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Processes / Services</div>
|
<div class="icons"><i class="fal fa-chart-line"></i></div>
|
||||||
|
<div class="icontitle">Process/Service</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="filesystem.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="filesystem.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-hdd"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Disks / FS</div>
|
<div class="icons"><i class="fal fa-hdd"></i></div>
|
||||||
|
<div class="icontitle">Disks / FS</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="network.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="network.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fal fa-network-wired"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Network</div>
|
<div class="icons"><i class="fal fa-network-wired"></i></div>
|
||||||
|
<div class="icontitle">Network</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="docker.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
<a href="docker.html" class="col-xl-3 col-lg-3 col-md-4 col-6 features">
|
||||||
<div class="icons"><i class="fab fa-docker"></i></div>
|
<div class="inner">
|
||||||
<div class="icontitle">Docker</div>
|
<div class="icons"><i class="fab fa-docker"></i></div>
|
||||||
|
<div class="icontitle">Docker</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-content-center sectionheader index">
|
<div class="row justify-content-center sectionheader index">
|
||||||
|
|||||||
@ -290,11 +290,53 @@ h1, h2, h3, h4 {
|
|||||||
|
|
||||||
.features {
|
.features {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 15px 20px;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.features:hover {
|
.features .inner {
|
||||||
|
padding: 10px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.features .inner {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.features .inner .icons {
|
||||||
|
display: block;
|
||||||
|
font-size: 3rem;
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 420px) {
|
||||||
|
.features .inner .icons {
|
||||||
|
font-size: 3.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.features .inner .icons {
|
||||||
|
font-size: 4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1024px) {
|
||||||
|
.features .inner .icons {
|
||||||
|
font-size: 5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.features .inner .icontitle {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features .inner:hover {
|
||||||
|
background: #f4f4f4;
|
||||||
|
color: #567adf;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features .inner:hover .icons {
|
||||||
color: #567adf;
|
color: #567adf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -392,6 +434,10 @@ h1, h2, h3, h4 {
|
|||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.index {
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.index .text, .index .subtitle, .index .title, .index .title-small {
|
.index .text, .index .subtitle, .index .title, .index .title-small {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@ -417,38 +463,6 @@ ul {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icons {
|
|
||||||
display: block;
|
|
||||||
font-size: 3rem;
|
|
||||||
color: #aaa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icons:hover {
|
|
||||||
color: #567adf;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (min-width: 420px) {
|
|
||||||
.icons {
|
|
||||||
font-size: 3.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (min-width: 768px) {
|
|
||||||
.icons {
|
|
||||||
font-size: 4rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (min-width: 1024px) {
|
|
||||||
.icons {
|
|
||||||
font-size: 5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.icontitle {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.number-section {
|
.number-section {
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -196,10 +196,37 @@ h1, h2, h3, h4 {
|
|||||||
}
|
}
|
||||||
.features {
|
.features {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 15px 20px;
|
|
||||||
color: #333;
|
color: #333;
|
||||||
&:hover {
|
.inner {
|
||||||
color: rgb(86, 122, 223);
|
padding: 10px 0px;
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
.icons {
|
||||||
|
display: block;
|
||||||
|
font-size: 3rem;
|
||||||
|
color: #bbb;
|
||||||
|
@media only screen and (min-width: 420px) {
|
||||||
|
font-size: 3.5rem;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
font-size: 4rem;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1024px) {
|
||||||
|
font-size: 5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.icontitle {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #f4f4f4;
|
||||||
|
color: rgb(86, 122, 223);
|
||||||
|
.icons {
|
||||||
|
color: rgb(86, 122, 223);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.sectionheader {
|
.sectionheader {
|
||||||
@ -264,16 +291,17 @@ h1, h2, h3, h4 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.index {
|
.index {
|
||||||
.text, .subtitle, .title, .title-small {
|
margin: 0 0 10px 0;
|
||||||
text-align: center;
|
.text, .subtitle, .title, .title-small {
|
||||||
}
|
text-align: center;
|
||||||
a {
|
}
|
||||||
text-decoration: none;
|
a {
|
||||||
&:hover {
|
text-decoration: none;
|
||||||
text-decoration: none;
|
&:hover {
|
||||||
color: rgb(86, 122, 223);
|
text-decoration: none;
|
||||||
}
|
color: rgb(86, 122, 223);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.left {
|
.left {
|
||||||
.text, .subtitle, .title, .title-small {
|
.text, .subtitle, .title, .title-small {
|
||||||
@ -286,27 +314,6 @@ h1, h2, h3, h4 {
|
|||||||
ul {
|
ul {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.icons {
|
|
||||||
display: block;
|
|
||||||
font-size: 3rem;
|
|
||||||
color: #aaa;
|
|
||||||
&:hover {
|
|
||||||
color: rgb(86, 122, 223);
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 420px) {
|
|
||||||
font-size: 3.5rem;
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 768px) {
|
|
||||||
font-size: 4rem;
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 1024px) {
|
|
||||||
font-size: 5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.icontitle {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
// color: #000;
|
|
||||||
}
|
|
||||||
.number-section {
|
.number-section {
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
2
lib/index.d.ts
vendored
2
lib/index.d.ts
vendored
@ -222,6 +222,8 @@ export namespace Systeminformation {
|
|||||||
postgresql: string;
|
postgresql: string;
|
||||||
perl: string;
|
perl: string;
|
||||||
python: string;
|
python: string;
|
||||||
|
python3: string;
|
||||||
|
java: string;
|
||||||
gcc: string;
|
gcc: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -331,11 +331,13 @@ function versions(callback) {
|
|||||||
postgresql: '',
|
postgresql: '',
|
||||||
perl: '',
|
perl: '',
|
||||||
python: '',
|
python: '',
|
||||||
|
python3: '',
|
||||||
|
java: '',
|
||||||
gcc: ''
|
gcc: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
let functionProcessed = (function () {
|
let functionProcessed = (function () {
|
||||||
let totalFunctions = 20;
|
let totalFunctions = 21;
|
||||||
return function () {
|
return function () {
|
||||||
if (--totalFunctions === 0) {
|
if (--totalFunctions === 0) {
|
||||||
if (callback) {
|
if (callback) {
|
||||||
@ -555,11 +557,39 @@ function versions(callback) {
|
|||||||
}
|
}
|
||||||
functionProcessed();
|
functionProcessed();
|
||||||
});
|
});
|
||||||
|
exec('python3 -V 2>&1', function (error, stdout) {
|
||||||
|
if (!error) {
|
||||||
|
const python = stdout.toString().split('\n')[0] || '';
|
||||||
|
result.python3 = python.toLowerCase().replace('python', '').trim();
|
||||||
|
}
|
||||||
|
functionProcessed();
|
||||||
|
});
|
||||||
|
exec('java -version 2>&1', function (error, stdout) {
|
||||||
|
if (!error) {
|
||||||
|
const java = stdout.toString().split('\n')[0] || '';
|
||||||
|
const parts = java.split('"');
|
||||||
|
result.java = parts.length === 3 ? parts[1].trim() : '';
|
||||||
|
}
|
||||||
|
functionProcessed();
|
||||||
|
});
|
||||||
exec('gcc -dumpversion', function (error, stdout) {
|
exec('gcc -dumpversion', function (error, stdout) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
result.gcc = stdout.toString().split('\n')[0].trim() || '';
|
result.gcc = stdout.toString().split('\n')[0].trim() || '';
|
||||||
}
|
}
|
||||||
functionProcessed();
|
if (result.gcc.indexOf('.') > -1) {
|
||||||
|
functionProcessed();
|
||||||
|
} else {
|
||||||
|
exec('gcc --version', function (error, stdout) {
|
||||||
|
if (!error) {
|
||||||
|
const gcc = stdout.toString().split('\n')[0].trim();
|
||||||
|
if (gcc.indexOf('gcc') > -1 && gcc.indexOf(')') > -1) {
|
||||||
|
const parts = gcc.split(')');
|
||||||
|
result.gcc = parts[1].trim() || result.gcc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
functionProcessed();
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (callback) { callback(result); }
|
if (callback) { callback(result); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user