client tabledefs: add name & icon

This commit is contained in:
Starbeamrainbowlabs 2022-02-27 02:04:42 +00:00
parent 405df9acfc
commit 5bbe91c3e9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 77 additions and 69 deletions

View file

@ -2,7 +2,10 @@
import human_filesize from '../misc/human_filesize.mjs';
export default [
export default {
name: "Hardware: CPU",
icon: [ "square-o", "microchip" ],
items: [
{
name: "Model",
type: "table",
@ -41,4 +44,5 @@ export default [
"L3": (table) => `${human_filesize(table.cache.l3)}`,
}
},
];
]
};

View file

@ -2,7 +2,10 @@
import human_filesize from '../misc/human_filesize.mjs';
export default [
export default {
name: "CPU",
icon: microchip,
items: [
{
name: "Frequency (GHz)",
type: "guage",
@ -31,4 +34,5 @@ export default [
guage: { min: 0, max: 100 },
content: "main"
}
];
]
};