-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.schema.json
431 lines (431 loc) · 12.6 KB
/
config.schema.json
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
{
"$anchor": "config",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"_type": {
"type": "string",
"title": "Type",
"default": "config"
},
"_extensions": {
"type": "object",
"title": "Extensions",
"default": {}
},
"_enabledPlugins": {
"type": "array",
"title": "Enabled plugins",
"default": []
},
"_theme": {
"type": "string",
"title": "Theme",
"default": "adapt-contrib-vanilla"
},
"_menu": {
"type": "string",
"title": "Menu",
"default": "adapt-contrib-boxMenu"
},
"_courseId": {
"type": "string",
"isObjectId": true,
"title": "Course id"
},
"_completionCriteria": {
"type": "object",
"title": "Completion criteria",
"default": {},
"properties": {
"_requireContentCompleted": {
"type": "boolean",
"title": "Require all course content to be completed",
"default": true
},
"_requireAssessmentCompleted": {
"type": "boolean",
"title": "Require all assessments to be completed",
"default": false
},
"_submitOnEveryAssessmentAttempt": {
"type": "boolean",
"title": "Submit completion on every assessment attempt",
"description": "If enabled and the course completion criteria is met, the completion status will be reported every time the assessment is completed (regardless of whether the user passes or fails)",
"default": false
},
"_shouldSubmitScore": {
"type": "boolean",
"title": "Submit score to LMS",
"description": "If enabled, the score attained in any assessment attempt will be reported (regardless of whether the user passes or fails)",
"default": false
}
}
},
"_defaultLanguage": {
"type": "string",
"title": "Default language code",
"default": "en"
},
"_defaultDirection": {
"type": "string",
"title": "Default text direction",
"default": "ltr",
"enum": [
"ltr",
"rtl"
],
"_backboneForms": "Select"
},
"_accessibility": {
"type": "object",
"title": "Accessibility",
"default": {},
"properties": {
"_isEnabled": {
"type": "boolean",
"title": "Enable accessibility support",
"default": true
},
"_isSkipNavigationEnabled": {
"type": "boolean",
"title": "Add link to skip navigation",
"description": "Adds a link to the start of the page to allow assistive technology users to skip over the navigation and straight into to the page content",
"default": true
},
"_ariaLevels": {
"type": "object",
"title": "Default ARIA levels",
"description": "Defines what value to assign to the aria-level attribute for the various elements of Adapt",
"default": {},
"properties": {
"_menu": {
"type": "string",
"title": "Menu",
"default": "1"
},
"_menuGroup": {
"type": "string",
"title": "Menu group",
"default": "@menu+1"
},
"_menuItem": {
"type": "string",
"title": "Menu item",
"description": "This will need to be changed to 3 if menu groups are being used and A11Y support is required",
"default": "@menu+1"
},
"_page": {
"type": "string",
"title": "Page",
"default": "1"
},
"_article": {
"type": "string",
"title": "Article",
"default": "@page+1"
},
"_block": {
"type": "string",
"title": "Block",
"default": "@article+1"
},
"_component": {
"type": "string",
"title": "Component",
"default": "@block+1"
},
"_componentItem": {
"type": "string",
"title": "Component item",
"default": "@component+1"
},
"_notify": {
"type": "string",
"title": "Notify popup title",
"default": "1"
}
}
},
"_options": {
"type": "object",
"title": "Advanced options",
"description": "Optional object that can be used to customize the accessibility behaviour",
"default": {},
"_backboneForms": {
"type": "CodeEditor",
"mode": "json"
}
}
}
},
"_fixes": {
"type": "object",
"title": "Miscellaneous fixes",
"description": "Optional object that can be used to customize the application of fixes",
"default": {
"_imgLazyLoad": true
},
"_backboneForms": {
"type": "CodeEditor",
"mode": "json"
}
},
"screenSize": {
"type": "object",
"title": "Device breakpoints",
"default": {},
"properties": {
"small": {
"type": "number",
"title": "Small",
"description": "Pixel width for the start of the small breakpoint, e.g. cellphones",
"default": 0
},
"medium": {
"type": "number",
"title": "Medium",
"description": "Pixel width for the start of the medium breakpoint, e.g. tablet devices",
"default": 720
},
"large": {
"type": "number",
"title": "Large",
"description": "Pixel width for the start of the large breakpoint, e.g. laptop/desktop computers",
"default": 960
},
"xlarge": {
"type": "number",
"title": "Extra Large",
"description": "Pixel width for the start of the extra large breakpoint, e.g. hd laptop/desktop computers",
"default": 1280
}
}
},
"_questionWeight": {
"type": "number",
"title": "Default question weight",
"default": 1,
"_adapt": {
"isSetting": true
}
},
"_drawer": {
"type": "object",
"title": "Drawer animation",
"default": {},
"properties": {
"_showEasing": {
"type": "string",
"title": "Opening easing function",
"default": "easeOutQuart",
"enum": [
"easeInSine",
"easeOutSine",
"easeInOutSine",
"easeInQuad",
"easeOutQuad",
"easeInOutQuad",
"easeInCubic",
"easeOutCubic",
"easeInOutCubic",
"easeInQuart",
"easeOutQuart",
"easeInOutQuart",
"easeInQuint",
"easeOutQuint",
"easeInOutQuint",
"easeInExpo",
"easeOutExpo",
"easeInOutExpo",
"easeInCirc",
"easeOutCirc",
"easeInOutCirc",
"easeInBack",
"easeOutBack",
"easeInOutBack",
"easeInElastic",
"easeOutElastic",
"easeInOutElastic",
"easeInBounce",
"easeOutBounce",
"easeInOutBounce"
],
"_backboneForms": "Select"
},
"_hideEasing": {
"type": "string",
"title": "Closing easing function",
"default": "easeInQuart",
"enum": [
"easeInSine",
"easeOutSine",
"easeInOutSine",
"easeInQuad",
"easeOutQuad",
"easeInOutQuad",
"easeInCubic",
"easeOutCubic",
"easeInOutCubic",
"easeInQuart",
"easeOutQuart",
"easeInOutQuart",
"easeInQuint",
"easeOutQuint",
"easeInOutQuint",
"easeInExpo",
"easeOutExpo",
"easeInOutExpo",
"easeInCirc",
"easeOutCirc",
"easeInOutCirc",
"easeInBack",
"easeOutBack",
"easeInOutBack",
"easeInElastic",
"easeOutElastic",
"easeInOutElastic",
"easeInBounce",
"easeOutBounce",
"easeInOutBounce"
],
"_backboneForms": "Select"
},
"_duration": {
"type": "number",
"title": "Duration",
"default": 400
},
"_position": {
"type": "string",
"title": "Position",
"default": "auto",
"enum": [
"auto",
"left",
"right"
]
},
"_iconClass": {
"type": "string",
"title": "Drawer icon class",
"description": "CSS class name to be applied to the drawer sidebar icon.",
"default": "icon-list"
}
},
"_adapt": {
"isSetting": false
}
},
"_generateSourcemap": {
"type": "boolean",
"title": "Generate source maps",
"description": "Allows the course JavaScript & CSS to be debugged via the browser's developer tools",
"default": false,
"_adapt": {
"isSetting": true
}
},
"_forceRouteLocking": {
"type": "boolean",
"title": "Enforce route locking",
"description": "If locking is enabled, this setting prevents navigating to locked routes",
"default": true,
"_adapt": {
"isSetting": true
}
},
"_disableAnimationFor": {
"type": "array",
"title": "Disable animation on selectors",
"description": "Allows you to disable some animations (e.g. the drawer close animation) on platform(s) where they are not performing well, using CSS selectors to target the relevant platform(s) via the classes on the HTML element",
"default": [],
"_adapt": {
"isSetting": true
},
"_backboneForms": "List"
},
"_logging": {
"type": "object",
"title": "Logging",
"default": {},
"properties": {
"_isEnabled": {
"type": "boolean",
"title": "Enable logging",
"default": true
},
"_level": {
"type": "string",
"title": "Log level",
"default": "info",
"enum": [
"debug",
"info",
"warn",
"error",
"fatal"
],
"_backboneForms": "Select"
},
"_console": {
"type": "boolean",
"title": "Log to browser console",
"default": true
},
"_warnFirstOnly": {
"type": "boolean",
"title": "Suppress subsequent deprecation warnings",
"default": true
}
}
},
"_scrollingContainer": {
"type": "object",
"title": "Inline frame support",
"default": {},
"properties": {
"_isEnabled": {
"type": "boolean",
"title": "Enable fixes",
"default": true
},
"_limitToSelector": {
"type": "string",
"title": "Limit to selector",
"description": "CSS selector to match against the HTML element when determining whether this should be active or not",
"default": ""
}
}
},
"themeSettings": {
"type": "object",
"title": "Theme settings",
"default": {}
},
"_themePreset": {
"type": "string",
"isObjectId": true,
"title": "Theme preset"
},
"build": {
"type": "object",
"title": "Support for setting the course build type",
"properties" : {
"strictMode": {
"type": "boolean",
"default": true,
"inputType": "Checkbox",
"title": "Use strict mode?",
"description": "Strict mode improves performance by tightly restricting the declaration of variables inside code blocks and closures which may cause some older code to stop working. Please leave this at true unless you are experiencing issue with old plugins or third party libraries."
},
"targets": {
"type": "string",
"title": "Supported browsers override",
"description": "Set the browsers that are supported. Overwrites the framework defaults if not empty. Current defaults are: 'last 2 chrome versions, last 2 firefox versions, last 2 safari versions, last 2 edge versions, last 2 ios_saf versions, last 2 and_chr versions, firefox esr'",
"default": ""
}
}
}
}
}