MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / appendTile

Function appendTile

src/lib/openFolder.js:964–969  ·  view source on GitHub ↗

* Insert a file into the list * @param {HTMLElement} $target * @param {HTMLElement} $tile

($target, $tile)

Source from the content-addressed store, hash-verified

962 * @param {HTMLElement} $tile
963 */
964function appendTile($target, $tile) {
965 $target = $target.nextElementSibling;
966 const $firstTile = $target.get(":scope>[type=file]");
967 if ($firstTile) $target.insertBefore($tile, $firstTile);
968 else $target.append($tile);
969}
970
971/**
972 * Insert folder into the list

Callers 3

pasteFunction · 0.85
insertFileFunction · 0.85
appendEntryToOpenFolderFunction · 0.85

Calls 2

appendMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected