Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/strapi-plugin-content-manager/admin/src/utils/mergeMetasWithSchema.js
Назад
import { set } from 'lodash'; const mergeMetasWithSchema = (data, schemas, mainSchemaKey) => { const findSchema = refUid => schemas.find(obj => obj.uid === refUid); const merged = Object.assign({}, data); const mainUID = data[mainSchemaKey].uid; const mainSchema = findSchema(mainUID); set(merged, [mainSchemaKey], { ...data[mainSchemaKey], ...mainSchema }); Object.keys(data.components).forEach(compoUID => { const compoSchema = findSchema(compoUID); set(merged, ['components', compoUID], { ...data.components[compoUID], ...compoSchema }); }); return merged; }; export default mergeMetasWithSchema;
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка