fix: add missing imports (api, escapeHtml, safeCreateIcons, getFileIcon) to sidebar, legacy, viewer, dashboard, config
All checks were successful
CI / lint (push) Successful in 12s
CI / security (push) Successful in 8s
CI / test (push) Successful in 22s
CI / build (push) Successful in 2s

This commit is contained in:
Bruno Charest 2026-05-28 19:28:50 -04:00
parent c83068f473
commit 015bec7774
5 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,7 @@
// config.js — extracted from app.js (3872-4865)
import { api } from './auth.js';
import { state } from './state.js';
import { escapeHtml, safeCreateIcons } from './utils.js';
let _recentTimestampTimer = null;
let _recentFilesCache = [];

View File

@ -1,5 +1,7 @@
// dashboard.js — extracted from app.js (3414-3806) + DashboardBookmarkWidget (3810-3870)
import { api } from './auth.js';
import { state } from './state.js';
import { escapeHtml, safeCreateIcons, getFileIcon } from './utils.js';
// ---------------------------------------------------------------------------
// Recent files

View File

@ -1,9 +1,11 @@
/* ObsiGate Legacy module: remaining functions for the orchestrator
import { api } from './auth.js';
Extracted from the monolithic frontend/app.js IIFE.
Functions already in other modules are re-exported. */
// --- State imports ---
import { state } from './state.js';
import { escapeHtml, safeCreateIcons } from './utils.js';
// --- Search imports ---
import {

View File

@ -1,4 +1,6 @@
import { state } from './state.js';
import { safeCreateIcons, getFileIcon } from './utils.js';
import { api } from './auth.js';
// ---------------------------------------------------------------------------
// Vault context switching

View File

@ -1,4 +1,5 @@
/* ObsiGate — Viewer module */
import { api } from './auth.js';
import { state } from './state.js';
import { escapeHtml, safeCreateIcons, safeHighlight, getFileIcon } from './utils.js';
// ---------------------------------------------------------------------------