@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,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "dkit.rest",
|
|
3
|
+
"collections": [
|
|
4
|
+
{
|
|
5
|
+
"collection": "site",
|
|
6
|
+
"schema": null,
|
|
7
|
+
"meta": {
|
|
8
|
+
"icon": "web",
|
|
9
|
+
"color": "#0F766E",
|
|
10
|
+
"collapse": "open",
|
|
11
|
+
"translations": [
|
|
12
|
+
{
|
|
13
|
+
"language": "en-US",
|
|
14
|
+
"translation": "Site",
|
|
15
|
+
"singular": "Site",
|
|
16
|
+
"plural": "Site"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"note": "Site content and chrome — pages, settings, navigation, contact, page builder"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"collection": "pages",
|
|
24
|
+
"schema": {},
|
|
25
|
+
"meta": {
|
|
26
|
+
"icon": "article",
|
|
27
|
+
"color": "#0F766E",
|
|
28
|
+
"group": "site",
|
|
29
|
+
"display_template": "{{title}}",
|
|
30
|
+
"archive_field": "status",
|
|
31
|
+
"archive_value": "archived",
|
|
32
|
+
"unarchive_value": "draft",
|
|
33
|
+
"archive_app_filter": true,
|
|
34
|
+
"sort": 1,
|
|
35
|
+
"translations": [
|
|
36
|
+
{
|
|
37
|
+
"language": "en-US",
|
|
38
|
+
"translation": "Pages",
|
|
39
|
+
"singular": "Page",
|
|
40
|
+
"plural": "Pages"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"note": "Single-document pages with a rich-text body"
|
|
44
|
+
},
|
|
45
|
+
"fields": [
|
|
46
|
+
{
|
|
47
|
+
"field": "id",
|
|
48
|
+
"type": "uuid",
|
|
49
|
+
"meta": {
|
|
50
|
+
"hidden": true,
|
|
51
|
+
"readonly": true,
|
|
52
|
+
"interface": "input",
|
|
53
|
+
"special": ["uuid"],
|
|
54
|
+
"sort": 1,
|
|
55
|
+
"width": "full",
|
|
56
|
+
"translations": [{ "language": "en-US", "translation": "ID" }]
|
|
57
|
+
},
|
|
58
|
+
"schema": {
|
|
59
|
+
"is_primary_key": true,
|
|
60
|
+
"length": 36,
|
|
61
|
+
"has_auto_increment": false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"field": "status",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"meta": {
|
|
68
|
+
"interface": "select-dropdown",
|
|
69
|
+
"display": "labels",
|
|
70
|
+
"width": "half",
|
|
71
|
+
"sort": 2,
|
|
72
|
+
"options": {
|
|
73
|
+
"choices": [
|
|
74
|
+
{ "text": "Published", "value": "published" },
|
|
75
|
+
{ "text": "Draft", "value": "draft" },
|
|
76
|
+
{ "text": "Archived", "value": "archived" }
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"display_options": {
|
|
80
|
+
"choices": [
|
|
81
|
+
{
|
|
82
|
+
"text": "Published",
|
|
83
|
+
"value": "published",
|
|
84
|
+
"foreground": "#FFFFFF",
|
|
85
|
+
"background": "#0F766E"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"text": "Draft",
|
|
89
|
+
"value": "draft",
|
|
90
|
+
"foreground": "#44403C",
|
|
91
|
+
"background": "#E7E5E4"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"text": "Archived",
|
|
95
|
+
"value": "archived",
|
|
96
|
+
"foreground": "#FFFFFF",
|
|
97
|
+
"background": "#A8A29E"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
"translations": [{ "language": "en-US", "translation": "Status" }],
|
|
102
|
+
"note": "Only published pages appear on the public site",
|
|
103
|
+
"validation": {
|
|
104
|
+
"_and": [
|
|
105
|
+
{
|
|
106
|
+
"status": {
|
|
107
|
+
"_in": ["published", "draft", "archived"]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"validation_message": "Choose Published, Draft, or Archived."
|
|
113
|
+
},
|
|
114
|
+
"schema": { "default_value": "draft", "is_nullable": false }
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"field": "published_at",
|
|
118
|
+
"type": "timestamp",
|
|
119
|
+
"meta": {
|
|
120
|
+
"interface": "datetime",
|
|
121
|
+
"display": "datetime",
|
|
122
|
+
"width": "half",
|
|
123
|
+
"sort": 3,
|
|
124
|
+
"special": ["date-created"],
|
|
125
|
+
"readonly": false,
|
|
126
|
+
"translations": [
|
|
127
|
+
{ "language": "en-US", "translation": "Published at" }
|
|
128
|
+
],
|
|
129
|
+
"note": "Auto-filled on create; change freely for backdating or scheduling",
|
|
130
|
+
"conditions": [
|
|
131
|
+
{
|
|
132
|
+
"name": "Required when published",
|
|
133
|
+
"rule": {
|
|
134
|
+
"_and": [{ "status": { "_eq": "published" } }]
|
|
135
|
+
},
|
|
136
|
+
"required": true
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"schema": {}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"field": "title",
|
|
144
|
+
"type": "string",
|
|
145
|
+
"meta": {
|
|
146
|
+
"interface": "input",
|
|
147
|
+
"required": true,
|
|
148
|
+
"width": "full",
|
|
149
|
+
"sort": 4,
|
|
150
|
+
"options": { "trim": true },
|
|
151
|
+
"translations": [{ "language": "en-US", "translation": "Title" }],
|
|
152
|
+
"validation": {
|
|
153
|
+
"_and": [{ "title": { "_regex": "^.{1,200}$" } }]
|
|
154
|
+
},
|
|
155
|
+
"validation_message": "Title is required (max 200 characters)."
|
|
156
|
+
},
|
|
157
|
+
"schema": { "is_nullable": false, "max_length": 200 }
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"field": "slug",
|
|
161
|
+
"type": "string",
|
|
162
|
+
"meta": {
|
|
163
|
+
"interface": "input",
|
|
164
|
+
"required": true,
|
|
165
|
+
"width": "half",
|
|
166
|
+
"sort": 5,
|
|
167
|
+
"options": { "trim": true, "slug": true },
|
|
168
|
+
"translations": [{ "language": "en-US", "translation": "Slug" }],
|
|
169
|
+
"note": "Used in the page URL",
|
|
170
|
+
"validation": {
|
|
171
|
+
"_and": [
|
|
172
|
+
{
|
|
173
|
+
"slug": {
|
|
174
|
+
"_regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"validation_message": "Use lowercase letters, numbers, and hyphens only."
|
|
180
|
+
},
|
|
181
|
+
"schema": { "is_nullable": false, "is_unique": true, "max_length": 200 }
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"field": "excerpt",
|
|
185
|
+
"type": "text",
|
|
186
|
+
"meta": {
|
|
187
|
+
"interface": "input-multiline",
|
|
188
|
+
"width": "half",
|
|
189
|
+
"sort": 6,
|
|
190
|
+
"translations": [{ "language": "en-US", "translation": "Excerpt" }],
|
|
191
|
+
"note": "Optional short summary for listings or SEO",
|
|
192
|
+
"validation": {
|
|
193
|
+
"_and": [
|
|
194
|
+
{
|
|
195
|
+
"_or": [
|
|
196
|
+
{ "excerpt": { "_null": true } },
|
|
197
|
+
{ "excerpt": { "_empty": true } },
|
|
198
|
+
{ "excerpt": { "_regex": "^[\\s\\S]{1,500}$" } }
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"validation_message": "Excerpt must be at most 500 characters."
|
|
204
|
+
},
|
|
205
|
+
"schema": {}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"field": "body",
|
|
209
|
+
"type": "text",
|
|
210
|
+
"meta": {
|
|
211
|
+
"interface": "input-rich-text-html",
|
|
212
|
+
"width": "fill",
|
|
213
|
+
"sort": 7,
|
|
214
|
+
"options": {
|
|
215
|
+
"toolbar": [
|
|
216
|
+
"bold",
|
|
217
|
+
"italic",
|
|
218
|
+
"underline",
|
|
219
|
+
"h2",
|
|
220
|
+
"h3",
|
|
221
|
+
"numlist",
|
|
222
|
+
"bullist",
|
|
223
|
+
"blockquote",
|
|
224
|
+
"link",
|
|
225
|
+
"code",
|
|
226
|
+
"empty"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
"translations": [{ "language": "en-US", "translation": "Body" }],
|
|
230
|
+
"note": "Main page content (WYSIWYG)",
|
|
231
|
+
"conditions": [
|
|
232
|
+
{
|
|
233
|
+
"name": "Required when published",
|
|
234
|
+
"rule": {
|
|
235
|
+
"_and": [{ "status": { "_eq": "published" } }]
|
|
236
|
+
},
|
|
237
|
+
"required": true
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"schema": {}
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"relations": []
|
|
247
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "dkit.rest",
|
|
3
|
+
"collections": [
|
|
4
|
+
{
|
|
5
|
+
"collection": "site",
|
|
6
|
+
"schema": null,
|
|
7
|
+
"meta": {
|
|
8
|
+
"icon": "web",
|
|
9
|
+
"color": "#0F766E",
|
|
10
|
+
"collapse": "open",
|
|
11
|
+
"translations": [
|
|
12
|
+
{ "language": "en-US", "translation": "Site", "singular": "Site", "plural": "Site" }
|
|
13
|
+
],
|
|
14
|
+
"note": "Site content and chrome — pages, settings, navigation, contact, page builder"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"collection": "pages",
|
|
19
|
+
"schema": {},
|
|
20
|
+
"meta": {
|
|
21
|
+
"icon": "article",
|
|
22
|
+
"color": "#0F766E",
|
|
23
|
+
"group": "site",
|
|
24
|
+
"display_template": "{{translations.title}}",
|
|
25
|
+
"archive_field": "status",
|
|
26
|
+
"archive_value": "archived",
|
|
27
|
+
"unarchive_value": "draft",
|
|
28
|
+
"archive_app_filter": true,
|
|
29
|
+
"sort": 1,
|
|
30
|
+
"translations": [
|
|
31
|
+
{ "language": "en-US", "translation": "Pages", "singular": "Page", "plural": "Pages" }
|
|
32
|
+
],
|
|
33
|
+
"note": "Single-document pages with a rich-text body"
|
|
34
|
+
},
|
|
35
|
+
"fields": [
|
|
36
|
+
{
|
|
37
|
+
"field": "id",
|
|
38
|
+
"type": "uuid",
|
|
39
|
+
"meta": {
|
|
40
|
+
"hidden": true, "readonly": true, "interface": "input",
|
|
41
|
+
"special": ["uuid"], "sort": 1, "width": "full",
|
|
42
|
+
"translations": [{ "language": "en-US", "translation": "ID" }]
|
|
43
|
+
},
|
|
44
|
+
"schema": { "is_primary_key": true, "length": 36, "has_auto_increment": false }
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"field": "status",
|
|
48
|
+
"type": "string",
|
|
49
|
+
"meta": {
|
|
50
|
+
"interface": "select-dropdown", "display": "labels", "width": "half", "sort": 2,
|
|
51
|
+
"options": { "choices": [
|
|
52
|
+
{ "text": "Published", "value": "published" },
|
|
53
|
+
{ "text": "Draft", "value": "draft" },
|
|
54
|
+
{ "text": "Archived", "value": "archived" }
|
|
55
|
+
]},
|
|
56
|
+
"display_options": { "choices": [
|
|
57
|
+
{ "text": "Published", "value": "published", "foreground": "#FFFFFF", "background": "#0F766E" },
|
|
58
|
+
{ "text": "Draft", "value": "draft", "foreground": "#44403C", "background": "#E7E5E4" },
|
|
59
|
+
{ "text": "Archived", "value": "archived", "foreground": "#FFFFFF", "background": "#A8A29E" }
|
|
60
|
+
]},
|
|
61
|
+
"translations": [{ "language": "en-US", "translation": "Status" }],
|
|
62
|
+
"note": "Only published pages appear on the public site",
|
|
63
|
+
"validation": { "_and": [{ "status": { "_in": ["published", "draft", "archived"] } }] },
|
|
64
|
+
"validation_message": "Choose Published, Draft, or Archived."
|
|
65
|
+
},
|
|
66
|
+
"schema": { "default_value": "draft", "is_nullable": false }
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"field": "published_at",
|
|
70
|
+
"type": "timestamp",
|
|
71
|
+
"meta": {
|
|
72
|
+
"interface": "datetime", "display": "datetime", "width": "half", "sort": 3,
|
|
73
|
+
"special": ["date-created"], "readonly": false,
|
|
74
|
+
"translations": [{ "language": "en-US", "translation": "Published at" }],
|
|
75
|
+
"note": "Auto-filled on create; change freely for backdating or scheduling",
|
|
76
|
+
"conditions": [{ "name": "Required when published", "rule": { "_and": [{ "status": { "_eq": "published" } }] }, "required": true }]
|
|
77
|
+
},
|
|
78
|
+
"schema": {}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"field": "translations",
|
|
82
|
+
"type": "alias",
|
|
83
|
+
"meta": {
|
|
84
|
+
"interface": "translations", "special": ["translations"], "width": "full", "sort": 4,
|
|
85
|
+
"translations": [{ "language": "en-US", "translation": "Translations" }]
|
|
86
|
+
},
|
|
87
|
+
"schema": null
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"collection": "pages_translations",
|
|
93
|
+
"schema": {},
|
|
94
|
+
"meta": {
|
|
95
|
+
"hidden": true, "icon": "translate", "color": "#0F766E", "group": "site",
|
|
96
|
+
"translations": [
|
|
97
|
+
{ "language": "en-US", "translation": "Page translations", "singular": "Page translation", "plural": "Page translations" }
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"fields": [
|
|
101
|
+
{
|
|
102
|
+
"field": "id", "type": "integer",
|
|
103
|
+
"meta": { "hidden": true, "interface": "input", "sort": 1, "width": "full", "translations": [{ "language": "en-US", "translation": "ID" }] },
|
|
104
|
+
"schema": { "is_primary_key": true, "has_auto_increment": true }
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"field": "pages_id", "type": "uuid",
|
|
108
|
+
"meta": { "hidden": true, "sort": 2, "width": "half", "translations": [{ "language": "en-US", "translation": "Page" }] },
|
|
109
|
+
"schema": {}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"field": "languages_code", "type": "string",
|
|
113
|
+
"meta": { "hidden": true, "sort": 3, "width": "half", "translations": [{ "language": "en-US", "translation": "Language" }] },
|
|
114
|
+
"schema": {}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"field": "title", "type": "string",
|
|
118
|
+
"meta": {
|
|
119
|
+
"interface": "input", "required": true, "width": "full", "sort": 4,
|
|
120
|
+
"options": { "trim": true },
|
|
121
|
+
"translations": [{ "language": "en-US", "translation": "Title" }],
|
|
122
|
+
"validation": { "_and": [{ "title": { "_regex": "^.{1,200}$" } }] },
|
|
123
|
+
"validation_message": "Title is required (max 200 characters)."
|
|
124
|
+
},
|
|
125
|
+
"schema": { "is_nullable": false, "max_length": 200 }
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"field": "slug", "type": "string",
|
|
129
|
+
"meta": {
|
|
130
|
+
"interface": "input", "required": true, "width": "half", "sort": 5,
|
|
131
|
+
"options": { "trim": true, "slug": true },
|
|
132
|
+
"translations": [{ "language": "en-US", "translation": "Slug" }],
|
|
133
|
+
"note": "URL-friendly identifier (unique per locale)",
|
|
134
|
+
"validation": { "_and": [{ "slug": { "_regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$" } }] },
|
|
135
|
+
"validation_message": "Use lowercase letters, numbers, and hyphens only."
|
|
136
|
+
},
|
|
137
|
+
"schema": { "is_nullable": false, "is_unique": true, "max_length": 200 }
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"field": "excerpt", "type": "text",
|
|
141
|
+
"meta": {
|
|
142
|
+
"interface": "input-multiline", "width": "half", "sort": 6,
|
|
143
|
+
"translations": [{ "language": "en-US", "translation": "Excerpt" }],
|
|
144
|
+
"note": "Optional short summary for listings or SEO",
|
|
145
|
+
"validation": { "_and": [{ "_or": [{ "excerpt": { "_null": true } }, { "excerpt": { "_empty": true } }, { "excerpt": { "_regex": "^[\\s\\S]{1,500}$" } }] }] },
|
|
146
|
+
"validation_message": "Excerpt must be at most 500 characters."
|
|
147
|
+
},
|
|
148
|
+
"schema": {}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"field": "body", "type": "text",
|
|
152
|
+
"meta": {
|
|
153
|
+
"interface": "input-rich-text-html", "width": "fill", "sort": 7,
|
|
154
|
+
"options": { "toolbar": ["bold","italic","underline","h2","h3","numlist","bullist","blockquote","link","code","empty"] },
|
|
155
|
+
"translations": [{ "language": "en-US", "translation": "Body" }],
|
|
156
|
+
"note": "Main page content (WYSIWYG)"
|
|
157
|
+
},
|
|
158
|
+
"schema": {}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"relations": [
|
|
164
|
+
{
|
|
165
|
+
"collection": "pages_translations",
|
|
166
|
+
"field": "pages_id",
|
|
167
|
+
"related_collection": "pages",
|
|
168
|
+
"meta": {
|
|
169
|
+
"many_collection": "pages_translations", "many_field": "pages_id",
|
|
170
|
+
"one_collection": "pages", "one_field": "translations",
|
|
171
|
+
"junction_field": "languages_code"
|
|
172
|
+
},
|
|
173
|
+
"schema": { "on_delete": "CASCADE" }
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"collection": "pages_translations",
|
|
177
|
+
"field": "languages_code",
|
|
178
|
+
"related_collection": "languages",
|
|
179
|
+
"meta": {
|
|
180
|
+
"many_collection": "pages_translations", "many_field": "languages_code",
|
|
181
|
+
"one_collection": "languages", "one_field": null,
|
|
182
|
+
"junction_field": "pages_id"
|
|
183
|
+
},
|
|
184
|
+
"schema": { "on_delete": "CASCADE" }
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": {
|
|
3
|
+
"pages": [
|
|
4
|
+
{
|
|
5
|
+
"id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
|
|
6
|
+
"status": "published",
|
|
7
|
+
"title": "Sample: About",
|
|
8
|
+
"slug": "about",
|
|
9
|
+
"excerpt": "Demo page — verify slug routes and .dkit-prose rendering.",
|
|
10
|
+
"body": "<p>This is <strong>sample seed data</strong> from the pages module. Rewrite or remove it in Directus when you add real pages.</p><h2>What to verify</h2><p>Open this slug in your app (for example <code>/about</code> or <code>/pages/about</code>, depending on the base path you chose at install).</p><blockquote><p>Use this page to smoke-test install — then replace it with your own content before launch.</p></blockquote><h3>Exercises</h3><ul><li>Detail UI loads title and body</li><li>WYSIWYG HTML picks up <code>.dkit-prose</code></li><li>Unpublished drafts stay hidden from the public role</li></ul><h3>Next steps</h3><ol><li>Edit this page in <em>Site → Pages</em></li><li>Create another page with a new slug</li><li>Wire routes to <code>getPageBySlug</code></li></ol><p>Replace all sample content before launch.</p>",
|
|
11
|
+
"published_at": "2026-01-15T10:00:00.000Z"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
|
|
15
|
+
"status": "published",
|
|
16
|
+
"title": "Sample: Hello",
|
|
17
|
+
"slug": "hello",
|
|
18
|
+
"excerpt": "Second demo page for base-path and multi-page checks.",
|
|
19
|
+
"body": "<h2>Hello</h2><p>Second sample page so you can click between slugs. With base path <code>/</code> this is <code>/hello</code>; with <code>/pages</code> it is <code>/pages/hello</code>.</p><h3>Included markup</h3><ul><li>Headings</li><li>Inline <code>code</code> for paths</li><li>A short list</li></ul><blockquote><p>Confirm both sample slugs resolve, then delete the demos when you no longer need them.</p></blockquote><p>Delete when you no longer need the demo.</p>",
|
|
20
|
+
"published_at": "2026-01-15T11:00:00.000Z"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"items": {
|
|
3
|
+
"pages": [
|
|
4
|
+
{
|
|
5
|
+
"id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
|
|
6
|
+
"status": "published",
|
|
7
|
+
"published_at": "2026-01-15T10:00:00.000Z",
|
|
8
|
+
"translations": [
|
|
9
|
+
{
|
|
10
|
+
"languages_code": "en-US",
|
|
11
|
+
"title": "Sample: About",
|
|
12
|
+
"slug": "about",
|
|
13
|
+
"excerpt": "Demo page — verify slug routes and .dkit-prose rendering.",
|
|
14
|
+
"body": "<p>This is <strong>sample seed data</strong> from the pages module. Rewrite or remove it in Directus when you add real pages.</p><h2>What to verify</h2><p>Open this slug in your app (for example <code>/about</code> or <code>/pages/about</code>, depending on the base path you chose at install).</p><blockquote><p>Use this page to smoke-test install — then replace it with your own content before launch.</p></blockquote><h3>Exercises</h3><ul><li>Detail UI loads title and body</li><li>WYSIWYG HTML picks up <code>.dkit-prose</code></li><li>Unpublished drafts stay hidden from the public role</li></ul><h3>Next steps</h3><ol><li>Edit this page in <em>Site → Pages</em></li><li>Create another page with a new slug</li><li>Wire routes to <code>getPageBySlug</code></li></ol><p>Replace all sample content before launch.</p>"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb",
|
|
20
|
+
"status": "published",
|
|
21
|
+
"published_at": "2026-01-15T11:00:00.000Z",
|
|
22
|
+
"translations": [
|
|
23
|
+
{
|
|
24
|
+
"languages_code": "en-US",
|
|
25
|
+
"title": "Sample: Hello",
|
|
26
|
+
"slug": "hello",
|
|
27
|
+
"excerpt": "Second demo page for base-path and multi-page checks.",
|
|
28
|
+
"body": "<h2>Hello</h2><p>Second sample page so you can click between slugs. With base path <code>/</code> this is <code>/hello</code>; with <code>/pages</code> it is <code>/pages/hello</code>.</p><h3>Included markup</h3><ul><li>Headings</li><li>Inline <code>code</code> for paths</li><li>A short list</li></ul><blockquote><p>Confirm both sample slugs resolve, then delete the demos when you no longer need them.</p></blockquote><p>Delete when you no longer need the demo.</p>"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* ── Translation row type ── */
|
|
2
|
+
|
|
3
|
+
export type SitePageTranslation = {
|
|
4
|
+
id: number;
|
|
5
|
+
pages_id?: string;
|
|
6
|
+
languages_code?: string | { code?: string };
|
|
7
|
+
title: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
excerpt?: string | null;
|
|
10
|
+
body?: string | null;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/* ── Public API type (flat) ── */
|
|
14
|
+
|
|
15
|
+
export type SitePage = {
|
|
16
|
+
id: string;
|
|
17
|
+
status: "published" | "draft" | "archived";
|
|
18
|
+
title: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
excerpt?: string | null;
|
|
21
|
+
body?: string | null;
|
|
22
|
+
published_at?: string | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** Shared list/query options for pages fetches. */
|
|
26
|
+
export type GetPagesOptions = {
|
|
27
|
+
/** Directus status filter. Default `"published"`. Pass `null` to skip. */
|
|
28
|
+
status?: string | null;
|
|
29
|
+
limit?: number;
|
|
30
|
+
sort?: string[];
|
|
31
|
+
locale?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetPageBySlugOptions = {
|
|
35
|
+
status?: string | null;
|
|
36
|
+
locale?: string;
|
|
37
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type SitePage = {
|
|
2
|
+
id: string;
|
|
3
|
+
status: "published" | "draft" | "archived";
|
|
4
|
+
title: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
excerpt?: string | null;
|
|
7
|
+
body?: string | null;
|
|
8
|
+
published_at?: string | null;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** Shared list/query options for pages fetches. */
|
|
12
|
+
export type GetPagesOptions = {
|
|
13
|
+
/** Directus status filter. Default `"published"`. Pass `null` to skip. */
|
|
14
|
+
status?: string | null;
|
|
15
|
+
limit?: number;
|
|
16
|
+
sort?: string[];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type GetPageBySlugOptions = {
|
|
20
|
+
status?: string | null;
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"policies": [
|
|
3
|
+
{
|
|
4
|
+
"name": "dkit Projects Public Read",
|
|
5
|
+
"icon": "public",
|
|
6
|
+
"description": "Public read for portfolio collections (flat rules — Core-compatible). UI filters published status.",
|
|
7
|
+
"admin_access": false,
|
|
8
|
+
"app_access": false
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"permissions": [
|
|
12
|
+
{
|
|
13
|
+
"policy": "dkit Projects Public Read",
|
|
14
|
+
"collection": "projects",
|
|
15
|
+
"action": "read",
|
|
16
|
+
"fields": ["*"]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"policy": "dkit Projects Public Read",
|
|
20
|
+
"collection": "directus_files",
|
|
21
|
+
"action": "read",
|
|
22
|
+
"fields": ["*"]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"access": [
|
|
26
|
+
{
|
|
27
|
+
"role": "$public",
|
|
28
|
+
"policy": "dkit Projects Public Read"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"policies": [
|
|
3
|
+
{
|
|
4
|
+
"name": "dkit Projects Public Read",
|
|
5
|
+
"icon": "public",
|
|
6
|
+
"description": "Public read for projects incl. translations.",
|
|
7
|
+
"admin_access": false,
|
|
8
|
+
"app_access": false
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"permissions": [
|
|
12
|
+
{
|
|
13
|
+
"policy": "dkit Projects Public Read",
|
|
14
|
+
"collection": "projects",
|
|
15
|
+
"action": "read",
|
|
16
|
+
"fields": [
|
|
17
|
+
"*"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"policy": "dkit Projects Public Read",
|
|
22
|
+
"collection": "projects_translations",
|
|
23
|
+
"action": "read",
|
|
24
|
+
"fields": [
|
|
25
|
+
"*"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"policy": "dkit Projects Public Read",
|
|
30
|
+
"collection": "directus_files",
|
|
31
|
+
"action": "read",
|
|
32
|
+
"fields": [
|
|
33
|
+
"*"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"access": [
|
|
38
|
+
{
|
|
39
|
+
"role": "$public",
|
|
40
|
+
"policy": "dkit Projects Public Read"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|