mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-07-06 09:52:06 +02:00
Prune telemetry entries, remove uplot comments, format code
This commit is contained in:
committed by
Jack Kingsman
parent
c808f0930b
commit
967dd05fad
@@ -123,9 +123,7 @@ export function TelemetryHistoryPane({
|
||||
tick={{ fontSize: 10, fill: 'hsl(var(--muted-foreground))' }}
|
||||
tickLine={false}
|
||||
axisLine={false}
|
||||
tickFormatter={(v) =>
|
||||
metric === 'uptime_seconds' ? formatUptime(v) : `${v}`
|
||||
}
|
||||
tickFormatter={(v) => (metric === 'uptime_seconds' ? formatUptime(v) : `${v}`)}
|
||||
/>
|
||||
<RechartsTooltip
|
||||
{...TOOLTIP_STYLE}
|
||||
@@ -139,7 +137,8 @@ export function TelemetryHistoryPane({
|
||||
formatter={(value: any, name: any) => {
|
||||
const numVal = typeof value === 'number' ? value : Number(value);
|
||||
const display = metric === 'uptime_seconds' ? formatUptime(numVal) : `${value}`;
|
||||
const suffix = metric === 'uptime_seconds' ? '' : config.unit ? ` ${config.unit}` : '';
|
||||
const suffix =
|
||||
metric === 'uptime_seconds' ? '' : config.unit ? ` ${config.unit}` : '';
|
||||
const label =
|
||||
metric === 'packets'
|
||||
? name === 'packets_received'
|
||||
|
||||
@@ -8,7 +8,7 @@ class ResizeObserver {
|
||||
|
||||
globalThis.ResizeObserver = ResizeObserver;
|
||||
|
||||
// uPlot calls matchMedia at import time for DPI detection
|
||||
// Several components call matchMedia at import time for responsive detection
|
||||
if (typeof globalThis.matchMedia === 'undefined') {
|
||||
Object.defineProperty(globalThis, 'matchMedia', {
|
||||
value: (query: string) => ({
|
||||
|
||||
@@ -473,7 +473,7 @@ export interface PaneState {
|
||||
|
||||
export interface TelemetryHistoryEntry {
|
||||
timestamp: number;
|
||||
data: RepeaterStatusResponse;
|
||||
data: Record<string, number>;
|
||||
}
|
||||
|
||||
export interface TraceResponse {
|
||||
|
||||
Reference in New Issue
Block a user