mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
regressing rn
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// Battery Utility Library
|
||||
// Purpose: Provides battery normalization, threshold classification, and display helpers. Scope: Keeps battery rendering/math consistent across UI components.
|
||||
export const WARN_DISPLAY_PERCENT = 10;
|
||||
|
||||
export function buildBatteryVisual({ batteryState = null, charge = null, config = null }) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Rover Color Utility
|
||||
// Purpose: Maps rover identity/state to deterministic UI color choices. Scope: Supplies shared color resolution helpers for lists, badges, and overlays.
|
||||
const HEX_RE = /^#[0-9A-Fa-f]{6}$/;
|
||||
|
||||
export function normalizeRoverColor(value) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Socket Library Helper
|
||||
// Purpose: Builds and exports the browser Socket.IO client with shared defaults. Scope: Centralizes connection URL/options so all modules use consistent socket behavior.
|
||||
import { io } from 'socket.io-client';
|
||||
import { loadSettings } from '../settings/persistence.js';
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// WHEP Player Helper
|
||||
// Purpose: Implements browser playback utilities for WHEP/WebRTC media streams. Scope: Manages stream attach/detach, lifecycle cleanup, and error handling hooks.
|
||||
/* global Buffer */
|
||||
|
||||
const RTC_CONFIG = {
|
||||
|
||||
Reference in New Issue
Block a user