strapi-layout-plugin 1.0.1 → 1.0.3

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.1",
3
+ "version": "1.0.3",
4
4
  "description": "Strapi layout engine plugin for Sitecore-like routing",
5
5
  "strapi": {
6
6
  "name": "strapi-layout-plugin",
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ 'velox.header': require('./velox/header.json'),
5
+ 'velox.footer': require('./velox/footer.json'),
6
+ 'velox.link': require('./velox/link.json'),
7
+ 'velox.social-link': require('./velox/social-link.json'),
8
+ 'velox.footer-column': require('./velox/footer-column.json'),
9
+ 'shared.seo': require('./shared/seo.json'),
10
+ };
@@ -0,0 +1,30 @@
1
+ {
2
+ "collectionName": "components_shared_seos",
3
+ "info": {
4
+ "displayName": "Seo",
5
+ "icon": "search",
6
+ "description": "Defines SEO metadata including meta title, description, and social share image to optimize page visibility and ranking in search engines."
7
+ },
8
+ "options": {},
9
+ "attributes": {
10
+ "metaTitle": {
11
+ "type": "string",
12
+ "required": true,
13
+ "maxLength": 60
14
+ },
15
+ "metaDescription": {
16
+ "type": "string",
17
+ "maxLength": 160
18
+ },
19
+ "metaImage": {
20
+ "type": "media",
21
+ "multiple": false,
22
+ "required": false,
23
+ "allowedTypes": [
24
+ "images",
25
+ "files",
26
+ "videos"
27
+ ]
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "collectionName": "components_velox_footer_columns",
3
+ "info": {
4
+ "displayName": "Footer Column",
5
+ "icon": "list",
6
+ "description": ""
7
+ },
8
+ "options": {},
9
+ "attributes": {
10
+ "title": {
11
+ "type": "string",
12
+ "required": true
13
+ },
14
+ "links": {
15
+ "type": "component",
16
+ "repeatable": true,
17
+ "component": "velox.link"
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "collectionName": "components_velox_footers",
3
+ "info": {
4
+ "displayName": "Footer",
5
+ "icon": "bold",
6
+ "description": ""
7
+ },
8
+ "options": {},
9
+ "attributes": {
10
+ "title": {
11
+ "type": "string"
12
+ },
13
+ "logoUrl": {
14
+ "type": "string"
15
+ },
16
+ "description": {
17
+ "type": "text"
18
+ },
19
+ "newsletterTitle": {
20
+ "type": "string"
21
+ },
22
+ "copyright": {
23
+ "type": "string"
24
+ },
25
+ "socialLinks": {
26
+ "type": "component",
27
+ "repeatable": true,
28
+ "component": "velox.social-link"
29
+ },
30
+ "bottomLinks": {
31
+ "type": "component",
32
+ "repeatable": true,
33
+ "component": "velox.link"
34
+ },
35
+ "columns": {
36
+ "type": "component",
37
+ "repeatable": true,
38
+ "component": "velox.footer-column"
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "collectionName": "components_velox_headers",
3
+ "info": {
4
+ "displayName": "Header",
5
+ "icon": "bold",
6
+ "description": ""
7
+ },
8
+ "options": {},
9
+ "attributes": {
10
+ "title": {
11
+ "type": "string"
12
+ },
13
+ "logoUrl": {
14
+ "type": "string"
15
+ },
16
+ "links": {
17
+ "type": "component",
18
+ "repeatable": true,
19
+ "component": "velox.link"
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "collectionName": "components_velox_links",
3
+ "info": {
4
+ "displayName": "Link",
5
+ "description": "This component is used to create reusable links across the website. It supports link text, URL (href), internal/external identification, and target options such as opening in the same or new tab."
6
+ },
7
+ "options": {},
8
+ "attributes": {
9
+ "text": {
10
+ "type": "string"
11
+ },
12
+ "href": {
13
+ "type": "string",
14
+ "required": true
15
+ },
16
+ "isInternal": {
17
+ "type": "boolean"
18
+ },
19
+ "target": {
20
+ "type": "enumeration",
21
+ "enum": [
22
+ "_self",
23
+ "_blank"
24
+ ]
25
+ }
26
+ },
27
+ "config": {}
28
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "collectionName": "components_velox_social_links",
3
+ "info": {
4
+ "displayName": "Social Link",
5
+ "icon": "twitter",
6
+ "description": ""
7
+ },
8
+ "options": {},
9
+ "attributes": {
10
+ "platform": {
11
+ "type": "enumeration",
12
+ "enum": ["Facebook", "Twitter", "Instagram", "Linkedin", "Youtube", "Github", "Other"],
13
+ "default": "Other",
14
+ "required": true
15
+ },
16
+ "url": {
17
+ "type": "string",
18
+ "required": true
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const layout = require('./layout/schema.json');
4
+
5
+ module.exports = {
6
+ layout: {
7
+ schema: layout,
8
+ },
9
+ };
@@ -0,0 +1,41 @@
1
+ {
2
+ "kind": "singleType",
3
+ "collectionName": "layouts",
4
+ "info": {
5
+ "singularName": "layout",
6
+ "pluralName": "layouts",
7
+ "displayName": "Global Layout",
8
+ "description": "Global settings for Layout Service"
9
+ },
10
+ "options": {
11
+ "draftAndPublish": false
12
+ },
13
+ "pluginOptions": {
14
+ "i18n": {
15
+ "localized": true
16
+ }
17
+ },
18
+ "attributes": {
19
+ "siteName": {
20
+ "type": "string",
21
+ "default": "Velox"
22
+ },
23
+ "defaultSeo": {
24
+ "type": "component",
25
+ "repeatable": false,
26
+ "component": "shared.seo"
27
+ },
28
+ "header": {
29
+ "type": "dynamiczone",
30
+ "components": [
31
+ "velox.header"
32
+ ]
33
+ },
34
+ "footer": {
35
+ "type": "dynamiczone",
36
+ "components": [
37
+ "velox.footer"
38
+ ]
39
+ }
40
+ }
41
+ }
package/server/index.js CHANGED
@@ -2,8 +2,12 @@
2
2
 
3
3
  const controllers = require('./controllers');
4
4
  const routes = require('./routes');
5
+ const contentTypes = require('./content-types');
6
+ const components = require('./components');
5
7
 
6
8
  module.exports = {
7
9
  controllers,
8
10
  routes,
11
+ contentTypes,
12
+ components,
9
13
  };