fix: export populateCustomDropdown from ui.js + missing imports
This commit is contained in:
parent
015bec7774
commit
6e59dfdd06
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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]) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user