UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 736 B
import e from"./index.mjs";const t=e=>e.breadcrumbs.map(e=>({id:e.id,title:e.title,parentFolderId:e.parent_folder_id})),n=e=>e.folders.map(e=>r({folder:e})),r=t=>{let n;return`level`in t.folder&&`order`in t.folder&&`label`in t.folder&&(n={level:t.folder?.level,order:t.folder.order,label:t.folder.label}),{id:t.folder.id,title:t.folder.title,parentFolderId:t.folder.parent_folder_id,folderCount:t.folder.folder_count??0,mediaCount:t.folder.media_count??0,meta:n,createdBy:t.folder.created_by,updatedBy:t.folder.updated_by,createdAt:e.formatDate(t.folder.created_at),updatedAt:e.formatDate(t.folder.updated_at)}};var i={formatBreadcrumbs:t,formatMultiple:n,formatSingle:r};export{i as default}; //# sourceMappingURL=media-folders.mjs.map