seeder-st2110-components 1.2.1 → 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 +37 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +37 -32
- 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
|
};
|
|
@@ -2245,7 +2248,6 @@ const NetworkFieldGroup = _ref => {
|
|
|
2245
2248
|
interfaces,
|
|
2246
2249
|
fieldConfig = {}
|
|
2247
2250
|
} = _ref;
|
|
2248
|
-
console.log("fieldConfig", fieldConfig);
|
|
2249
2251
|
// 默认字段配置
|
|
2250
2252
|
const defaultFieldConfig = {
|
|
2251
2253
|
name: {
|
|
@@ -2263,9 +2265,12 @@ const NetworkFieldGroup = _ref => {
|
|
|
2263
2265
|
};
|
|
2264
2266
|
const mergedFieldConfig = {
|
|
2265
2267
|
...defaultFieldConfig,
|
|
2266
|
-
...fieldConfig
|
|
2268
|
+
...fieldConfig,
|
|
2269
|
+
netmask: {
|
|
2270
|
+
label: "Netmask",
|
|
2271
|
+
enabled: fieldConfig.netmask?.enabled ?? defaultFieldConfig.netmask.enabled // 合并 enabled
|
|
2272
|
+
}
|
|
2267
2273
|
};
|
|
2268
|
-
console.log("mergedFieldConfig", mergedFieldConfig);
|
|
2269
2274
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2270
2275
|
children: [/*#__PURE__*/jsxRuntime.jsx(antd.Typography.Title, {
|
|
2271
2276
|
level: 5,
|