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.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.jsxs("div", {
104
- className: "flex",
105
- children: [/*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
106
- text: "CPU Usage",
107
- iconClass: "icon-CPU",
108
- children: [cpu_percent, "%"]
109
- }), /*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
110
- text: "CPU Temperature",
111
- iconClass: "icon-wendu",
112
- children: [getTemperature(supermicro, sensors_temperatures), "\u2103"]
113
- }), mem && /*#__PURE__*/jsxRuntime.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__*/jsxRuntime.jsxs(UsageItem, {
120
- text: "NIC Temperature",
121
- iconClass: "icon-wuliwangka",
122
- children: [supermicro.nic_temperature, "\u2103"]
123
- }), gpu_stats?.length > 0 && /*#__PURE__*/jsxRuntime.jsx(UsageItem, {
124
- text: "GPU Usage",
125
- iconClass: "icon-gpufuwu",
126
- children: gpu_stats[0]["utilization.gpu"]
127
- }), supermicro?.gpu_temperature && /*#__PURE__*/jsxRuntime.jsxs(UsageItem, {
128
- text: "GPU Temperature",
129
- iconClass: "icon-wendu",
130
- children: [supermicro.gpu_temperature, "\u2103"]
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,