sauvegarde le travail accompli

This commit is contained in:
gcch 2025-04-22 07:28:32 +02:00
commit 26165682d9
521 changed files with 4919 additions and 17279 deletions

4
web/vendor/htmlburger/carbon-fields/packages/blocks/index.js vendored Executable file → Normal file
View file

@ -36,7 +36,7 @@ get( window.cf, 'preloaded.blocks', [] ).forEach( ( container ) => {
const name = kebabCase( container.id ).replace( 'carbon-fields-container-', '' );
const fields = transformFieldsToAttributes( container.fields );
const getBlockSetting = ( key, def = null ) => get( container, `settings.${ key }`, def );
const getBlockSetting = ( key, def = undefined ) => get( container, `settings.${ key }`, def ) || def;
containerDefinitions[ name ] = container;
fieldDefinitions[ name ] = container.fields.map( ( field ) => ( { ...field } ) );
@ -44,7 +44,7 @@ get( window.cf, 'preloaded.blocks', [] ).forEach( ( container ) => {
registerBlockType( `carbon-fields/${ name }`, {
title: container.title,
icon: getBlockSetting( 'icon' ),
parent: getBlockSetting( 'parent', [] ),
parent: getBlockSetting( 'parent' ),
category: getBlockSetting( 'category.slug' ),
keywords: getBlockSetting( 'keywords', [] ),
description: getBlockSetting( 'description', '' ),