Sentry/assets/coffee/index.coffee
Gregory Ballantine 056a5ad2a6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Added some basic system info gathering
2022-05-25 14:43:54 -04:00

26 lines
613 B
CoffeeScript

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)
)