fix: add missing imports (api, escapeHtml, safeCreateIcons, getFileIcon) to sidebar, legacy, viewer, dashboard, config
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
// config.js — extracted from app.js (3872-4865)
|
// config.js — extracted from app.js (3872-4865)
|
||||||
|
import { api } from './auth.js';
|
||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
|
import { escapeHtml, safeCreateIcons } from './utils.js';
|
||||||
|
|
||||||
let _recentTimestampTimer = null;
|
let _recentTimestampTimer = null;
|
||||||
let _recentFilesCache = [];
|
let _recentFilesCache = [];
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
// dashboard.js — extracted from app.js (3414-3806) + DashboardBookmarkWidget (3810-3870)
|
// dashboard.js — extracted from app.js (3414-3806) + DashboardBookmarkWidget (3810-3870)
|
||||||
|
import { api } from './auth.js';
|
||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
|
import { escapeHtml, safeCreateIcons, getFileIcon } from './utils.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Recent files
|
// Recent files
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
/* ObsiGate — Legacy module: remaining functions for the orchestrator
|
/* ObsiGate — Legacy module: remaining functions for the orchestrator
|
||||||
|
import { api } from './auth.js';
|
||||||
Extracted from the monolithic frontend/app.js IIFE.
|
Extracted from the monolithic frontend/app.js IIFE.
|
||||||
Functions already in other modules are re-exported. */
|
Functions already in other modules are re-exported. */
|
||||||
|
|
||||||
// --- State imports ---
|
// --- State imports ---
|
||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
|
import { escapeHtml, safeCreateIcons } from './utils.js';
|
||||||
|
|
||||||
// --- Search imports ---
|
// --- Search imports ---
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
|
import { safeCreateIcons, getFileIcon } from './utils.js';
|
||||||
|
import { api } from './auth.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Vault context switching
|
// Vault context switching
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
/* ObsiGate — Viewer module */
|
/* ObsiGate — Viewer module */
|
||||||
|
import { api } from './auth.js';
|
||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
import { escapeHtml, safeCreateIcons, safeHighlight, getFileIcon } from './utils.js';
|
import { escapeHtml, safeCreateIcons, safeHighlight, getFileIcon } from './utils.js';
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user