forked from cgkineo/adapt-coverMenu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproperties.schema
320 lines (320 loc) · 12.1 KB
/
properties.schema
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/contentobject/model.schema",
"properties": {
"pluginLocations": {
"type": "object",
"required": true,
"properties": {
"config": {
"type": "object"
},
"course": {
"type": "object"
},
"contentobject": {
"type": "object",
"properties": {
"_coverMenuAudio": {
"type": "object",
"required": false,
"properties": {
"_introScreen": {
"type":"boolean",
"required": false,
"title": "Intro Screen Is Enabled",
"inputType": "Checkbox",
"validators": [],
"help": "Turns the menu intro screen on and off."
},
"linkStartText": {
"type": "string",
"required": false,
"default": "Start",
"title": "Intro Start button text",
"inputType": "Text",
"validators": [],
"translatable": true
},
"_introItemGraphic": {
"type": "object",
"required": false,
"title": "Intro Indicator Graphic",
"properties": {
"alt": {
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Alternative text for this items image.",
"translatable": true
},
"src": {
"type": "string",
"required": true,
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Image for the menu intro."
},
"title": {
"type": "string",
"required": false,
"default": "",
"title": "Title",
"inputType": "Text",
"validators": [],
"translatable": true
}
}
},
"_backgroundGraphic": {
"type": "object",
"required": false,
"title": "Intro/Page Background Graphic",
"properties": {
"alt": {
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
"help": "Alternative text for this image.",
"translatable": true
},
"src": {
"type": "string",
"required": true,
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Background image for this page or intro screen."
},
"locked": {
"type": "string",
"required": true,
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Background image for this page when it is locked. This is not required for the intro screen."
}
}
},
"linkLockedText": {
"type": "string",
"required": false,
"default": "Locked",
"title": "Locked button link text",
"inputType": "Text",
"validators": [],
"translatable": true
},
"linkVisitedText": {
"type": "string",
"required": false,
"default": "Revisit",
"title": "Visited button link text",
"inputType": "Text",
"validators": [],
"translatable": true
},
"durationLabel": {
"type": "string",
"required": false,
"default": "Duration",
"title": "Duration text",
"inputType": "Text",
"validators": [],
"translatable": true
},
"_indicatorGraphic": {
"type": "object",
"required": false,
"title": "Page Indicator Graphic",
"help": "Select images to represent user progress for this page on the cover menu.",
"properties": {
"_isComplete": {
"type": "string",
"required": true,
"title": "Completed Graphic",
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Cover menu image for completed."
},
"_isVisited": {
"type": "string",
"required": true,
"title": "Visited Graphic",
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Cover menu image for visited."
},
"_isLocked": {
"type": "string",
"required": true,
"title": "Locked Graphic",
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Cover menu image for locked."
},
"_default": {
"type": "string",
"required": true,
"title": "Default Graphic",
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Cover menu image for default."
},
"_isPassed": {
"type": "string",
"required": true,
"title": "Passed Graphic",
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Cover menu image for passed."
},
"_isFailed": {
"type": "string",
"required": true,
"title": "Failed Graphic",
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Cover menu image for failed."
},
"_accessibilityEnabled": {
"type": "string",
"required": true,
"title": "Accesibility Enabled Graphic",
"default": "",
"inputType": "Asset:image",
"validators": [],
"help": "Cover menu image for accesibility enabled."
}
}
},
"_ariaLabels": {
"type": "object",
"required": false,
"properties": {
"menuItemPage": {
"type": "string",
"required": false,
"default": "",
"title": "Menu - Aria Label",
"inputType": "Text",
"validators": [],
"help": "Menu aria label for this page.",
"translatable": true
},
"menuViewButton": {
"type": "string",
"required": false,
"default": "",
"title": "Menu Button - Aria Label",
"inputType": "Text",
"validators": [],
"help": "Aria label for the menu link for this page.",
"translatable": true
},
"menuLockedText": {
"type": "string",
"required": false,
"default": "",
"title": "Menu Button Locked - Aria Label",
"inputType": "Text",
"validators": [],
"help": "Aria label for the menu link if the page is locked.",
"translatable": true
},
"menuVisitedText": {
"type": "string",
"required": false,
"default": "",
"title": "Menu Button Visited - Aria Label",
"inputType": "Text",
"validators": [],
"help": "Aria label for the menu link if the page has been visited.",
"translatable": true
}
}
},
"_audio": {
"type": "object",
"required": false,
"title": "Audio",
"properties": {
"_isEnabled": {
"type":"boolean",
"required": true,
"title": "Is Enabled",
"inputType": "Checkbox",
"validators": [],
"help": "Controls whether audio is enabled or disabled."
},
"_showControls": {
"type":"boolean",
"required": true,
"title": "Show Controls",
"inputType": "Checkbox",
"validators": [],
"help": "Controls whether the play/pause audio button is displayed."
},
"_autoplay": {
"type":"boolean",
"required": false,
"title": "Autoplay Is Enabled",
"inputType": "Checkbox",
"validators": [],
"help": "Controls whether the audio should autoplay."
},
"_channel": {
"type":"number",
"required": true,
"default": 0,
"title": "Channel Number",
"inputType": "Number",
"validators": ["required", "number"],
"help": "Channels represent the number of items defined in the course.json settings, by default there are 0, 1 and 2 available (3 _audioItems in the array)."
},
"_media": {
"type":"object",
"required": true,
"title": "Audio Asset",
"properties":{
"src": {
"type":"string",
"required": true,
"title": "Src",
"inputType": "Asset:audio",
"validators": []
}
}
}
}
}
}
}
}
},
"article": {
"type":"object"
},
"block": {
"type":"object"
},
"component": {
"type":"object"
}
}
}
}
}