zavadil-react-common 1.2.103 → 1.2.104
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.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/component/stats/CacheStatsControl.tsx +2 -2
- package/src/component/stats/JavaHeapControl.tsx +7 -5
- package/src/component/stats/QueueStatsControl.tsx +1 -1
|
@@ -18,7 +18,7 @@ export function JavaHeapControl({stats}: WorkerJavaHeapControlProps) {
|
|
|
18
18
|
<pre>Java Heap</pre>
|
|
19
19
|
<pre>[{ByteUtil.formatByteSize(size)} / {ByteUtil.formatByteSize(max)}]</pre>
|
|
20
20
|
</div>
|
|
21
|
-
<div>
|
|
21
|
+
<div className="d-flex align-items-center gap-2">
|
|
22
22
|
<pre>Used:</pre>
|
|
23
23
|
<Badge className="bg-warning text-bg-warning">
|
|
24
24
|
{ByteUtil.formatByteSize(used)}
|
|
@@ -28,10 +28,12 @@ export function JavaHeapControl({stats}: WorkerJavaHeapControlProps) {
|
|
|
28
28
|
{ByteUtil.formatByteSize(free)}
|
|
29
29
|
</Badge>
|
|
30
30
|
</div>
|
|
31
|
-
<
|
|
32
|
-
<ProgressBar
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
<div className="p-1">
|
|
32
|
+
<ProgressBar min={0} max={max}>
|
|
33
|
+
<ProgressBar variant="warning" min={0} now={used} max={max}/>
|
|
34
|
+
<ProgressBar variant="success" min={0} now={free} max={max}/>
|
|
35
|
+
</ProgressBar>
|
|
36
|
+
</div>
|
|
35
37
|
</div>
|
|
36
38
|
);
|
|
37
39
|
}
|
|
@@ -17,7 +17,7 @@ export function QueueStatsControl({name, stats}: QueueStatsControlProps) {
|
|
|
17
17
|
<pre>[{stats.processed} / {max}]</pre>
|
|
18
18
|
<QueueStateControl state={stats.state}/>
|
|
19
19
|
</div>
|
|
20
|
-
<div>
|
|
20
|
+
<div className="p-1">
|
|
21
21
|
<ProgressBar variant="primary" striped={true} animated={true} min={0} now={stats.processed} max={max || 1}/>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|