From c88c359c099b3835103cfe0b830b35e88eb48fc5 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 29 May 2026 11:55:43 -0400 Subject: [PATCH] =?UTF-8?q?fix:=204=20imports=20manquants=20=E2=80=94=20sw?= =?UTF-8?q?itchSidebarTab,=20performAdvancedSearch,=20escapeHtml,=20openFi?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/js/config.js | 3 ++- frontend/js/sidebar.js | 3 ++- frontend/js/ui.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/js/config.js b/frontend/js/config.js index 7f60a03..56758e6 100644 --- a/frontend/js/config.js +++ b/frontend/js/config.js @@ -1,7 +1,7 @@ // config.js — extracted from app.js (3872-4865) import { api } from './auth.js'; import { state } from './state.js'; -import { el, icon } from './viewer.js'; +import { el, icon, openFile } from './viewer.js'; import { syncVaultSelectors, setSelectedVaultContext, refreshSidebarForContext, loadVaults, loadTags } from './sidebar.js'; import { escapeHtml, safeCreateIcons } from './utils.js'; import { showToast, closeHeaderMenu, closeMobileSidebar } from './ui.js'; @@ -1014,4 +1014,5 @@ export { initRecentTab, loadAbout as initAboutSection, loadHiddenFilesSettings as initHiddenFilesConfig, + switchSidebarTab, }; diff --git a/frontend/js/sidebar.js b/frontend/js/sidebar.js index 4d10580..1afb301 100644 --- a/frontend/js/sidebar.js +++ b/frontend/js/sidebar.js @@ -2,8 +2,9 @@ import { state } from './state.js'; import { safeCreateIcons, getFileIcon } from './utils.js'; import { api } from './auth.js'; import { populateCustomDropdown, TabManager, closeMobileSidebar, ContextMenuManager } from './ui.js'; -import { _populateRecentVaultFilter } from './config.js'; +import { _populateRecentVaultFilter, switchSidebarTab } from './config.js'; import { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress, showWelcome } from './viewer.js'; +import { performAdvancedSearch } from './search.js'; // --------------------------------------------------------------------------- // Vault context switching diff --git a/frontend/js/ui.js b/frontend/js/ui.js index e98d24b..d1155fc 100644 --- a/frontend/js/ui.js +++ b/frontend/js/ui.js @@ -1,7 +1,7 @@ /* ObsiGate — UI module */ import { state } from './state.js'; import { openFile, showWelcome } from './viewer.js'; -import { safeCreateIcons, getFileIcon } from './utils.js'; +import { safeCreateIcons, getFileIcon, escapeHtml } from './utils.js'; import { syncActiveFileTreeItem } from './sidebar.js'; // --------------------------------------------------------------------------- // Right Sidebar Manager