zavadil-react-common 1.1.32 → 1.1.33
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/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export type CacheStatsControlProps = {
|
|
|
7
7
|
stats: CacheStats;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
function CacheStatsControl({name, stats}: CacheStatsControlProps) {
|
|
10
|
+
export function CacheStatsControl({name, stats}: CacheStatsControlProps) {
|
|
11
11
|
return (
|
|
12
12
|
<div className="d-flex align-items-center gap-2">
|
|
13
13
|
<pre>{name}</pre>
|
|
@@ -22,5 +22,3 @@ function CacheStatsControl({name, stats}: CacheStatsControlProps) {
|
|
|
22
22
|
</div>
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
export default CacheStatsControl;
|
|
@@ -6,7 +6,7 @@ export type WorkerJavaHeapControlProps = {
|
|
|
6
6
|
stats: JavaHeapStats;
|
|
7
7
|
};
|
|
8
8
|
|
|
9
|
-
function JavaHeapControl({stats}: WorkerJavaHeapControlProps) {
|
|
9
|
+
export function JavaHeapControl({stats}: WorkerJavaHeapControlProps) {
|
|
10
10
|
const size = stats.heapSize;
|
|
11
11
|
const max = stats.heapMaxSize;
|
|
12
12
|
const free = stats.heapFreeSize;
|
|
@@ -33,5 +33,3 @@ function JavaHeapControl({stats}: WorkerJavaHeapControlProps) {
|
|
|
33
33
|
</div>
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
export default JavaHeapControl;
|
|
@@ -11,9 +11,7 @@ const STATE_COLORS = new Map<string, string>([
|
|
|
11
11
|
['Loading', 'warn'],
|
|
12
12
|
]);
|
|
13
13
|
|
|
14
|
-
function QueueStateControl({state}: QueueStateControlProps) {
|
|
14
|
+
export function QueueStateControl({state}: QueueStateControlProps) {
|
|
15
15
|
const color = STATE_COLORS.get(state) || 'primary';
|
|
16
16
|
return <Badge className={`bg-${color} text-white`}>{state}</Badge>
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
export default QueueStateControl;
|
|
@@ -8,7 +8,7 @@ export type QueueStatsControlProps = {
|
|
|
8
8
|
stats: QueueStats;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
function QueueStatsControl({name, stats}: QueueStatsControlProps) {
|
|
11
|
+
export function QueueStatsControl({name, stats}: QueueStatsControlProps) {
|
|
12
12
|
return (
|
|
13
13
|
<div className="d-flex align-items-center gap-2">
|
|
14
14
|
<pre>{name}</pre>
|
|
@@ -24,5 +24,3 @@ function QueueStatsControl({name, stats}: QueueStatsControlProps) {
|
|
|
24
24
|
</div>
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
export default QueueStatsControl;
|