summaryrefslogtreecommitdiff
path: root/ext/js
Commit message (Collapse)AuthorAge
* Update CSS rules for images (#1777)toasted-nutbread2021-06-28
|
* Fix incorrect aspect ratio of structured-content images (#1776)toasted-nutbread2021-06-28
|
* Add CssStyleApplier class (#1773)toasted-nutbread2021-06-27
|
* Template renderer init update (#1772)toasted-nutbread2021-06-27
| | | | | * Update TemplateRendererFrameApi to post a 'ready' message * Wait for 'ready' message rather than using 'load' event
* Update structured content CSS styles (#1770)toasted-nutbread2021-06-27
|
* Template patcher updates (#1766)toasted-nutbread2021-06-26
| | | | | * Don't append anything if the additions is empty * Simplify update list
* Template renderer internal data update (#1764)toasted-nutbread2021-06-26
| | | | | | | * Add cleanup callbacks * Move requirements * Add custom data
* Template rendering updates (#1762)toasted-nutbread2021-06-26
| | | | | * Remove unused function * Update template rendering return value
* Structured content generation updates (#1760)toasted-nutbread2021-06-26
| | | | | | | * Simplify _createElement, fix misuse of classList * Don't use templates to generate image content * Omit templates
* Fix missing error logging when logging debug info (#1758)toasted-nutbread2021-06-26
|
* Move structured-content generation code into a separate file (#1757)toasted-nutbread2021-06-26
|
* Improve what info is logged when debugging a definition (#1756)toasted-nutbread2021-06-26
|
* Translator sorting updates (#1755)toasted-nutbread2021-06-26
| | | | | | | * Update when definition sorting takes place * Update test data * Change order of sorting
* Translator data format updates (#1754)toasted-nutbread2021-06-26
| | | | | | | | | | | | | | | * Add {dictionaryIndex, dictionaryPriority} to definitions * Add score to definitions * Add id to definition * Use definition id instead of ids array * Remove ids array * Update docs * Update test data
* Structured content updates (#1753)toasted-nutbread2021-06-25
| | | | | | | | | | | * Update schema * Update content generation * Update styles * Update test data * Update style names
* Fix search input focus not working properly (#1752)toasted-nutbread2021-06-25
|
* Fix handling of document.body as <frameset> (#1748)toasted-nutbread2021-06-24
|
* Fix an incorrect return value of the EventDispatcher.off function (#1747)toasted-nutbread2021-06-24
|
* Structured content updates (#1733)toasted-nutbread2021-06-06
| | | | | | | | | | | | | | | | | | | | | * Add support for imageRendering * Make crisp-edges appearance on Firefox more similar to Chrome * Refactor * Add background option * Move data-image-rendering attribute * Restructure * Organize * Add support for appearance * Update test dictionary * Update tests
* Improve secondary definitions (#1731)toasted-nutbread2021-06-05
| | | | | * Improve secondary search definitions * Simplify
* Translator id updates (#1730)toasted-nutbread2021-06-05
| | | | | | | | | | | * Allow unsequenced definitions to be added to multiple groups * Update translator data to store multiple IDs * Update Anki note data * Update test data * Update docs
* Add support for definitionless main dictionary (#1729)toasted-nutbread2021-06-05
|
* Simplify createAudio function (#1728)toasted-nutbread2021-06-04
|
* Fix _getMatchURL missing search and not sanitizing wildcards (#1727)toasted-nutbread2021-06-03
|
* Primary audio fixes (#1719)toasted-nutbread2021-05-30
| | | | | | | | | * Fix case when subIndex is not assigned * Fix incorrect assignment of primary card audio * Improve opacity style * Improve styles for :focus-visible
* Improve multiple audio sources (#1718)toasted-nutbread2021-05-30
| | | | | | | | | | | | | * Add url/voice options to audio sources * Add help for TTS * Remove old settings * Update tests * Update use of audio source URL * Improve labels for sources with the same type
* Refactor display audio options (#1717)toasted-nutbread2021-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update how options are updated and stored in DisplayAudio * Add source list * Improve menus for custom json * Clear cache after options update * Move function * Update public API * Simplify playing audio from a specific source * Simplify audio list * Refactor audio source usage * Refactoring * Refactor argument names * Fix incorrect source usage * Remove unused * Remove return value * Simplify details * Simplify Anki card audio details * Update the data that is passed to AudioDownloader * Simplify schema handling * Remove unnecessary details
* Refactor AudioController (#1715)toasted-nutbread2021-05-27
| | | | | * Remove unused checks/code * Refactor audio controller into AudioController and AudioSourceEntry
* Fix set/deleteProperty not allowing array splicing (#1713)toasted-nutbread2021-05-26
| | | | | * Fix set/deleteProperty not allowing array splicing * Update tests
* Add some help popups for custom audio sources (#1712)toasted-nutbread2021-05-26
|
* Refactor json audio source (#1711)toasted-nutbread2021-05-26
| | | | | | | | | * Move sources to the end of audio options object * Add custom-json audio source type * Add support for downloading custom-json * Remove customSourceType
* Fix json schema array properties (#1709)toasted-nutbread2021-05-24
| | | | | * Fix proxy array properties being handled incorrectly * Add tests to check array properties
* Json schema ref support (#1708)toasted-nutbread2021-05-23
| | | | | * Add basic support for JSON schema $ref * Add tests
* Fix popup preview disappearing after changing a setting (#1707)toasted-nutbread2021-05-23
|
* Clean up settings v1 code from PopupPreviewController (#1706)toasted-nutbread2021-05-23
| | | | | * Clean up settings v1 code from PopupPreviewController * Remove unused global
* Fix incorrect selector causing invalid headword index to be used (#1705)toasted-nutbread2021-05-23
|
* Improve support for sandboxed iframes (#1704)toasted-nutbread2021-05-23
| | | | | | | * Add more tests * Improve handling of errors from setupFrame * Passively handle errors when contentDocument is null
* Rename internal JSON schema functions to match new return type (#1699)toasted-nutbread2021-05-22
|
* Json schema improvements (#1698)toasted-nutbread2021-05-22
| | | | | | | | | | | * Simplify schema multi-push/pop * Reverse order of schema path * Reverse order of value path * Simplify schema path structure * Rename for better clarity
* Json schema validation improvements (#1697)toasted-nutbread2021-05-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Create new JsonSchema class * Add proxy handler * Update tests * Update validation scripts * Update backend * Update audio downloader * Update options util * Update dictionary importer * Update json schema file reference * Remove old json-schema.js * Rename new json-schema.js * Update file names * Rename class
* Update schema tests (#1693)toasted-nutbread2021-05-22
| | | | | | | | | * Update helper functions * Rename file * Update deleteProperty * Add some basic proxy tests
* Structured content image size units (#1692)toasted-nutbread2021-05-20
| | | | | * Add support for sizeUnits on image content * Update test data
* Selection clear improvements (#1690)toasted-nutbread2021-05-19
| | | | | | | | | * Update selection clear process * Clean up old clearSelection API * Update clear order * Add clear event handling
* Add support for definitions with structured content (#1689)toasted-nutbread2021-05-19
| | | | | | | | | | | * Add structured content to schema * Add support for generating custom content * Update importer * Update test data * Add verticalAlign property
* Dictionary image display refactoring (#1687)toasted-nutbread2021-05-18
| | | | | | | | | | | | | | | * Generalize image definition generation * Enable optional aspect ratio * Move styles * Update styles * Add more options for collapsing images * Add image options for collapsing * Improve layout for images that are collapsed
* Expose search query to anki template renderer (#1686)toasted-nutbread2021-05-17
| | | | | | | | | | | * Expose query and fullQuery to Anki context * Add {search-query} marker * Update test data * Update tests * Wrap search query in multiLine
* Fix repeated dictionary image importing (#1685)toasted-nutbread2021-05-16
|
* Revert "Add support for custom text type generation (#1683)" (#1684)toasted-nutbread2021-05-16
| | | This reverts commit 39cabc4db61047923712edcca6bedfd001d5d151.
* Add support for custom text type generation (#1683)toasted-nutbread2021-05-16
|
* Sentence termination character mode (#1682)toasted-nutbread2021-05-16
| | | | | | | | | | | * Change enableTerminationCharacters to terminationCharacterMode * Update settings * Update sentence extraction * Update tests * Add tests