graphics() added vendor, refresh rate, current resolution
This commit is contained in:
parent
83f1902a8e
commit
2f61b26f47
@ -30,7 +30,8 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
| 4.8.4 | 2019-06-03 | `vboxInfo()` afixed call parameters |
|
| 4.9.0 | 2019-06-03 | `graphics()` added vendor, refresh rate, current res |
|
||||||
|
| 4.8.4 | 2019-06-03 | `vboxInfo()` fixed call parameters |
|
||||||
| 4.8.3 | 2019-06-01 | `vboxInfo()` added stoppedSince, started, stopped |
|
| 4.8.3 | 2019-06-01 | `vboxInfo()` added stoppedSince, started, stopped |
|
||||||
| 4.8.2 | 2019-05-31 | `dockerInfo()` changed property naming style |
|
| 4.8.2 | 2019-05-31 | `dockerInfo()` changed property naming style |
|
||||||
| 4.8.1 | 2019-05-31 | updated docs |
|
| 4.8.1 | 2019-05-31 | updated docs |
|
||||||
|
|||||||
@ -758,6 +758,7 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra
|
|||||||
- weiyin [weiyin](https://github.com/weiyin)
|
- weiyin [weiyin](https://github.com/weiyin)
|
||||||
- Jorai Rijsdijk [Erackron](https://github.com/Erackron)
|
- Jorai Rijsdijk [Erackron](https://github.com/Erackron)
|
||||||
- Rasmus Porsager [porsager](https://github.com/porsager)
|
- Rasmus Porsager [porsager](https://github.com/porsager)
|
||||||
|
- Nathan Patten [nrpatten](https://github.com/nrpatten)
|
||||||
|
|
||||||
OSX Temperature: credits here are going to:
|
OSX Temperature: credits here are going to:
|
||||||
|
|
||||||
|
|||||||
@ -57,6 +57,7 @@
|
|||||||
<li>weiyin <a href="https://github.com/weiyin" rel="nofollow">weiyin</a></li>
|
<li>weiyin <a href="https://github.com/weiyin" rel="nofollow">weiyin</a></li>
|
||||||
<li>Jorai Rijsdijk <a href="https://github.com/Erackron" rel="nofollow">Erackron</a></li>
|
<li>Jorai Rijsdijk <a href="https://github.com/Erackron" rel="nofollow">Erackron</a></li>
|
||||||
<li>Rasmus Porsager <a href="https://github.com/porsager" rel="nofollow">porsager</a></li>
|
<li>Rasmus Porsager <a href="https://github.com/porsager" rel="nofollow">porsager</a></li>
|
||||||
|
<li>Nathan Patten <a href="https://github.com/nrpatten" rel="nofollow">nrpatten</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>OSX Temperature: credits here are going to:</p>
|
<p>OSX Temperature: credits here are going to:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@ -81,7 +81,12 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.8.3</th>
|
<th scope="row">4.9.0</th>
|
||||||
|
<td>2019-06-03</td>
|
||||||
|
<td><span class="code">graphics()</span> added vendor, refresh rate, current resolution</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.8.4</th>
|
||||||
<td>2019-06-03</td>
|
<td>2019-06-03</td>
|
||||||
<td><span class="code">vboxInfo()</span> fixed call parameters</td>
|
<td><span class="code">vboxInfo()</span> fixed call parameters</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@ -34,7 +34,6 @@
|
|||||||
function init() {
|
function init() {
|
||||||
typed();
|
typed();
|
||||||
document.querySelector('.down').addEventListener('click', function () {
|
document.querySelector('.down').addEventListener('click', function () {
|
||||||
console.log('CLICKED')
|
|
||||||
scrollIt(
|
scrollIt(
|
||||||
document.querySelector('.quickstart'),
|
document.querySelector('.quickstart'),
|
||||||
600,
|
600,
|
||||||
@ -79,7 +78,6 @@
|
|||||||
backDelay: 1200,
|
backDelay: 1200,
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log('asd')
|
|
||||||
var typed = new Typed('#typed', options);
|
var typed = new Typed('#typed', options);
|
||||||
}
|
}
|
||||||
function scrollIt(destination, duration = 200, easing = 'linear', callback) {
|
function scrollIt(destination, duration = 200, easing = 'linear', callback) {
|
||||||
@ -170,7 +168,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.8.4</span></div>
|
<div class="version">Current Version: <span id="version">4.9.0</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 +191,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,665</div>
|
<div class="numbers">8,733</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">
|
||||||
|
|||||||
@ -193,12 +193,6 @@ function dockerContainerInspect(containerID, payload) {
|
|||||||
|
|
||||||
_docker_socket.getInspect(containerID.trim(), data => {
|
_docker_socket.getInspect(containerID.trim(), data => {
|
||||||
try {
|
try {
|
||||||
// console.log('========================================================')
|
|
||||||
// console.log(payload)
|
|
||||||
// console.log('---------------------------------------------')
|
|
||||||
// console.log(data)
|
|
||||||
// console.log('========================================================')
|
|
||||||
|
|
||||||
resolve({
|
resolve({
|
||||||
id: payload.Id,
|
id: payload.Id,
|
||||||
name: payload.Name,
|
name: payload.Name,
|
||||||
|
|||||||
@ -308,9 +308,11 @@ function graphics(callback) {
|
|||||||
model_raw = model_raw.substr(0, model_raw.indexOf('0a'));
|
model_raw = model_raw.substr(0, model_raw.indexOf('0a'));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
result.model = model_raw.match(/.{1,2}/g).map(function (v) {
|
if (model_raw.length > 2) {
|
||||||
return String.fromCharCode(parseInt(v, 16));
|
result.model = model_raw.match(/.{1,2}/g).map(function (v) {
|
||||||
}).join('');
|
return String.fromCharCode(parseInt(v, 16));
|
||||||
|
}).join('');
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
util.noop();
|
util.noop();
|
||||||
}
|
}
|
||||||
@ -393,8 +395,8 @@ function graphics(callback) {
|
|||||||
const parts1 = lines[i].split('(');
|
const parts1 = lines[i].split('(');
|
||||||
if (parts1 && parts1.length > 1 && parts1[0].indexOf('x') >= 0) {
|
if (parts1 && parts1.length > 1 && parts1[0].indexOf('x') >= 0) {
|
||||||
const resParts = parts1[0].trim().split('x');
|
const resParts = parts1[0].trim().split('x');
|
||||||
currentDisplay.currentResolutionx = util.toInt(resParts[0]);
|
currentDisplay.currentResX = util.toInt(resParts[0]);
|
||||||
currentDisplay.currentResolutiony = util.toInt(resParts[1]);
|
currentDisplay.currentResY = util.toInt(resParts[1]);
|
||||||
}
|
}
|
||||||
is_current = true;
|
is_current = true;
|
||||||
}
|
}
|
||||||
@ -526,9 +528,15 @@ function graphics(callback) {
|
|||||||
if (result.controllers.length === 1 && result.displays.length === 1) {
|
if (result.controllers.length === 1 && result.displays.length === 1) {
|
||||||
if (_resolutionx) {
|
if (_resolutionx) {
|
||||||
result.displays[0].currentResX = _resolutionx;
|
result.displays[0].currentResX = _resolutionx;
|
||||||
|
if (!result.displays[0].resolutionx) {
|
||||||
|
result.displays[0].resolutionx = _resolutionx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (_resolutiony) {
|
if (_resolutiony) {
|
||||||
result.displays[0].currentResY = _resolutiony;
|
result.displays[0].currentResY = _resolutiony;
|
||||||
|
if (result.displays[0].resolutiony === 0) {
|
||||||
|
result.displays[0].resolutiony = _resolutiony;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (_pixeldepth) {
|
if (_pixeldepth) {
|
||||||
result.displays[0].pixeldepth = _pixeldepth;
|
result.displays[0].pixeldepth = _pixeldepth;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user