@kurbo/dkit 0.4.0

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 (241) hide show
  1. package/README.md +24 -0
  2. package/dist/bin.js +8066 -0
  3. package/dist/bin.js.map +1 -0
  4. package/package.json +58 -0
  5. package/vendor/registry/blocks/blog-detail/module.json +27 -0
  6. package/vendor/registry/blocks/blog-detail/ui/minimal/next/blog-detail.tsx +26 -0
  7. package/vendor/registry/blocks/blog-detail/ui/minimal/nuxt/BlogDetail.vue +27 -0
  8. package/vendor/registry/blocks/blog-detail/ui/shadcn/next/blog-detail.tsx +106 -0
  9. package/vendor/registry/blocks/blog-detail/ui/shadcn/nuxt/BlogDetail.vue +116 -0
  10. package/vendor/registry/blocks/blog-list/module.json +26 -0
  11. package/vendor/registry/blocks/blog-list/ui/minimal/next/blog-list.tsx +130 -0
  12. package/vendor/registry/blocks/blog-list/ui/minimal/nuxt/BlogList.vue +62 -0
  13. package/vendor/registry/blocks/blog-list/ui/shadcn/next/blog-list.tsx +109 -0
  14. package/vendor/registry/blocks/blog-list/ui/shadcn/nuxt/BlogList.vue +100 -0
  15. package/vendor/registry/blocks/blog-list-cards/module.json +27 -0
  16. package/vendor/registry/blocks/blog-list-cards/ui/minimal/next/blog-list-cards.tsx +130 -0
  17. package/vendor/registry/blocks/blog-list-cards/ui/minimal/nuxt/BlogListCards.vue +114 -0
  18. package/vendor/registry/blocks/blog-list-cards/ui/shadcn/next/blog-list-cards.tsx +119 -0
  19. package/vendor/registry/blocks/blog-list-cards/ui/shadcn/nuxt/BlogListCards.vue +113 -0
  20. package/vendor/registry/blocks/booking-form-ui/module.json +15 -0
  21. package/vendor/registry/blocks/booking-form-ui/ui/minimal/next/booking-form.tsx +89 -0
  22. package/vendor/registry/blocks/booking-form-ui/ui/shadcn/next/booking-form.tsx +92 -0
  23. package/vendor/registry/blocks/contact-form-ui/module.json +27 -0
  24. package/vendor/registry/blocks/contact-form-ui/ui/minimal/next/contact-form.tsx +45 -0
  25. package/vendor/registry/blocks/contact-form-ui/ui/minimal/nuxt/ContactForm.vue +79 -0
  26. package/vendor/registry/blocks/contact-form-ui/ui/shadcn/next/contact-form.tsx +55 -0
  27. package/vendor/registry/blocks/contact-form-ui/ui/shadcn/nuxt/ContactForm.vue +92 -0
  28. package/vendor/registry/blocks/faq-list/module.json +15 -0
  29. package/vendor/registry/blocks/faq-list/ui/minimal/next/faq-list.tsx +78 -0
  30. package/vendor/registry/blocks/faq-list/ui/shadcn/next/faq-list.tsx +77 -0
  31. package/vendor/registry/blocks/maintenance-gate/module.json +13 -0
  32. package/vendor/registry/blocks/maintenance-gate/ui/minimal/next/maintenance-gate.tsx +135 -0
  33. package/vendor/registry/blocks/maintenance-gate/ui/shadcn/next/maintenance-gate.tsx +87 -0
  34. package/vendor/registry/blocks/nav-footer/module.json +13 -0
  35. package/vendor/registry/blocks/nav-footer/ui/minimal/next/nav-footer.tsx +55 -0
  36. package/vendor/registry/blocks/nav-footer/ui/shadcn/next/nav-footer.tsx +41 -0
  37. package/vendor/registry/blocks/nav-header/module.json +14 -0
  38. package/vendor/registry/blocks/nav-header/ui/minimal/next/nav-header.tsx +244 -0
  39. package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header-client.tsx +185 -0
  40. package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header.tsx +12 -0
  41. package/vendor/registry/blocks/page-detail/module.json +26 -0
  42. package/vendor/registry/blocks/page-detail/ui/minimal/next/page-detail.tsx +26 -0
  43. package/vendor/registry/blocks/page-detail/ui/minimal/nuxt/PageDetail.vue +26 -0
  44. package/vendor/registry/blocks/page-detail/ui/shadcn/next/page-detail.tsx +61 -0
  45. package/vendor/registry/blocks/page-detail/ui/shadcn/nuxt/PageDetail.vue +62 -0
  46. package/vendor/registry/blocks/project-detail/module.json +15 -0
  47. package/vendor/registry/blocks/project-detail/ui/minimal/next/project-detail.tsx +58 -0
  48. package/vendor/registry/blocks/project-detail/ui/shadcn/next/project-detail.tsx +91 -0
  49. package/vendor/registry/blocks/project-list/module.json +14 -0
  50. package/vendor/registry/blocks/project-list/ui/minimal/next/project-list.tsx +104 -0
  51. package/vendor/registry/blocks/project-list/ui/shadcn/next/project-list.tsx +81 -0
  52. package/vendor/registry/blocks/project-list-cards/module.json +15 -0
  53. package/vendor/registry/blocks/project-list-cards/ui/minimal/next/project-list-cards.tsx +125 -0
  54. package/vendor/registry/blocks/project-list-cards/ui/shadcn/next/project-list-cards.tsx +94 -0
  55. package/vendor/registry/blocks/projects-carousel/module.json +15 -0
  56. package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel-client.tsx +239 -0
  57. package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel.tsx +24 -0
  58. package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel-client.tsx +102 -0
  59. package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel.tsx +24 -0
  60. package/vendor/registry/blocks/service-detail/module.json +15 -0
  61. package/vendor/registry/blocks/service-detail/ui/minimal/next/service-detail.tsx +49 -0
  62. package/vendor/registry/blocks/service-detail/ui/shadcn/next/service-detail.tsx +75 -0
  63. package/vendor/registry/blocks/service-list/module.json +14 -0
  64. package/vendor/registry/blocks/service-list/ui/minimal/next/service-list.tsx +103 -0
  65. package/vendor/registry/blocks/service-list/ui/shadcn/next/service-list.tsx +80 -0
  66. package/vendor/registry/blocks/service-list-cards/module.json +15 -0
  67. package/vendor/registry/blocks/service-list-cards/ui/minimal/next/service-list-cards.tsx +124 -0
  68. package/vendor/registry/blocks/service-list-cards/ui/shadcn/next/service-list-cards.tsx +92 -0
  69. package/vendor/registry/blocks/site-brand/module.json +13 -0
  70. package/vendor/registry/blocks/site-brand/ui/minimal/next/site-brand.tsx +61 -0
  71. package/vendor/registry/blocks/site-brand/ui/shadcn/next/site-brand.tsx +48 -0
  72. package/vendor/registry/blocks/site-logo/module.json +13 -0
  73. package/vendor/registry/blocks/site-logo/ui/minimal/next/site-logo.tsx +37 -0
  74. package/vendor/registry/blocks/site-logo/ui/shadcn/next/site-logo.tsx +34 -0
  75. package/vendor/registry/blocks/social-links/module.json +13 -0
  76. package/vendor/registry/blocks/social-links/ui/minimal/next/social-links.tsx +55 -0
  77. package/vendor/registry/blocks/social-links/ui/shadcn/next/social-links.tsx +46 -0
  78. package/vendor/registry/blocks/team-detail/module.json +15 -0
  79. package/vendor/registry/blocks/team-detail/ui/minimal/next/team-detail.tsx +113 -0
  80. package/vendor/registry/blocks/team-detail/ui/shadcn/next/team-detail.tsx +77 -0
  81. package/vendor/registry/blocks/team-list/module.json +14 -0
  82. package/vendor/registry/blocks/team-list/ui/minimal/next/team-list.tsx +113 -0
  83. package/vendor/registry/blocks/team-list/ui/shadcn/next/team-list.tsx +77 -0
  84. package/vendor/registry/blocks/team-list-cards/module.json +15 -0
  85. package/vendor/registry/blocks/team-list-cards/ui/minimal/next/team-list-cards.tsx +111 -0
  86. package/vendor/registry/blocks/team-list-cards/ui/shadcn/next/team-list-cards.tsx +83 -0
  87. package/vendor/registry/blocks/testimonials-carousel/module.json +15 -0
  88. package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel-client.tsx +230 -0
  89. package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel.tsx +23 -0
  90. package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel-client.tsx +91 -0
  91. package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel.tsx +23 -0
  92. package/vendor/registry/blocks/testimonials-list/module.json +14 -0
  93. package/vendor/registry/blocks/testimonials-list/ui/minimal/next/testimonials-list.tsx +109 -0
  94. package/vendor/registry/blocks/testimonials-list/ui/shadcn/next/testimonials-list.tsx +72 -0
  95. package/vendor/registry/blocks/testimonials-list-cards/module.json +15 -0
  96. package/vendor/registry/blocks/testimonials-list-cards/ui/minimal/next/testimonials-list-cards.tsx +114 -0
  97. package/vendor/registry/blocks/testimonials-list-cards/ui/shadcn/next/testimonials-list-cards.tsx +72 -0
  98. package/vendor/registry/core/languages/policies.json +25 -0
  99. package/vendor/registry/core/languages/seed.json +16 -0
  100. package/vendor/registry/core/languages/snapshot.json +94 -0
  101. package/vendor/registry/modules/blog/access/policies.json +49 -0
  102. package/vendor/registry/modules/blog/access/policies.multilocale.json +67 -0
  103. package/vendor/registry/modules/blog/lib.multilocale.ts +552 -0
  104. package/vendor/registry/modules/blog/lib.ts +346 -0
  105. package/vendor/registry/modules/blog/module.json +50 -0
  106. package/vendor/registry/modules/blog/schema/snapshot.json +701 -0
  107. package/vendor/registry/modules/blog/schema/snapshot.multilocale.json +884 -0
  108. package/vendor/registry/modules/blog/services/ATTRIBUTION.md +8 -0
  109. package/vendor/registry/modules/blog/services/assets/ada-lovelace-avatar.jpg +0 -0
  110. package/vendor/registry/modules/blog/services/assets/hello-from-dkit-cover.jpg +0 -0
  111. package/vendor/registry/modules/blog/services/seed.json +70 -0
  112. package/vendor/registry/modules/blog/services/seed.multilocale.json +90 -0
  113. package/vendor/registry/modules/blog/types.multilocale.ts +96 -0
  114. package/vendor/registry/modules/blog/types.ts +62 -0
  115. package/vendor/registry/modules/booking-form/access/policies.json +25 -0
  116. package/vendor/registry/modules/booking-form/access/policies.multilocale.json +27 -0
  117. package/vendor/registry/modules/booking-form/lib.multilocale.ts +71 -0
  118. package/vendor/registry/modules/booking-form/lib.ts +77 -0
  119. package/vendor/registry/modules/booking-form/module.json +32 -0
  120. package/vendor/registry/modules/booking-form/schema/snapshot.json +294 -0
  121. package/vendor/registry/modules/booking-form/schema/snapshot.multilocale.json +467 -0
  122. package/vendor/registry/modules/booking-form/services/flows.json +19 -0
  123. package/vendor/registry/modules/booking-form/types.multilocale.ts +29 -0
  124. package/vendor/registry/modules/booking-form/types.ts +27 -0
  125. package/vendor/registry/modules/contact-form/access/policies.json +25 -0
  126. package/vendor/registry/modules/contact-form/access/policies.multilocale.json +27 -0
  127. package/vendor/registry/modules/contact-form/lib.multilocale.ts +65 -0
  128. package/vendor/registry/modules/contact-form/lib.ts +67 -0
  129. package/vendor/registry/modules/contact-form/module.json +32 -0
  130. package/vendor/registry/modules/contact-form/schema/snapshot.json +193 -0
  131. package/vendor/registry/modules/contact-form/schema/snapshot.multilocale.json +293 -0
  132. package/vendor/registry/modules/contact-form/services/flows.json +19 -0
  133. package/vendor/registry/modules/contact-form/types.multilocale.ts +21 -0
  134. package/vendor/registry/modules/contact-form/types.ts +19 -0
  135. package/vendor/registry/modules/faq/access/policies.json +25 -0
  136. package/vendor/registry/modules/faq/access/policies.multilocale.json +18 -0
  137. package/vendor/registry/modules/faq/lib.multilocale.ts +120 -0
  138. package/vendor/registry/modules/faq/lib.ts +73 -0
  139. package/vendor/registry/modules/faq/module.json +31 -0
  140. package/vendor/registry/modules/faq/schema/snapshot.json +180 -0
  141. package/vendor/registry/modules/faq/schema/snapshot.multilocale.json +116 -0
  142. package/vendor/registry/modules/faq/services/seed.json +38 -0
  143. package/vendor/registry/modules/faq/services/seed.multilocale.json +32 -0
  144. package/vendor/registry/modules/faq/types.multilocale.ts +31 -0
  145. package/vendor/registry/modules/faq/types.ts +17 -0
  146. package/vendor/registry/modules/navigation/access/policies.json +31 -0
  147. package/vendor/registry/modules/navigation/access/policies.multilocale.json +51 -0
  148. package/vendor/registry/modules/navigation/lib.multilocale.ts +198 -0
  149. package/vendor/registry/modules/navigation/lib.ts +252 -0
  150. package/vendor/registry/modules/navigation/module.json +46 -0
  151. package/vendor/registry/modules/navigation/schema/snapshot.json +453 -0
  152. package/vendor/registry/modules/navigation/schema/snapshot.multilocale.json +864 -0
  153. package/vendor/registry/modules/navigation/services/seed.json +103 -0
  154. package/vendor/registry/modules/navigation/services/seed.multilocale.json +88 -0
  155. package/vendor/registry/modules/navigation/types.multilocale.ts +60 -0
  156. package/vendor/registry/modules/navigation/types.ts +44 -0
  157. package/vendor/registry/modules/pages/access/policies.json +25 -0
  158. package/vendor/registry/modules/pages/access/policies.multilocale.json +18 -0
  159. package/vendor/registry/modules/pages/lib.multilocale.ts +166 -0
  160. package/vendor/registry/modules/pages/lib.ts +123 -0
  161. package/vendor/registry/modules/pages/module.json +39 -0
  162. package/vendor/registry/modules/pages/schema/snapshot.json +247 -0
  163. package/vendor/registry/modules/pages/schema/snapshot.multilocale.json +187 -0
  164. package/vendor/registry/modules/pages/services/seed.json +24 -0
  165. package/vendor/registry/modules/pages/services/seed.multilocale.json +34 -0
  166. package/vendor/registry/modules/pages/types.multilocale.ts +37 -0
  167. package/vendor/registry/modules/pages/types.ts +21 -0
  168. package/vendor/registry/modules/projects/access/policies.json +31 -0
  169. package/vendor/registry/modules/projects/access/policies.multilocale.json +43 -0
  170. package/vendor/registry/modules/projects/lib.multilocale.ts +111 -0
  171. package/vendor/registry/modules/projects/lib.ts +138 -0
  172. package/vendor/registry/modules/projects/module.json +48 -0
  173. package/vendor/registry/modules/projects/schema/snapshot.json +348 -0
  174. package/vendor/registry/modules/projects/schema/snapshot.multilocale.json +577 -0
  175. package/vendor/registry/modules/projects/services/ATTRIBUTION.md +7 -0
  176. package/vendor/registry/modules/projects/services/assets/brand-identity-cover.jpg +0 -0
  177. package/vendor/registry/modules/projects/services/seed.json +40 -0
  178. package/vendor/registry/modules/projects/services/seed.multilocale.json +31 -0
  179. package/vendor/registry/modules/projects/types.multilocale.ts +38 -0
  180. package/vendor/registry/modules/projects/types.ts +28 -0
  181. package/vendor/registry/modules/services/access/policies.json +31 -0
  182. package/vendor/registry/modules/services/access/policies.multilocale.json +43 -0
  183. package/vendor/registry/modules/services/lib.multilocale.ts +109 -0
  184. package/vendor/registry/modules/services/lib.ts +134 -0
  185. package/vendor/registry/modules/services/module.json +47 -0
  186. package/vendor/registry/modules/services/schema/snapshot.json +305 -0
  187. package/vendor/registry/modules/services/schema/snapshot.multilocale.json +510 -0
  188. package/vendor/registry/modules/services/services/ATTRIBUTION.md +8 -0
  189. package/vendor/registry/modules/services/services/assets/design-development.jpg +0 -0
  190. package/vendor/registry/modules/services/services/assets/strategy-consulting.jpg +0 -0
  191. package/vendor/registry/modules/services/services/seed.json +44 -0
  192. package/vendor/registry/modules/services/services/seed.multilocale.json +31 -0
  193. package/vendor/registry/modules/services/types.multilocale.ts +36 -0
  194. package/vendor/registry/modules/services/types.ts +26 -0
  195. package/vendor/registry/modules/settings/access/policies.json +31 -0
  196. package/vendor/registry/modules/settings/access/policies.multilocale.json +43 -0
  197. package/vendor/registry/modules/settings/lib.multilocale.ts +158 -0
  198. package/vendor/registry/modules/settings/lib.ts +259 -0
  199. package/vendor/registry/modules/settings/module.json +33 -0
  200. package/vendor/registry/modules/settings/schema/snapshot.json +315 -0
  201. package/vendor/registry/modules/settings/schema/snapshot.multilocale.json +586 -0
  202. package/vendor/registry/modules/settings/services/assets/dkit-logo.svg +4 -0
  203. package/vendor/registry/modules/settings/services/seed.json +31 -0
  204. package/vendor/registry/modules/settings/services/seed.multilocale.json +42 -0
  205. package/vendor/registry/modules/settings/types.multilocale.ts +72 -0
  206. package/vendor/registry/modules/settings/types.ts +94 -0
  207. package/vendor/registry/modules/team/access/policies.json +31 -0
  208. package/vendor/registry/modules/team/access/policies.multilocale.json +43 -0
  209. package/vendor/registry/modules/team/lib.multilocale.ts +88 -0
  210. package/vendor/registry/modules/team/lib.ts +120 -0
  211. package/vendor/registry/modules/team/module.json +47 -0
  212. package/vendor/registry/modules/team/schema/snapshot.json +295 -0
  213. package/vendor/registry/modules/team/schema/snapshot.multilocale.json +525 -0
  214. package/vendor/registry/modules/team/services/ATTRIBUTION.md +8 -0
  215. package/vendor/registry/modules/team/services/assets/morgan-lee-photo.jpg +0 -0
  216. package/vendor/registry/modules/team/services/assets/taylor-kim-photo.jpg +0 -0
  217. package/vendor/registry/modules/team/services/seed.json +52 -0
  218. package/vendor/registry/modules/team/services/seed.multilocale.json +30 -0
  219. package/vendor/registry/modules/team/types.multilocale.ts +33 -0
  220. package/vendor/registry/modules/team/types.ts +27 -0
  221. package/vendor/registry/modules/testimonials/access/policies.json +31 -0
  222. package/vendor/registry/modules/testimonials/access/policies.multilocale.json +43 -0
  223. package/vendor/registry/modules/testimonials/lib.multilocale.ts +93 -0
  224. package/vendor/registry/modules/testimonials/lib.ts +85 -0
  225. package/vendor/registry/modules/testimonials/module.json +41 -0
  226. package/vendor/registry/modules/testimonials/schema/snapshot.json +248 -0
  227. package/vendor/registry/modules/testimonials/schema/snapshot.multilocale.json +462 -0
  228. package/vendor/registry/modules/testimonials/services/ATTRIBUTION.md +8 -0
  229. package/vendor/registry/modules/testimonials/services/assets/jane-doe-avatar.jpg +0 -0
  230. package/vendor/registry/modules/testimonials/services/assets/sample-author-avatar.jpg +0 -0
  231. package/vendor/registry/modules/testimonials/services/seed.json +49 -0
  232. package/vendor/registry/modules/testimonials/services/seed.multilocale.json +30 -0
  233. package/vendor/registry/modules/testimonials/types.multilocale.ts +27 -0
  234. package/vendor/registry/modules/testimonials/types.ts +22 -0
  235. package/vendor/registry/registry.json +832 -0
  236. package/vendor/registry/shared/helpers.ts +16 -0
  237. package/vendor/registry/shared/i18n.ts +74 -0
  238. package/vendor/registry/shared/minimal.css +83 -0
  239. package/vendor/registry/shared/paths.ts +50 -0
  240. package/vendor/registry/shared/prose.css +113 -0
  241. package/vendor/registry/tsconfig.json +49 -0
