fix: imports manquants — getFileIcon, showWelcome, showProgressBar, hideProgressBar
All checks were successful
CI / lint (push) Successful in 13s
CI / security (push) Successful in 7s
CI / test (push) Successful in 14s
CI / build (push) Successful in 2s

This commit is contained in:
Bruno Charest 2026-05-29 09:13:41 -04:00
parent 7edbd7a31a
commit 0db52c3c0e
6 changed files with 9 additions and 7 deletions

View File

@ -2,6 +2,7 @@
import { state } from './state.js'; import { state } from './state.js';
import { safeCreateIcons } from './utils.js'; import { safeCreateIcons } from './utils.js';
import { showToast, closeHeaderMenu } from './ui.js'; import { showToast, closeHeaderMenu } from './ui.js';
import { showWelcome } from './viewer.js';
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// API helpers // API helpers

View File

@ -6,6 +6,7 @@ import { api } from './auth.js';
import { state } from './state.js'; import { state } from './state.js';
import { escapeHtml, safeCreateIcons } from './utils.js'; import { escapeHtml, safeCreateIcons } from './utils.js';
import { TabManager, closeMobileSidebar } from './ui.js'; import { TabManager, closeMobileSidebar } from './ui.js';
import { showProgressBar, hideProgressBar, showWelcome } from './viewer.js';
// --- Search imports --- // --- Search imports ---
import { import {

View File

@ -1,7 +1,7 @@
/* ObsiGate — Search module */ /* ObsiGate — Search module */
import { state } from './state.js'; import { state } from './state.js';
import { safeCreateIcons } from './utils.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 { _getEffective } from './config.js';
import { TabManager, showToast } from './ui.js'; import { TabManager, showToast } from './ui.js';
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------

View File

@ -3,7 +3,7 @@ import { safeCreateIcons, getFileIcon } from './utils.js';
import { api } from './auth.js'; import { api } from './auth.js';
import { populateCustomDropdown, TabManager, closeMobileSidebar, ContextMenuManager } from './ui.js'; import { populateCustomDropdown, TabManager, closeMobileSidebar, ContextMenuManager } from './ui.js';
import { _populateRecentVaultFilter } from './config.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 // Vault context switching

View File

@ -1,7 +1,7 @@
/* ObsiGate — UI module */ /* ObsiGate — UI module */
import { state } from './state.js'; import { state } from './state.js';
import { openFile } from './viewer.js'; import { openFile, showWelcome } from './viewer.js';
import { safeCreateIcons } from './utils.js'; import { safeCreateIcons, getFileIcon } from './utils.js';
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Right Sidebar Manager // Right Sidebar Manager
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------

View File

@ -850,7 +850,7 @@ function highlightSearchText(container, text, query, caseSensitive) {
} }
} }
function showWelcome() { export function showWelcome() {
hideProgressBar(); hideProgressBar();
// Restore or rebuild the dashboard with tabbed sections // Restore or rebuild the dashboard with tabbed sections
@ -1045,12 +1045,12 @@ export function showLoading() {
showProgressBar(); showProgressBar();
} }
function showProgressBar() { export function showProgressBar() {
const bar = document.getElementById("search-progress-bar"); const bar = document.getElementById("search-progress-bar");
if (bar) bar.classList.add("active"); if (bar) bar.classList.add("active");
} }
function hideProgressBar() { export function hideProgressBar() {
const bar = document.getElementById("search-progress-bar"); const bar = document.getElementById("search-progress-bar");
if (bar) bar.classList.remove("active"); if (bar) bar.classList.remove("active");
} }