From 7edbd7a31a5774a1629b2f6c73b76e19c4f9abca Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 29 May 2026 09:01:33 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20imports=20manquants=20=E2=80=94=20TabMan?= =?UTF-8?q?ager,=20showToast,=20closeHeaderMenu,=20closeMobileSidebar,=20C?= =?UTF-8?q?ontextMenuManager,=20RightSidebarManager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/js/auth.js | 2 +- frontend/js/config.js | 1 + frontend/js/dashboard.js | 1 + frontend/js/legacy.js | 1 + frontend/js/search.js | 1 + frontend/js/sidebar.js | 2 +- frontend/js/viewer.js | 1 + 7 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/js/auth.js b/frontend/js/auth.js index 43e18ed..e8ad5ff 100644 --- a/frontend/js/auth.js +++ b/frontend/js/auth.js @@ -1,7 +1,7 @@ /* ObsiGate — Authentication: API helper, AuthManager, login form, AdminPanel */ import { state } from './state.js'; import { safeCreateIcons } from './utils.js'; -import { showToast } from './ui.js'; +import { showToast, closeHeaderMenu } from './ui.js'; // --------------------------------------------------------------------------- // API helpers diff --git a/frontend/js/config.js b/frontend/js/config.js index 23a1919..7f60a03 100644 --- a/frontend/js/config.js +++ b/frontend/js/config.js @@ -4,6 +4,7 @@ import { state } from './state.js'; import { el, icon } 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'; let _recentTimestampTimer = null; let _recentFilesCache = []; diff --git a/frontend/js/dashboard.js b/frontend/js/dashboard.js index 81c4eaf..43b12a8 100644 --- a/frontend/js/dashboard.js +++ b/frontend/js/dashboard.js @@ -3,6 +3,7 @@ import { api } from './auth.js'; import { state } from './state.js'; import { escapeHtml, safeCreateIcons, getFileIcon } from './utils.js'; import { icon } from './viewer.js'; +import { TabManager, showToast } from './ui.js'; // --------------------------------------------------------------------------- // Recent files diff --git a/frontend/js/legacy.js b/frontend/js/legacy.js index 901d6f1..4d0ccd3 100644 --- a/frontend/js/legacy.js +++ b/frontend/js/legacy.js @@ -5,6 +5,7 @@ import { api } from './auth.js'; import { state } from './state.js'; import { escapeHtml, safeCreateIcons } from './utils.js'; +import { TabManager, closeMobileSidebar } from './ui.js'; // --- Search imports --- import { diff --git a/frontend/js/search.js b/frontend/js/search.js index 9287630..aec943c 100644 --- a/frontend/js/search.js +++ b/frontend/js/search.js @@ -3,6 +3,7 @@ import { state } from './state.js'; import { safeCreateIcons } from './utils.js'; import { showLoading, el } from './viewer.js'; import { _getEffective } from './config.js'; +import { TabManager, showToast } from './ui.js'; // --------------------------------------------------------------------------- // Search History Service (localStorage, LIFO, max 50, dedup) // --------------------------------------------------------------------------- diff --git a/frontend/js/sidebar.js b/frontend/js/sidebar.js index 270b6bf..1fc2c08 100644 --- a/frontend/js/sidebar.js +++ b/frontend/js/sidebar.js @@ -1,7 +1,7 @@ import { state } from './state.js'; import { safeCreateIcons, getFileIcon } from './utils.js'; import { api } from './auth.js'; -import { populateCustomDropdown } from './ui.js'; +import { populateCustomDropdown, TabManager, closeMobileSidebar, ContextMenuManager } from './ui.js'; import { _populateRecentVaultFilter } from './config.js'; import { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress } from './viewer.js'; diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index 4a631c9..8251822 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -2,6 +2,7 @@ import { api } from './auth.js'; import { state } from './state.js'; import { escapeHtml, safeCreateIcons, safeHighlight, getFileIcon } from './utils.js'; +import { TabManager, closeMobileSidebar, ContextMenuManager, RightSidebarManager, showToast } from './ui.js'; // --------------------------------------------------------------------------- // Outline/TOC Manager // ---------------------------------------------------------------------------