aboutsummaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAge
* Move deinflection reasons setup to backend (#880)toasted-nutbread2020-10-04
| | | | | * Move deinflection reasons setup to backend * Remove async
* Translator options refactor (#879)toasted-nutbread2020-10-04
| | | | | | | | | | | | | * Refactor internal options for findTerms to not use the settings object * Move findTerms/findKanji options creation * Deconstruct used options values to variables before any await calls * Rename findTermsOptions to just options * Add documentation comments * Add type information about definitions
* Translator refactoring (#878)toasted-nutbread2020-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add helper function _getSecondarySearchDictionaryMap * Use spreads instead of concat * Create helper function for assigning disambiguation info * Add _getTermTagsScoreSum helper * Rename variables * Move assignment of definition details * Convert databaseDefinitions to standard definitions * Move creation of definitions * Always pass definitionsByGlossary directly to _mergeByGlossary * Refactor how used definitions are tracked * Change _mergeByGlossary parameters * Simplify _mergeByGlossary * Generate definition structure at the end of the function * Add reusable function to clone a tag * Restructure merged sub-definition creation * Move setup of totalExpressionSet/totalReadingSet * Track all definitions with matching glossary * Move creation of definitionTags * Update score calculation for multiple definitions * Disambiguate function name * Rename variables * Add helper function _createMergedGlossaryTermDefinition * Remove rarely used check for secondary search results Unclear what the purpose was since it was almost never used * Update data structure * Rename function/variable * Add helper functions _createMergedTermDefinition * Assign expressionDetails to variable * Add rawSource to grouped definitions * Use shared function for creating unused definition entries * Add helper function _createMapKey * Refactor _createExpressionDetails * Change argument order * Add _getTagNamesWithCategory helper * Optimize _compressDefinitionTags * Add _createGroupedTermDefinition helper * Add type information * Use consistent order for term definition fields, add comments for omitted fields * Remove unused index field * Add helper function _createKanjiDefinition * Update types * Add frequencies/pitches arrays * Update terms array setup * Simplify for loop * Remove redundant property assignment * Simplify how deinflections with no definitions are ignored * Ensure duplicates are removed * Rename variable * Add comments about duplicate data * Refactor variable/parameter names * Move functions * Rename functions * Rename variable * Add dictionaryPriority field * Simplify priority comparison * Rename argument * Optimize comparison function when dictionary priority is not needed * Add length check * Remove unused parameter * Rename variables/parameters * Rename dictionaries to enabledDictionaryMap * Store compactTags/mainDictionary options to variables * Refactor _getSearchableText
* Dictionary data structure improvements (#877)toasted-nutbread2020-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify object structure of deinflections * Modify existing array when removing duplicates * Update _sortDefinitions to not return a value * Use explicit argument value * Use a Collator for string comparisons * Simplify order comparison * Improve tag creation and sanitization * Switch .map to a for loop, skip null meta * Add _createKanjiStat * Move _sortDefinitions definition * Fix kanji stat sorting * Remove return value from _sortTags * Add _sortKanji * Add fast exits for sorting * Add _sortDefinitionsByIndex * Combine sort function * Improve creation of kanji definition data * Use "databaseDefinitions" instead of "definitions" to disambiguate * Simplify * Simplify further * Simplify max length calculation * More destructuring * Use databaseDefinitions variable name * Move _mergeBySequence body into _getSequencedDefinitions * Use databaseDefinitions field name * Move maxLength calculation * Use shared _createTermDefinitionFromDatabaseDefinition * Simplify map * Move definition sorts for better consistency and less redundancy * Move _createExpression function * Update setup of sequenced definitions * Simplify for loop
* Release 20.9.28.020.9.28.0Alex Yatskov2020-09-28
|
* Move searchTerms/searchKanji to front of object definitions (#873)toasted-nutbread2020-09-27
|
* Fix data-setting attributes not being updated on index change (#872)toasted-nutbread2020-09-27
|
* Add scan on touch move and prevent touch scroll options (#871)toasted-nutbread2020-09-27
| | | | | | | | | * Add scanOnTouchMove/preventTouchScrolling scanning input options * Add settings controls * Support scanOnTouchMove in TextScanner * Support preventTouchScrolling in TextScanner
* Add middle mouse prevention option (#868)toasted-nutbread2020-09-26
| | | | | | | | | * Add preventMiddleMouse option to TextScanner * Add preventMiddleMouse options * Add options * Apply preventMiddleMouse options
* Fix page type never being detected as search page correctly (#867)toasted-nutbread2020-09-26
|
* Scanning mouse button fixes (#866)toasted-nutbread2020-09-26
| | | | | * Move mouse0 blocking during mousemove into options * Update primary button detection
* Fix displayDetails not being properly null checked (#865)toasted-nutbread2020-09-26
|
* Send message updates (#864)toasted-nutbread2020-09-26
| | | | | | | | | | | | | | | * Use _sendMessageTab * Move _sendMessageAllTabs next to _sendMessageTab * Rename function * Add and use _sendMessageTabIgnoreResponse * Add and use _sendMessageIgnoreResponse * Always include params * Update function consistency
* Add clipboard-text Anki field (#863)toasted-nutbread2020-09-26
| | | | | | | * Add clipboard-text anki field * Add markers * Update clipboard injection
* Add icons (#860)toasted-nutbread2020-09-26
| | | | | * Add hamburger menu icon * Add material down/right arrows
* Media utility refactor (#859)toasted-nutbread2020-09-26
| | | | | | | | | | | * Move loadImageBase64 into DictionaryImporter * Convert mediaUtility to a class * Add getFileExtensionFromImageMediaType to MediaUtility * Use MediaUtility instead of _getImageExtensionFromMediaType * Use MediaUtility in ClipboardReader to validate images before reading
* Audio system refactor (#858)toasted-nutbread2020-09-26
| | | | | | | | | | | | | | | * Refactor AudioUriBuilder * Add downloadAudio function * Refactor AudioSystem * Update API usage * Rename file * Update scripts * Add prepare calls
* Browser manifest updates (#840)toasted-nutbread2020-09-26
| | | | | | | | | | | | | * Remove options_page * Remove applications entry * Update default content_security_policy * Add browser-specific build variants * Update default manifest * Increase Firefox min version to 57
* Remove unused toIterable function (#857)toasted-nutbread2020-09-22
|
* Cache map improvements (#856)toasted-nutbread2020-09-22
| | | | | | | * Update CacheMap API; get=>getOrCreate; add get; add set; add has * Update tests * Add more tests
* ClipboardReader class (#854)toasted-nutbread2020-09-20
| | | | | | | | | | | * Create ClipboardReader class * Use ClipboardReader in Backend * Update ClipboardMonitor to use ClipboardReader * Replace _onApiClipboardImageGet call * Assign clipboard reader browser
* Delete old scanning options during update (#851)toasted-nutbread2020-09-20
|
* Fix _addFieldTemplatesBeforeEnd not being await'd (#850)toasted-nutbread2020-09-20
|
* Fix typeof comparing against a string (#849)toasted-nutbread2020-09-19
|
* Organize background script grouping/order (#847)toasted-nutbread2020-09-19
|
* Remove window from performance object access (#845)toasted-nutbread2020-09-19
|
* Dictionary delete improvements (#844)toasted-nutbread2020-09-19
| | | | | | | * Change where clearDatabaseCaches occurs * Move dictionary deletion into the settings page * Remove api.deleteDictionary
* Fix settings sanitization resulting in invalid data for the schema (#843)toasted-nutbread2020-09-19
|
* Modal refactor (#842)toasted-nutbread2020-09-19
| | | | | * Add Modal class * Use Modal class
* Remove border/margin/padding/pointerEvents from iframe (#841)toasted-nutbread2020-09-19
|
* Handlebars sandbox (#612)toasted-nutbread2020-09-18
| | | | | | | | | * Set up template renderer proxy * Use proxy * Remove unused handlebars script tags * Update manifest
* Add missing null check (#836)toasted-nutbread2020-09-17
|
* Remove unused handlebars script (#833)toasted-nutbread2020-09-15
|
* Cleanup unused utils (#832)toasted-nutbread2020-09-15
| | | | | | | | | * Remove api.optionsSave * Remove getOptionsMutable and getOptionsFullMutable * Remove util.js * Remove yomichanBackend
* Dictionary controller refactor (#831)toasted-nutbread2020-09-15
| | | | | * Create new DictionaryController * Update input disabling when modifying the database
* Fix default options missing profiles (#829)toasted-nutbread2020-09-13
| | | | | * Add minItems requirement for profiles array * Use minItems/maxItems for default value construction
* Database change event (#826)toasted-nutbread2020-09-13
| | | | | * Add api.triggerDatabaseUpdated and yomichan.on('databaseUpdated') * Update databaseUpdated event usage
* Profile controller refactor (#825)toasted-nutbread2020-09-13
| | | | | * Add refresh function * Create new ProfileController class
* Mouse button modifier update (#824)toasted-nutbread2020-09-13
| | | | | * Ensure buttons is positive before adding to set * Break early when there are no flags remaining
* Add scan dictionary type filters (#822)toasted-nutbread2020-09-13
| | | | | | | | | | | | | | | * Add options for searchTerms and searchKanji * Add settings HTML * Add options to TextScanner * Update _search/_findDefinitions to include searchTerms/searchKanji args * Update _searchAtFromMouseMove args * Change argument structure for _searchAt * Use scanning options for searchTerms and searchKanji
* Settings upgrade and schema fixes (#823)toasted-nutbread2020-09-13
| | | | | * Add missing defaults * Always include touch input during upgrade
* Add workaround for Firefox bug not detecting pen input type correctly (#821)toasted-nutbread2020-09-13
|
* Pointer events support (#819)toasted-nutbread2020-09-13
| | | | | | | | | | | | | * Add option pointerEventsEnabled * Add _pointerEventsEnabled option to TextScanner * Add additional options * Mouse pointer events * Touch pointer events * Pen pointer events
* Add workaround for Firefox bug not detecting pen input type correctly (#820)toasted-nutbread2020-09-13
|
* Fix location of _enabled assignment (#818)toasted-nutbread2020-09-12
|
* Update TextScanner.setEnabled to not reset state if unnecessary (#817)toasted-nutbread2020-09-12
|
* More scanning options (#815)toasted-nutbread2020-09-12
| | | | | | | | | * Reorganize options * Add advanced options * Add a setting transform 'setRelativeAttribute' * Add advanced options to HTML/CSS
* Use a grid layout for scanning inputs (#814)toasted-nutbread2020-09-12
|
* Text scanner cause update (#813)toasted-nutbread2020-09-11
| | | | | * Rename _searchAtFromMouse to _searchAtFromMouseMove * Rename cause 'mouse' to 'mouseMove' for clarity
* Text scanner refactoring (#812)toasted-nutbread2020-09-11
| | | | | * Add functions _onPrimaryTouchStart and _onPrimaryTouchEnd * Add "type" to input details