mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-10 02:33:04 +02:00
Drop lame imports
This commit is contained in:
@@ -6,10 +6,7 @@ import { getRawPacketObservationKey } from './rawPacketIdentity';
|
|||||||
export const RAW_PACKET_STATS_WINDOWS = ['1m', '5m', '10m', '30m', 'session'] as const;
|
export const RAW_PACKET_STATS_WINDOWS = ['1m', '5m', '10m', '30m', 'session'] as const;
|
||||||
export type RawPacketStatsWindow = (typeof RAW_PACKET_STATS_WINDOWS)[number];
|
export type RawPacketStatsWindow = (typeof RAW_PACKET_STATS_WINDOWS)[number];
|
||||||
|
|
||||||
export const RAW_PACKET_STATS_WINDOW_SECONDS: Record<
|
const RAW_PACKET_STATS_WINDOW_SECONDS: Record<Exclude<RawPacketStatsWindow, 'session'>, number> = {
|
||||||
Exclude<RawPacketStatsWindow, 'session'>,
|
|
||||||
number
|
|
||||||
> = {
|
|
||||||
'1m': 60,
|
'1m': 60,
|
||||||
'5m': 5 * 60,
|
'5m': 5 * 60,
|
||||||
'10m': 10 * 60,
|
'10m': 10 * 60,
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export type ServerLoginAttemptState =
|
|||||||
at: number;
|
at: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function getServerLoginMethodLabel(
|
function getServerLoginMethodLabel(
|
||||||
method: ServerLoginMethod,
|
method: ServerLoginMethod,
|
||||||
blankLabel = 'existing-access'
|
blankLabel = 'existing-access'
|
||||||
): string {
|
): string {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export interface VisualizerSettings {
|
|||||||
hidePacketFeed: boolean;
|
hidePacketFeed: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const VISUALIZER_DEFAULTS: VisualizerSettings = {
|
const VISUALIZER_DEFAULTS: VisualizerSettings = {
|
||||||
showAmbiguousPaths: true,
|
showAmbiguousPaths: true,
|
||||||
showAmbiguousNodes: false,
|
showAmbiguousNodes: false,
|
||||||
useAdvertPathHints: true,
|
useAdvertPathHints: true,
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export interface PathStep {
|
|||||||
hiddenLabel?: string | null;
|
hiddenLabel?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function normalizeHopToken(hop: string | null | undefined): string | null {
|
function normalizeHopToken(hop: string | null | undefined): string | null {
|
||||||
const normalized = hop?.trim().toLowerCase() ?? '';
|
const normalized = hop?.trim().toLowerCase() ?? '';
|
||||||
return normalized.length > 0 ? normalized : null;
|
return normalized.length > 0 ? normalized : null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user