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