MCPcopy Create free account
hub / github.com/error311/FileRise / loadHeaderOrder

Function loadHeaderOrder

public/js/dragAndDrop.js:1410–1430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1408}
1409
1410export function loadHeaderOrder() {
1411 const header = getHeaderDropArea();
1412 if (!header) return;
1413 header.innerHTML = '';
1414
1415 const layout = readLayout();
1416
1417 if (isZonesCollapsed()) {
1418 getCards().forEach(insertCardInHeader);
1419 showHeaderDockPersistent();
1420 saveHeaderOrder();
1421 return;
1422 }
1423
1424 // Not collapsed: only cards saved to header zone appear as icons
1425 getCards().forEach(card => {
1426 if (layout[card.id] === ZONES.HEADER) insertCardInHeader(card);
1427 });
1428 if (header.children.length === 0) header.style.display = 'none';
1429 saveHeaderOrder();
1430}
1431
1432export function initDragAndDrop() {
1433 function run() {

Callers 3

setZonesCollapsedFunction · 0.85
runFunction · 0.85
initializeAppFunction · 0.85

Calls 7

getHeaderDropAreaFunction · 0.85
readLayoutFunction · 0.85
isZonesCollapsedFunction · 0.85
getCardsFunction · 0.85
showHeaderDockPersistentFunction · 0.85
saveHeaderOrderFunction · 0.85
insertCardInHeaderFunction · 0.85

Tested by

no test coverage detected