From 0db52c3c0ef896d64646f855f64afcb9617650ec Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 29 May 2026 09:13:41 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20imports=20manquants=20=E2=80=94=20getFil?= =?UTF-8?q?eIcon,=20showWelcome,=20showProgressBar,=20hideProgressBar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/js/auth.js | 1 + frontend/js/legacy.js | 1 + frontend/js/search.js | 2 +- frontend/js/sidebar.js | 2 +- frontend/js/ui.js | 4 ++-- frontend/js/viewer.js | 6 +++--- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/js/auth.js b/frontend/js/auth.js index e8ad5ff..c4105f0 100644 --- a/frontend/js/auth.js +++ b/frontend/js/auth.js @@ -2,6 +2,7 @@ import { state } from './state.js'; import { safeCreateIcons } from './utils.js'; import { showToast, closeHeaderMenu } from './ui.js'; +import { showWelcome } from './viewer.js'; // --------------------------------------------------------------------------- // API helpers diff --git a/frontend/js/legacy.js b/frontend/js/legacy.js index 4d0ccd3..e208fb5 100644 --- a/frontend/js/legacy.js +++ b/frontend/js/legacy.js @@ -6,6 +6,7 @@ import { api } from './auth.js'; import { state } from './state.js'; import { escapeHtml, safeCreateIcons } from './utils.js'; import { TabManager, closeMobileSidebar } from './ui.js'; +import { showProgressBar, hideProgressBar, showWelcome } from './viewer.js'; // --- Search imports --- import { diff --git a/frontend/js/search.js b/frontend/js/search.js index aec943c..1822ec0 100644 --- a/frontend/js/search.js +++ b/frontend/js/search.js @@ -1,7 +1,7 @@ /* ObsiGate — Search module */ import { state } from './state.js'; import { safeCreateIcons } from './utils.js'; -import { showLoading, el } from './viewer.js'; +import { showLoading, el, hideProgressBar, showWelcome } from './viewer.js'; import { _getEffective } from './config.js'; import { TabManager, showToast } from './ui.js'; // --------------------------------------------------------------------------- diff --git a/frontend/js/sidebar.js b/frontend/js/sidebar.js index 1fc2c08..720eddd 100644 --- a/frontend/js/sidebar.js +++ b/frontend/js/sidebar.js @@ -3,7 +3,7 @@ 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 { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress } from './viewer.js'; +import { el, icon, getVaultIcon, smallBadge, attachTreeItemActionButton, attachTreeItemLongPress, showWelcome } from './viewer.js'; // --------------------------------------------------------------------------- // Vault context switching diff --git a/frontend/js/ui.js b/frontend/js/ui.js index 4f31fac..265ad01 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 } from './viewer.js'; -import { safeCreateIcons } from './utils.js'; +import { openFile, showWelcome } from './viewer.js'; +import { safeCreateIcons, getFileIcon } from './utils.js'; // --------------------------------------------------------------------------- // Right Sidebar Manager // --------------------------------------------------------------------------- diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index 8251822..1e43210 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -850,7 +850,7 @@ function highlightSearchText(container, text, query, caseSensitive) { } } -function showWelcome() { +export function showWelcome() { hideProgressBar(); // Restore or rebuild the dashboard with tabbed sections @@ -1045,12 +1045,12 @@ export function showLoading() { showProgressBar(); } -function showProgressBar() { +export function showProgressBar() { const bar = document.getElementById("search-progress-bar"); if (bar) bar.classList.add("active"); } -function hideProgressBar() { +export function hideProgressBar() { const bar = document.getElementById("search-progress-bar"); if (bar) bar.classList.remove("active"); }