MCPcopy Index your code
hub / github.com/stemdeckapp/stemdeck / makeFolder

Function makeFolder

static/js/catalog.js:103–105  ·  view source on GitHub ↗
({ id = `f-${Date.now()}`, name = "New folder", collapsed = false, items = [], parentId = null } = {})

Source from the content-addressed store, hash-verified

101}
102
103function makeFolder({ id = `f-${Date.now()}`, name = "New folder", collapsed = false, items = [], parentId = null } = {}) {
104 return { id, name, collapsed, items, color: DEFAULT_FOLDER_COLOR, parentId: parentId ?? null };
105}
106
107function ensureTrash() {
108 if (!folders.find((f) => f.id === TRASH_ID)) {

Callers 4

addTrackToLibraryFunction · 0.85
createFolderFunction · 0.85
restoreTrackFromTrashFunction · 0.85
renderFolderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected