fix: imports manquants — getFileIcon, showWelcome, showProgressBar, hideProgressBar
This commit is contained in:
parent
7edbd7a31a
commit
0db52c3c0e
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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';
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
@ -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");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user