633505e7dc
- Add quick modal, table, service status, and confirmation dialog components - Refactor all pages (certs, dhcp, proxy, etc.) to use new component patterns - Introduce refactor load utility and render guard for consistent UX - Add hoover documentation and update AGENTS.md, architecture, overview
20 lines
502 B
JavaScript
20 lines
502 B
JavaScript
import { h, PageHeader, definePage } from '/static/hoover/index.js?v=6';
|
|
|
|
export default definePage({
|
|
init() {
|
|
return { path: '' };
|
|
},
|
|
subscribe: [],
|
|
async load(state) {
|
|
state.path = location.hash.slice(1) || '';
|
|
},
|
|
render(state) {
|
|
return [
|
|
PageHeader({ title: '404' }),
|
|
h('div', { class: 'card' },
|
|
h('div', { class: 'card-body text-muted' }, 'Page not found: ' + state.path),
|
|
),
|
|
];
|
|
},
|
|
});
|