refactor(alpine): migrate remaining pages to x-init declarative initialization

- Remove DOMContentLoaded event listeners from analytics.ts and docs.ts
- Rely on x-init attribute in templates for page initialization
- Clean up unused exports from collections.ts Alpine data
- Add x-init calls to admin_library, analytics, and docs templates
- Normalize quote style in collections WebSocket script (single to double)
- Disable Add Books button in collection detail (pending implementation)
This commit is contained in:
john-okeefe committed 2026-03-12 18:13:12 -04:00
1 parent 75c454b661
commit 06461a3202
11 files changed
+58 -88

No files matched your search

-4
View File
@@ -89,10 +89,6 @@ function performDocsSearch(query: string): void {
}
}
document.addEventListener("DOMContentLoaded", () => {
initializeDocsSearch();
});
Alpine.data("docs", () => ({
toggleSidebar,
initializeSearch: initializeDocsSearch,