Added new event viewer to the WebUI. Migrated requests to use the new event system.

This commit is contained in:
Abdulmhsen B. A. A.
2024-08-18 18:35:19 +03:00
parent 91e5b0cbc9
commit fcdcee7db4
29 changed files with 1257 additions and 437 deletions

View File

@@ -0,0 +1,20 @@
const makeName = id => id.split('-').slice(0)[0]
const getStatusClass = status => {
switch (status) {
case 0:
return 'is-light'
case 1:
return 'is-warning'
case 2:
return 'is-success'
case 3:
return 'is-danger'
case 4:
return 'is-danger is-light'
default:
return 'is-light'
}
}
export {makeName, getStatusClass}