@@ -0,0 +1,884 @@
1
+ {
2
+ "format": "dkit.rest",
3
+ "collections": [
4
+ {
5
+ "collection": "blog",
6
+ "schema": null,
7
+ "meta": {
8
+ "icon": "auto_stories",
9
+ "color": "#0F766E",
10
+ "collapse": "open",
11
+ "translations": [
12
+ {
13
+ "language": "en-US",
14
+ "translation": "Blog",
15
+ "singular": "Blog",
16
+ "plural": "Blog"
17
+ }
18
+ ]
19
+ }
20
+ },
21
+ {
22
+ "collection": "authors",
23
+ "schema": {},
24
+ "meta": {
25
+ "icon": "person",
26
+ "color": "#0F766E",
27
+ "group": "blog",
28
+ "display_template": "{{name}}",
29
+ "archive_field": null,
30
+ "singleton": false,
31
+ "sort": 2,
32
+ "translations": [
33
+ {
34
+ "language": "en-US",
35
+ "translation": "Authors",
36
+ "singular": "Author",
37
+ "plural": "Authors"
38
+ }
39
+ ],
40
+ "note": "People who write blog posts"
41
+ },
42
+ "fields": [
43
+ {
44
+ "field": "id",
45
+ "type": "uuid",
46
+ "meta": {
47
+ "hidden": true,
48
+ "readonly": true,
49
+ "interface": "input",
50
+ "special": ["uuid"],
51
+ "sort": 1,
52
+ "width": "full",
53
+ "translations": [{ "language": "en-US", "translation": "ID" }]
54
+ },
55
+ "schema": {
56
+ "is_primary_key": true,
57
+ "length": 36,
58
+ "has_auto_increment": false
59
+ }
60
+ },
61
+ {
62
+ "field": "status",
63
+ "type": "string",
64
+ "meta": {
65
+ "interface": "select-dropdown",
66
+ "display": "labels",
67
+ "width": "half",
68
+ "sort": 2,
69
+ "options": {
70
+ "choices": [
71
+ { "text": "Published", "value": "published" },
72
+ { "text": "Draft", "value": "draft" }
73
+ ]
74
+ },
75
+ "display_options": {
76
+ "choices": [
77
+ {
78
+ "text": "Published",
79
+ "value": "published",
80
+ "foreground": "#FFFFFF",
81
+ "background": "#0F766E"
82
+ },
83
+ {
84
+ "text": "Draft",
85
+ "value": "draft",
86
+ "foreground": "#44403C",
87
+ "background": "#E7E5E4"
88
+ }
89
+ ]
90
+ },
91
+ "translations": [{ "language": "en-US", "translation": "Status" }],
92
+ "note": "Only published authors appear on the public site",
93
+ "validation": {
94
+ "_and": [{ "status": { "_in": ["published", "draft"] } }]
95
+ },
96
+ "validation_message": "Choose Published or Draft."
97
+ },
98
+ "schema": { "default_value": "draft", "is_nullable": false }
99
+ },
100
+ {
101
+ "field": "name",
102
+ "type": "string",
103
+ "meta": {
104
+ "interface": "input",
105
+ "required": true,
106
+ "width": "half",
107
+ "sort": 3,
108
+ "options": { "trim": true },
109
+ "translations": [{ "language": "en-US", "translation": "Name" }],
110
+ "note": "Display name shown on posts",
111
+ "validation": {
112
+ "_and": [{ "name": { "_regex": "^.{1,120}$" } }]
113
+ },
114
+ "validation_message": "Name is required (max 120 characters)."
115
+ },
116
+ "schema": { "is_nullable": false, "max_length": 120 }
117
+ },
118
+ {
119
+ "field": "slug",
120
+ "type": "string",
121
+ "meta": {
122
+ "interface": "input",
123
+ "required": true,
124
+ "width": "half",
125
+ "sort": 4,
126
+ "options": { "trim": true, "slug": true },
127
+ "translations": [{ "language": "en-US", "translation": "Slug" }],
128
+ "note": "URL-friendly identifier (unique)",
129
+ "validation": {
130
+ "_and": [
131
+ { "slug": { "_regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }
132
+ ]
133
+ },
134
+ "validation_message": "Use lowercase letters, numbers, and hyphens only."
135
+ },
136
+ "schema": { "is_nullable": false, "is_unique": true, "max_length": 120 }
137
+ },
138
+ {
139
+ "field": "avatar",
140
+ "type": "uuid",
141
+ "meta": {
142
+ "interface": "file-image",
143
+ "special": ["file"],
144
+ "display": "image",
145
+ "width": "half",
146
+ "sort": 5,
147
+ "translations": [{ "language": "en-US", "translation": "Avatar" }],
148
+ "note": "Author profile photo shown next to bylines"
149
+ },
150
+ "schema": {}
151
+ },
152
+ {
153
+ "field": "translations",
154
+ "type": "alias",
155
+ "meta": {
156
+ "interface": "translations",
157
+ "special": ["translations"],
158
+ "width": "full",
159
+ "sort": 6,
160
+ "translations": [{ "language": "en-US", "translation": "Translations" }]
161
+ },
162
+ "schema": null
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "collection": "authors_translations",
168
+ "schema": {},
169
+ "meta": {
170
+ "hidden": true,
171
+ "icon": "translate",
172
+ "color": "#0F766E",
173
+ "group": "blog",
174
+ "translations": [
175
+ {
176
+ "language": "en-US",
177
+ "translation": "Author translations",
178
+ "singular": "Author translation",
179
+ "plural": "Author translations"
180
+ }
181
+ ]
182
+ },
183
+ "fields": [
184
+ {
185
+ "field": "id",
186
+ "type": "integer",
187
+ "meta": {
188
+ "hidden": true,
189
+ "interface": "input",
190
+ "sort": 1,
191
+ "width": "full",
192
+ "translations": [{ "language": "en-US", "translation": "ID" }]
193
+ },
194
+ "schema": { "is_primary_key": true, "has_auto_increment": true }
195
+ },
196
+ {
197
+ "field": "authors_id",
198
+ "type": "uuid",
199
+ "meta": {
200
+ "hidden": true,
201
+ "sort": 2,
202
+ "width": "half",
203
+ "translations": [{ "language": "en-US", "translation": "Author" }]
204
+ },
205
+ "schema": {}
206
+ },
207
+ {
208
+ "field": "languages_code",
209
+ "type": "string",
210
+ "meta": {
211
+ "hidden": true,
212
+ "sort": 3,
213
+ "width": "half",
214
+ "translations": [{ "language": "en-US", "translation": "Language" }]
215
+ },
216
+ "schema": {}
217
+ },
218
+ {
219
+ "field": "bio",
220
+ "type": "text",
221
+ "meta": {
222
+ "interface": "input-multiline",
223
+ "width": "full",
224
+ "sort": 4,
225
+ "translations": [{ "language": "en-US", "translation": "Bio" }],
226
+ "note": "Short author biography"
227
+ },
228
+ "schema": {}
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "collection": "categories",
234
+ "schema": {},
235
+ "meta": {
236
+ "icon": "sell",
237
+ "color": "#0F766E",
238
+ "group": "blog",
239
+ "display_template": "{{translations.title}}",
240
+ "sort": 3,
241
+ "translations": [
242
+ {
243
+ "language": "en-US",
244
+ "translation": "Categories",
245
+ "singular": "Category",
246
+ "plural": "Categories"
247
+ }
248
+ ],
249
+ "note": "Topics used to organize posts"
250
+ },
251
+ "fields": [
252
+ {
253
+ "field": "id",
254
+ "type": "uuid",
255
+ "meta": {
256
+ "hidden": true,
257
+ "readonly": true,
258
+ "interface": "input",
259
+ "special": ["uuid"],
260
+ "sort": 1,
261
+ "width": "full",
262
+ "translations": [{ "language": "en-US", "translation": "ID" }]
263
+ },
264
+ "schema": {
265
+ "is_primary_key": true,
266
+ "length": 36,
267
+ "has_auto_increment": false
268
+ }
269
+ },
270
+ {
271
+ "field": "translations",
272
+ "type": "alias",
273
+ "meta": {
274
+ "interface": "translations",
275
+ "special": ["translations"],
276
+ "width": "full",
277
+ "sort": 2,
278
+ "translations": [{ "language": "en-US", "translation": "Translations" }]
279
+ },
280
+ "schema": null
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ "collection": "categories_translations",
286
+ "schema": {},
287
+ "meta": {
288
+ "hidden": true,
289
+ "icon": "translate",
290
+ "color": "#0F766E",
291
+ "group": "blog",
292
+ "translations": [
293
+ {
294
+ "language": "en-US",
295
+ "translation": "Category translations",
296
+ "singular": "Category translation",
297
+ "plural": "Category translations"
298
+ }
299
+ ]
300
+ },
301
+ "fields": [
302
+ {
303
+ "field": "id",
304
+ "type": "integer",
305
+ "meta": {
306
+ "hidden": true,
307
+ "interface": "input",
308
+ "sort": 1,
309
+ "width": "full",
310
+ "translations": [{ "language": "en-US", "translation": "ID" }]
311
+ },
312
+ "schema": { "is_primary_key": true, "has_auto_increment": true }
313
+ },
314
+ {
315
+ "field": "categories_id",
316
+ "type": "uuid",
317
+ "meta": {
318
+ "hidden": true,
319
+ "sort": 2,
320
+ "width": "half",
321
+ "translations": [{ "language": "en-US", "translation": "Category" }]
322
+ },
323
+ "schema": {}
324
+ },
325
+ {
326
+ "field": "languages_code",
327
+ "type": "string",
328
+ "meta": {
329
+ "hidden": true,
330
+ "sort": 3,
331
+ "width": "half",
332
+ "translations": [{ "language": "en-US", "translation": "Language" }]
333
+ },
334
+ "schema": {}
335
+ },
336
+ {
337
+ "field": "title",
338
+ "type": "string",
339
+ "meta": {
340
+ "interface": "input",
341
+ "required": true,
342
+ "width": "half",
343
+ "sort": 4,
344
+ "options": { "trim": true },
345
+ "translations": [{ "language": "en-US", "translation": "Title" }],
346
+ "validation": {
347
+ "_and": [{ "title": { "_regex": "^.{1,120}$" } }]
348
+ },
349
+ "validation_message": "Title is required (max 120 characters)."
350
+ },
351
+ "schema": { "is_nullable": false, "max_length": 120 }
352
+ },
353
+ {
354
+ "field": "slug",
355
+ "type": "string",
356
+ "meta": {
357
+ "interface": "input",
358
+ "required": true,
359
+ "width": "half",
360
+ "sort": 5,
361
+ "options": { "trim": true, "slug": true },
362
+ "translations": [{ "language": "en-US", "translation": "Slug" }],
363
+ "note": "URL-friendly identifier (unique per locale)",
364
+ "validation": {
365
+ "_and": [
366
+ { "slug": { "_regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }
367
+ ]
368
+ },
369
+ "validation_message": "Use lowercase letters, numbers, and hyphens only."
370
+ },
371
+ "schema": { "is_nullable": false, "is_unique": true, "max_length": 120 }
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "collection": "posts",
377
+ "schema": {},
378
+ "meta": {
379
+ "icon": "article",
380
+ "color": "#0F766E",
381
+ "group": "blog",
382
+ "display_template": "{{translations.title}}",
383
+ "archive_field": "status",
384
+ "archive_value": "archived",
385
+ "unarchive_value": "draft",
386
+ "archive_app_filter": true,
387
+ "sort": 1,
388
+ "translations": [
389
+ {
390
+ "language": "en-US",
391
+ "translation": "Posts",
392
+ "singular": "Post",
393
+ "plural": "Posts"
394
+ }
395
+ ],
396
+ "note": "Blog articles published to the site"
397
+ },
398
+ "fields": [
399
+ {
400
+ "field": "id",
401
+ "type": "uuid",
402
+ "meta": {
403
+ "hidden": true,
404
+ "readonly": true,
405
+ "interface": "input",
406
+ "special": ["uuid"],
407
+ "sort": 1,
408
+ "width": "full",
409
+ "translations": [{ "language": "en-US", "translation": "ID" }]
410
+ },
411
+ "schema": {
412
+ "is_primary_key": true,
413
+ "length": 36,
414
+ "has_auto_increment": false
415
+ }
416
+ },
417
+ {
418
+ "field": "status",
419
+ "type": "string",
420
+ "meta": {
421
+ "interface": "select-dropdown",
422
+ "display": "labels",
423
+ "width": "half",
424
+ "sort": 2,
425
+ "options": {
426
+ "choices": [
427
+ { "text": "Published", "value": "published" },
428
+ { "text": "Draft", "value": "draft" },
429
+ { "text": "Archived", "value": "archived" }
430
+ ]
431
+ },
432
+ "display_options": {
433
+ "choices": [
434
+ {
435
+ "text": "Published",
436
+ "value": "published",
437
+ "foreground": "#FFFFFF",
438
+ "background": "#0F766E"
439
+ },
440
+ {
441
+ "text": "Draft",
442
+ "value": "draft",
443
+ "foreground": "#44403C",
444
+ "background": "#E7E5E4"
445
+ },
446
+ {
447
+ "text": "Archived",
448
+ "value": "archived",
449
+ "foreground": "#FFFFFF",
450
+ "background": "#A8A29E"
451
+ }
452
+ ]
453
+ },
454
+ "translations": [{ "language": "en-US", "translation": "Status" }],
455
+ "note": "Only published posts appear on the public site",
456
+ "validation": {
457
+ "_and": [
458
+ { "status": { "_in": ["published", "draft", "archived"] } }
459
+ ]
460
+ },
461
+ "validation_message": "Choose Published, Draft, or Archived."
462
+ },
463
+ "schema": { "default_value": "draft", "is_nullable": false }
464
+ },
465
+ {
466
+ "field": "published_at",
467
+ "type": "timestamp",
468
+ "meta": {
469
+ "interface": "datetime",
470
+ "display": "datetime",
471
+ "width": "half",
472
+ "sort": 3,
473
+ "special": ["date-created"],
474
+ "readonly": false,
475
+ "translations": [{ "language": "en-US", "translation": "Published at" }],
476
+ "note": "Auto-filled on create; change freely for backdating or scheduling",
477
+ "conditions": [
478
+ {
479
+ "name": "Required when published",
480
+ "rule": { "_and": [{ "status": { "_eq": "published" } }] },
481
+ "required": true
482
+ }
483
+ ]
484
+ },
485
+ "schema": {}
486
+ },
487
+ {
488
+ "field": "author",
489
+ "type": "uuid",
490
+ "meta": {
491
+ "interface": "select-dropdown-m2o",
492
+ "special": ["m2o"],
493
+ "display": "related-values",
494
+ "display_options": { "template": "{{name}}" },
495
+ "width": "half",
496
+ "sort": 4,
497
+ "translations": [{ "language": "en-US", "translation": "Author" }],
498
+ "note": "Primary author of this post",
499
+ "conditions": [
500
+ {
501
+ "name": "Required when published",
502
+ "rule": { "_and": [{ "status": { "_eq": "published" } }] },
503
+ "required": true
504
+ }
505
+ ]
506
+ },
507
+ "schema": {}
508
+ },
509
+ {
510
+ "field": "featured_image",
511
+ "type": "uuid",
512
+ "meta": {
513
+ "interface": "file-image",
514
+ "special": ["file"],
515
+ "display": "image",
516
+ "width": "half",
517
+ "sort": 5,
518
+ "translations": [{ "language": "en-US", "translation": "Featured image" }],
519
+ "note": "Cover image shown on list and detail pages"
520
+ },
521
+ "schema": {}
522
+ },
523
+ {
524
+ "field": "categories",
525
+ "type": "alias",
526
+ "meta": {
527
+ "interface": "list-m2m",
528
+ "special": ["m2m"],
529
+ "width": "full",
530
+ "sort": 6,
531
+ "options": {
532
+ "enableCreate": true,
533
+ "enableSelect": true,
534
+ "template": "{{categories_id.translations.title}}"
535
+ },
536
+ "translations": [{ "language": "en-US", "translation": "Categories" }],
537
+ "note": "Optional topics for this post"
538
+ },
539
+ "schema": null
540
+ },
541
+ {
542
+ "field": "translations",
543
+ "type": "alias",
544
+ "meta": {
545
+ "interface": "translations",
546
+ "special": ["translations"],
547
+ "width": "full",
548
+ "sort": 7,
549
+ "translations": [{ "language": "en-US", "translation": "Translations" }]
550
+ },
551
+ "schema": null
552
+ }
553
+ ]
554
+ },
555
+ {
556
+ "collection": "posts_translations",
557
+ "schema": {},
558
+ "meta": {
559
+ "hidden": true,
560
+ "icon": "translate",
561
+ "color": "#0F766E",
562
+ "group": "blog",
563
+ "translations": [
564
+ {
565
+ "language": "en-US",
566
+ "translation": "Post translations",
567
+ "singular": "Post translation",
568
+ "plural": "Post translations"
569
+ }
570
+ ]
571
+ },
572
+ "fields": [
573
+ {
574
+ "field": "id",
575
+ "type": "integer",
576
+ "meta": {
577
+ "hidden": true,
578
+ "interface": "input",
579
+ "sort": 1,
580
+ "width": "full",
581
+ "translations": [{ "language": "en-US", "translation": "ID" }]
582
+ },
583
+ "schema": { "is_primary_key": true, "has_auto_increment": true }
584
+ },
585
+ {
586
+ "field": "posts_id",
587
+ "type": "uuid",
588
+ "meta": {
589
+ "hidden": true,
590
+ "sort": 2,
591
+ "width": "half",
592
+ "translations": [{ "language": "en-US", "translation": "Post" }]
593
+ },
594
+ "schema": {}
595
+ },
596
+ {
597
+ "field": "languages_code",
598
+ "type": "string",
599
+ "meta": {
600
+ "hidden": true,
601
+ "sort": 3,
602
+ "width": "half",
603
+ "translations": [{ "language": "en-US", "translation": "Language" }]
604
+ },
605
+ "schema": {}
606
+ },
607
+ {
608
+ "field": "title",
609
+ "type": "string",
610
+ "meta": {
611
+ "interface": "input",
612
+ "required": true,
613
+ "width": "full",
614
+ "sort": 4,
615
+ "options": { "trim": true },
616
+ "translations": [{ "language": "en-US", "translation": "Title" }],
617
+ "validation": {
618
+ "_and": [{ "title": { "_regex": "^.{1,200}$" } }]
619
+ },
620
+ "validation_message": "Title is required (max 200 characters)."
621
+ },
622
+ "schema": { "is_nullable": false, "max_length": 200 }
623
+ },
624
+ {
625
+ "field": "slug",
626
+ "type": "string",
627
+ "meta": {
628
+ "interface": "input",
629
+ "required": true,
630
+ "width": "half",
631
+ "sort": 5,
632
+ "options": { "trim": true, "slug": true },
633
+ "translations": [{ "language": "en-US", "translation": "Slug" }],
634
+ "note": "URL-friendly identifier (unique per locale)",
635
+ "validation": {
636
+ "_and": [
637
+ { "slug": { "_regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }
638
+ ]
639
+ },
640
+ "validation_message": "Use lowercase letters, numbers, and hyphens only."
641
+ },
642
+ "schema": { "is_nullable": false, "is_unique": true, "max_length": 200 }
643
+ },
644
+ {
645
+ "field": "excerpt",
646
+ "type": "text",
647
+ "meta": {
648
+ "interface": "input-multiline",
649
+ "width": "full",
650
+ "sort": 6,
651
+ "translations": [{ "language": "en-US", "translation": "Excerpt" }],
652
+ "note": "Short summary shown on listing pages",
653
+ "validation": {
654
+ "_and": [
655
+ {
656
+ "_or": [
657
+ { "excerpt": { "_null": true } },
658
+ { "excerpt": { "_empty": true } },
659
+ { "excerpt": { "_regex": "^[\\s\\S]{1,500}$" } }
660
+ ]
661
+ }
662
+ ]
663
+ },
664
+ "validation_message": "Excerpt must be at most 500 characters."
665
+ },
666
+ "schema": {}
667
+ },
668
+ {
669
+ "field": "body",
670
+ "type": "text",
671
+ "meta": {
672
+ "interface": "input-rich-text-html",
673
+ "width": "fill",
674
+ "sort": 7,
675
+ "options": {
676
+ "toolbar": [
677
+ "bold", "italic", "underline", "h2", "h3",
678
+ "numlist", "bullist", "blockquote", "link", "code", "empty"
679
+ ]
680
+ },
681
+ "translations": [{ "language": "en-US", "translation": "Body" }],
682
+ "note": "Main post content"
683
+ },
684
+ "schema": {}
685
+ }
686
+ ]
687
+ },
688
+ {
689
+ "collection": "posts_categories",
690
+ "schema": {},
691
+ "meta": {
692
+ "hidden": true,
693
+ "icon": "import_export",
694
+ "group": "blog",
695
+ "translations": [
696
+ {
697
+ "language": "en-US",
698
+ "translation": "Posts ↔ Categories",
699
+ "singular": "Post category link",
700
+ "plural": "Post category links"
701
+ }
702
+ ]
703
+ },
704
+ "fields": [
705
+ {
706
+ "field": "id",
707
+ "type": "integer",
708
+ "meta": {
709
+ "hidden": true,
710
+ "interface": "input",
711
+ "sort": 1,
712
+ "width": "full",
713
+ "translations": [{ "language": "en-US", "translation": "ID" }]
714
+ },
715
+ "schema": { "is_primary_key": true, "has_auto_increment": true }
716
+ },
717
+ {
718
+ "field": "posts_id",
719
+ "type": "uuid",
720
+ "meta": {
721
+ "hidden": true,
722
+ "sort": 2,
723
+ "width": "half",
724
+ "translations": [{ "language": "en-US", "translation": "Post" }]
725
+ },
726
+ "schema": {}
727
+ },
728
+ {
729
+ "field": "categories_id",
730
+ "type": "uuid",
731
+ "meta": {
732
+ "hidden": true,
733
+ "sort": 3,
734
+ "width": "half",
735
+ "translations": [{ "language": "en-US", "translation": "Category" }]
736
+ },
737
+ "schema": {}
738
+ }
739
+ ]
740
+ }
741
+ ],
742
+ "relations": [
743
+ {
744
+ "collection": "posts",
745
+ "field": "author",
746
+ "related_collection": "authors",
747
+ "meta": {
748
+ "many_collection": "posts",
749
+ "many_field": "author",
750
+ "one_collection": "authors",
751
+ "one_field": null
752
+ },
753
+ "schema": { "on_delete": "SET NULL" }
754
+ },
755
+ {
756
+ "collection": "authors",
757
+ "field": "avatar",
758
+ "related_collection": "directus_files",
759
+ "meta": {
760
+ "many_collection": "authors",
761
+ "many_field": "avatar",
762
+ "one_collection": "directus_files",
763
+ "one_field": null
764
+ },
765
+ "schema": { "on_delete": "SET NULL" }
766
+ },
767
+ {
768
+ "collection": "posts",
769
+ "field": "featured_image",
770
+ "related_collection": "directus_files",
771
+ "meta": {
772
+ "many_collection": "posts",
773
+ "many_field": "featured_image",
774
+ "one_collection": "directus_files",
775
+ "one_field": null
776
+ },
777
+ "schema": { "on_delete": "SET NULL" }
778
+ },
779
+ {
780
+ "collection": "posts_categories",
781
+ "field": "posts_id",
782
+ "related_collection": "posts",
783
+ "meta": {
784
+ "many_collection": "posts_categories",
785
+ "many_field": "posts_id",
786
+ "one_collection": "posts",
787
+ "one_field": "categories",
788
+ "junction_field": "categories_id"
789
+ },
790
+ "schema": { "on_delete": "CASCADE" }
791
+ },
792
+ {
793
+ "collection": "posts_categories",
794
+ "field": "categories_id",
795
+ "related_collection": "categories",
796
+ "meta": {
797
+ "many_collection": "posts_categories",
798
+ "many_field": "categories_id",
799
+ "one_collection": "categories",
800
+ "one_field": null,
801
+ "junction_field": "posts_id"
802
+ },
803
+ "schema": { "on_delete": "CASCADE" }
804
+ },
805
+ {
806
+ "collection": "posts_translations",
807
+ "field": "posts_id",
808
+ "related_collection": "posts",
809
+ "meta": {
810
+ "many_collection": "posts_translations",
811
+ "many_field": "posts_id",
812
+ "one_collection": "posts",
813
+ "one_field": "translations",
814
+ "junction_field": "languages_code"
815
+ },
816
+ "schema": { "on_delete": "CASCADE" }
817
+ },
818
+ {
819
+ "collection": "posts_translations",
820
+ "field": "languages_code",
821
+ "related_collection": "languages",
822
+ "meta": {
823
+ "many_collection": "posts_translations",
824
+ "many_field": "languages_code",
825
+ "one_collection": "languages",
826
+ "one_field": null,
827
+ "junction_field": "posts_id"
828
+ },
829
+ "schema": { "on_delete": "CASCADE" }
830
+ },
831
+ {
832
+ "collection": "categories_translations",
833
+ "field": "categories_id",
834
+ "related_collection": "categories",
835
+ "meta": {
836
+ "many_collection": "categories_translations",
837
+ "many_field": "categories_id",
838
+ "one_collection": "categories",
839
+ "one_field": "translations",
840
+ "junction_field": "languages_code"
841
+ },
842
+ "schema": { "on_delete": "CASCADE" }
843
+ },
844
+ {
845
+ "collection": "categories_translations",
846
+ "field": "languages_code",
847
+ "related_collection": "languages",
848
+ "meta": {
849
+ "many_collection": "categories_translations",
850
+ "many_field": "languages_code",
851
+ "one_collection": "languages",
852
+ "one_field": null,
853
+ "junction_field": "categories_id"
854
+ },
855
+ "schema": { "on_delete": "CASCADE" }
856
+ },
857
+ {
858
+ "collection": "authors_translations",
859
+ "field": "authors_id",
860
+ "related_collection": "authors",
861
+ "meta": {
862
+ "many_collection": "authors_translations",
863
+ "many_field": "authors_id",
864
+ "one_collection": "authors",
865
+ "one_field": "translations",
866
+ "junction_field": "languages_code"
867
+ },
868
+ "schema": { "on_delete": "CASCADE" }
869
+ },
870
+ {
871
+ "collection": "authors_translations",
872
+ "field": "languages_code",
873
+ "related_collection": "languages",
874
+ "meta": {
875
+ "many_collection": "authors_translations",
876
+ "many_field": "languages_code",
877
+ "one_collection": "languages",
878
+ "one_field": null,
879
+ "junction_field": "authors_id"
880
+ },
881
+ "schema": { "on_delete": "CASCADE" }
882
+ }
883
+ ]
884
+ }