fix: add missing imports (api, escapeHtml, safeCreateIcons, getFileIcon) to sidebar, legacy, viewer, dashboard, config
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:
2026-05-28 19:28:50 -04:00
parent c83068f473
commit 015bec7774
5 changed files with 9 additions and 0 deletions
+2
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 = [];
+2
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
+2
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 {
+2
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
+1
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';
// ---------------------------------------------------------------------------