@webbio/strapi-plugin-page-builder 0.12.0-platform → 0.12.2-platform

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.
Files changed (179) hide show
  1. package/README.md +166 -166
  2. package/admin/src/api/collection-type.ts +111 -111
  3. package/admin/src/api/entity-relation.ts +42 -42
  4. package/admin/src/api/has-page-relation.ts +37 -37
  5. package/admin/src/api/has-platform-relation.ts +40 -40
  6. package/admin/src/api/page-type-relation.ts +41 -41
  7. package/admin/src/api/platform-page-types.ts +45 -45
  8. package/admin/src/api/platform-relation.ts +42 -42
  9. package/admin/src/api/platform.ts +35 -35
  10. package/admin/src/api/search-filtered-entity.ts +114 -114
  11. package/admin/src/api/template.ts +39 -39
  12. package/admin/src/components/Combobox/index.tsx +83 -83
  13. package/admin/src/components/Combobox/react-select-custom-styles.tsx +121 -121
  14. package/admin/src/components/Combobox/styles.ts +46 -46
  15. package/admin/src/components/ConfirmModal/index.tsx +90 -90
  16. package/admin/src/components/EditView/CollectionTypeSearch/index.tsx +127 -127
  17. package/admin/src/components/EditView/CollectionTypeSettings/CreatePageButton/index.tsx +149 -149
  18. package/admin/src/components/EditView/CollectionTypeSettings/CreatePageButton/styles.ts +19 -19
  19. package/admin/src/components/EditView/CollectionTypeSettings/index.tsx +82 -82
  20. package/admin/src/components/EditView/Details/index.tsx +48 -48
  21. package/admin/src/components/EditView/Details/styles.ts +51 -51
  22. package/admin/src/components/EditView/PageSettings/index.tsx +124 -124
  23. package/admin/src/components/EditView/Platform/platform-select.tsx +30 -30
  24. package/admin/src/components/EditView/Template/TemplateConfirmModal/index.tsx +36 -36
  25. package/admin/src/components/EditView/Template/TemplateSelect/index.tsx +70 -70
  26. package/admin/src/components/EditView/Template/TemplateSelect/use-template-modules.ts +41 -41
  27. package/admin/src/components/EditView/index.tsx +35 -35
  28. package/admin/src/components/EditView/page-type-select.tsx +32 -32
  29. package/admin/src/components/EditView/wrapper.tsx +41 -41
  30. package/admin/src/components/GlobalPlatformSelect/index.tsx +40 -40
  31. package/admin/src/components/GlobalPlatformSelect/styles.ts +27 -27
  32. package/admin/src/components/Initializer/index.tsx +24 -24
  33. package/admin/src/components/PageFilters/PageTypeFilter/index.tsx +39 -39
  34. package/admin/src/components/PageFilters/PlatformFilter/index.tsx +32 -32
  35. package/admin/src/components/PageFilters/filters.tsx +189 -189
  36. package/admin/src/components/PageFilters/index.tsx +35 -35
  37. package/admin/src/components/PageTypeEditView/TemplatePlatformSelect/index.tsx +76 -76
  38. package/admin/src/components/PageTypeEditView/index.tsx +53 -53
  39. package/admin/src/components/PlatformFilteredSelectField/InputIcon/index.tsx +23 -23
  40. package/admin/src/components/PlatformFilteredSelectField/Multi/index.tsx +210 -210
  41. package/admin/src/components/PlatformFilteredSelectField/Single/index.tsx +197 -197
  42. package/admin/src/components/PlatformFilteredSelectField/hooks/useRelationLoad.tsx +128 -128
  43. package/admin/src/components/PlatformFilteredSelectField/index.tsx +85 -85
  44. package/admin/src/components/PlatformFilteredSelectField/styles.tsx +77 -77
  45. package/admin/src/components/PlatformFilteredSelectField/utils/get-translations.ts +3 -3
  46. package/admin/src/components/PlatformFilteredSelectField/utils/relation-helper.ts +147 -147
  47. package/admin/src/components/PluginIcon/index.tsx +94 -94
  48. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/RelationInput.tsx +689 -689
  49. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/RelationInputDataManager.tsx +6 -6
  50. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/useRelation.ts +170 -170
  51. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/utils/getRelationLink.ts +5 -5
  52. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/components/Relations/utils/normalizeRelations.ts +52 -52
  53. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/constants/attributes.ts +3 -3
  54. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/hooks/useDragAndDrop.ts +253 -253
  55. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/hooks/useKeyboardDragAndDrop.ts +96 -96
  56. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/hooks/usePrev.ts +11 -11
  57. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/dragAndDrop.ts +8 -8
  58. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/paths.ts +29 -29
  59. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/refs.ts +19 -19
  60. package/admin/src/components/StrapiCore/admin/admin/src/content-manager/utils/translations.ts +3 -3
  61. package/admin/src/components/StrapiCore/content-manager/shared/contracts/collection-types.ts +300 -300
  62. package/admin/src/components/StrapiCore/content-manager/shared/contracts/components.ts +72 -72
  63. package/admin/src/components/StrapiCore/content-manager/shared/contracts/content-types.ts +116 -116
  64. package/admin/src/components/StrapiCore/content-manager/shared/contracts/index.ts +8 -8
  65. package/admin/src/components/StrapiCore/content-manager/shared/contracts/init.ts +22 -22
  66. package/admin/src/components/StrapiCore/content-manager/shared/contracts/relations.ts +80 -80
  67. package/admin/src/components/StrapiCore/content-manager/shared/contracts/review-workflows.ts +88 -88
  68. package/admin/src/components/StrapiCore/content-manager/shared/contracts/single-types.ts +112 -112
  69. package/admin/src/components/StrapiCore/content-manager/shared/contracts/uid.ts +48 -48
  70. package/admin/src/components/StrapiCore/content-manager/shared/index.ts +1 -1
  71. package/admin/src/constants.ts +3 -3
  72. package/admin/src/index.tsx +101 -101
  73. package/admin/src/middlewares/index.tsx +37 -37
  74. package/admin/src/pages/app/index.tsx +14 -14
  75. package/admin/src/pluginId.ts +5 -5
  76. package/admin/src/translations/en.json +9 -9
  77. package/admin/src/translations/nl.json +9 -9
  78. package/admin/src/utils/findDomElement.ts +6 -6
  79. package/admin/src/utils/findElementParent.ts +20 -20
  80. package/admin/src/utils/getObjectFromFormName.ts +42 -42
  81. package/admin/src/utils/getRequestUrl.ts +11 -11
  82. package/admin/src/utils/getTrad.ts +5 -5
  83. package/admin/src/utils/hooks/useDebounce.ts +17 -17
  84. package/admin/src/utils/hooks/useDefaultPlatformFromLocalStorage.ts +61 -61
  85. package/admin/src/utils/hooks/useGetLocaleFromUrl.ts +9 -9
  86. package/admin/src/utils/hooks/useHideOverviewFilterTags.ts +34 -34
  87. package/admin/src/utils/hooks/usePlatformFormData.ts +64 -64
  88. package/admin/src/utils/hooks/usePrevious.ts +12 -12
  89. package/admin/src/utils/sanitizeModules.ts +93 -93
  90. package/custom.d.ts +6 -6
  91. package/dist/package.json +1 -1
  92. package/dist/server/bootstrap.js +1 -0
  93. package/dist/server/controllers/index.js +3 -1
  94. package/dist/server/controllers/user-category.js +4 -0
  95. package/dist/server/graphql/page-by-path.js +9 -9
  96. package/dist/server/graphql/page-by-slug.js +89 -0
  97. package/dist/server/graphql/pages-by-uid.js +5 -5
  98. package/dist/server/routes/index.js +6 -1
  99. package/dist/server/routes/user-category.js +4 -0
  100. package/dist/server/services/index.js +3 -1
  101. package/dist/server/services/private-content/graphql/index.js +27 -27
  102. package/dist/server/services/private-content/graphql/types/index.js +74 -74
  103. package/dist/server/services/user-category.js +4 -0
  104. package/dist/server/utils/graphql.js +100 -0
  105. package/dist/server/utils/paginationValidation.js +31 -0
  106. package/dist/tsconfig.server.tsbuildinfo +1 -1
  107. package/package.json +78 -78
  108. package/server/bootstrap/collection-type-lifecycles.ts +47 -47
  109. package/server/bootstrap/permissions.ts +161 -161
  110. package/server/bootstrap.ts +261 -260
  111. package/server/config/index.ts +4 -4
  112. package/server/content-types/index.ts +7 -7
  113. package/server/content-types/user-category/schema.json +23 -23
  114. package/server/controllers/collection-types.ts +32 -32
  115. package/server/controllers/index.ts +19 -17
  116. package/server/controllers/page-type.ts +18 -18
  117. package/server/controllers/page.ts +9 -9
  118. package/server/controllers/platform.ts +21 -21
  119. package/server/controllers/private-content.ts +17 -17
  120. package/server/controllers/sitemap.ts +32 -32
  121. package/server/controllers/template.ts +16 -16
  122. package/server/controllers/user-category.ts +3 -0
  123. package/server/destroy.ts +5 -5
  124. package/server/graphql/index.ts +9 -9
  125. package/server/graphql/page-by-path.ts +132 -132
  126. package/server/graphql/page-type.ts +67 -67
  127. package/server/graphql/pages-by-uid.ts +89 -89
  128. package/server/index.ts +23 -23
  129. package/server/middlewares/index.ts +1 -1
  130. package/server/policies/index.ts +5 -5
  131. package/server/policies/isAuthorizedPage.ts +11 -11
  132. package/server/register.ts +22 -22
  133. package/server/routes/index.ts +115 -112
  134. package/server/routes/user-category.ts +3 -0
  135. package/server/schema/page-end.json +96 -96
  136. package/server/schema/page-start.json +87 -87
  137. package/server/schema/page-type-end.json +53 -53
  138. package/server/schema/page-type-start.json +38 -38
  139. package/server/schema/platform-start.json +21 -21
  140. package/server/schema/template-end.json +40 -40
  141. package/server/schema/template-start.json +35 -35
  142. package/server/services/builder.ts +232 -232
  143. package/server/services/collection-types.ts +95 -95
  144. package/server/services/email.ts +127 -127
  145. package/server/services/index.ts +23 -21
  146. package/server/services/page-type.ts +30 -30
  147. package/server/services/page.ts +24 -24
  148. package/server/services/platform.ts +30 -30
  149. package/server/services/private-content/components/admin-email.json +22 -22
  150. package/server/services/private-content/components/email.json +22 -22
  151. package/server/services/private-content/components/platform-email.json +30 -30
  152. package/server/services/private-content/constants/index.ts +13 -13
  153. package/server/services/private-content/graphql/index.ts +88 -88
  154. package/server/services/private-content/graphql/resolvers/findOnePage.ts +40 -40
  155. package/server/services/private-content/graphql/resolvers/findPage.ts +45 -45
  156. package/server/services/private-content/graphql/resolvers/forgot-password.ts +34 -34
  157. package/server/services/private-content/graphql/resolvers/login.ts +56 -56
  158. package/server/services/private-content/graphql/resolvers/register.ts +78 -78
  159. package/server/services/private-content/graphql/resolvers/reset-password.ts +44 -44
  160. package/server/services/private-content/graphql/types/index.ts +96 -96
  161. package/server/services/private-content/index.ts +95 -95
  162. package/server/services/private-content/mail-template/txtMail.email.template.text.ts +6 -6
  163. package/server/services/private-content/page.ts +20 -20
  164. package/server/services/private-content/platform.ts +19 -19
  165. package/server/services/private-content/schemas/index.ts +28 -28
  166. package/server/services/private-content/user.ts +197 -197
  167. package/server/services/sitemap.ts +83 -83
  168. package/server/services/template.ts +13 -13
  169. package/server/services/user-category.ts +3 -0
  170. package/server/utils/filter-underscore-arguments.ts +12 -12
  171. package/server/utils/reload-strapi-on-load.ts +13 -13
  172. package/server/utils/strapi.ts +50 -50
  173. package/shared/utils/constants.ts +8 -8
  174. package/shared/utils/sleep.ts +1 -1
  175. package/strapi-admin.js +3 -3
  176. package/strapi-server.js +3 -3
  177. package/tsconfig.json +20 -20
  178. package/tsconfig.server.json +25 -25
  179. package/dist/server/content-types/user-categories/schema.json +0 -18
