5ba0f31767
- lib/state.py: per-subsystem collectors with versioned state store - daemon/server.py: state refresh on request, batch routing updates - webui/static/hoover/html.js: new html tag template helper via htm.js - webui/static/hoover/websocket.js: real-time state change notifications - webui/static/hoover/vdom.js: VDOM improvements for keyed diff - All frontend pages refactored to use html templates - Add tests for state management and polling - Update docs and AGENTS.md
16 lines
424 B
JavaScript
16 lines
424 B
JavaScript
import { html, PageHeader, definePage } from '/static/hoover/index.js?v=7';
|
|
|
|
export default definePage({
|
|
init() {
|
|
return { path: location.hash.slice(1) || '' };
|
|
},
|
|
render(state) {
|
|
return [
|
|
PageHeader({ title: '404' }),
|
|
html`<div class="card">
|
|
<div class="card-body text-muted">Page not found: ${state.path}</div>
|
|
</div>`,
|
|
];
|
|
},
|
|
});
|