Added some basic system info gathering
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -3,6 +3,22 @@ si = require('systeminformation')
|
||||
window.onload = () ->
|
||||
si.cpu()
|
||||
.then((data) ->
|
||||
document.getElementById('cpuInfo').innerText = data.brand
|
||||
console.log(data)
|
||||
).catch((error) ->
|
||||
console.error(error)
|
||||
)
|
||||
si.cpuTemperature()
|
||||
.then((data) ->
|
||||
document.getElementById('cpuTemp').innerText = data.main
|
||||
console.log(data)
|
||||
).catch((error) ->
|
||||
console.error(error)
|
||||
)
|
||||
|
||||
si.graphics()
|
||||
.then((data) ->
|
||||
document.getElementById('gpuInfo').innerText = data.controllers[0].model
|
||||
console.log(data)
|
||||
).catch((error) ->
|
||||
console.error(error)
|
||||
|
Reference in New Issue
Block a user