feat(routers): integrate Banana Pi Client API and onboard LibreSpeed measurements

Discover Ethernet routers under the board, map physical SIM slots, expose vendor controls and real telemetry, and provide packaged VPS speed tests with a live monochrome gauge. Enforce compact typography across Core and Node UI.
This commit is contained in:
DCCONSTRUCTIONS
2026-11-11 23:53:46 +03:00
parent 58ac9fe3d2
commit a49fb00b8e
208 changed files with 7007 additions and 881 deletions
@@ -1,4 +1,4 @@
import {
import { Description,
ActivityIndicator,
Button,
GlassSurface,
@@ -100,10 +100,10 @@ function RecoveryAction({
>
Прервать соединение
</Button>
<p>
<Description>
Завершит только локальный front/back-приём и сохранение. START, STOP,
Bluetooth и настройки устройства не отправляются.
</p>
</Description>
</div>
);
}
@@ -1,6 +1,6 @@
import {K1AcquisitionFields} from './K1AcquisitionFields';
import { useEffect, useMemo, useRef, useState } from "react";
import {
import { Description,
ActivityIndicator,
Button,
Checker,
@@ -501,7 +501,7 @@ export function K1AcquisitionPipeline({
</div>
)}
<div className="session-footer">
<p>
<Description>
{physicalStopGuidanceCopy
? physicalStopGuidanceCopy
: recoveredPhysicalStop && physicalStopExecutable
@@ -517,7 +517,7 @@ export function K1AcquisitionPipeline({
? "Остановка завершает только локальный приём и сохранение. Состояние сканирования остаётся неизвестным."
: "Действие остановки сейчас не разрешено. Дождитесь нового подтверждённого состояния или выполните read-only восстановление."
: "Активного источника сейчас нет."}
</p>
</Description>
{physicalStopPresented || localReceiverStopExecutable ? (
<Button
variant="secondary"
@@ -1,4 +1,4 @@
import { GlassSurface, StatusBadge } from "@nodedc/ui-react";
import { Description, GlassSurface, StatusBadge } from "@nodedc/ui-react";
import type { ReactNode } from "react";
import {
@@ -25,7 +25,7 @@ function LatencyTrace({ values }: { values: number[] }) {
<div className="latency-trace" aria-label="Последние измерения времени до публикации">
{values.length ? values.map((value, index) => (
<span key={`${index}-${value}`} style={{ height: `${Math.max(8, Math.min(100, (value / ceiling) * 100))}%` }} title={`${value.toFixed(1)} мс`} />
)) : <p>Измерений пока нет. График появится после получения реальных данных.</p>}
)) : <Description>Измерений пока нет. График появится после получения реальных данных.</Description>}
</div>
);
}
@@ -1,5 +1,5 @@
import { useState, type ReactNode } from "react";
import { Button } from "@nodedc/ui-react";
import { Description, Button } from "@nodedc/ui-react";
import type { XgridsConnectionAttempt } from "../api";
import { hostFailureDiagnosticPresentation } from "../hostDiagnosticPresentation";
@@ -146,7 +146,7 @@ export function K1OperatorError({
<span className="error-banner__dot" aria-hidden="true" />
<div className="error-banner__copy">
<strong>{stationFailure ? "Не удалось подключить K1 к Wi‑Fi" : title}</strong>
<p>{publicConnectionErrorLabel(attempt, structured)}</p>
<Description>{publicConnectionErrorLabel(attempt, structured)}</Description>
{recoveryActions ? (
<div className="error-banner__recovery-actions">
{recoveryActions}
@@ -1,4 +1,4 @@
import { GlassSurface } from "@nodedc/ui-react";
import { Description, GlassSurface } from "@nodedc/ui-react";
export interface MetricCardProps {
eyebrow: string;
@@ -16,7 +16,7 @@ export function MetricCard({ eyebrow, value, unit, detail, featured = false }: M
<strong>{value}</strong>
{unit ? <span>{unit}</span> : null}
</div>
<p>{detail}</p>
<Description>{detail}</Description>
</GlassSurface>
);
}