summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAge
* Display fixes (#1560)toasted-nutbread2021-03-26
| | | | | * Fix _getDefinitionDetailsForNote * Fix _getExpressionAndReading
* Add join and concat utility functions for template rendering (#1559)toasted-nutbread2021-03-26
|
* Remove debug log (#1558)toasted-nutbread2021-03-25
|
* Fix incorrect sorting (#1557)toasted-nutbread2021-03-25
| | | | | | | * Sort by the maximum length of transformedText instead of deinflectedText * Update docs * Update tests
* Fix tag disambiguation (#1556)toasted-nutbread2021-03-25
| | | | | * Update display generator to use new data format for tag disambiguation * Add separator for multiple disambiguations
* Refactor Translator and dictionary entry format (#1553)toasted-nutbread2021-03-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Update test data * Move translator.js * Create new version of Translator * Update Backend * Update DictionaryDataUtil * Update DisplayGenerator * Create AnkiNoteDataCreator * Replace AnkiNoteData with AnkiNoteDataCreator * Update tests * Remove AnkiNoteData * Update test data * Remove translator-old.js * Add TypeScript interface definitions for the new translator data format
* Enable audio menu shift click (#1555)toasted-nutbread2021-03-25
| | | | | | | | | | | | | | | | | | | | | * Expose modifier keys * Add updateMenuItems * Don't close menu if shift key is held * Add _createMenuItems * Simplification * Maintain a list of open popup menus * Expose expression/reading * Reuse existing items * Update menu after a cache update * Update menu position
* Fix case where {tags} returns an error (#1549)toasted-nutbread2021-03-23
|
* Update display results style (#1536)toasted-nutbread2021-03-16
| | | | | * Expose resultOutputMode * Update display styles
* Fix furigana distribution when source/expression kana differs (#1532)toasted-nutbread2021-03-15
| | | | | * Fix furigana distribution when source/expression kana differs * Add an additional test
* Fix error for kanji note data (#1530)toasted-nutbread2021-03-15
|
* Fix search tab not focusing correctly (#1529)toasted-nutbread2021-03-15
|
* Remove old settings page (#1524)toasted-nutbread2021-03-14
| | | | | * Remove old settings page * Remove spinner.gif
* Dictionary database improvements (#1527)toasted-nutbread2021-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update formatting * Add _findMultiBulk * Update implementation of findTermsBySequenceBulk * Update tests * Generalize query creation * Remove _findGenericBulk * Reduce function creation * Add more bindings * Simplify findTermsExactBulk implementation * Update var names * Update _findMultiBulk to support multiple index queries * Update findTermsBulk * Update getMedia implementation * Pass data arg to getAll and findFirst to avoid having multiple closures
* Fix dictionary image support (#1526)toasted-nutbread2021-03-14
| | | | | | | | | | | | | * Fix content security policy for images * Add createBlobFromBase64Content to MediaUtil * Update MediaLoader to use MediaUtil * Use blob URLs when importing dictionaries * Update VM's URL to support createObjectURL and revokeObjectURL * Fix test
* Make MediaUtil a static class (#1525)toasted-nutbread2021-03-14
|
* Add css width var (#1523)toasted-nutbread2021-03-13
| | | | | * Rename --main-content-size to --content-width * Add --content-width-search variable
* Remove TODO comment from settings.css (#1522)toasted-nutbread2021-03-13
|
* Simplify _findFirstBulk (#1521)toasted-nutbread2021-03-13
|
* Database API updates (#1520)toasted-nutbread2021-03-13
| | | | | * Add Database.findFirst * Add DictionaryDatabase.findTagMetaBulk
* Fix sorting of non-top-level definitions (#1516)toasted-nutbread2021-03-10
|
* Fix tag height (#1515)toasted-nutbread2021-03-10
|
* Fix incorrect furigana distribution (#1514)toasted-nutbread2021-03-10
| | | | | * Improve distributeFuriganaInflected implementation * Update tests
* Fix permissions changes not being supported on some browsers (#1513)toasted-nutbread2021-03-10
|
* Fix previousStyles being recreated for every transparent element (#1512)toasted-nutbread2021-03-10
|
* Fix text selection during scanning (#1508)toasted-nutbread2021-03-09
| | | | | | | | | * Move function * Add _onSearchClick function * Move _onSearchClick after event prevention * Prevent search if selection is changed before a click occurs
* Clean up translator (#1505)toasted-nutbread2021-03-08
| | | | | | | | | | | | | | | * Remove unused: _removeUsedDefinitions * Remove unused: _scoreToTermFrequency * Remove unused: _getTermTagsScoreSum * Add RegexUtil * Update Translator to use RegexUtil * Update sw.js * Update tests
* Refactor term frequency data (#1503)toasted-nutbread2021-03-07
| | | | | | | | | | | * Add getTermFrequency * Update DisplayGenerator to use getTermFrequency * Remove termFrequency from Translator data * Backwards compatibility * Update tests
* Refactor furigana segment data (#1502)toasted-nutbread2021-03-07
| | | | | | | | | | | * Remove redundant language assignment * Segment furigana from DisplayGenerator * Remove furiganaSegments from translator data * Add backwards compatibility for furiganaSegments * Update tests
* Deinflector refactor (#1501)toasted-nutbread2021-03-07
| | | | | | | | | * Make Deinflector._ruleTypes private * Add createDeinflection helper * Remove unnecessary field assignments from Deinflector Move them to Translator instead
* Translator data format improvements (#1500)toasted-nutbread2021-03-07
| | | | | * Update _createTermDetailsList usage and docs * Update source of expression/reading/furiganaSegments
* Update audio downloader (#1499)toasted-nutbread2021-03-06
| | | | | * Update _getInfoJpod101's empty reading check * Use URLSearchParams instead of a string
* Improve empty reading handling (#1497)toasted-nutbread2021-03-06
| | | | | | | * Handle empty readings earlier in the definition creation process * Remove empty reading check * Remove special handling of empty readings
* Fix furigana distribution when reading starts with expression, but has ↵toasted-nutbread2021-03-06
| | | | remainder characters (#1496)
* Add CSS variable to control tag height (#1495)toasted-nutbread2021-03-06
|
* Separate display resizer (#1494)toasted-nutbread2021-03-06
| | | | | | | | | | | * Make invokeContentOrigin public * Move display resizer functionality into a new class: DisplayResizer * Simplify field names * Use parent frame instead of content origin * Remove unused
* Fix multiline copying (#1493)toasted-nutbread2021-03-06
| | | | | * Change order * Update multiline text assignment
* Use dictionary priority later in the definition sorting algorithm (#1492)toasted-nutbread2021-03-06
|
* Split dictionary order and index sorting (#1491)toasted-nutbread2021-03-06
| | | | | | | | | * Refactor expression comparison * Rename function * Add dictionary index sorting * Update test data
* Add workaround for a frequency disambiguation layout issue on Firefox (#1489)toasted-nutbread2021-03-05
|
* Fix missing meta when reading is empty (#1486)toasted-nutbread2021-03-05
|
* Fix text being overwritten when generating the query parser content (#1483)toasted-nutbread2021-03-03
|
* Fix missing required options (#1482)toasted-nutbread2021-03-02
|
* Add clickable web browser settings links (#1481)toasted-nutbread2021-03-02
|
* Request persistent storage on Firefox (#1480)toasted-nutbread2021-03-02
|
* Add a toggle for the persistent storage option on the permissions page (#1479)toasted-nutbread2021-03-02
|
* Persistent storage controller (#1478)toasted-nutbread2021-03-02
| | | | | | | | | * Add PersistentStorageController * Update DictionaryController * Update DictionaryImportController * Update when storage stats are updated
* Fix enter key causing duplicate text when typing using an IME (#1477)toasted-nutbread2021-03-02
|
* Remove zero-width space (#1475)toasted-nutbread2021-03-01
|
* Refactor translator merged mode (#1474)toasted-nutbread2021-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove sourceDefinitions * Add id * Remove related definitions from unsequencedDefinitions * Add separate _addRelatedDefinitions function * Add secondary definitions * Update how secondary definitions are added * Update expression/reading source * Move _mergeByGlossary body * Refactor _createTermDetailsListFromTermInfoMap * Move _addUniqueTermInfos body * Rename function * Organize * Simplify duplicate check * Rename relatedDefinitionIds to definitionIds * Refactor secondary definition adding * Early exit * Add matching unsequencedDefinitions to secondaryDefinitions * Clean * Fix incorrect condition * Move _addSecondaryDefinitions call * Add comments