aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display
Commit message (Collapse)AuthorAge
* Fix incorrect resultOutputMode (#1804)toasted-nutbread2021-07-06
|
* Template renderer media updates (#1802)toasted-nutbread2021-07-06
| | | | | | | | | | | | | | | | | * Add TemplateRendererMediaProvider to abstract media-related functionality * Update representation of injected media * Update templates * Update upgrade file * Update tests * Update test data * Force media to be an object * Update test data
* Pass requirements to note generation (#1800)toasted-nutbread2021-07-05
| | | | | | | * Update structure * Pass requirements to _createNote * Show an error for requirements that weren't fulfilled
* DisplayAnki note requirements (#1799)toasted-nutbread2021-07-05
| | | | | * Update how errors are collected from _formatField * Expose requirements
* Store anki note details (#1798)toasted-nutbread2021-07-05
| | | | | | | | | | | | | | | * Update error handling of _areDictionaryEntriesAddable * Store note details * Remove promise after use * Rename function * Clear stored details * Rename function * Rename function
* Refactor DisplayAnki.setupEntriesComplete params and implementation (#1794)toasted-nutbread2021-07-04
|
* Update the note context object generation process to ensure consistency (#1792)toasted-nutbread2021-07-03
|
* DisplayAnki (#1791)toasted-nutbread2021-07-03
| | | | | | | | | | | * Remove anki functionality from display * Rename function * Display API updates * Use DisplayAnki * TODO
* Refactor createNote (#1789)toasted-nutbread2021-07-03
| | | | | * Update createNote to return a wrapper object * Update how createNote creates errors
* Make Display.authenticateMessageData private (#1780)toasted-nutbread2021-06-29
|
* Update CSS rules for images (#1777)toasted-nutbread2021-06-28
|
* Fix incorrect aspect ratio of structured-content images (#1776)toasted-nutbread2021-06-28
|
* Update structured content CSS styles (#1770)toasted-nutbread2021-06-27
|
* 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
|
* 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
|
* 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
* 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 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 incorrect selector causing invalid headword index to be used (#1705)toasted-nutbread2021-05-23
|
* 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
* 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
|
* Popup action search (#1678)toasted-nutbread2021-05-15
| | | | | | | | | * Set up search page in the action popup * Fix a style causing incorrect overflow * Fix error when trying to take a screenshot * Fix popup size on Firefox
* Fix incorrect _updateClipboardMonitorEnabled invocation (#1677)toasted-nutbread2021-05-15
|
* Add SearchPersistentStateController (#1676)toasted-nutbread2021-05-15
|
* Display fixes (#1648)toasted-nutbread2021-05-01
| | | | | | | * Fix incorrect tabId/frameId being used * Only enable nested popups if the tabId is valid * Remove unused APIs
* Flags profile conditions (#1647)toasted-nutbread2021-05-01
| | | | | | | | | | | | | * Generalize modifier keys * Optimize bindings * Add support for flags * Add clipboard flag * Update tests * Add tests
* Update search tags to always be displayed in a consistent manner (#1645)toasted-nutbread2021-05-01
|
* Remove the mouseover tags that are shown in merge mode (#1644)toasted-nutbread2021-05-01
|
* Show any custom tags on words that have anki cards created (#1628)soriac2021-04-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Proof-of-concept for showing card tags (#1626) * Resolved most PR comments: - Added a snackbar notification when clicking tag button - Replaced magnifying glass icon with new tag icon - Button now contains a span w/icon, to use text color - Removed unnecessary attributes from button - Backend now returns full noteInfos object - Frontend now handles filtering tags * Add options to show/hide tag button & filter tags * Do not show tags button if, after filtering, we have zero tags. * Change tags option to enums, optimize tags intersection check & fix code style. * Update options-util.js to include new tag options. * Fix wording on new tag setting. * Add CSS to remove hidden buttons from the display layout. * getAnkiNoteInfo extra parameter for additional info. * Add new tag option to tests. * Remove unnecessary changes related to anki tags option. * Code style fixes.
* Add pitch categories template helper (#1636)toasted-nutbread2021-04-28
| | | | | | | * Move utility function * Expose dictionary entry as a hidden property for internal use * Add pitchCategories helper
* Improve kifuku detection to not include suru nouns (#1621)toasted-nutbread2021-04-26
|
* Replace furigana with reading (#1614)toasted-nutbread2021-04-13
| | | | | * Use "reading" instead of "furigana" for reading distribution * Update tests
* More terminology updates (#1600)toasted-nutbread2021-04-08
| | | | | | | | | | | | | | | | | | | * Update terminology * Update display * Rename expression-list to headword-list * Rename expression-current-indicator * Rename expression classes * Update dictionary entry container * Rename glossary => gloss * Rename heading * Rename gloss classes to gloss-content
* Fix autofocus sometimes not working on the search page (#1597)toasted-nutbread2021-04-07
|
* Update dictionary entry terminology (#1592)toasted-nutbread2021-04-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update terminology * Update terminology in display.js * Update terminology in display-audio.js * Update terminology in text-scanner.js * Update terminology in backend.js * Update terminology in mecab.js * Update terminology in audio-downloader.js * Update terminology in translator-vm.js * Update terminology in dictionary-data-util.js * Update terminology in dictionary-database.js * Update terminology in japanese-util.js * Change/upgrade {expression} to {term} * Update terminology in test-japanese.js * Update terminology in test-database.js * Update terminology in anki-templates-controller.js * Update terminology in anki-note-builder.js * Update terminology in backend.js * Update terminology in text-scanner.js * Update terminology in display.js * Update terminology in display.js
* Update logged data name to dictionaryEntry (#1590)toasted-nutbread2021-04-03
|
* Update dictionary settings structure (#1587)toasted-nutbread2021-04-03
| | | | | | | * Update dictionary settings structure to use an array instead of an object * Update ensureDictionarySettings implementation * Remove some usage of ObjectPropertyAccessor
* Refactor template rendering (#1583)toasted-nutbread2021-04-02
| | | | | | | | | | | | | | | | | * Update _errorToJson to _serializeError * Remove async * Refactor render * Simplify _getModifiedData * Rename data => commonData * Rename templates => template for consistency * Improve errors check * Update tests
* Remove debug statements (#1582)toasted-nutbread2021-04-01
|