@abtnode/ux 1.8.65-beta-db7f2529 → 1.8.65
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/lib/monitor/cpu.js +4 -4
- package/package.json +7 -7
package/lib/monitor/cpu.js
CHANGED
|
@@ -21,7 +21,7 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
|
|
|
21
21
|
const formatNumber = x => "".concat(x, "%");
|
|
22
22
|
function CpuMonitor(_ref) {
|
|
23
23
|
let {
|
|
24
|
-
|
|
24
|
+
cpus,
|
|
25
25
|
currentLoad,
|
|
26
26
|
history,
|
|
27
27
|
hideDescription
|
|
@@ -91,18 +91,18 @@ function CpuMonitor(_ref) {
|
|
|
91
91
|
children: tooltipState.textContent
|
|
92
92
|
})]
|
|
93
93
|
}),
|
|
94
|
-
description: "".concat(t('system.cores'), ": ").concat(
|
|
94
|
+
description: "".concat(t('system.cores'), ": ").concat((cpus === null || cpus === void 0 ? void 0 : cpus.length) || 0),
|
|
95
95
|
hideDescription: hideDescription
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
CpuMonitor.propTypes = {
|
|
99
|
-
|
|
99
|
+
cpus: _propTypes.default.array,
|
|
100
100
|
currentLoad: _propTypes.default.number,
|
|
101
101
|
history: _propTypes.default.array,
|
|
102
102
|
hideDescription: _propTypes.default.bool
|
|
103
103
|
};
|
|
104
104
|
CpuMonitor.defaultProps = {
|
|
105
|
-
|
|
105
|
+
cpus: [],
|
|
106
106
|
currentLoad: 0,
|
|
107
107
|
history: [],
|
|
108
108
|
hideDescription: false
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.65
|
|
6
|
+
"version": "1.8.65",
|
|
7
7
|
"description": "UX components shared across abtnode packages",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@abtnode/auth": "1.8.65
|
|
25
|
-
"@abtnode/constant": "1.8.65
|
|
26
|
-
"@abtnode/util": "1.8.65
|
|
24
|
+
"@abtnode/auth": "1.8.65",
|
|
25
|
+
"@abtnode/constant": "1.8.65",
|
|
26
|
+
"@abtnode/util": "1.8.65",
|
|
27
27
|
"@arcblock/did-connect": "^2.4.71",
|
|
28
28
|
"@arcblock/did-motif": "^1.1.10",
|
|
29
29
|
"@arcblock/icons": "^2.4.71",
|
|
30
30
|
"@arcblock/terminal": "^2.4.71",
|
|
31
31
|
"@arcblock/ux": "^2.4.71",
|
|
32
|
-
"@blocklet/constant": "1.8.65
|
|
32
|
+
"@blocklet/constant": "1.8.65",
|
|
33
33
|
"@blocklet/launcher-layout": "^1.9.58",
|
|
34
34
|
"@blocklet/list": "^0.10.50",
|
|
35
|
-
"@blocklet/meta": "1.8.65
|
|
35
|
+
"@blocklet/meta": "1.8.65",
|
|
36
36
|
"@blocklet/ui-react": "^2.4.71",
|
|
37
37
|
"@emotion/react": "^11.10.4",
|
|
38
38
|
"@emotion/styled": "^11.10.4",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"@babel/preset-react": "^7.18.6",
|
|
87
87
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "69b608353fbbdb7c61f9ccb10965a1d0c55c45f2"
|
|
90
90
|
}
|