fix: export icon from viewer.js, import syncVaultSelectors in config.js, cleanup dupes
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
// config.js — extracted from app.js (3872-4865)
|
// config.js — extracted from app.js (3872-4865)
|
||||||
import { api } from './auth.js';
|
import { api } from './auth.js';
|
||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
|
import { syncVaultSelectors, setSelectedVaultContext, refreshSidebarForContext, loadVaults, loadTags } from './sidebar.js';
|
||||||
import { escapeHtml, safeCreateIcons } from './utils.js';
|
import { escapeHtml, safeCreateIcons } from './utils.js';
|
||||||
|
|
||||||
let _recentTimestampTimer = null;
|
let _recentTimestampTimer = null;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { safeCreateIcons, getFileIcon } from './utils.js';
|
|||||||
import { api } from './auth.js';
|
import { api } from './auth.js';
|
||||||
import { populateCustomDropdown } from './ui.js';
|
import { populateCustomDropdown } from './ui.js';
|
||||||
import { _populateRecentVaultFilter } from './config.js';
|
import { _populateRecentVaultFilter } from './config.js';
|
||||||
import { el } from './viewer.js';
|
import { el, icon } from './viewer.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Vault context switching
|
// Vault context switching
|
||||||
|
|||||||
@@ -622,7 +622,7 @@ export function el(tag, attrs, children) {
|
|||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
function icon(name, size) {
|
export function icon(name, size) {
|
||||||
const i = document.createElement("i");
|
const i = document.createElement("i");
|
||||||
i.setAttribute("data-lucide", name);
|
i.setAttribute("data-lucide", name);
|
||||||
i.style.width = size + "px";
|
i.style.width = size + "px";
|
||||||
|
|||||||
Reference in New Issue
Block a user