Drop lame imports

This commit is contained in:
Jack Kingsman
2026-04-03 17:51:26 -07:00
parent 67873e8dd9
commit 77db7287d6
4 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -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,
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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;
} }