-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_cms.ts
45 lines (41 loc) · 817 Bytes
/
_cms.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import lumeCMS from "lume/cms/mod.ts";
const cms = lumeCMS();
cms.storage("CMS", "CMS");
export const incident_history = cms.collection(
"incident_history",
"CMS:incident_history/*.md",
[
{
name: "title",
type: "text",
label: "Title of the Incident",
attributes: {
required: true,
maxlength: 50,
},
},
{
name: "description",
type: "textarea",
attributes: {
required: true,
},
},
{
name: "status",
type: "select",
value: "serious",
options: ["working", "resolved", "serious"],
},
{
name: "date",
value: Date.now(),
type: "datetime",
description: "Incident Time...",
attributes: {
required: true,
},
},
],
);
export default cms;