diff --git a/src/shared/versions.js b/src/shared/versions.js index 617a55a..da63e63 100644 --- a/src/shared/versions.js +++ b/src/shared/versions.js @@ -1,6 +1,6 @@ export const HARBOR_VERSIONS = Object.freeze({ - macClient: '0.12.0', - gatewayClient: '0.12.0', + macClient: '0.12.1', + gatewayClient: '0.12.1', gatewayBackend: '0.12.0', }); diff --git a/src/web/components/DevicesPanel.jsx b/src/web/components/DevicesPanel.jsx index 3d6e619..2174bfc 100644 --- a/src/web/components/DevicesPanel.jsx +++ b/src/web/components/DevicesPanel.jsx @@ -6,11 +6,6 @@ import { sortDevicesByTraffic, } from '../utils/format.js'; -const STATUS_LABELS = { - online: 'В сети', - recent: 'Недавно', - offline: 'Не в сети', -}; const AUTO_REFRESH_MS = 15_000; const DEVICE_MOVE_MS = 520; @@ -250,7 +245,7 @@ export function DevicesPanel({ open, panelRef, closeRef, onClose }) { const editing = editingId === device.id; const saving = savingId === device.id; const seen = formatLastSeen(device.lastSeenAt); - const uncertainIdentity = device.confidence !== 'high'; + const online = device.status === 'online'; const download = formatByteString(device.downloadBytes); const upload = formatByteString(device.uploadBytes); const policyBusy = device.policyStatus === 'applying'; @@ -285,7 +280,6 @@ export function DevicesPanel({ open, panelRef, closeRef, onClose }) { key={device.id} >
- {STATUS_LABELS[device.status]} {editing ? (
saveAlias(event, device)}> {title !== device.ip && device.ip && {device.ip}} {device.manufacturer && {device.manufacturer}} - {uncertainIdentity && - ⓘ - {device.confidence === 'medium' - ? 'Устройство использует приватный MAC, производитель может не определиться' - : device.confidence === 'ambiguous' - ? 'Gateway видит это устройство с несколькими IP или интерфейсами, поэтому индивидуальное правило небезопасно' - : 'Устройство определено приблизительно'} - }