fix: export populateCustomDropdown from ui.js + missing imports
All checks were successful
CI / lint (push) Successful in 12s
CI / security (push) Successful in 7s
CI / test (push) Successful in 15s
CI / build (push) Successful in 2s

This commit is contained in:
Bruno Charest 2026-05-28 19:35:22 -04:00
parent 015bec7774
commit 6e59dfdd06
4 changed files with 7 additions and 6 deletions

View File

@ -1,11 +1,10 @@
/* 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 { api } from './auth.js';
import { state } from './state.js';
import { escapeHtml, safeCreateIcons } from './utils.js';
import { escapeHtml, safeCreateIcons } from './utils.js';
// --- Search imports ---
import {

View File

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

View File

@ -277,7 +277,7 @@ export function initCustomDropdowns() {
}
// Helper to populate custom dropdown options
function populateCustomDropdown(dropdownId, optionsList, defaultValue) {
export function populateCustomDropdown(dropdownId, optionsList, defaultValue) {
const dropdown = document.getElementById(dropdownId);
if (!dropdown) return;

View File

@ -603,7 +603,7 @@ function renderFile(data) {
// ---------------------------------------------------------------------------
// Helpers (escapeHtml imported from utils.js)
// ---------------------------------------------------------------------------
function el(tag, attrs, children) {
export function el(tag, attrs, children) {
const e = document.createElement(tag);
if (attrs) {
Object.entries(attrs).forEach(([k, v]) => {