@@ -1,112 +1,115 @@
1
- const routes = {
2
- 'private-content': {
3
- type: 'content-api',
4
- prefix: undefined,
5
- routes: [
6
- {
7
- method: 'GET',
8
- path: '/activate/:token',
9
- handler: 'private-content.activateUser',
10
- config: { policies: [], auth: false }
11
- },
12
- {
13
- method: 'POST',
14
- path: '/removeInactiveUsers',
15
- handler: 'private-content.removeInactiveUsers'
16
- }
17
- ]
18
- },
19
- 'page-type': {
20
- type: 'admin',
21
- prefix: undefined,
22
- routes: [
23
- {
24
- method: 'GET',
25
- path: '/page-types/:uid/:platformId',
26
- handler: 'page-type.findOneByUid'
27
- }
28
- ]
29
- },
30
- page: {
31
- type: 'admin',
32
- prefix: undefined,
33
- routes: [
34
- {
35
- method: 'GET',
36
- path: '/page/:id',
37
- handler: 'page.getPage'
38
- }
39
- ]
40
- },
41
- 'collection-types': {
42
- type: 'admin',
43
- prefix: undefined,
44
- routes: [
45
- {
46
- method: 'GET',
47
- path: '/collection-types/:uid',
48
- handler: 'collection-types.hasPageRelation'
49
- },
50
- {
51
- method: 'GET',
52
- path: '/collection-types-page-links/:uid/:ids?',
53
- handler: 'collection-types.getTranslationPageLinks'
54
- },
55
- {
56
- method: 'GET',
57
- path: '/collection-types/hasPlatform/:uid',
58
- handler: 'collection-types.hasPlatformRelation'
59
- }
60
- ]
61
- },
62
- template: {
63
- type: 'admin',
64
- prefix: undefined,
65
- routes: [
66
- {
67
- method: 'GET',
68
- path: '/template',
69
- handler: 'template.findAll'
70
- },
71
- {
72
- method: 'GET',
73
- path: '/template/:id',
74
- handler: 'template.findOneById'
75
- }
76
- ]
77
- },
78
- platform: {
79
- type: 'admin',
80
- prefix: undefined,
81
- routes: [
82
- {
83
- method: 'GET',
84
- path: '/platform',
85
- handler: 'platform.findAll'
86
- },
87
- {
88
- method: 'GET',
89
- path: '/platform/:id',
90
- handler: 'platform.findOneById'
91
- },
92
- {
93
- method: 'GET',
94
- path: '/platform/:platform/page-types',
95
- handler: 'platform.findPageTypesByPlatform'
96
- }
97
- ]
98
- },
99
- sitemap: {
100
- type: 'content-api',
101
- prefix: undefined,
102
- routes: [
103
- {
104
- method: 'GET',
105
- path: '/sitemap',
106
- handler: 'sitemap.generate'
107
- }
108
- ]
109
- }
110
- };
111
-
112
- export default routes;
1
+ import userCategory from './user-category';
2
+
3
+ const routes = {
4
+ 'private-content': {
5
+ type: 'content-api',
6
+ prefix: undefined,
7
+ routes: [
8
+ {
9
+ method: 'GET',
10
+ path: '/activate/:token',
11
+ handler: 'private-content.activateUser',
12
+ config: { policies: [], auth: false }
13
+ },
14
+ {
15
+ method: 'POST',
16
+ path: '/removeInactiveUsers',
17
+ handler: 'private-content.removeInactiveUsers'
18
+ }
19
+ ]
20
+ },
21
+ 'page-type': {
22
+ type: 'admin',
23
+ prefix: undefined,
24
+ routes: [
25
+ {
26
+ method: 'GET',
27
+ path: '/page-types/:uid/:platformId',
28
+ handler: 'page-type.findOneByUid'
29
+ }
30
+ ]
31
+ },
32
+ page: {
33
+ type: 'admin',
34
+ prefix: undefined,
35
+ routes: [
36
+ {
37
+ method: 'GET',
38
+ path: '/page/:id',
39
+ handler: 'page.getPage'
40
+ }
41
+ ]
42
+ },
43
+ 'collection-types': {
44
+ type: 'admin',
45
+ prefix: undefined,
46
+ routes: [
47
+ {
48
+ method: 'GET',
49
+ path: '/collection-types/:uid',
50
+ handler: 'collection-types.hasPageRelation'
51
+ },
52
+ {
53
+ method: 'GET',
54
+ path: '/collection-types-page-links/:uid/:ids?',
55
+ handler: 'collection-types.getTranslationPageLinks'
56
+ },
57
+ {
58
+ method: 'GET',
59
+ path: '/collection-types/hasPlatform/:uid',
60
+ handler: 'collection-types.hasPlatformRelation'
61
+ }
62
+ ]
63
+ },
64
+ template: {
65
+ type: 'admin',
66
+ prefix: undefined,
67
+ routes: [
68
+ {
69
+ method: 'GET',
70
+ path: '/template',
71
+ handler: 'template.findAll'
72
+ },
73
+ {
74
+ method: 'GET',
75
+ path: '/template/:id',
76
+ handler: 'template.findOneById'
77
+ }
78
+ ]
79
+ },
80
+ platform: {
81
+ type: 'admin',
82
+ prefix: undefined,
83
+ routes: [
84
+ {
85
+ method: 'GET',
86
+ path: '/platform',
87
+ handler: 'platform.findAll'
88
+ },
89
+ {
90
+ method: 'GET',
91
+ path: '/platform/:id',
92
+ handler: 'platform.findOneById'
93
+ },
94
+ {
95
+ method: 'GET',
96
+ path: '/platform/:platform/page-types',
97
+ handler: 'platform.findPageTypesByPlatform'
98
+ }
99
+ ]
100
+ },
101
+ sitemap: {
102
+ type: 'content-api',
103
+ prefix: undefined,
104
+ routes: [
105
+ {
106
+ method: 'GET',
107
+ path: '/sitemap',
108
+ handler: 'sitemap.generate'
109
+ }
110
+ ]
111
+ },
112
+ 'user-category': userCategory
113
+ };
114
+
115
+ export default routes;
@@ -0,0 +1,3 @@
1
+ import { factories } from '@strapi/strapi';
2
+
3
+ export default factories.createCoreRouter('plugin::page-builder.user-category');
@@ -1,96 +1,96 @@
1
- {
2
- "draftAndPublish": true,
3
- "displayName": "Pagina's",
4
- "singularName": "page",
5
- "pluralName": "pages",
6
- "description": "",
7
- "plugin": "page-builder",
8
- "pluginOptions": {
9
- "i18n": {
10
- "localized": true
11
- }
12
- },
13
- "kind": "collectionType",
14
- "collectionName": "pages",
15
- "attributes": {
16
- "collectionTypeData": {
17
- "type": "relation",
18
- "relation": "morphToMany",
19
- "configurable": false
20
- },
21
- "title": {
22
- "pluginOptions": {
23
- "i18n": {
24
- "localized": true
25
- }
26
- },
27
- "type": "string",
28
- "required": true
29
- },
30
- "slug": {
31
- "pluginOptions": {
32
- "i18n": {
33
- "localized": true
34
- },
35
- "slug": {
36
- "field": "slug",
37
- "targetField": "title"
38
- }
39
- },
40
- "type": "customField",
41
- "customField": "plugin::slug.slug",
42
- "required": true
43
- },
44
- "path": {
45
- "pluginOptions": {
46
- "i18n": {
47
- "localized": true
48
- }
49
- },
50
- "type": "string",
51
- "required": false
52
- },
53
- "parent": {
54
- "type": "relation",
55
- "relation": "oneToOne",
56
- "target": "api::page.page",
57
- "private": false
58
- },
59
- "excerpt": {
60
- "pluginOptions": {
61
- "i18n": {
62
- "localized": true
63
- }
64
- },
65
- "type": "text"
66
- },
67
- "modules": {
68
- "pluginOptions": {
69
- "i18n": {
70
- "localized": true
71
- }
72
- },
73
- "type": "dynamiczone",
74
- "components": []
75
- },
76
- "seo": {
77
- "type": "component",
78
- "pluginOptions": {
79
- "i18n": {
80
- "localized": true
81
- }
82
- },
83
- "component": "shared.seo"
84
- },
85
- "pageType": {
86
- "type": "relation",
87
- "relation": "oneToOne",
88
- "target": "api::page-type.page-type"
89
- },
90
- "platform": {
91
- "type": "relation",
92
- "relation": "oneToOne",
93
- "target": "api::platform.platform"
94
- }
95
- }
96
- }
1
+ {
2
+ "draftAndPublish": true,
3
+ "displayName": "Pagina's",
4
+ "singularName": "page",
5
+ "pluralName": "pages",
6
+ "description": "",
7
+ "plugin": "page-builder",
8
+ "pluginOptions": {
9
+ "i18n": {
10
+ "localized": true
11
+ }
12
+ },
13
+ "kind": "collectionType",
14
+ "collectionName": "pages",
15
+ "attributes": {
16
+ "collectionTypeData": {
17
+ "type": "relation",
18
+ "relation": "morphToMany",
19
+ "configurable": false
20
+ },
21
+ "title": {
22
+ "pluginOptions": {
23
+ "i18n": {
24
+ "localized": true
25
+ }
26
+ },
27
+ "type": "string",
28
+ "required": true
29
+ },
30
+ "slug": {
31
+ "pluginOptions": {
32
+ "i18n": {
33
+ "localized": true
34
+ },
35
+ "slug": {
36
+ "field": "slug",
37
+ "targetField": "title"
38
+ }
39
+ },
40
+ "type": "customField",
41
+ "customField": "plugin::slug.slug",
42
+ "required": true
43
+ },
44
+ "path": {
45
+ "pluginOptions": {
46
+ "i18n": {
47
+ "localized": true
48
+ }
49
+ },
50
+ "type": "string",
51
+ "required": false
52
+ },
53
+ "parent": {
54
+ "type": "relation",
55
+ "relation": "oneToOne",
56
+ "target": "api::page.page",
57
+ "private": false
58
+ },
59
+ "excerpt": {
60
+ "pluginOptions": {
61
+ "i18n": {
62
+ "localized": true
63
+ }
64
+ },
65
+ "type": "text"
66
+ },
67
+ "modules": {
68
+ "pluginOptions": {
69
+ "i18n": {
70
+ "localized": true
71
+ }
72
+ },
73
+ "type": "dynamiczone",
74
+ "components": []
75
+ },
76
+ "seo": {
77
+ "type": "component",
78
+ "pluginOptions": {
79
+ "i18n": {
80
+ "localized": true
81
+ }
82
+ },
83
+ "component": "shared.seo"
84
+ },
85
+ "pageType": {
86
+ "type": "relation",
87
+ "relation": "oneToOne",
88
+ "target": "api::page-type.page-type"
89
+ },
90
+ "platform": {
91
+ "type": "relation",
92
+ "relation": "oneToOne",
93
+ "target": "api::platform.platform"
94
+ }
95
+ }
96
+ }
@@ -1,87 +1,87 @@
1
- {
2
- "draftAndPublish": true,
3
- "displayName": "Pagina's",
4
- "singularName": "page",
5
- "pluralName": "pages",
6
- "description": "",
7
- "plugin": "page-builder",
8
- "pluginOptions": {
9
- "i18n": {
10
- "localized": true
11
- }
12
- },
13
- "kind": "collectionType",
14
- "collectionName": "pages",
15
- "attributes": {
16
- "collectionTypeData": {
17
- "type": "relation",
18
- "relation": "morphToMany",
19
- "configurable": false,
20
- "private": false
21
- },
22
- "title": {
23
- "pluginOptions": {
24
- "i18n": {
25
- "localized": true
26
- }
27
- },
28
- "type": "string",
29
- "required": true
30
- },
31
- "slug": {
32
- "pluginOptions": {
33
- "i18n": {
34
- "localized": true
35
- },
36
- "slug": {
37
- "field": "slug",
38
- "targetField": "title"
39
- }
40
- },
41
- "type": "customField",
42
- "customField": "plugin::slug.slug",
43
- "required": true
44
- },
45
- "path": {
46
- "pluginOptions": {
47
- "i18n": {
48
- "localized": true
49
- }
50
- },
51
- "type": "string",
52
- "required": false
53
- },
54
- "parent": {
55
- "type": "relation",
56
- "relation": "oneToOne",
57
- "target": "api::page.page",
58
- "private": false
59
- },
60
- "excerpt": {
61
- "pluginOptions": {
62
- "i18n": {
63
- "localized": true
64
- }
65
- },
66
- "type": "text"
67
- },
68
- "modules": {
69
- "pluginOptions": {
70
- "i18n": {
71
- "localized": true
72
- }
73
- },
74
- "type": "dynamiczone",
75
- "components": []
76
- },
77
- "seo": {
78
- "type": "component",
79
- "pluginOptions": {
80
- "i18n": {
81
- "localized": true
82
- }
83
- },
84
- "component": "shared.seo"
85
- }
86
- }
87
- }
1
+ {
2
+ "draftAndPublish": true,
3
+ "displayName": "Pagina's",
4
+ "singularName": "page",
5
+ "pluralName": "pages",
6
+ "description": "",
7
+ "plugin": "page-builder",
8
+ "pluginOptions": {
9
+ "i18n": {
10
+ "localized": true
11
+ }
12
+ },
13
+ "kind": "collectionType",
14
+ "collectionName": "pages",
15
+ "attributes": {
16
+ "collectionTypeData": {
17
+ "type": "relation",
18
+ "relation": "morphToMany",
19
+ "configurable": false,
20
+ "private": false
21
+ },
22
+ "title": {
23
+ "pluginOptions": {
24
+ "i18n": {
25
+ "localized": true
26
+ }
27
+ },
28
+ "type": "string",
29
+ "required": true
30
+ },
31
+ "slug": {
32
+ "pluginOptions": {
33
+ "i18n": {
34
+ "localized": true
35
+ },
36
+ "slug": {
37
+ "field": "slug",
38
+ "targetField": "title"
39
+ }
40
+ },
41
+ "type": "customField",
42
+ "customField": "plugin::slug.slug",
43
+ "required": true
44
+ },
45
+ "path": {
46
+ "pluginOptions": {
47
+ "i18n": {
48
+ "localized": true
49
+ }
50
+ },
51
+ "type": "string",
52
+ "required": false
53
+ },
54
+ "parent": {
55
+ "type": "relation",
56
+ "relation": "oneToOne",
57
+ "target": "api::page.page",
58
+ "private": false
59
+ },
60
+ "excerpt": {
61
+ "pluginOptions": {
62
+ "i18n": {
63
+ "localized": true
64
+ }
65
+ },
66
+ "type": "text"
67
+ },
68
+ "modules": {
69
+ "pluginOptions": {
70
+ "i18n": {
71
+ "localized": true
72
+ }
73
+ },
74
+ "type": "dynamiczone",
75
+ "components": []
76
+ },
77
+ "seo": {
78
+ "type": "component",
79
+ "pluginOptions": {
80
+ "i18n": {
81
+ "localized": true
82
+ }
83
+ },
84
+ "component": "shared.seo"
85
+ }
86
+ }
87
+ }