tabby-group-server-stats 1.7.1 → 1.7.2
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/PUBLISHING.zh-CN.md +6 -6
- package/README.en.md +9 -3
- package/README.md +9 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/typings/components/metric-strip.component.d.ts +6 -0
- package/typings/metric-display.d.ts +11 -0
package/package.json
CHANGED
|
@@ -61,7 +61,13 @@ export declare class MetricStripComponent implements OnInit, OnChanges, OnDestro
|
|
|
61
61
|
status(metric: CustomMetric): string;
|
|
62
62
|
color(metric: CustomMetric): string;
|
|
63
63
|
progress(metric: CustomMetric): number;
|
|
64
|
+
private isNetworkRate;
|
|
65
|
+
displayValue(metric: CustomMetric): string;
|
|
64
66
|
suffix(metric: CustomMetric): string;
|
|
67
|
+
detailRatio(metric: CustomMetric): import("../metric-display").NumericRatio;
|
|
68
|
+
ratioColumnWidth(group: CustomMetricGroup, column: 'numerator' | 'denominator'): string;
|
|
69
|
+
ratioUnitWidth(group: CustomMetricGroup): string;
|
|
70
|
+
networkAmountWidth(group: CustomMetricGroup): string;
|
|
65
71
|
detailError(metric: CustomMetric): boolean;
|
|
66
72
|
networkDetail(metric: CustomMetric): {
|
|
67
73
|
label: string;
|
|
@@ -4,6 +4,17 @@ export interface DisplayResult {
|
|
|
4
4
|
value: string;
|
|
5
5
|
status?: 'ok' | 'unavailable' | 'error' | 'pending';
|
|
6
6
|
}
|
|
7
|
+
/** True only for a complete, finite numeric display value (including grouped values). */
|
|
8
|
+
export declare function isNumericDisplayValue(value: string): boolean;
|
|
9
|
+
/** Convert a KiB/s reading to decimal MB/s with exactly three fractional digits. */
|
|
10
|
+
export declare function formatNetworkRate(value: string): string;
|
|
11
|
+
export interface NumericRatio {
|
|
12
|
+
numerator: string;
|
|
13
|
+
denominator: string;
|
|
14
|
+
suffix: string;
|
|
15
|
+
}
|
|
16
|
+
/** Split capacity-style pairs into independent columns without changing precision. */
|
|
17
|
+
export declare function parseNumericRatio(value: string): NumericRatio | null;
|
|
7
18
|
/** Parse the built-in network protocol without translating numbers or interface names. */
|
|
8
19
|
export declare function parseNetworkDetail(value: string): {
|
|
9
20
|
label: string;
|