seeder-st2110-components 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -0
- package/dist/index.esm.css +1 -0
- package/dist/index.esm.js +32 -29
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +32 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -100,35 +100,38 @@ const useHardwareUsage = function (ps_status) {
|
|
|
100
100
|
gpu_stats,
|
|
101
101
|
supermicro
|
|
102
102
|
} = ps_status;
|
|
103
|
-
return /*#__PURE__*/jsxRuntime.
|
|
104
|
-
className: "
|
|
105
|
-
children:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
103
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
104
|
+
className: "usage-status",
|
|
105
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
106
|
+
className: "flex",
|
|
107
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
|
|
108
|
+
text: "CPU Usage",
|
|
109
|
+
iconClass: "icon-CPU",
|
|
110
|
+
children: [cpu_percent, "%"]
|
|
111
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
|
|
112
|
+
text: "CPU Temperature",
|
|
113
|
+
iconClass: "icon-wendu",
|
|
114
|
+
children: [getTemperature(supermicro, sensors_temperatures), "\u2103"]
|
|
115
|
+
}), mem && /*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
|
|
116
|
+
text: "Memory Usage",
|
|
117
|
+
iconClass: "icon-shiyongshuai",
|
|
118
|
+
showRam: showRam,
|
|
119
|
+
ramValue: (mem.total / (1024 * 1024 * 1024)).toFixed(1),
|
|
120
|
+
children: [mem.percent, "%"]
|
|
121
|
+
}), supermicro?.nic_temperature && /*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
|
|
122
|
+
text: "NIC Temperature",
|
|
123
|
+
iconClass: "icon-wuliwangka",
|
|
124
|
+
children: [supermicro.nic_temperature, "\u2103"]
|
|
125
|
+
}), gpu_stats?.length > 0 && /*#__PURE__*/jsxRuntime.jsx(UsageItem, {
|
|
126
|
+
text: "GPU Usage",
|
|
127
|
+
iconClass: "icon-gpufuwu",
|
|
128
|
+
children: gpu_stats[0]["utilization.gpu"]
|
|
129
|
+
}), supermicro?.gpu_temperature && /*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
|
|
130
|
+
text: "GPU Temperature",
|
|
131
|
+
iconClass: "icon-wendu",
|
|
132
|
+
children: [supermicro.gpu_temperature, "\u2103"]
|
|
133
|
+
})]
|
|
134
|
+
})
|
|
132
135
|
});
|
|
133
136
|
}, [ps_status]);
|
|
134
137
|
};
|