summaryrefslogtreecommitdiff
path: root/ext/js
Commit message (Collapse)AuthorAge
* Disable background clipboard monitor, mecab, and anki if disabled (#1977)toasted-nutbread2021-10-10
|
* Add disable-popup-preview option to the settings page (#1974)toasted-nutbread2021-09-30
|
* DOMRect update (#1973)toasted-nutbread2021-09-30
| | | | | | | | | * Compare using left/top rather than x/y * Simplify * Update Popup*.getFrameRect to return a custom structure * Don't use x/y on DOMRect
* Hotkey dictionary navigation fix (#1970)toasted-nutbread2021-09-30
| | | | | | | * Add getRect function to ScrollElement * Update _focusEntry to take a definition index * Update behaviour of (next|previous)EntryDifferentDictionary
* Search query offset value (#1968)toasted-nutbread2021-09-27
| | | | | | | | | | | * Add type property to TextSource* classes * Use type property rather than instanceof * Expose a sentence offset value * Use offset added to URL * Improve fallback sentence for Anki note context
* Katakana to hiragana conversion options (#1965)toasted-nutbread2021-09-27
| | | | | | | | | | | | | * Refactor convertKatakanaToHiragana * Add keepProlongedSoundMarks option * Test keepProlongedSoundMarks option * Refactor * Add keepProlongedSoundMarks option to hiragana handlebars helper * Update documentation
* Remove display query post process (#1967)toasted-nutbread2021-09-26
| | | | | * Remove search query post-processing * Remove _rawQuery, as it is redundant with _query
* Rename dictionary import steps (#1966)toasted-nutbread2021-09-26
|
* Fix hotkey input field conflict (#1963)toasted-nutbread2021-09-26
| | | | | | | | | | | | | | | | | * Move comment * Add DocumentUtil.isInputElement * Use DocumentUtil.isInputElement * Fix simple hotkeys (shift or no modifier) preventing text field input * Improve input detection * Validate key is an input character before blocking hotkey * Simplify * Fix incorrect property
* Fix japanese codepoint range issues (#1960)toasted-nutbread2021-09-26
| | | | | | | | | * Add CJK_COMPATIBILITY_IDEOGRAPHS_RANGE * Rename CJK_UNIFIED_IDEOGRAPHS_RANGES => CJK_IDEOGRAPH_RANGES * Simplify isKana check * Update tests
* Revert term/reading string normalization due to undesirable changes (#1959)toasted-nutbread2021-09-26
|
* Fix regexMatch and regexReplace handlebars helper functions (#1958)toasted-nutbread2021-09-26
|
* Enable frequency dictionaries to specify the frequency mode (#1944)toasted-nutbread2021-09-26
|
* Ensure frequency values are always numbers (#1943)toasted-nutbread2021-09-26
|
* Frequency dictionary sort (#1938)toasted-nutbread2021-09-26
| | | | | | | | | | | | | | | | | * Add sortDictionary/sortDictionaryOrder options * Update options * Add API.getTermFrequencies * Add settings * Implement frequency dictionary sorting * Update test * Update test data * Fix handling of undefined rank-based frequencies
* Add data-is-primary attribute to headwords (#1946)toasted-nutbread2021-09-11
|
* Fix redundant secondary term lookups (#1942)toasted-nutbread2021-09-09
|
* Normalize terms and readings during import (#1941)toasted-nutbread2021-09-09
|
* Anki field templates suggestions (#1940)toasted-nutbread2021-09-08
| | | | | * Remove unused * Bold the suggested default field value
* Rename _onDocumentStart => _onApiDocumentStart for consistency (#1939)toasted-nutbread2021-09-08
|
* Dictionary import count details (#1935)toasted-nutbread2021-09-07
| | | | | | | | | | | * Store count information when importing a dictionary * Add importDate * Update property ordering * Update tests * Update importDate
* Anki template regex helper updates (#1934)toasted-nutbread2021-09-05
| | | | | * Update regexReplace and regexMatch to support content arguments * Update documentation
* Fix incorrect index being used for headword removal (#1933)toasted-nutbread2021-09-05
|
* Database readwrite transaction updates (#1932)toasted-nutbread2021-09-05
| | | | | | | | | * Add _readWriteTransaction helper * Improve deleteDictionary order * Make onProgress event optional * Simplify progress rate parameter
* Structured content data (#1930)toasted-nutbread2021-09-04
| | | | | | | | | | | * Add support for structured-content data attributes * Assign dataset properties * Don't remove data-sc attributes * Use helper functions * Update test data
* Fix repeated note IDs shown on the "View Note" button (#1927)toasted-nutbread2021-09-03
|
* Dictionary media import improvements (#1926)toasted-nutbread2021-09-03
| | | | | | | | | | | | | | | | | | | * Add base64ToArrayBuffer to StringUtil * Remove unnecessary media-util.js import * Run async requirements in serial rather than parallel * Update API.getMedia handler to convert ArrayBuffer content to base64 * Rename getImageResolution to getImageDetails * Change parameter order of getImageDetails * Pre-process and store media as an ArrayBuffer * Remove MediaUtil.createBlobFromBase64Content * Fix Anki media injection
* Fix dictionary import total progress (#1921)toasted-nutbread2021-08-31
| | | | | * Fix incorrect total count for final step of dictionary import * Update tests to validate progress args
* Add support for structured content margins (#1920)toasted-nutbread2021-08-31
|
* Fix empty sentence on some search page URLs (#1919)toasted-nutbread2021-08-31
|
* Fix history replacement issue (#1917)toasted-nutbread2021-08-30
| | | | | * Remove unused "history" field of event details * Change setContent history parameter to historyMode
* Dictionary worker updates (#1914)toasted-nutbread2021-08-28
| | | | | | | * Add support for running getDictionaryCounts via DictionaryWorker * Run dictionary integrity checks on a separate thread * Remove api.getDictionaryCounts
* Dictionary database worker refactoring (#1913)toasted-nutbread2021-08-28
| | | | | | | | | | | | | * Rename DictionaryWorker => DictionaryWorkerHandler * Rename var * Rename file * Simplify * Rename DictionaryDatabaseModifier => DictionaryWorker * Rename dictionary-database-modifier.js => dictionary-worker.js
* Fix incorrect dictionary name ordering being used for counts (#1912)toasted-nutbread2021-08-28
|
* Hiragana & katakana helpers (#1908)toasted-nutbread2021-08-25
| | | | | | | * Add hiragana and katakana template helpers * Update documentation * Fix documentation
* Update dictionary importer progress event for step 6 to occur slightly ↵toasted-nutbread2021-08-14
| | | | earlier (#1897)
* Threaded dictionary delete (#1895)toasted-nutbread2021-08-14
| | | | | | | | | * Generalize dictionary worker * Add deleteDictionary functionality * Update DictionaryController to use DictionaryDatabaseModifier * Fix incorrect result handling
* Dictionary worker refactor (#1894)toasted-nutbread2021-08-14
| | | | | | | | | | | | | | | | | | | * Rename dictionary worker files * Rename classes * Rename file * Rename class * Generalize the _invoke method * Rename 'import' to 'importDictionary' * Improve DictionaryImporterMediaLoader usage * Refactor message handler * Generalize onProgress event
* Database improvements to data persistency (#1893)toasted-nutbread2021-08-13
| | | | | | | | | | | | | * Fix function check * Rename arguments of getAll, getAllKeys, and their private functions * Simplify bulkAdd * Simplify delete * Simplify bulkDelete * Remove persistData
* Update CssStyleApplier.prepare to passively fail if it can't read the file ↵toasted-nutbread2021-08-11
| | | | (#1891)
* Fix auto-play not working on the search page (#1882)toasted-nutbread2021-08-10
|
* Add support for manifest V3 script injection (#1878)toasted-nutbread2021-08-07
|
* Fix data not being persisted after terminating Worker thread (#1877)toasted-nutbread2021-08-07
|
* Google Docs accessibility (#1875)toasted-nutbread2021-08-07
| | | | | | | | | | | | | * Add accessibility option for forcing Google Docs HTML-based rendering * Update settings * Send a documentStart message at document start * Add accessibility script for Google Docs * Set up accessibility * Update tests
* Improve audio auto play cancellation (#1873)toasted-nutbread2021-08-02
| | | | | * Cancel automatic audio playback when hiding the popup * Don't play audio if the popup is hidden
* Dictionary import progress improvements (#1868)toasted-nutbread2021-07-31
| | | | | | | * Update loop vars * Update loop * Improve progress reporting during the import process
* Dictionary importer refactoring (#1867)toasted-nutbread2021-07-31
| | | | | | | | | * Remove map of schemas * Don't reuse dictionary importer instances * Refactor * Update how progress callback is used
* Dictionary importer refactor (#1866)toasted-nutbread2021-07-31
| | | | | | | | | | | | | * Move function implementations * Use file() instead of files[] * Move functionality into local functions * Simplify * Pass dictionary title to conversion functions * Update how legacy tags are added
* DictionaryImporterThreaded (#1865)toasted-nutbread2021-07-31
| | | | | | | * Create new classes for importing dictionaries from a separate thread * Use threaded importer * Update worker tests
* DictionaryImporter improvements (#1862)toasted-nutbread2021-07-31
| | | | | * Improve error message * Simplify URL for JSON fetching