Added a GPU info page
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-05-26 21:12:59 -04:00
parent e797b8a040
commit a7b1d6ab84
3 changed files with 34 additions and 2 deletions

View File

@ -4,6 +4,10 @@ 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)