b673e87c9b
Add hoover model.js as a central reactive store per subsystem, replacing per-component data fetching with a single source of truth. - Add hoover/model.js with modelRegister, modelFetch, and WS invalidation - Refactor websocket.js to route messages to model refresh (drop per-component subscribe/unsubscribe) - Simplify component.js by removing WS subscription management - Add refresh option to apiSubmit, deprecate refactorLoad and checkAbort - Rewrite all pages to use getModel() instead of inline data fetching - Bootstrap model registrations in app.js - Add GET /api/firewall/state endpoint - Fix restart-services.sh restart order and add service health verification - Update hoover.md docs with model layer architecture
45 lines
3.3 KiB
JavaScript
45 lines
3.3 KiB
JavaScript
/**
|
|
* Hoover — index.js
|
|
*
|
|
* Barrel export of all public Hoover APIs.
|
|
*/
|
|
|
|
/* ── Reactivity ──────────────────────────────────────────────── */
|
|
export { reactive, requestUpdate } from './reactivity.js?v=7';
|
|
|
|
/* ── VDOM ────────────────────────────────────────────────────── */
|
|
export { h } from './vdom.js?v=7';
|
|
|
|
/* ── Render ──────────────────────────────────────────────────── */
|
|
export { render } from './render.js?v=7';
|
|
|
|
/* ── Component ───────────────────────────────────────────────── */
|
|
export { definePage, hComp } from './component.js?v=7';
|
|
|
|
/* ── Router ──────────────────────────────────────────────────── */
|
|
export { createRouter, Link } from './router.js?v=7';
|
|
|
|
/* ── WebSocket ───────────────────────────────────────────────── */
|
|
export { connect, onMessage } from './websocket.js?v=7';
|
|
|
|
/* ── API & Toast ─────────────────────────────────────────────── */
|
|
export { apiFetch, toast, dismissToast, apiSubmit, checkAbort, poll, refactorLoad } from './api.js?v=7';
|
|
|
|
/* ── Model ───────────────────────────────────────────────────── */
|
|
export { modelRegister, getModel, modelFetch, collectLoadingModels } from './model.js?v=7';
|
|
|
|
/* ── Helpers ─────────────────────────────────────────────────── */
|
|
export { esc, att_esc, enc, $val, parseZones, downloadBlob } from './helpers.js?v=7';
|
|
|
|
/* ── UI Components: Layout ───────────────────────────────────── */
|
|
export { PageHeader, renderGuard, renderGuardMulti, Tabs, SectionTitle, ActionGroup, DataTableSection } from './components/layout.js?v=7';
|
|
|
|
/* ── UI Components: Data ─────────────────────────────────────── */
|
|
export { Badge, StatusDot, Empty, Card, ConfirmDelete, Table, ActionButton, certStatusBadge, serviceStatusBadge, StatCard, StatusText, ServiceStatus, ActionCell, MonoText, ZoneSelect } from './components/data.js?v=7';
|
|
|
|
/* ── UI Components: Modal ────────────────────────────────────── */
|
|
export { openModal, closeModal, closeAllModals, formModal, MultiSelectModal, QuickModal } from './components/modal.js?v=7';
|
|
|
|
/* ── UI Components: Toast ────────────────────────────────────── */
|
|
export { ToastContainer } from './components/toast.js?v=7';
|