summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix template updates for multiple declarations (#918)toasted-nutbread2020-10-14
| | | | | * Update pattern to be multi-match * Remove unnecessary async
* Improve convertKatakanaToHiragana and convertHiraganaToKatakana (#916)toasted-nutbread2020-10-13
|
* Add a default audio option (#913)toasted-nutbread2020-10-11
|
* Dictionary controller refactor (#912)toasted-nutbread2020-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support multiple main dictionary selects * Update progress container * Change class name * Simplify dictionary info * Update outdated node visibility * Simplify node usage * Simplify title * Update classes * Update IDs/classes * Remove details container visibility assignment * Use a template for dictionary details * Fix progress bar visibility * Fix incorrect property * Rename dict-details to dictionary-details * Remove unused classes * Update class names for dictionary templates * Rename templates * More id renaming * Remove unused id * Rename more IDs
* Add spinner.svg (#911)toasted-nutbread2020-10-11
|
* Generic settings improvements (#909)toasted-nutbread2020-10-10
| | | | | | | | | | | * Add helper function _getElementRelativeToAncestor * Move helper functions * Add setVisibility transform * Add support for data-transform attribute shorthand * Add support for using the document element as the ancestor
* Add modal controller class (#908)toasted-nutbread2020-10-10
| | | | | * Add ModalController * Use modalController instead of new Modal
* Storage controller refactor (#907)toasted-nutbread2020-10-10
| | | | | * Use array for use/quota nodes * Use classes instead of ids
* Further generalize storage controller by supporting lists of nodes (#906)toasted-nutbread2020-10-10
|
* Storage controller refactor (#905)toasted-nutbread2020-10-10
| | | | | | | | | | | | | | | | | | | | | | | | | * Use hidden instead of storage-hidden class * Refactor storage events * Make ID more generic * Update how persistent storage is activated * Add null checks * Update HTML/ID * Disallow disabling persistent storage * Refactoring * Update more IDs * Disable multiple simultaneous stats updates * Store node references * Move undefined assignment
* Update audio controller (#904)toasted-nutbread2020-10-10
| | | | | | | | | | | | | | | | | | | * Remove redundant assignment of select value * Update TTS preparation * Don't hide options * Improve voice sorting * Update event handler * Apply options to all selects targeting audio.textToSpeechVoice * Update selector * Use IDs * Move test text to a hidden text input
* Make animation optional for Modal.setVisible (#903)toasted-nutbread2020-10-10
|
* Add support for allowing modals to be display:none when not open (#902)toasted-nutbread2020-10-10
|
* Modal updates 2 (#901)toasted-nutbread2020-10-08
| | | | | | | * Fix incorrect visible value * Focus element when visibility is set * Add isVisible function
* Update the Modal class to support non-jQuery modals (#900)toasted-nutbread2020-10-08
|
* Add additional transforms (#899)toasted-nutbread2020-10-08
|
* Settings templates refactor (#897)toasted-nutbread2020-10-07
| | | | | * Add template instantiation API to SettingsController * Use SettingsController.instantiateTemplate
* Template handler update (#896)toasted-nutbread2020-10-07
| | | | | | | | | * Rename TemplateHandler to HtmlTemplateCollection * Rename _templateHandler to _templates * Allow creation from both string and element * Simplify setup of templates, don't throw errors on invalid ID
* Dev dependency update (#895)toasted-nutbread2020-10-07
| | | | | | | * Update dev dependencies * Add parse5 dev dependency * Add browserify dev dependency
* Split source.js into two files (#894)toasted-nutbread2020-10-07
|
* Fix dictionary settings not being deleted when deleting a single dictionary ↵toasted-nutbread2020-10-06
| | | | (#893)
* Fix search page being focused when changing settings (#892)toasted-nutbread2020-10-06
|
* Fix data inconsistencies (#891)toasted-nutbread2020-10-06
| | | | | | | | | | | | | * Simplify variable name * Add dictionaryNames array * Update how the dictionary field is assigned * Use "dictionary" instead of "title" for consistency * Remove redundant dictionary name * Use _expandTags to create pitch accent tags
* Update merged definitions to have consistent structure (#890)toasted-nutbread2020-10-06
| | | | | * Update comment about definitions type * Add conversion to ensure consistent data structure
* Don't add duplicate definitions (#889)toasted-nutbread2020-10-05
|
* Dictionary definition structure fixes (#888)toasted-nutbread2020-10-05
| | | | | * Restore support for tags without metadata * Fix missing spread
* Fix incorrect definitions array being used for compatibility merged ↵toasted-nutbread2020-10-04
| | | | definitions (#887)
* Fix primary audio source (#886)toasted-nutbread2020-10-04
| | | | | | | | | * Add abstraction: _getDefinitionPrimaryExpressionAndReading * Reuse existing definitions in a sequence * Revert change to related definition source/rawSource/sourceTerm * Update _getDefinitionPrimaryExpressionAndReading to return best match
* Fix doc comments for translation options (#885)toasted-nutbread2020-10-04
|
* Translator organization (#884)toasted-nutbread2020-10-04
| | | | | | | | | | | | | | | | | | | | | * Group reduction functions together * Group simple helpers * Add label comments * Move core _findTerms functions to top * Move _getSecondarySearchDictionaryMap and _getDictionaryPriority * Move tag helpers * Move _getTextOptionEntryVariants * Move functions up * Move functions up * Update label comments
* Add check to verify expressions are strings (#883)toasted-nutbread2020-10-04
|
* Add sourceTermExactMatchCount to prioritize exact expression matches (#882)toasted-nutbread2020-10-04
|
* Translator definition source term (and other info) (#881)toasted-nutbread2020-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add sourceTerm field to 'term' and 'termGrouped' definitions * Fix comparison of expressions which are always the same * Rename/restructure term info map * Add source term * Add sourceTerm to expressions array * Reuse furiganaSegments * Add helper function _createExpressionDetailsListFromTermInfoMap * Add expressions array to termMergedByGlossary * Add expressions to definition types 'term' and 'termGrouped' * Rename expressionDetails* to termDetails* * Correct the source/rawSource/sourceTerm for related sequenced definitions * Simplify structure of sequencedDefinitions * Remove TODO
* 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 web-ext dev dependency (#861)toasted-nutbread2020-09-26
| | | | | | | * Add web-ext dependency * Specify extension directory * Add command for testing web-ext lint
* 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