@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,510 @@
1
+ {
2
+ "format": "dkit.rest",
3
+ "collections": [
4
+ {
5
+ "collection": "offerings",
6
+ "schema": null,
7
+ "meta": {
8
+ "icon": "storefront",
9
+ "color": "#0F766E",
10
+ "collapse": "open",
11
+ "translations": [
12
+ {
13
+ "language": "en-US",
14
+ "translation": "Offerings",
15
+ "singular": "Offerings",
16
+ "plural": "Offerings"
17
+ }
18
+ ]
19
+ }
20
+ },
21
+ {
22
+ "collection": "services",
23
+ "schema": {},
24
+ "meta": {
25
+ "icon": "home_repair_service",
26
+ "color": "#0F766E",
27
+ "group": "offerings",
28
+ "display_template": "{{translations.title}}",
29
+ "archive_field": "status",
30
+ "archive_value": "archived",
31
+ "unarchive_value": "draft",
32
+ "archive_app_filter": true,
33
+ "sort_field": "sort",
34
+ "sort": 1,
35
+ "translations": [
36
+ {
37
+ "language": "en-US",
38
+ "translation": "Services",
39
+ "singular": "Service",
40
+ "plural": "Services"
41
+ }
42
+ ],
43
+ "note": "Service offerings published to the site"
44
+ },
45
+ "fields": [
46
+ {
47
+ "field": "id",
48
+ "type": "uuid",
49
+ "meta": {
50
+ "hidden": true,
51
+ "readonly": true,
52
+ "interface": "input",
53
+ "special": [
54
+ "uuid"
55
+ ],
56
+ "sort": 1,
57
+ "width": "full",
58
+ "translations": [
59
+ {
60
+ "language": "en-US",
61
+ "translation": "ID"
62
+ }
63
+ ]
64
+ },
65
+ "schema": {
66
+ "is_primary_key": true,
67
+ "length": 36,
68
+ "has_auto_increment": false
69
+ }
70
+ },
71
+ {
72
+ "field": "status",
73
+ "type": "string",
74
+ "meta": {
75
+ "interface": "select-dropdown",
76
+ "display": "labels",
77
+ "width": "half",
78
+ "sort": 2,
79
+ "options": {
80
+ "choices": [
81
+ {
82
+ "text": "Published",
83
+ "value": "published"
84
+ },
85
+ {
86
+ "text": "Draft",
87
+ "value": "draft"
88
+ },
89
+ {
90
+ "text": "Archived",
91
+ "value": "archived"
92
+ }
93
+ ]
94
+ },
95
+ "display_options": {
96
+ "choices": [
97
+ {
98
+ "text": "Published",
99
+ "value": "published",
100
+ "foreground": "#FFFFFF",
101
+ "background": "#0F766E"
102
+ },
103
+ {
104
+ "text": "Draft",
105
+ "value": "draft",
106
+ "foreground": "#44403C",
107
+ "background": "#E7E5E4"
108
+ },
109
+ {
110
+ "text": "Archived",
111
+ "value": "archived",
112
+ "foreground": "#FFFFFF",
113
+ "background": "#A8A29E"
114
+ }
115
+ ]
116
+ },
117
+ "translations": [
118
+ {
119
+ "language": "en-US",
120
+ "translation": "Status"
121
+ }
122
+ ],
123
+ "note": "Only published items appear on the public site",
124
+ "validation": {
125
+ "_and": [
126
+ {
127
+ "status": {
128
+ "_in": [
129
+ "published",
130
+ "draft",
131
+ "archived"
132
+ ]
133
+ }
134
+ }
135
+ ]
136
+ },
137
+ "validation_message": "Choose Published, Draft, Archived."
138
+ },
139
+ "schema": {
140
+ "default_value": "draft",
141
+ "is_nullable": false
142
+ }
143
+ },
144
+ {
145
+ "field": "sort",
146
+ "type": "integer",
147
+ "meta": {
148
+ "interface": "input",
149
+ "hidden": true,
150
+ "width": "full",
151
+ "sort": 3,
152
+ "translations": [
153
+ {
154
+ "language": "en-US",
155
+ "translation": "Sort"
156
+ }
157
+ ]
158
+ },
159
+ "schema": {}
160
+ },
161
+ {
162
+ "field": "image",
163
+ "type": "uuid",
164
+ "meta": {
165
+ "interface": "file-image",
166
+ "special": [
167
+ "file"
168
+ ],
169
+ "display": "image",
170
+ "width": "half",
171
+ "sort": 4,
172
+ "translations": [
173
+ {
174
+ "language": "en-US",
175
+ "translation": "Image"
176
+ }
177
+ ],
178
+ "note": "Cover image shown on list and detail pages"
179
+ },
180
+ "schema": {}
181
+ },
182
+ {
183
+ "field": "translations",
184
+ "type": "alias",
185
+ "meta": {
186
+ "interface": "translations",
187
+ "special": [
188
+ "translations"
189
+ ],
190
+ "width": "full",
191
+ "sort": 5,
192
+ "translations": [
193
+ {
194
+ "language": "en-US",
195
+ "translation": "Translations"
196
+ }
197
+ ]
198
+ },
199
+ "schema": null
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "collection": "services_translations",
205
+ "schema": {},
206
+ "meta": {
207
+ "hidden": true,
208
+ "icon": "translate",
209
+ "color": "#0F766E",
210
+ "group": "offerings",
211
+ "translations": [
212
+ {
213
+ "language": "en-US",
214
+ "translation": "Service translations",
215
+ "singular": "Service translation",
216
+ "plural": "Service translations"
217
+ }
218
+ ]
219
+ },
220
+ "fields": [
221
+ {
222
+ "field": "id",
223
+ "type": "integer",
224
+ "meta": {
225
+ "hidden": true,
226
+ "interface": "input",
227
+ "sort": 1,
228
+ "width": "full",
229
+ "translations": [
230
+ {
231
+ "language": "en-US",
232
+ "translation": "ID"
233
+ }
234
+ ]
235
+ },
236
+ "schema": {
237
+ "is_primary_key": true,
238
+ "has_auto_increment": true
239
+ }
240
+ },
241
+ {
242
+ "field": "services_id",
243
+ "type": "uuid",
244
+ "meta": {
245
+ "hidden": true,
246
+ "sort": 2,
247
+ "width": "half",
248
+ "translations": [
249
+ {
250
+ "language": "en-US",
251
+ "translation": "Service"
252
+ }
253
+ ]
254
+ },
255
+ "schema": {}
256
+ },
257
+ {
258
+ "field": "languages_code",
259
+ "type": "string",
260
+ "meta": {
261
+ "hidden": true,
262
+ "sort": 3,
263
+ "width": "half",
264
+ "translations": [
265
+ {
266
+ "language": "en-US",
267
+ "translation": "Language"
268
+ }
269
+ ]
270
+ },
271
+ "schema": {}
272
+ },
273
+ {
274
+ "field": "title",
275
+ "type": "string",
276
+ "meta": {
277
+ "interface": "input",
278
+ "width": "full",
279
+ "sort": 4,
280
+ "required": true,
281
+ "options": {
282
+ "trim": true
283
+ },
284
+ "translations": [
285
+ {
286
+ "language": "en-US",
287
+ "translation": "Title"
288
+ }
289
+ ],
290
+ "validation": {
291
+ "_and": [
292
+ {
293
+ "title": {
294
+ "_regex": "^.{1,200}$"
295
+ }
296
+ }
297
+ ]
298
+ },
299
+ "validation_message": "Title is required (max 200 characters)."
300
+ },
301
+ "schema": {
302
+ "is_nullable": false,
303
+ "max_length": 200
304
+ }
305
+ },
306
+ {
307
+ "field": "slug",
308
+ "type": "string",
309
+ "meta": {
310
+ "interface": "input",
311
+ "width": "half",
312
+ "sort": 5,
313
+ "required": true,
314
+ "options": {
315
+ "trim": true,
316
+ "slug": true
317
+ },
318
+ "translations": [
319
+ {
320
+ "language": "en-US",
321
+ "translation": "Slug"
322
+ }
323
+ ],
324
+ "note": "URL-friendly identifier (unique per locale)",
325
+ "validation": {
326
+ "_and": [
327
+ {
328
+ "slug": {
329
+ "_regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
330
+ }
331
+ }
332
+ ]
333
+ },
334
+ "validation_message": "Use lowercase letters, numbers, and hyphens only."
335
+ },
336
+ "schema": {
337
+ "is_nullable": false,
338
+ "max_length": 200,
339
+ "is_unique": true
340
+ }
341
+ },
342
+ {
343
+ "field": "price_label",
344
+ "type": "string",
345
+ "meta": {
346
+ "interface": "input",
347
+ "width": "half",
348
+ "sort": 6,
349
+ "options": {
350
+ "trim": true
351
+ },
352
+ "translations": [
353
+ {
354
+ "language": "en-US",
355
+ "translation": "Price label"
356
+ }
357
+ ],
358
+ "note": "Short pricing text shown publicly (e.g. \"From €500\")",
359
+ "validation": {
360
+ "_and": [
361
+ {
362
+ "_or": [
363
+ {
364
+ "price_label": {
365
+ "_null": true
366
+ }
367
+ },
368
+ {
369
+ "price_label": {
370
+ "_empty": true
371
+ }
372
+ },
373
+ {
374
+ "price_label": {
375
+ "_regex": "^.{1,80}$"
376
+ }
377
+ }
378
+ ]
379
+ }
380
+ ]
381
+ },
382
+ "validation_message": "Price label must be at most 80 characters."
383
+ },
384
+ "schema": {
385
+ "max_length": 80
386
+ }
387
+ },
388
+ {
389
+ "field": "summary",
390
+ "type": "text",
391
+ "meta": {
392
+ "interface": "input-multiline",
393
+ "width": "full",
394
+ "sort": 7,
395
+ "translations": [
396
+ {
397
+ "language": "en-US",
398
+ "translation": "Summary"
399
+ }
400
+ ],
401
+ "note": "Short description shown on listing pages",
402
+ "validation": {
403
+ "_and": [
404
+ {
405
+ "_or": [
406
+ {
407
+ "summary": {
408
+ "_null": true
409
+ }
410
+ },
411
+ {
412
+ "summary": {
413
+ "_empty": true
414
+ }
415
+ },
416
+ {
417
+ "summary": {
418
+ "_regex": "^[\\s\\S]{1,500}$"
419
+ }
420
+ }
421
+ ]
422
+ }
423
+ ]
424
+ },
425
+ "validation_message": "Summary must be at most 500 characters."
426
+ },
427
+ "schema": {}
428
+ },
429
+ {
430
+ "field": "body",
431
+ "type": "text",
432
+ "meta": {
433
+ "interface": "input-rich-text-html",
434
+ "width": "fill",
435
+ "sort": 8,
436
+ "options": {
437
+ "toolbar": [
438
+ "bold",
439
+ "italic",
440
+ "underline",
441
+ "h2",
442
+ "h3",
443
+ "numlist",
444
+ "bullist",
445
+ "blockquote",
446
+ "link",
447
+ "code",
448
+ "empty"
449
+ ]
450
+ },
451
+ "translations": [
452
+ {
453
+ "language": "en-US",
454
+ "translation": "Body"
455
+ }
456
+ ],
457
+ "note": "Full service description"
458
+ },
459
+ "schema": {}
460
+ }
461
+ ]
462
+ }
463
+ ],
464
+ "relations": [
465
+ {
466
+ "collection": "services",
467
+ "field": "image",
468
+ "related_collection": "directus_files",
469
+ "meta": {
470
+ "many_collection": "services",
471
+ "many_field": "image",
472
+ "one_collection": "directus_files",
473
+ "one_field": null
474
+ },
475
+ "schema": {
476
+ "on_delete": "SET NULL"
477
+ }
478
+ },
479
+ {
480
+ "collection": "services_translations",
481
+ "field": "services_id",
482
+ "related_collection": "services",
483
+ "meta": {
484
+ "many_collection": "services_translations",
485
+ "many_field": "services_id",
486
+ "one_collection": "services",
487
+ "one_field": "translations",
488
+ "junction_field": "languages_code"
489
+ },
490
+ "schema": {
491
+ "on_delete": "CASCADE"
492
+ }
493
+ },
494
+ {
495
+ "collection": "services_translations",
496
+ "field": "languages_code",
497
+ "related_collection": "languages",
498
+ "meta": {
499
+ "many_collection": "services_translations",
500
+ "many_field": "languages_code",
501
+ "one_collection": "languages",
502
+ "one_field": null,
503
+ "junction_field": "services_id"
504
+ },
505
+ "schema": {
506
+ "on_delete": "CASCADE"
507
+ }
508
+ }
509
+ ]
510
+ }
@@ -0,0 +1,8 @@
1
+ # Seed image attribution
2
+
3
+ Photos from [Unsplash](https://unsplash.com) (free to use under the [Unsplash License](https://unsplash.com/license)).
4
+
5
+ | File | Source |
6
+ |------|--------|
7
+ | `strategy-consulting.jpg` | https://images.unsplash.com/photo-1552664730-d307ca884978 |
8
+ | `design-development.jpg` | https://images.unsplash.com/photo-1522071820081-009f0129c71c |
@@ -0,0 +1,44 @@
1
+ {
2
+ "files": [
3
+ {
4
+ "id": "s1000000-0000-4000-8000-000000000001",
5
+ "filename_download": "strategy-consulting.jpg",
6
+ "title": "Sample image — strategy & consulting (Unsplash)",
7
+ "type": "image/jpeg",
8
+ "path": "assets/strategy-consulting.jpg"
9
+ },
10
+ {
11
+ "id": "s1000000-0000-4000-8000-000000000002",
12
+ "filename_download": "design-development.jpg",
13
+ "title": "Sample image — design & development (Unsplash)",
14
+ "type": "image/jpeg",
15
+ "path": "assets/design-development.jpg"
16
+ }
17
+ ],
18
+ "items": {
19
+ "services": [
20
+ {
21
+ "id": "c3c3c3c3-c3c3-4c3c-8c3c-c3c3c3c3c3c3",
22
+ "status": "published",
23
+ "title": "Sample: strategy & consulting",
24
+ "slug": "sample-strategy-consulting",
25
+ "summary": "Sample service — discovery workshops, roadmapping, and technical advisory for digital products.",
26
+ "price_label": "From €2,500",
27
+ "image": "s1000000-0000-4000-8000-000000000001",
28
+ "sort": 1,
29
+ "body": "<p>This is <strong>sample seed data</strong> from the services module. Replace or delete it once your own offerings are ready.</p><h2>What to verify</h2><p>Use this service to confirm the public API, image field, price label, and rich-text rendering in your app.</p><blockquote><p>Sample HTML includes headings, quotes, and lists so you can judge layout and <code>.dkit-prose</code> immediately after install.</p></blockquote><h3>Includes</h3><ul><li>Stakeholder interviews</li><li>Competitive analysis</li><li>Technical architecture review</li><li>Prioritised roadmap deliverable</li></ul><h3>Next steps</h3><ol><li>Open this item in Directus to edit fields</li><li>Confirm list and detail views render correctly</li><li>Replace every sample field before going to production</li></ol><p>Safe to delete after verifying the install.</p>"
30
+ },
31
+ {
32
+ "id": "d4d4d4d4-d4d4-4d4d-8d4d-d4d4d4d4d4d4",
33
+ "status": "published",
34
+ "title": "Sample: design & development",
35
+ "slug": "sample-design-development",
36
+ "summary": "Sample service — end-to-end UI/UX design and full-stack implementation for web applications.",
37
+ "price_label": "Custom quote",
38
+ "image": "s1000000-0000-4000-8000-000000000002",
39
+ "sort": 2,
40
+ "body": "<p>A second sample service lets you test sorting, card layouts, and the <code>price_label</code> display.</p><h2>Fields to check</h2><p><code>status</code> gates public reads. <code>price_label</code> is an optional short string shown in the list and detail views — leave it empty when pricing is not public.</p><h3>Deliverables</h3><ul><li>Wireframes and interactive prototypes</li><li>Visual design and design system</li><li>Front-end and back-end implementation</li><li>Deployment and handover documentation</li></ul><blockquote><p>After install, open this service in your app and confirm list + detail layouts look right before you replace the sample content.</p></blockquote><p>Safe to delete once you have verified the install.</p>"
41
+ }
42
+ ]
43
+ }
44
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "files": [
3
+ {
4
+ "id": "s1000000-0000-4000-8000-000000000001",
5
+ "filename_download": "strategy-consulting.jpg",
6
+ "title": "Sample image — strategy & consulting (Unsplash)",
7
+ "type": "image/jpeg",
8
+ "path": "assets/strategy-consulting.jpg"
9
+ }
10
+ ],
11
+ "items": {
12
+ "services": [
13
+ {
14
+ "id": "c3c3c3c3-c3c3-4c3c-8c3c-c3c3c3c3c3c3",
15
+ "status": "published",
16
+ "sort": 1,
17
+ "image": "s1000000-0000-4000-8000-000000000001",
18
+ "translations": [
19
+ {
20
+ "languages_code": "en-US",
21
+ "title": "Sample service",
22
+ "slug": "sample-service",
23
+ "price_label": "From €500",
24
+ "summary": "Demo service — replace with real offerings.",
25
+ "body": "<p>Sample service body. Replace before launch.</p>"
26
+ }
27
+ ]
28
+ }
29
+ ]
30
+ }
31
+ }
@@ -0,0 +1,36 @@
1
+ export type DirectusFileRef = { id: string };
2
+
3
+ export type ServiceTranslation = {
4
+ id: number;
5
+ services_id?: string;
6
+ languages_code?: string | { code?: string };
7
+ title: string;
8
+ slug: string;
9
+ price_label?: string | null;
10
+ summary?: string | null;
11
+ body?: string | null;
12
+ };
13
+
14
+ export type Service = {
15
+ id: string;
16
+ status: "published" | "draft" | "archived";
17
+ title: string;
18
+ slug: string;
19
+ summary?: string | null;
20
+ body?: string | null;
21
+ image?: string | DirectusFileRef | null;
22
+ price_label?: string | null;
23
+ sort?: number | null;
24
+ };
25
+
26
+ export type GetServicesOptions = {
27
+ status?: string | null;
28
+ limit?: number;
29
+ sort?: string[];
30
+ locale?: string;
31
+ };
32
+
33
+ export type GetServiceBySlugOptions = {
34
+ status?: string | null;
35
+ locale?: string;
36
+ };
@@ -0,0 +1,26 @@
1
+ export type DirectusFileRef = {
2
+ id: string;
3
+ };
4
+
5
+ export type Service = {
6
+ id: string;
7
+ status: "published" | "draft" | "archived";
8
+ title: string;
9
+ slug: string;
10
+ summary?: string | null;
11
+ body?: string | null;
12
+ image?: string | DirectusFileRef | null;
13
+ price_label?: string | null;
14
+ sort?: number | null;
15
+ };
16
+
17
+ export type GetServicesOptions = {
18
+ /** Directus status filter. Default `"published"`. Pass `null` to skip. */
19
+ status?: string | null;
20
+ limit?: number;
21
+ sort?: string[];
22
+ };
23
+
24
+ export type GetServiceBySlugOptions = {
25
+ status?: string | null;
26
+ };
@@ -0,0 +1,31 @@
1
+ {
2
+ "policies": [
3
+ {
4
+ "name": "dkit Settings Public Read",
5
+ "icon": "public",
6
+ "description": "Public read for site settings singleton and logo/favicon files. UI owns presentation.",
7
+ "admin_access": false,
8
+ "app_access": false
9
+ }
10
+ ],
11
+ "permissions": [
12
+ {
13
+ "policy": "dkit Settings Public Read",
14
+ "collection": "site_settings",
15
+ "action": "read",
16
+ "fields": ["*"]
17
+ },
18
+ {
19
+ "policy": "dkit Settings Public Read",
20
+ "collection": "directus_files",
21
+ "action": "read",
22
+ "fields": ["*"]
23
+ }
24
+ ],
25
+ "access": [
26
+ {
27
+ "role": "$public",
28
+ "policy": "dkit Settings Public Read"
29
+ }
30
+ ]
31
+ }