feat: enhance PDF text extraction and add maintenance features

- Refactor text extraction functions to extract text from all pages instead of just the first page.
- Implement logging for better debugging during file operations.
- Add a new maintenance page with options to rebuild the database and run consistency checks.
- Update styles for maintenance actions and improve UI elements.
- Remove obsolete rebuild database functionality from the main interface.
This commit is contained in:
2026-10-13 22:01:36 +02:00
parent ab232a276f
commit 34271f3bfa
13 changed files with 237 additions and 67 deletions
+3 -5
View File
@@ -15,6 +15,7 @@
<nav class="nav">
<a class="active" href="/">Documents</a>
<a href="/config.html">Config</a>
<a href="/maintenance.html">Maintenance</a>
</nav>
</aside>
@@ -26,18 +27,15 @@
</div>
<div class="toolbar-actions">
<button id="refresh-btn" class="primary-btn">Refresh</button>
<button id="rebuild-btn" class="secondary-btn" type="button">Rebuild database</button>
</div>
</header>
<p id="rebuild-status" class="action-status" role="status" aria-live="polite"></p>
<section class="summary-cards" id="summary-cards"></section>
<section class="filters-card">
<div class="field-group">
<label for="search-filter">Search all fields</label>
<input id="search-filter" type="text" placeholder="Search documents..." />
<label for="search-filter">Global search</label>
<input id="search-filter" type="text" placeholder="Search metadata and document content..." />
</div>
</section>