aboutsummaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAge
* 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
* Clear state when refreshing enabled state (#811)toasted-nutbread2020-09-11
|
* Add support for pointer event input detection (#810)toasted-nutbread2020-09-11
|
* Settings scanning refactor (#809)toasted-nutbread2020-09-11
| | | | | * Move option for scanning.touchInputEnabled, make advanced * Rename