-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Added schemas for AAT support (fixes #12)
- Loading branch information
Showing
3 changed files
with
176 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"$anchor": "definitions-course", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"$patch": { | ||
"source": { | ||
"$ref": "course" | ||
}, | ||
"with": { | ||
"properties": { | ||
"_definitions": { | ||
"type": "object", | ||
"title": "Definitions", | ||
"default": {}, | ||
"required": [ | ||
"title" | ||
], | ||
"properties": { | ||
"_isEnabled": { | ||
"type": "boolean", | ||
"title": "Add definition links to course words", | ||
"description": "Controls whether the Definitions extension is enabled or disabled.", | ||
"default": false | ||
}, | ||
"title": { | ||
"type": "string", | ||
"title": "Title", | ||
"default": "Definition", | ||
"description": "The title for the pop up which displays when a definitions link is selected.", | ||
"_adapt": { | ||
"translatable": true | ||
} | ||
}, | ||
"body": { | ||
"type": "string", | ||
"title": "Body", | ||
"default": "{{{word}}}: {{{definition}}}", | ||
"description": "The body content for the pop up which displays when a definitions link is selected.", | ||
"_adapt": { | ||
"translatable": true | ||
} | ||
}, | ||
"confirmText": { | ||
"type": "string", | ||
"title": "Confirm Text", | ||
"default": "Close", | ||
"description": "Show a close button at the bottom of the popup rather than a cross at the top right.", | ||
"_adapt": { | ||
"translatable": true | ||
} | ||
}, | ||
"_items": { | ||
"type": "array", | ||
"title": "Items", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"_words": { | ||
"type": "array", | ||
"title": "Words", | ||
"description": "The collection of word(s) to attach the associated definition to.", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"definition": { | ||
"type": "string", | ||
"title": "Definition", | ||
"default": "", | ||
"description": "The definition for the associated word(s).", | ||
"_adapt": { | ||
"translatable": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |