MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / filterFileIcons

Function filterFileIcons

app.js:2940–2948  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

2938}
2939
2940function filterFileIcons(query) {
2941 const q = String(query || "").trim().toLowerCase();
2942 return FILE_ICONS.filter((i) => {
2943 if (ICON_SIZE_FILTER !== "all" && !(i.tags || []).includes(ICON_SIZE_FILTER)) return false;
2944 const hay = [i.name, i.file, ...(i.tags || [])].join(" ").toLowerCase();
2945 if (!q) return true;
2946 return hay.includes(q);
2947 });
2948}
2949
2950async function addIconElement(icon) {
2951 const inferred = inferSizeFromPath(icon.file);

Callers 1

renderIconGridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected