/* jshint esversion: 2024, module: true */ /** * Application state enumerations * @module Enums */ // Editor modes const EditorMode = { RAW: Symbol("raw"), STRUCTURED: Symbol("structured"), }; Object.freeze(EditorMode); // Panel types const PanelType = { STATUS: Symbol("status"), CONFIGS: Symbol("configs"), LOGS: Symbol("logs"), COMMANDS: Symbol("commands"), }; Object.freeze(PanelType); // Interface states const InterfaceState = { UP: Symbol("up"), DOWN: Symbol("down"), UNKNOWN: Symbol("unknown"), }; Object.freeze(InterfaceState); // Theme modes const ThemeMode = { LIGHT: Symbol("light"), DARK: Symbol("dark"), }; Object.freeze(ThemeMode); // Validation states const ValidationState = { PENDING: Symbol("pending"), SUCCESS: Symbol("success"), ERROR: Symbol("error"), }; Object.freeze(ValidationState); // API endpoints const ApiEndpoints = { STATUS: "/api/status", CONFIGS: "/api/configs", CONFIG: "/api/config", VALIDATE: "/api/validate", SAVE: "/api/save", LOGS: "/api/logs", RELOAD: "/api/reload", REBOOT: "/api/reboot", }; Object.freeze(ApiEndpoints); export { EditorMode, PanelType, InterfaceState, ThemeMode, ValidationState, ApiEndpoints, };