refactor: Update main.ts imports and add TypeScript types

- main.ts: Added imports for all new Alpine component files:
  * admin, api-explorer-docs, login, profile, profile-modal,
  * register, toast-error, unlinked_books, index, collection-rules
- api.d.ts: Added match_reason field to TestRuleMatch interface
  for collection rules test results display
This commit is contained in:
2026-03-08 21:36:32 -04:00
parent 6728ba83a1
commit 533dfd64e2
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -1,7 +1,10 @@
import "./admin";
import "./api";
import "./analytics";
import "./api-explorer";
import "./api-explorer-docs";
import "./bookshelf";
import "./collection-rules";
import "./collections";
import "./conflicts";
import "./custom-section-builder";
@@ -11,15 +14,22 @@ import "./docs";
import "./dom";
import "./events";
import "./header";
import "./index";
import "./library";
import "./login";
import "./linking";
import "./password_validation";
import "./profile";
import "./profile-modal";
import "./queue";
import "./register";
import "./search";
import "./storage";
import "./themeDropdown";
import "./theme";
import "./toast";
import "./toast-error";
import "./unlinked_books";
import "./woodPanelingInit";
import "./woodPaneling";
import "./alpine";
+1
View File
@@ -162,6 +162,7 @@ interface TestRuleMatch {
title: string;
author: string;
cover_image_path?: string;
match_reason?: string;
}
// Matches handlers.SearchResponse (internal/handlers/search.go)