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 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__*/jsxs("div", {
102
- className: "flex",
103
- children: [/*#__PURE__*/jsxs(UsageItem, {
104
- text: "CPU Usage",
105
- iconClass: "icon-CPU",
106
- children: [cpu_percent, "%"]
107
- }), /*#__PURE__*/jsxs(UsageItem, {
108
- text: "CPU Temperature",
109
- iconClass: "icon-wendu",
110
- children: [getTemperature(supermicro, sensors_temperatures), "\u2103"]
111
- }), mem && /*#__PURE__*/jsxs(UsageItem, {
112
- text: "Memory Usage",
113
- iconClass: "icon-shiyongshuai",
114
- showRam: showRam,
115
- ramValue: (mem.total / (1024 * 1024 * 1024)).toFixed(1),
116
- children: [mem.percent, "%"]
117
- }), supermicro?.nic_temperature && /*#__PURE__*/jsxs(UsageItem, {
118
- text: "NIC Temperature",
119
- iconClass: "icon-wuliwangka",
120
- children: [supermicro.nic_temperature, "\u2103"]
121
- }), gpu_stats?.length > 0 && /*#__PURE__*/jsx(UsageItem, {
122
- text: "GPU Usage",
123
- iconClass: "icon-gpufuwu",
124
- children: gpu_stats[0]["utilization.gpu"]
125
- }), supermicro?.gpu_temperature && /*#__PURE__*/jsxs(UsageItem, {
126
- text: "GPU Temperature",
127
- iconClass: "icon-wendu",
128
- children: [supermicro.gpu_temperature, "\u2103"]
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
  };