-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
216 lines (192 loc) · 5.75 KB
/
config.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# Generated by protoc-gen-decap-cms. DO NOT EDIT.
backend:
name: "git-gateway"
squash_merges: true
commit_messages:
create: "feat({{collection}}): create {{slug}}"
update: "feat({{collection}}): update {{slug}}"
delete: "feat({{collection}}): delete {{slug}}"
uploadMedia: "feat(media): upload {{path}}"
deleteMedia: "feat(media): delete {{path}}"
local_backend:
url: "http://localhost:8081/api/v1"
slug:
encoding: "ascii"
clean_accents: true
sanitize_replacement: "-"
media_folder: "example/uploads"
logo_url: "/logo.svg"
collections:
- name: "books"
label: "Books"
label_singular: "Book"
folder: "example/books"
create: true
identifier_field: "name"
format: "json"
description: "Books"
summary: "{{title}}"
editor:
preview: false
fields:
- name: "name"
label: "RESOURCE NAME"
comment: "The resource name of the book.\n Book names have the form `books/{book_id}`."
required: true
hint: "The resource name of the book.\n Book names have the form `books/{book_id}`."
pattern:
- "^books/[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
- "Must match ^books/[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
widget: "string"
default: "books/"
- name: "create_time"
label: "CREATE TIME"
comment: "The timestamp the body build was created."
required: true
hint: "The timestamp the body build was created."
widget: "datetime"
date_format: "YYYY-MM-DD"
time_format: "HH:mmZ"
- name: "author"
label: "AUTHOR"
comment: "The name of the book author."
required: true
hint: "The name of the book author."
widget: "string"
default: ""
- name: "title"
label: "TITLE"
comment: "The title of the book."
required: true
hint: "The title of the book."
widget: "string"
default: ""
- name: "read"
label: "READ"
comment: "Value indicating whether the book has been read."
required: false
hint: "Value indicating whether the book has been read."
widget: "boolean"
- name: "kitchen_sinks"
label: "Kitchen Sinks"
label_singular: "Kitchen Sink"
folder: "example/kitchenSinks"
create: true
identifier_field: "name"
format: "json"
description: "Kitchen sink example messages"
summary: "{{display_name}}"
editor:
preview: false
fields:
- name: "name"
label: "RESOURCE NAME"
comment: "The resource name of the kitchen sink."
required: true
hint: "The resource name of the kitchen sink."
pattern:
- "^kitchenSinks/[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
- "Must match ^kitchenSinks/[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
widget: "string"
default: 'kitchenSinks/'
outer:
inner: 42
- name: "create_time"
label: "CREATE TIME"
comment: "The timestamp the kitchen sink was created."
required: true
hint: "The timestamp the kitchen sink was created."
widget: "datetime"
date_format: "YYYY-MM-DD"
time_format: "HH:mmZ"
- name: "display_name"
label: "DISPLAY NAME"
comment: "Display name of the kitchen sink."
required: true
hint: "Display name of the kitchen sink."
widget: "string"
default: ""
- name: "example_enum"
label: "EXAMPLE ENUM"
comment: "An example enum."
required: true
hint: "An example enum."
widget: "select"
multiple: false
options:
- label: "ONE"
value: "ONE"
- label: "TWO"
value: "TWO"
- name: "double_value"
label: "DOUBLE VALUE"
comment: "A double value."
hint: "A double value."
widget: "number"
value_type: "float"
required: true
default: 0
- name: "float_value"
label: "FLOAT VALUE"
comment: "A float value."
hint: "A float value."
widget: "number"
value_type: "float"
required: true
default: 0
- name: "int64_value"
label: "INT64 VALUE"
comment: "An int64 value."
hint: "An int64 value."
widget: "number"
value_type: "int"
required: true
default: 0
- name: "custom_value"
label: "CUSTOM VALUE"
comment: "A value with a custom widget."
required: false
hint: "A value with a custom widget."
widget: "test"
outer:
inner: 42
- name: "book"
label: "BOOK"
comment: "A value with relation to another entity"
required: true
hint: "A value with relation to another entity"
widget: "relation"
collection: "books"
value_field: "name"
search_fields:
- "name"
- "title"
display_fields:
- "title"
multiple: false
filters:
- field: "author"
values:
- "Lewis Carroll"
- "Marcus Aurelius"
- name: "specs"
label: "SPECS"
comment: "A nested list of some specs to show usage of a list widget."
required: false
hint: "A nested list of some specs to show usage of a list widget."
widget: "list"
collapsed: true
minimize_collapsed: true
summary: "{{fields.name}} - count: {{fields.count}}"
fields:
- name: "name"
label: "NAME"
required: false
widget: "string"
default: ""
- name: "count"
label: "COUNT"
widget: "number"
value_type: "int"
required: true
default: 0