strapi-layout-plugin 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-layout-plugin",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Strapi layout engine plugin for Sitecore-like routing",
5
5
  "strapi": {
6
6
  "name": "strapi-layout-plugin",
@@ -18,7 +18,7 @@
18
18
  "attributes": {
19
19
  "siteName": {
20
20
  "type": "string",
21
- "default": "Velox"
21
+ "default": "JD"
22
22
  },
23
23
  "defaultSeo": {
24
24
  "type": "component",
@@ -29,9 +29,8 @@ const getDynamicSectionsPopulate = (strapi) => {
29
29
  const components = strapi.components;
30
30
 
31
31
  for (const [uid, schema] of Object.entries(components)) {
32
- if (uid.startsWith('core.')) {
33
- const attributes = schema.attributes || {};
34
- const populateMap = {};
32
+ const attributes = schema.attributes || {};
33
+ const populateMap = {};
35
34
 
36
35
  for (const [attrName, attrDef] of Object.entries(attributes)) {
37
36
  const type = attrDef.type;
@@ -84,7 +83,6 @@ const getDynamicSectionsPopulate = (strapi) => {
84
83
  } else {
85
84
  populate[uid] = { populate: '*' };
86
85
  }
87
- }
88
86
  }
89
87
  return populate;
90
88
  };
@@ -266,7 +264,7 @@ module.exports = ({ strapi }) => ({
266
264
  }
267
265
  });
268
266
 
269
- const siteName = globalLayout?.siteName || "Velox";
267
+ const siteName = globalLayout?.siteName || "JD";
270
268
  const language = page.locale || requestedLocale;
271
269
  const { sections } = page;
272
270