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.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.hardwareUsage_usage-status__tuYs6{color:hsla(0,0%,100%,.65);margin-right:24px}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_flex__EX5D2{align-items:center;display:flex}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_text-xl__jb1ls{font-size:20px;line-height:28px}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_inline-block__1HMr-{display:inline-block}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_text-center__TmJ6W{text-align:center}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_ant-divider-vertical__BihKU{border-inline-start:1px solid hsla(0,0%,99%,.42)}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_ant-flex__C0hJo:last-child .hardwareUsage_ant-divider-vertical__BihKU{border-inline-start:none;margin-inline:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.hardwareUsage_usage-status__tuYs6{color:hsla(0,0%,100%,.65);margin-right:24px}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_flex__EX5D2{align-items:center;display:flex}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_text-xl__jb1ls{font-size:20px;line-height:28px}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_inline-block__1HMr-{display:inline-block}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_text-center__TmJ6W{text-align:center}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_ant-divider-vertical__BihKU{border-inline-start:1px solid hsla(0,0%,99%,.42)}.hardwareUsage_usage-status__tuYs6 .hardwareUsage_ant-flex__C0hJo:last-child .hardwareUsage_ant-divider-vertical__BihKU{border-inline-start:none;margin-inline:0}
|
package/dist/index.esm.js
CHANGED
|
@@ -98,35 +98,38 @@ const useHardwareUsage = function (ps_status) {
|
|
|
98
98
|
gpu_stats,
|
|
99
99
|
supermicro
|
|
100
100
|
} = ps_status;
|
|
101
|
-
return /*#__PURE__*/
|
|
102
|
-
className: "
|
|
103
|
-
children:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
101
|
+
return /*#__PURE__*/jsx("div", {
|
|
102
|
+
className: "usage-status",
|
|
103
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
104
|
+
className: "flex",
|
|
105
|
+
children: [/*#__PURE__*/jsxs(UsageItem, {
|
|
106
|
+
text: "CPU Usage",
|
|
107
|
+
iconClass: "icon-CPU",
|
|
108
|
+
children: [cpu_percent, "%"]
|
|
109
|
+
}), /*#__PURE__*/jsxs(UsageItem, {
|
|
110
|
+
text: "CPU Temperature",
|
|
111
|
+
iconClass: "icon-wendu",
|
|
112
|
+
children: [getTemperature(supermicro, sensors_temperatures), "\u2103"]
|
|
113
|
+
}), mem && /*#__PURE__*/jsxs(UsageItem, {
|
|
114
|
+
text: "Memory Usage",
|
|
115
|
+
iconClass: "icon-shiyongshuai",
|
|
116
|
+
showRam: showRam,
|
|
117
|
+
ramValue: (mem.total / (1024 * 1024 * 1024)).toFixed(1),
|
|
118
|
+
children: [mem.percent, "%"]
|
|
119
|
+
}), supermicro?.nic_temperature && /*#__PURE__*/jsxs(UsageItem, {
|
|
120
|
+
text: "NIC Temperature",
|
|
121
|
+
iconClass: "icon-wuliwangka",
|
|
122
|
+
children: [supermicro.nic_temperature, "\u2103"]
|
|
123
|
+
}), gpu_stats?.length > 0 && /*#__PURE__*/jsx(UsageItem, {
|
|
124
|
+
text: "GPU Usage",
|
|
125
|
+
iconClass: "icon-gpufuwu",
|
|
126
|
+
children: gpu_stats[0]["utilization.gpu"]
|
|
127
|
+
}), supermicro?.gpu_temperature && /*#__PURE__*/jsxs(UsageItem, {
|
|
128
|
+
text: "GPU Temperature",
|
|
129
|
+
iconClass: "icon-wendu",
|
|
130
|
+
children: [supermicro.gpu_temperature, "\u2103"]
|
|
131
|
+
})]
|
|
132
|
+
})
|
|
130
133
|
});
|
|
131
134
|
}, [ps_status]);
|
|
132
135
|
};
|
|
@@ -2243,7 +2246,6 @@ const NetworkFieldGroup = _ref => {
|
|
|
2243
2246
|
interfaces,
|
|
2244
2247
|
fieldConfig = {}
|
|
2245
2248
|
} = _ref;
|
|
2246
|
-
console.log("fieldConfig", fieldConfig);
|
|
2247
2249
|
// 默认字段配置
|
|
2248
2250
|
const defaultFieldConfig = {
|
|
2249
2251
|
name: {
|
|
@@ -2261,9 +2263,12 @@ const NetworkFieldGroup = _ref => {
|
|
|
2261
2263
|
};
|
|
2262
2264
|
const mergedFieldConfig = {
|
|
2263
2265
|
...defaultFieldConfig,
|
|
2264
|
-
...fieldConfig
|
|
2266
|
+
...fieldConfig,
|
|
2267
|
+
netmask: {
|
|
2268
|
+
label: "Netmask",
|
|
2269
|
+
enabled: fieldConfig.netmask?.enabled ?? defaultFieldConfig.netmask.enabled // 合并 enabled
|
|
2270
|
+
}
|
|
2265
2271
|
};
|
|
2266
|
-
console.log("mergedFieldConfig", mergedFieldConfig);
|
|
2267
2272
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
2268
2273
|
children: [/*#__PURE__*/jsx(Typography.Title, {
|
|
2269
2274
|
level: 5,
|