diff --git a/frontend/js/config.js b/frontend/js/config.js index e9a0513..5fbac8a 100644 --- a/frontend/js/config.js +++ b/frontend/js/config.js @@ -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 = []; diff --git a/frontend/js/dashboard.js b/frontend/js/dashboard.js index 7ca4583..6172b14 100644 --- a/frontend/js/dashboard.js +++ b/frontend/js/dashboard.js @@ -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 diff --git a/frontend/js/legacy.js b/frontend/js/legacy.js index 3f6b7f4..4760530 100644 --- a/frontend/js/legacy.js +++ b/frontend/js/legacy.js @@ -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 { diff --git a/frontend/js/sidebar.js b/frontend/js/sidebar.js index 65b5a9b..b820cd1 100644 --- a/frontend/js/sidebar.js +++ b/frontend/js/sidebar.js @@ -1,4 +1,6 @@ import { state } from './state.js'; +import { safeCreateIcons, getFileIcon } from './utils.js'; +import { api } from './auth.js'; // --------------------------------------------------------------------------- // Vault context switching diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index 74ce819..322237f 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -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'; // ---------------------------------------------------------------------------