-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.schema.json
More file actions
292 lines (292 loc) · 10.6 KB
/
data.schema.json
File metadata and controls
292 lines (292 loc) · 10.6 KB
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "LinkStache Schema",
"format": "categories",
"type": "object",
"properties": {
"profile": {
"type": "object",
"title": "Profile Info",
"properties": {
"picture": {
"description": "URL/path to image for profile",
"$ref": "#/$defs/nonEmptyString"
},
"name": {
"description": "Display name for page",
"$ref": "#/$defs/nonEmptyString"
},
"bio": {
"description": "Short bio describing page",
"type": "string"
}
},
"required": [
"picture",
"name"
]
},
"blocks": {
"type": "array",
"title": "Blocks",
"description": "Content blocks such as headers, links, or text",
"format": "table",
"items": {
"anyOf": [
{
"type": "object",
"title": "Link",
"properties": {
"block": {
"enum": ["link"],
"$ref": "#/$defs/hidden"
},
"text": {
"description": "Text to show for link",
"$ref": "#/$defs/nonEmptyString"
},
"link": {
"description": "URL to link to",
"format": "url",
"$ref": "#/$defs/nonEmptyString"
},
"icon": {
"description": "Optional icon to show. Must be the class(es) for a Font Awesome icon",
"type": "string"
}
},
"required": [
"text",
"link"
],
"additionalProperties": false
},
{
"type": "object",
"title": "Section Header",
"properties": {
"block": {
"enum": ["header"],
"$ref": "#/$defs/hidden"
},
"text": {
"description": "Section header text",
"$ref": "#/$defs/nonEmptyString"
}
},
"additionalProperties": false
},
{
"type": "object",
"title": "Text",
"properties": {
"block": {
"enum": ["text"],
"$ref": "#/$defs/hidden"
},
"text": {
"description": "Text contents. Supports style tags",
"$ref": "#/$defs/nonEmptyString"
}
}
},
{
"type": "object",
"title": "Image",
"properties": {
"block": {
"enum": ["image"],
"$ref": "#/$defs/hidden"
},
"image": {
"description": "Image to show",
"format": "url",
"$ref": "#/$defs/nonEmptyString"
},
"link": {
"description": "Link to go to when image is clicked",
"format": "url",
"$ref": "#/$defs/nonEmptyString"
}
},
"required": ["image"]
},
{
"type": "object",
"title": "HTML",
"properties": {
"block": {
"enum": ["html"],
"$ref": "#/$defs/hidden"
},
"file": {
"description": "HTML file to load (preview does not update on file change)",
"$ref": "#/$defs/nonEmptyString"
}
}
}
],
"required": ["block"]
}
},
"iconLinks": {
"description": "Set of clickable icons",
"title": "Icon Links",
"format": "tabs",
"type": "array",
"items": {
"type": "object",
"title": "Icon",
"properties": {
"link": {
"title": "Link",
"description": "URL to link to",
"format": "url",
"$ref": "#/$defs/nonEmptyString"
},
"icon": {
"description": "Icon to show. Must be the class(es) for a Font Awesome icon",
"type": "string",
"title": "Icon"
}
},
"required": [
"icon",
"link"
]
},
"maxItems": 7
},
"style": {
"type": "object",
"title": "Style",
"properties": {
"circleProfile": {
"title": "Circular Profile Picture",
"description": "If true, profile picture will be a cirlce (as opposed to square)",
"type": "boolean",
"format": "checkbox"
},
"buttonCorners": {
"title": "Button Corners",
"description": "Style for link button corners",
"type": "string",
"enum": [
"round",
"square",
"roundedsquare"
],
"options": {
"enum_titles": [
"Round",
"Square",
"Rounded Square"
]
}
},
"outlinedButton": {
"title": "Outlined Buttons",
"description": "If set, button will be transparent with an outline. False fills the button",
"type": "boolean",
"format": "checkbox"
},
"imageCorners": {
"title": "Image Corners",
"description": "Style for images in links section",
"type": "string",
"enum": [
"square",
"roundedsquare"
],
"options": {
"enum_titles": [
"Square",
"Rounded Square"
]
}
},
"font": {
"description": "The name of the font to use from Google Fonts",
"$ref": "#/$defs/nonEmptyString"
},
"gradientBg": {
"title": "Use Gradient Background",
"description": "If set uses gradient background instead of flat color",
"type": "boolean",
"format": "checkbox"
},
"bgColor": {
"title": "Background Color",
"description": "Color to use for background",
"type": "string",
"format": "color"
},
"bgColor2": {
"title": "Second Background Color",
"description": "Secondary color for gradient",
"type": "string",
"format": "color",
"$ref": "#/$defs/hidden"
},
"buttonColor": {
"title": "Button Color",
"description": "Color to use for text and button backgrounds",
"type": "string",
"format": "color"
},
"iconSize": {
"title": "Icon Size",
"description": "Size for icons",
"type": "string",
"enum": [
"lg",
"xl",
"2xl"
],
"options": {
"enum_titles": [
"Small",
"Medium",
"Large"
]
}
},
"iconLinksTop": {
"type": "boolean",
"description": "Whether icon links should be above or below other links",
"title": "Icon Links Position",
"options": {
"enum_titles": [
"Top",
"Bottom"
]
}
}
},
"required": [
"circleProfile",
"buttonCorners",
"outlinedButton",
"imageCorners",
"font",
"gradientBg",
"bgColor",
"buttonColor",
"iconSize",
"iconLinksTop"
]
}
},
"additionalProperties": false,
"$defs": {
"nonEmptyString": {
"type": "string",
"minLength": 1
},
"hidden": {
"options": {
"hidden": true
}
}
}
}