Sentry/assets/coffee/gpu.coffee
Gregory Ballantine a7b1d6ab84
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Added a GPU info page
2022-05-26 21:12:59 -04:00

15 lines
581 B
CoffeeScript

si = require('systeminformation')
window.onload = () ->
si.graphics()
.then((data) ->
document.getElementById('gpuInfo').innerText = data.controllers[0].model
document.getElementById('gpuVendor').innerText = data.controllers[0].vendor
document.getElementById('gpuVendorId').innerText = data.controllers[0].vendorId
document.getElementById('gpuVram').innerText = data.controllers[0].vram + 'MB'
document.getElementById('gpuBus').innerText = data.controllers[0].bus
console.log(data)
).catch((error) ->
console.error(error)
)