client tabledefs: add name & icon
This commit is contained in:
parent
405df9acfc
commit
5bbe91c3e9
2 changed files with 77 additions and 69 deletions
|
@ -2,43 +2,47 @@
|
||||||
|
|
||||||
import human_filesize from '../misc/human_filesize.mjs';
|
import human_filesize from '../misc/human_filesize.mjs';
|
||||||
|
|
||||||
export default [
|
export default {
|
||||||
{
|
name: "Hardware: CPU",
|
||||||
name: "Model",
|
icon: [ "square-o", "microchip" ],
|
||||||
type: "table",
|
items: [
|
||||||
content: "{{manufacturer}} {{brand}}"
|
{
|
||||||
},
|
name: "Model",
|
||||||
{
|
type: "table",
|
||||||
name: "Speed (GHz)",
|
content: "{{manufacturer}} {{brand}}"
|
||||||
type: "table",
|
},
|
||||||
content: {
|
{
|
||||||
"Speed": "{{speed}}",
|
name: "Speed (GHz)",
|
||||||
"Speed (min)": "{{speedMin}}",
|
type: "table",
|
||||||
"Speed (max)": "{{speedMax}}",
|
content: {
|
||||||
}
|
"Speed": "{{speed}}",
|
||||||
},
|
"Speed (min)": "{{speedMin}}",
|
||||||
{
|
"Speed (max)": "{{speedMax}}",
|
||||||
name: "Core layout",
|
}
|
||||||
type: "table",
|
},
|
||||||
content: {
|
{
|
||||||
"Processors": "{{processors}}",
|
name: "Core layout",
|
||||||
"Cores": "{{cores}}",
|
type: "table",
|
||||||
"Physical Cores": "{{physicalCores}}"
|
content: {
|
||||||
}
|
"Processors": "{{processors}}",
|
||||||
},
|
"Cores": "{{cores}}",
|
||||||
{
|
"Physical Cores": "{{physicalCores}}"
|
||||||
name: "Governor",
|
}
|
||||||
type: "table",
|
},
|
||||||
content: "{{governor}}"
|
{
|
||||||
},
|
name: "Governor",
|
||||||
{
|
type: "table",
|
||||||
name: "Cache",
|
content: "{{governor}}"
|
||||||
type: "table",
|
},
|
||||||
content: {
|
{
|
||||||
"L1 (data)": (table) => `${human_filesize(table.cache.l1d)}`,
|
name: "Cache",
|
||||||
"L1 (instruction)": (table) => `${human_filesize(table.cache.l1i)}`,
|
type: "table",
|
||||||
"L2": (table) => `${human_filesize(table.cache.l2)}`,
|
content: {
|
||||||
"L3": (table) => `${human_filesize(table.cache.l3)}`,
|
"L1 (data)": (table) => `${human_filesize(table.cache.l1d)}`,
|
||||||
}
|
"L1 (instruction)": (table) => `${human_filesize(table.cache.l1i)}`,
|
||||||
},
|
"L2": (table) => `${human_filesize(table.cache.l2)}`,
|
||||||
];
|
"L3": (table) => `${human_filesize(table.cache.l3)}`,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|
|
@ -2,33 +2,37 @@
|
||||||
|
|
||||||
import human_filesize from '../misc/human_filesize.mjs';
|
import human_filesize from '../misc/human_filesize.mjs';
|
||||||
|
|
||||||
export default [
|
export default {
|
||||||
{
|
name: "CPU",
|
||||||
name: "Frequency (GHz)",
|
icon: microchip,
|
||||||
type: "guage",
|
items: [
|
||||||
guage: { min: 0, max: 6 },
|
{
|
||||||
content: {
|
name: "Frequency (GHz)",
|
||||||
"min": "frequency.min",
|
type: "guage",
|
||||||
"max": "frequency.max",
|
guage: { min: 0, max: 6 },
|
||||||
"average": "frequency.avg"
|
content: {
|
||||||
|
"min": "frequency.min",
|
||||||
|
"max": "frequency.max",
|
||||||
|
"average": "frequency.avg"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Frequency per-core (GHz)",
|
||||||
|
type: "guage",
|
||||||
|
guage: { min: 0, max: 6 },
|
||||||
|
content: (table) => table.frequency.cores
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Temperature (°C)",
|
||||||
|
type: "guage",
|
||||||
|
guage: { min: 0, max: 100 },
|
||||||
|
content: "main",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Chipset temperature (°C)",
|
||||||
|
type: "guage",
|
||||||
|
guage: { min: 0, max: 100 },
|
||||||
|
content: "main"
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
};
|
||||||
name: "Frequency per-core (GHz)",
|
|
||||||
type: "guage",
|
|
||||||
guage: { min: 0, max: 6 },
|
|
||||||
content: (table) => table.frequency.cores
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Temperature (°C)",
|
|
||||||
type: "guage",
|
|
||||||
guage: { min: 0, max: 100 },
|
|
||||||
content: "main",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Chipset temperature (°C)",
|
|
||||||
type: "guage",
|
|
||||||
guage: { min: 0, max: 100 },
|
|
||||||
content: "main"
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
Loading…
Reference in a new issue