@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.
- package/README.md +24 -0
- package/dist/bin.js +8066 -0
- package/dist/bin.js.map +1 -0
- package/package.json +58 -0
- package/vendor/registry/blocks/blog-detail/module.json +27 -0
- package/vendor/registry/blocks/blog-detail/ui/minimal/next/blog-detail.tsx +26 -0
- package/vendor/registry/blocks/blog-detail/ui/minimal/nuxt/BlogDetail.vue +27 -0
- package/vendor/registry/blocks/blog-detail/ui/shadcn/next/blog-detail.tsx +106 -0
- package/vendor/registry/blocks/blog-detail/ui/shadcn/nuxt/BlogDetail.vue +116 -0
- package/vendor/registry/blocks/blog-list/module.json +26 -0
- package/vendor/registry/blocks/blog-list/ui/minimal/next/blog-list.tsx +130 -0
- package/vendor/registry/blocks/blog-list/ui/minimal/nuxt/BlogList.vue +62 -0
- package/vendor/registry/blocks/blog-list/ui/shadcn/next/blog-list.tsx +109 -0
- package/vendor/registry/blocks/blog-list/ui/shadcn/nuxt/BlogList.vue +100 -0
- package/vendor/registry/blocks/blog-list-cards/module.json +27 -0
- package/vendor/registry/blocks/blog-list-cards/ui/minimal/next/blog-list-cards.tsx +130 -0
- package/vendor/registry/blocks/blog-list-cards/ui/minimal/nuxt/BlogListCards.vue +114 -0
- package/vendor/registry/blocks/blog-list-cards/ui/shadcn/next/blog-list-cards.tsx +119 -0
- package/vendor/registry/blocks/blog-list-cards/ui/shadcn/nuxt/BlogListCards.vue +113 -0
- package/vendor/registry/blocks/booking-form-ui/module.json +15 -0
- package/vendor/registry/blocks/booking-form-ui/ui/minimal/next/booking-form.tsx +89 -0
- package/vendor/registry/blocks/booking-form-ui/ui/shadcn/next/booking-form.tsx +92 -0
- package/vendor/registry/blocks/contact-form-ui/module.json +27 -0
- package/vendor/registry/blocks/contact-form-ui/ui/minimal/next/contact-form.tsx +45 -0
- package/vendor/registry/blocks/contact-form-ui/ui/minimal/nuxt/ContactForm.vue +79 -0
- package/vendor/registry/blocks/contact-form-ui/ui/shadcn/next/contact-form.tsx +55 -0
- package/vendor/registry/blocks/contact-form-ui/ui/shadcn/nuxt/ContactForm.vue +92 -0
- package/vendor/registry/blocks/faq-list/module.json +15 -0
- package/vendor/registry/blocks/faq-list/ui/minimal/next/faq-list.tsx +78 -0
- package/vendor/registry/blocks/faq-list/ui/shadcn/next/faq-list.tsx +77 -0
- package/vendor/registry/blocks/maintenance-gate/module.json +13 -0
- package/vendor/registry/blocks/maintenance-gate/ui/minimal/next/maintenance-gate.tsx +135 -0
- package/vendor/registry/blocks/maintenance-gate/ui/shadcn/next/maintenance-gate.tsx +87 -0
- package/vendor/registry/blocks/nav-footer/module.json +13 -0
- package/vendor/registry/blocks/nav-footer/ui/minimal/next/nav-footer.tsx +55 -0
- package/vendor/registry/blocks/nav-footer/ui/shadcn/next/nav-footer.tsx +41 -0
- package/vendor/registry/blocks/nav-header/module.json +14 -0
- package/vendor/registry/blocks/nav-header/ui/minimal/next/nav-header.tsx +244 -0
- package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header-client.tsx +185 -0
- package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header.tsx +12 -0
- package/vendor/registry/blocks/page-detail/module.json +26 -0
- package/vendor/registry/blocks/page-detail/ui/minimal/next/page-detail.tsx +26 -0
- package/vendor/registry/blocks/page-detail/ui/minimal/nuxt/PageDetail.vue +26 -0
- package/vendor/registry/blocks/page-detail/ui/shadcn/next/page-detail.tsx +61 -0
- package/vendor/registry/blocks/page-detail/ui/shadcn/nuxt/PageDetail.vue +62 -0
- package/vendor/registry/blocks/project-detail/module.json +15 -0
- package/vendor/registry/blocks/project-detail/ui/minimal/next/project-detail.tsx +58 -0
- package/vendor/registry/blocks/project-detail/ui/shadcn/next/project-detail.tsx +91 -0
- package/vendor/registry/blocks/project-list/module.json +14 -0
- package/vendor/registry/blocks/project-list/ui/minimal/next/project-list.tsx +104 -0
- package/vendor/registry/blocks/project-list/ui/shadcn/next/project-list.tsx +81 -0
- package/vendor/registry/blocks/project-list-cards/module.json +15 -0
- package/vendor/registry/blocks/project-list-cards/ui/minimal/next/project-list-cards.tsx +125 -0
- package/vendor/registry/blocks/project-list-cards/ui/shadcn/next/project-list-cards.tsx +94 -0
- package/vendor/registry/blocks/projects-carousel/module.json +15 -0
- package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel-client.tsx +239 -0
- package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel.tsx +24 -0
- package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel-client.tsx +102 -0
- package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel.tsx +24 -0
- package/vendor/registry/blocks/service-detail/module.json +15 -0
- package/vendor/registry/blocks/service-detail/ui/minimal/next/service-detail.tsx +49 -0
- package/vendor/registry/blocks/service-detail/ui/shadcn/next/service-detail.tsx +75 -0
- package/vendor/registry/blocks/service-list/module.json +14 -0
- package/vendor/registry/blocks/service-list/ui/minimal/next/service-list.tsx +103 -0
- package/vendor/registry/blocks/service-list/ui/shadcn/next/service-list.tsx +80 -0
- package/vendor/registry/blocks/service-list-cards/module.json +15 -0
- package/vendor/registry/blocks/service-list-cards/ui/minimal/next/service-list-cards.tsx +124 -0
- package/vendor/registry/blocks/service-list-cards/ui/shadcn/next/service-list-cards.tsx +92 -0
- package/vendor/registry/blocks/site-brand/module.json +13 -0
- package/vendor/registry/blocks/site-brand/ui/minimal/next/site-brand.tsx +61 -0
- package/vendor/registry/blocks/site-brand/ui/shadcn/next/site-brand.tsx +48 -0
- package/vendor/registry/blocks/site-logo/module.json +13 -0
- package/vendor/registry/blocks/site-logo/ui/minimal/next/site-logo.tsx +37 -0
- package/vendor/registry/blocks/site-logo/ui/shadcn/next/site-logo.tsx +34 -0
- package/vendor/registry/blocks/social-links/module.json +13 -0
- package/vendor/registry/blocks/social-links/ui/minimal/next/social-links.tsx +55 -0
- package/vendor/registry/blocks/social-links/ui/shadcn/next/social-links.tsx +46 -0
- package/vendor/registry/blocks/team-detail/module.json +15 -0
- package/vendor/registry/blocks/team-detail/ui/minimal/next/team-detail.tsx +113 -0
- package/vendor/registry/blocks/team-detail/ui/shadcn/next/team-detail.tsx +77 -0
- package/vendor/registry/blocks/team-list/module.json +14 -0
- package/vendor/registry/blocks/team-list/ui/minimal/next/team-list.tsx +113 -0
- package/vendor/registry/blocks/team-list/ui/shadcn/next/team-list.tsx +77 -0
- package/vendor/registry/blocks/team-list-cards/module.json +15 -0
- package/vendor/registry/blocks/team-list-cards/ui/minimal/next/team-list-cards.tsx +111 -0
- package/vendor/registry/blocks/team-list-cards/ui/shadcn/next/team-list-cards.tsx +83 -0
- package/vendor/registry/blocks/testimonials-carousel/module.json +15 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel-client.tsx +230 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel.tsx +23 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel-client.tsx +91 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel.tsx +23 -0
- package/vendor/registry/blocks/testimonials-list/module.json +14 -0
- package/vendor/registry/blocks/testimonials-list/ui/minimal/next/testimonials-list.tsx +109 -0
- package/vendor/registry/blocks/testimonials-list/ui/shadcn/next/testimonials-list.tsx +72 -0
- package/vendor/registry/blocks/testimonials-list-cards/module.json +15 -0
- package/vendor/registry/blocks/testimonials-list-cards/ui/minimal/next/testimonials-list-cards.tsx +114 -0
- package/vendor/registry/blocks/testimonials-list-cards/ui/shadcn/next/testimonials-list-cards.tsx +72 -0
- package/vendor/registry/core/languages/policies.json +25 -0
- package/vendor/registry/core/languages/seed.json +16 -0
- package/vendor/registry/core/languages/snapshot.json +94 -0
- package/vendor/registry/modules/blog/access/policies.json +49 -0
- package/vendor/registry/modules/blog/access/policies.multilocale.json +67 -0
- package/vendor/registry/modules/blog/lib.multilocale.ts +552 -0
- package/vendor/registry/modules/blog/lib.ts +346 -0
- package/vendor/registry/modules/blog/module.json +50 -0
- package/vendor/registry/modules/blog/schema/snapshot.json +701 -0
- package/vendor/registry/modules/blog/schema/snapshot.multilocale.json +884 -0
- package/vendor/registry/modules/blog/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/blog/services/assets/ada-lovelace-avatar.jpg +0 -0
- package/vendor/registry/modules/blog/services/assets/hello-from-dkit-cover.jpg +0 -0
- package/vendor/registry/modules/blog/services/seed.json +70 -0
- package/vendor/registry/modules/blog/services/seed.multilocale.json +90 -0
- package/vendor/registry/modules/blog/types.multilocale.ts +96 -0
- package/vendor/registry/modules/blog/types.ts +62 -0
- package/vendor/registry/modules/booking-form/access/policies.json +25 -0
- package/vendor/registry/modules/booking-form/access/policies.multilocale.json +27 -0
- package/vendor/registry/modules/booking-form/lib.multilocale.ts +71 -0
- package/vendor/registry/modules/booking-form/lib.ts +77 -0
- package/vendor/registry/modules/booking-form/module.json +32 -0
- package/vendor/registry/modules/booking-form/schema/snapshot.json +294 -0
- package/vendor/registry/modules/booking-form/schema/snapshot.multilocale.json +467 -0
- package/vendor/registry/modules/booking-form/services/flows.json +19 -0
- package/vendor/registry/modules/booking-form/types.multilocale.ts +29 -0
- package/vendor/registry/modules/booking-form/types.ts +27 -0
- package/vendor/registry/modules/contact-form/access/policies.json +25 -0
- package/vendor/registry/modules/contact-form/access/policies.multilocale.json +27 -0
- package/vendor/registry/modules/contact-form/lib.multilocale.ts +65 -0
- package/vendor/registry/modules/contact-form/lib.ts +67 -0
- package/vendor/registry/modules/contact-form/module.json +32 -0
- package/vendor/registry/modules/contact-form/schema/snapshot.json +193 -0
- package/vendor/registry/modules/contact-form/schema/snapshot.multilocale.json +293 -0
- package/vendor/registry/modules/contact-form/services/flows.json +19 -0
- package/vendor/registry/modules/contact-form/types.multilocale.ts +21 -0
- package/vendor/registry/modules/contact-form/types.ts +19 -0
- package/vendor/registry/modules/faq/access/policies.json +25 -0
- package/vendor/registry/modules/faq/access/policies.multilocale.json +18 -0
- package/vendor/registry/modules/faq/lib.multilocale.ts +120 -0
- package/vendor/registry/modules/faq/lib.ts +73 -0
- package/vendor/registry/modules/faq/module.json +31 -0
- package/vendor/registry/modules/faq/schema/snapshot.json +180 -0
- package/vendor/registry/modules/faq/schema/snapshot.multilocale.json +116 -0
- package/vendor/registry/modules/faq/services/seed.json +38 -0
- package/vendor/registry/modules/faq/services/seed.multilocale.json +32 -0
- package/vendor/registry/modules/faq/types.multilocale.ts +31 -0
- package/vendor/registry/modules/faq/types.ts +17 -0
- package/vendor/registry/modules/navigation/access/policies.json +31 -0
- package/vendor/registry/modules/navigation/access/policies.multilocale.json +51 -0
- package/vendor/registry/modules/navigation/lib.multilocale.ts +198 -0
- package/vendor/registry/modules/navigation/lib.ts +252 -0
- package/vendor/registry/modules/navigation/module.json +46 -0
- package/vendor/registry/modules/navigation/schema/snapshot.json +453 -0
- package/vendor/registry/modules/navigation/schema/snapshot.multilocale.json +864 -0
- package/vendor/registry/modules/navigation/services/seed.json +103 -0
- package/vendor/registry/modules/navigation/services/seed.multilocale.json +88 -0
- package/vendor/registry/modules/navigation/types.multilocale.ts +60 -0
- package/vendor/registry/modules/navigation/types.ts +44 -0
- package/vendor/registry/modules/pages/access/policies.json +25 -0
- package/vendor/registry/modules/pages/access/policies.multilocale.json +18 -0
- package/vendor/registry/modules/pages/lib.multilocale.ts +166 -0
- package/vendor/registry/modules/pages/lib.ts +123 -0
- package/vendor/registry/modules/pages/module.json +39 -0
- package/vendor/registry/modules/pages/schema/snapshot.json +247 -0
- package/vendor/registry/modules/pages/schema/snapshot.multilocale.json +187 -0
- package/vendor/registry/modules/pages/services/seed.json +24 -0
- package/vendor/registry/modules/pages/services/seed.multilocale.json +34 -0
- package/vendor/registry/modules/pages/types.multilocale.ts +37 -0
- package/vendor/registry/modules/pages/types.ts +21 -0
- package/vendor/registry/modules/projects/access/policies.json +31 -0
- package/vendor/registry/modules/projects/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/projects/lib.multilocale.ts +111 -0
- package/vendor/registry/modules/projects/lib.ts +138 -0
- package/vendor/registry/modules/projects/module.json +48 -0
- package/vendor/registry/modules/projects/schema/snapshot.json +348 -0
- package/vendor/registry/modules/projects/schema/snapshot.multilocale.json +577 -0
- package/vendor/registry/modules/projects/services/ATTRIBUTION.md +7 -0
- package/vendor/registry/modules/projects/services/assets/brand-identity-cover.jpg +0 -0
- package/vendor/registry/modules/projects/services/seed.json +40 -0
- package/vendor/registry/modules/projects/services/seed.multilocale.json +31 -0
- package/vendor/registry/modules/projects/types.multilocale.ts +38 -0
- package/vendor/registry/modules/projects/types.ts +28 -0
- package/vendor/registry/modules/services/access/policies.json +31 -0
- package/vendor/registry/modules/services/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/services/lib.multilocale.ts +109 -0
- package/vendor/registry/modules/services/lib.ts +134 -0
- package/vendor/registry/modules/services/module.json +47 -0
- package/vendor/registry/modules/services/schema/snapshot.json +305 -0
- package/vendor/registry/modules/services/schema/snapshot.multilocale.json +510 -0
- package/vendor/registry/modules/services/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/services/services/assets/design-development.jpg +0 -0
- package/vendor/registry/modules/services/services/assets/strategy-consulting.jpg +0 -0
- package/vendor/registry/modules/services/services/seed.json +44 -0
- package/vendor/registry/modules/services/services/seed.multilocale.json +31 -0
- package/vendor/registry/modules/services/types.multilocale.ts +36 -0
- package/vendor/registry/modules/services/types.ts +26 -0
- package/vendor/registry/modules/settings/access/policies.json +31 -0
- package/vendor/registry/modules/settings/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/settings/lib.multilocale.ts +158 -0
- package/vendor/registry/modules/settings/lib.ts +259 -0
- package/vendor/registry/modules/settings/module.json +33 -0
- package/vendor/registry/modules/settings/schema/snapshot.json +315 -0
- package/vendor/registry/modules/settings/schema/snapshot.multilocale.json +586 -0
- package/vendor/registry/modules/settings/services/assets/dkit-logo.svg +4 -0
- package/vendor/registry/modules/settings/services/seed.json +31 -0
- package/vendor/registry/modules/settings/services/seed.multilocale.json +42 -0
- package/vendor/registry/modules/settings/types.multilocale.ts +72 -0
- package/vendor/registry/modules/settings/types.ts +94 -0
- package/vendor/registry/modules/team/access/policies.json +31 -0
- package/vendor/registry/modules/team/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/team/lib.multilocale.ts +88 -0
- package/vendor/registry/modules/team/lib.ts +120 -0
- package/vendor/registry/modules/team/module.json +47 -0
- package/vendor/registry/modules/team/schema/snapshot.json +295 -0
- package/vendor/registry/modules/team/schema/snapshot.multilocale.json +525 -0
- package/vendor/registry/modules/team/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/team/services/assets/morgan-lee-photo.jpg +0 -0
- package/vendor/registry/modules/team/services/assets/taylor-kim-photo.jpg +0 -0
- package/vendor/registry/modules/team/services/seed.json +52 -0
- package/vendor/registry/modules/team/services/seed.multilocale.json +30 -0
- package/vendor/registry/modules/team/types.multilocale.ts +33 -0
- package/vendor/registry/modules/team/types.ts +27 -0
- package/vendor/registry/modules/testimonials/access/policies.json +31 -0
- package/vendor/registry/modules/testimonials/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/testimonials/lib.multilocale.ts +93 -0
- package/vendor/registry/modules/testimonials/lib.ts +85 -0
- package/vendor/registry/modules/testimonials/module.json +41 -0
- package/vendor/registry/modules/testimonials/schema/snapshot.json +248 -0
- package/vendor/registry/modules/testimonials/schema/snapshot.multilocale.json +462 -0
- package/vendor/registry/modules/testimonials/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/testimonials/services/assets/jane-doe-avatar.jpg +0 -0
- package/vendor/registry/modules/testimonials/services/assets/sample-author-avatar.jpg +0 -0
- package/vendor/registry/modules/testimonials/services/seed.json +49 -0
- package/vendor/registry/modules/testimonials/services/seed.multilocale.json +30 -0
- package/vendor/registry/modules/testimonials/types.multilocale.ts +27 -0
- package/vendor/registry/modules/testimonials/types.ts +22 -0
- package/vendor/registry/registry.json +832 -0
- package/vendor/registry/shared/helpers.ts +16 -0
- package/vendor/registry/shared/i18n.ts +74 -0
- package/vendor/registry/shared/minimal.css +83 -0
- package/vendor/registry/shared/paths.ts +50 -0
- package/vendor/registry/shared/prose.css +113 -0
- package/vendor/registry/tsconfig.json +49 -0
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "dkit.rest",
|
|
3
|
+
"collections": [
|
|
4
|
+
{
|
|
5
|
+
"collection": "proof",
|
|
6
|
+
"schema": null,
|
|
7
|
+
"meta": {
|
|
8
|
+
"icon": "format_quote",
|
|
9
|
+
"color": "#0F766E",
|
|
10
|
+
"collapse": "open",
|
|
11
|
+
"translations": [
|
|
12
|
+
{
|
|
13
|
+
"language": "en-US",
|
|
14
|
+
"translation": "Proof",
|
|
15
|
+
"singular": "Proof",
|
|
16
|
+
"plural": "Proof"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"collection": "testimonials",
|
|
23
|
+
"schema": {},
|
|
24
|
+
"meta": {
|
|
25
|
+
"icon": "reviews",
|
|
26
|
+
"color": "#0F766E",
|
|
27
|
+
"group": "proof",
|
|
28
|
+
"display_template": "{{author_name}}",
|
|
29
|
+
"archive_field": null,
|
|
30
|
+
"singleton": false,
|
|
31
|
+
"sort": 1,
|
|
32
|
+
"translations": [
|
|
33
|
+
{
|
|
34
|
+
"language": "en-US",
|
|
35
|
+
"translation": "Testimonials",
|
|
36
|
+
"singular": "Testimonial",
|
|
37
|
+
"plural": "Testimonials"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"note": "Client quotes displayed as social proof on the public site"
|
|
41
|
+
},
|
|
42
|
+
"fields": [
|
|
43
|
+
{
|
|
44
|
+
"field": "id",
|
|
45
|
+
"type": "uuid",
|
|
46
|
+
"meta": {
|
|
47
|
+
"hidden": true,
|
|
48
|
+
"readonly": true,
|
|
49
|
+
"interface": "input",
|
|
50
|
+
"special": [
|
|
51
|
+
"uuid"
|
|
52
|
+
],
|
|
53
|
+
"sort": 1,
|
|
54
|
+
"width": "full",
|
|
55
|
+
"translations": [
|
|
56
|
+
{
|
|
57
|
+
"language": "en-US",
|
|
58
|
+
"translation": "ID"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"schema": {
|
|
63
|
+
"is_primary_key": true,
|
|
64
|
+
"length": 36,
|
|
65
|
+
"has_auto_increment": false
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"field": "status",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"meta": {
|
|
72
|
+
"interface": "select-dropdown",
|
|
73
|
+
"display": "labels",
|
|
74
|
+
"width": "half",
|
|
75
|
+
"sort": 2,
|
|
76
|
+
"options": {
|
|
77
|
+
"choices": [
|
|
78
|
+
{
|
|
79
|
+
"text": "Published",
|
|
80
|
+
"value": "published"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"text": "Draft",
|
|
84
|
+
"value": "draft"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"display_options": {
|
|
89
|
+
"choices": [
|
|
90
|
+
{
|
|
91
|
+
"text": "Published",
|
|
92
|
+
"value": "published",
|
|
93
|
+
"foreground": "#FFFFFF",
|
|
94
|
+
"background": "#0F766E"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"text": "Draft",
|
|
98
|
+
"value": "draft",
|
|
99
|
+
"foreground": "#44403C",
|
|
100
|
+
"background": "#E7E5E4"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"translations": [
|
|
105
|
+
{
|
|
106
|
+
"language": "en-US",
|
|
107
|
+
"translation": "Status"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"note": "Only published items appear on the public site",
|
|
111
|
+
"validation": {
|
|
112
|
+
"_and": [
|
|
113
|
+
{
|
|
114
|
+
"status": {
|
|
115
|
+
"_in": [
|
|
116
|
+
"published",
|
|
117
|
+
"draft"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"validation_message": "Choose Published, Draft."
|
|
124
|
+
},
|
|
125
|
+
"schema": {
|
|
126
|
+
"default_value": "draft",
|
|
127
|
+
"is_nullable": false
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"field": "author_name",
|
|
132
|
+
"type": "string",
|
|
133
|
+
"meta": {
|
|
134
|
+
"interface": "input",
|
|
135
|
+
"width": "half",
|
|
136
|
+
"sort": 3,
|
|
137
|
+
"required": true,
|
|
138
|
+
"options": {
|
|
139
|
+
"trim": true
|
|
140
|
+
},
|
|
141
|
+
"translations": [
|
|
142
|
+
{
|
|
143
|
+
"language": "en-US",
|
|
144
|
+
"translation": "Author name"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"validation": {
|
|
148
|
+
"_and": [
|
|
149
|
+
{
|
|
150
|
+
"author_name": {
|
|
151
|
+
"_regex": "^.{1,120}$"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"validation_message": "Author name is required (max 120 characters)."
|
|
157
|
+
},
|
|
158
|
+
"schema": {
|
|
159
|
+
"is_nullable": false,
|
|
160
|
+
"max_length": 120
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"field": "company",
|
|
165
|
+
"type": "string",
|
|
166
|
+
"meta": {
|
|
167
|
+
"interface": "input",
|
|
168
|
+
"width": "half",
|
|
169
|
+
"sort": 4,
|
|
170
|
+
"options": {
|
|
171
|
+
"trim": true
|
|
172
|
+
},
|
|
173
|
+
"translations": [
|
|
174
|
+
{
|
|
175
|
+
"language": "en-US",
|
|
176
|
+
"translation": "Company"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"note": "Company or organization name (optional)",
|
|
180
|
+
"validation": {
|
|
181
|
+
"_and": [
|
|
182
|
+
{
|
|
183
|
+
"_or": [
|
|
184
|
+
{
|
|
185
|
+
"company": {
|
|
186
|
+
"_null": true
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"company": {
|
|
191
|
+
"_empty": true
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"company": {
|
|
196
|
+
"_regex": "^.{1,120}$"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"validation_message": "Company must be at most 120 characters."
|
|
204
|
+
},
|
|
205
|
+
"schema": {
|
|
206
|
+
"max_length": 120
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"field": "avatar",
|
|
211
|
+
"type": "uuid",
|
|
212
|
+
"meta": {
|
|
213
|
+
"interface": "file-image",
|
|
214
|
+
"special": [
|
|
215
|
+
"file"
|
|
216
|
+
],
|
|
217
|
+
"display": "image",
|
|
218
|
+
"width": "half",
|
|
219
|
+
"sort": 5,
|
|
220
|
+
"translations": [
|
|
221
|
+
{
|
|
222
|
+
"language": "en-US",
|
|
223
|
+
"translation": "Avatar"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"note": "Photo of the person giving the testimonial (optional)"
|
|
227
|
+
},
|
|
228
|
+
"schema": {}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"field": "sort",
|
|
232
|
+
"type": "integer",
|
|
233
|
+
"meta": {
|
|
234
|
+
"interface": "input",
|
|
235
|
+
"hidden": true,
|
|
236
|
+
"width": "full",
|
|
237
|
+
"sort": 6,
|
|
238
|
+
"translations": [
|
|
239
|
+
{
|
|
240
|
+
"language": "en-US",
|
|
241
|
+
"translation": "Sort"
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"schema": {}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"field": "translations",
|
|
249
|
+
"type": "alias",
|
|
250
|
+
"meta": {
|
|
251
|
+
"interface": "translations",
|
|
252
|
+
"special": [
|
|
253
|
+
"translations"
|
|
254
|
+
],
|
|
255
|
+
"width": "full",
|
|
256
|
+
"sort": 7,
|
|
257
|
+
"translations": [
|
|
258
|
+
{
|
|
259
|
+
"language": "en-US",
|
|
260
|
+
"translation": "Translations"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"schema": null
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"collection": "testimonials_translations",
|
|
270
|
+
"schema": {},
|
|
271
|
+
"meta": {
|
|
272
|
+
"hidden": true,
|
|
273
|
+
"icon": "translate",
|
|
274
|
+
"color": "#0F766E",
|
|
275
|
+
"group": "proof",
|
|
276
|
+
"translations": [
|
|
277
|
+
{
|
|
278
|
+
"language": "en-US",
|
|
279
|
+
"translation": "Testimonial translations",
|
|
280
|
+
"singular": "Testimonial translation",
|
|
281
|
+
"plural": "Testimonial translations"
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
"fields": [
|
|
286
|
+
{
|
|
287
|
+
"field": "id",
|
|
288
|
+
"type": "integer",
|
|
289
|
+
"meta": {
|
|
290
|
+
"hidden": true,
|
|
291
|
+
"interface": "input",
|
|
292
|
+
"sort": 1,
|
|
293
|
+
"width": "full",
|
|
294
|
+
"translations": [
|
|
295
|
+
{
|
|
296
|
+
"language": "en-US",
|
|
297
|
+
"translation": "ID"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
"schema": {
|
|
302
|
+
"is_primary_key": true,
|
|
303
|
+
"has_auto_increment": true
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"field": "testimonials_id",
|
|
308
|
+
"type": "uuid",
|
|
309
|
+
"meta": {
|
|
310
|
+
"hidden": true,
|
|
311
|
+
"sort": 2,
|
|
312
|
+
"width": "half",
|
|
313
|
+
"translations": [
|
|
314
|
+
{
|
|
315
|
+
"language": "en-US",
|
|
316
|
+
"translation": "Testimonial"
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"schema": {}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"field": "languages_code",
|
|
324
|
+
"type": "string",
|
|
325
|
+
"meta": {
|
|
326
|
+
"hidden": true,
|
|
327
|
+
"sort": 3,
|
|
328
|
+
"width": "half",
|
|
329
|
+
"translations": [
|
|
330
|
+
{
|
|
331
|
+
"language": "en-US",
|
|
332
|
+
"translation": "Language"
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
"schema": {}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"field": "quote",
|
|
340
|
+
"type": "text",
|
|
341
|
+
"meta": {
|
|
342
|
+
"interface": "input-multiline",
|
|
343
|
+
"width": "full",
|
|
344
|
+
"sort": 4,
|
|
345
|
+
"translations": [
|
|
346
|
+
{
|
|
347
|
+
"language": "en-US",
|
|
348
|
+
"translation": "Quote"
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"required": true,
|
|
352
|
+
"validation": {
|
|
353
|
+
"_and": [
|
|
354
|
+
{
|
|
355
|
+
"quote": {
|
|
356
|
+
"_regex": "^[\\s\\S]{1,1000}$"
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"validation_message": "Quote is required (max 1000 characters)."
|
|
362
|
+
},
|
|
363
|
+
"schema": {
|
|
364
|
+
"is_nullable": false
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"field": "author_role",
|
|
369
|
+
"type": "string",
|
|
370
|
+
"meta": {
|
|
371
|
+
"interface": "input",
|
|
372
|
+
"width": "half",
|
|
373
|
+
"sort": 5,
|
|
374
|
+
"options": {
|
|
375
|
+
"trim": true
|
|
376
|
+
},
|
|
377
|
+
"translations": [
|
|
378
|
+
{
|
|
379
|
+
"language": "en-US",
|
|
380
|
+
"translation": "Author role"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"note": "Job title or role (optional)",
|
|
384
|
+
"validation": {
|
|
385
|
+
"_and": [
|
|
386
|
+
{
|
|
387
|
+
"_or": [
|
|
388
|
+
{
|
|
389
|
+
"author_role": {
|
|
390
|
+
"_null": true
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"author_role": {
|
|
395
|
+
"_empty": true
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"author_role": {
|
|
400
|
+
"_regex": "^.{1,120}$"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
"validation_message": "Author role must be at most 120 characters."
|
|
408
|
+
},
|
|
409
|
+
"schema": {
|
|
410
|
+
"max_length": 120
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"relations": [
|
|
417
|
+
{
|
|
418
|
+
"collection": "testimonials",
|
|
419
|
+
"field": "avatar",
|
|
420
|
+
"related_collection": "directus_files",
|
|
421
|
+
"meta": {
|
|
422
|
+
"many_collection": "testimonials",
|
|
423
|
+
"many_field": "avatar",
|
|
424
|
+
"one_collection": "directus_files",
|
|
425
|
+
"one_field": null
|
|
426
|
+
},
|
|
427
|
+
"schema": {
|
|
428
|
+
"on_delete": "SET NULL"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"collection": "testimonials_translations",
|
|
433
|
+
"field": "testimonials_id",
|
|
434
|
+
"related_collection": "testimonials",
|
|
435
|
+
"meta": {
|
|
436
|
+
"many_collection": "testimonials_translations",
|
|
437
|
+
"many_field": "testimonials_id",
|
|
438
|
+
"one_collection": "testimonials",
|
|
439
|
+
"one_field": "translations",
|
|
440
|
+
"junction_field": "languages_code"
|
|
441
|
+
},
|
|
442
|
+
"schema": {
|
|
443
|
+
"on_delete": "CASCADE"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"collection": "testimonials_translations",
|
|
448
|
+
"field": "languages_code",
|
|
449
|
+
"related_collection": "languages",
|
|
450
|
+
"meta": {
|
|
451
|
+
"many_collection": "testimonials_translations",
|
|
452
|
+
"many_field": "languages_code",
|
|
453
|
+
"one_collection": "languages",
|
|
454
|
+
"one_field": null,
|
|
455
|
+
"junction_field": "testimonials_id"
|
|
456
|
+
},
|
|
457
|
+
"schema": {
|
|
458
|
+
"on_delete": "CASCADE"
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
}
|
|
@@ -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
|
+
| `sample-author-avatar.jpg` | https://images.unsplash.com/photo-1472099645785-5658abf4ff4e |
|
|
8
|
+
| `jane-doe-avatar.jpg` | https://images.unsplash.com/photo-1438761681033-6461ffad8d80 |
|
|
Binary file
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
{
|
|
4
|
+
"id": "m1000000-0000-4000-8000-000000000001",
|
|
5
|
+
"filename_download": "sample-author-avatar.jpg",
|
|
6
|
+
"title": "Sample avatar — Sample Author (Unsplash)",
|
|
7
|
+
"type": "image/jpeg",
|
|
8
|
+
"path": "assets/sample-author-avatar.jpg"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "m1000000-0000-4000-8000-000000000002",
|
|
12
|
+
"filename_download": "jane-doe-avatar.jpg",
|
|
13
|
+
"title": "Sample avatar — Jane Doe (Unsplash)",
|
|
14
|
+
"type": "image/jpeg",
|
|
15
|
+
"path": "assets/jane-doe-avatar.jpg"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"items": {
|
|
19
|
+
"testimonials": [
|
|
20
|
+
{
|
|
21
|
+
"id": "a1a1a1a1-a1a1-4a1a-8a1a-a1a1a1a1a1a1",
|
|
22
|
+
"status": "published",
|
|
23
|
+
"quote": "Sample: This testimonial verifies the quote field renders properly. Replace this text with a real client quote before launch.",
|
|
24
|
+
"author_name": "Sample Author",
|
|
25
|
+
"author_role": "Head of Product",
|
|
26
|
+
"company": "Acme Corp",
|
|
27
|
+
"avatar": "m1000000-0000-4000-8000-000000000001",
|
|
28
|
+
"sort": 1
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "b2b2b2b2-b2b2-4b2b-8b2b-b2b2b2b2b2b2",
|
|
32
|
+
"status": "published",
|
|
33
|
+
"quote": "Sample: Use this entry to confirm the grid layout, avatar fallback, and optional company field. Safe to delete once verified.",
|
|
34
|
+
"author_name": "Jane Doe",
|
|
35
|
+
"author_role": "Engineering Lead",
|
|
36
|
+
"company": "Globex Inc",
|
|
37
|
+
"avatar": "m1000000-0000-4000-8000-000000000002",
|
|
38
|
+
"sort": 2
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "c3c3c3c3-c3c3-4c3c-8c3c-c3c3c3c3c3c3",
|
|
42
|
+
"status": "published",
|
|
43
|
+
"quote": "Sample: A third testimonial exercises the list when more than two items are present. Check sort order and card spacing.",
|
|
44
|
+
"author_name": "Alex Rivera",
|
|
45
|
+
"sort": 3
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
{
|
|
4
|
+
"id": "m1000000-0000-4000-8000-000000000001",
|
|
5
|
+
"filename_download": "sample-author-avatar.jpg",
|
|
6
|
+
"title": "Sample avatar — Sample Author (Unsplash)",
|
|
7
|
+
"type": "image/jpeg",
|
|
8
|
+
"path": "assets/sample-author-avatar.jpg"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"items": {
|
|
12
|
+
"testimonials": [
|
|
13
|
+
{
|
|
14
|
+
"id": "a1a1a1a1-a1a1-4a1a-8a1a-a1a1a1a1a1a1",
|
|
15
|
+
"status": "published",
|
|
16
|
+
"author_name": "Jane Doe",
|
|
17
|
+
"company": "Acme Inc.",
|
|
18
|
+
"avatar": "m1000000-0000-4000-8000-000000000001",
|
|
19
|
+
"sort": 1,
|
|
20
|
+
"translations": [
|
|
21
|
+
{
|
|
22
|
+
"languages_code": "en-US",
|
|
23
|
+
"quote": "Sample testimonial — replace with real customer feedback.",
|
|
24
|
+
"author_role": "CTO"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type DirectusFileRef = { id: string };
|
|
2
|
+
|
|
3
|
+
export type TestimonialTranslation = {
|
|
4
|
+
id: number;
|
|
5
|
+
testimonials_id?: string;
|
|
6
|
+
languages_code?: string | { code?: string };
|
|
7
|
+
quote: string;
|
|
8
|
+
author_role?: string | null;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type Testimonial = {
|
|
12
|
+
id: string;
|
|
13
|
+
status: "published" | "draft";
|
|
14
|
+
quote: string;
|
|
15
|
+
author_name: string;
|
|
16
|
+
author_role?: string | null;
|
|
17
|
+
company?: string | null;
|
|
18
|
+
avatar?: string | DirectusFileRef | null;
|
|
19
|
+
sort?: number | null;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type GetTestimonialsOptions = {
|
|
23
|
+
status?: string | null;
|
|
24
|
+
limit?: number;
|
|
25
|
+
sort?: string[];
|
|
26
|
+
locale?: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type DirectusFileRef = {
|
|
2
|
+
id: string;
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export type Testimonial = {
|
|
6
|
+
id: string;
|
|
7
|
+
status: "published" | "draft";
|
|
8
|
+
quote: string;
|
|
9
|
+
author_name: string;
|
|
10
|
+
author_role?: string | null;
|
|
11
|
+
company?: string | null;
|
|
12
|
+
avatar?: string | DirectusFileRef | null;
|
|
13
|
+
sort?: number | null;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** Shared list/query options for testimonial fetches. */
|
|
17
|
+
export type GetTestimonialsOptions = {
|
|
18
|
+
/** Directus status filter. Default `"published"`. Pass `null` to skip. */
|
|
19
|
+
status?: string | null;
|
|
20
|
+
limit?: number;
|
|
21
|
+
sort?: string[];
|
|
22
|
+
};
|