fix: buildSearchResultsHeader, highlightSearchText, shouldDisplayPath — imports manquants bloquant l'affichage des résultats
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
import { api } from './auth.js';
|
import { api } from './auth.js';
|
||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
import { safeCreateIcons } from './utils.js';
|
import { safeCreateIcons } from './utils.js';
|
||||||
import { showLoading, el, hideProgressBar, showWelcome } from './viewer.js';
|
import { showLoading, el, hideProgressBar, showWelcome, highlightSearchText } from './viewer.js';
|
||||||
import { _getEffective } from './config.js';
|
import { _getEffective } from './config.js';
|
||||||
import { TabManager, showToast } from './ui.js';
|
import { TabManager, showToast } from './ui.js';
|
||||||
import { addTagFilter } from './sidebar.js';
|
import { addTagFilter, buildSearchResultsHeader, shouldDisplayPath } from './sidebar.js';
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Search History Service (localStorage, LIFO, max 50, dedup)
|
// Search History Service (localStorage, LIFO, max 50, dedup)
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1094,4 +1094,4 @@ function searchByTag(tag) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export { initVaultContext, setSelectedVaultContext, syncVaultSelectors, shouldDisplayPath, loadVaults, initSidebarFilter, TagFilterService, loadTags, scrollTreeItemIntoView, refreshSidebarForContext, focusVaultInSidebar, refreshTagsForContext, syncActiveFileTreeItem, searchByTag, addTagFilter };
|
export { initVaultContext, setSelectedVaultContext, syncVaultSelectors, shouldDisplayPath, loadVaults, initSidebarFilter, TagFilterService, loadTags, scrollTreeItemIntoView, refreshSidebarForContext, focusVaultInSidebar, refreshTagsForContext, syncActiveFileTreeItem, searchByTag, addTagFilter, buildSearchResultsHeader };
|
||||||
|
|||||||
@@ -822,7 +822,7 @@ function appendHighlightedText(container, text, query, caseSensitive) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function highlightSearchText(container, text, query, caseSensitive) {
|
export function highlightSearchText(container, text, query, caseSensitive) {
|
||||||
container.textContent = "";
|
container.textContent = "";
|
||||||
if (!query || !text) {
|
if (!query || !text) {
|
||||||
container.appendChild(document.createTextNode(text || ""));
|
container.appendChild(document.createTextNode(text || ""));
|
||||||
|
|||||||
Reference in New Issue
Block a user