src/constants
Centralized constants for the Uptime Watcher application.
Remarksโ
Contains configuration values, UI constants, fallback data, and type definitions used throughout the frontend application. This module serves as the single source of truth for application-wide constants to ensure consistency and maintainability.
Exampleโ
import { TRANSITION_ALL, FALLBACK_MONITOR_TYPE_OPTIONS } from "./constants";
// Use transition timing for animations
const buttonStyle = { transition: TRANSITION_ALL };
// Use fallback monitor types when backend is unavailable
const monitorOptions = FALLBACK_MONITOR_TYPE_OPTIONS;
Interfacesโ
Type Aliasesโ
Variablesโ
- TRANSITION_ALL
- FALLBACK_MONITOR_TYPE_OPTIONS
- FONT_FAMILY_MONO
- FONT_FAMILY_SANS
- CHECK_INTERVALS
- DEFAULT_CHECK_INTERVAL
- DEFAULT_REQUEST_TIMEOUT
- DEFAULT_REQUEST_TIMEOUT_SECONDS
- DEFAULT_HISTORY_LIMIT
- HISTORY_LIMIT_OPTIONS
- TIMEOUT_CONSTRAINTS
- TIMEOUT_CONSTRAINTS_MS
- RETRY_CONSTRAINTS
- UI_DELAYS
- CHART_TIME_PERIODS
- CHART_TIME_RANGES
- ARIA_LABEL