aboutsummaryrefslogtreecommitdiff
path: root/ext/js
Commit message (Collapse)AuthorAge
* 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
* Fix furigana distribution when reading starts with expression, but has ↵toasted-nutbread2021-03-07
| | | | remainder characters (#1496)
* Fix multiline copying (#1493)toasted-nutbread2021-03-07
| | | | | * Change order * Update multiline text assignment
* Use dictionary priority later in the definition sorting algorithm (#1492)toasted-nutbread2021-03-07
|
* Split dictionary order and index sorting (#1491)toasted-nutbread2021-03-07
| | | | | | | | | | | | | * Refactor expression comparison * Rename function * Add dictionary index sorting * Update test data # Conflicts: # ext/js/language/translator.js # test/data/test-translator-data.json
* Fix missing meta when reading is empty (#1486)toasted-nutbread2021-03-07
|
* Fix text being overwritten when generating the query parser content (#1483)toasted-nutbread2021-03-07
|
* Fix enter key causing duplicate text when typing using an IME (#1477)toasted-nutbread2021-03-07
|
* Add support for resizing the popup window using touch events (#1471)toasted-nutbread2021-02-28
|
* Wrap host selection copy in a try-catch (#1470)toasted-nutbread2021-02-28
|
* Improve text parser (#1469)toasted-nutbread2021-02-28
| | | | | | | | | | | | | * Merge ungrouped characters * Update iteration * Fix incorrect code point handling * Simplify text * Specify language * Update how parsed status is represented
* Fix a poorly handled edge case of the scanning parser (#1468)toasted-nutbread2021-02-28
|
* Fix missing details causing frequency tags to not be clickable (#1467)toasted-nutbread2021-02-28
|
* Remove the now-unused hotkey forwarding functionality (#1466)toasted-nutbread2021-02-28
|
* Text source element scanning improvements (#1464)toasted-nutbread2021-02-28
| | | | | | | | * Add api.textHasJapaneseCharacters * Add support for empty query * Add support for showing the query parser for TextSourceElement with content that does not start with Japanese text
* Use a Set instead of an array (#1463)toasted-nutbread2021-02-28
|
* Get categorization of pitch accents (#1462)toasted-nutbread2021-02-28
|
* Add support for scanning the selected value of <select> elements (#1461)toasted-nutbread2021-02-28
|
* Improve definition ordering (#1456)toasted-nutbread2021-02-27
| | | | | | | * Update dictionary priority * Replace dictionaryPriority with dictionaryOrder * Update tests
* Improve term meta ordering (#1455)toasted-nutbread2021-02-27
| | | | | | | | | | | | | | | | | | | * Update implementation of _buildTermMeta * Remove old implementation * Expose dictionaryPriority on frequencies and pitch accents * Update how meta data is generated; add index * Update order * Update names * Expose expressionIndex as part of pitch/frequency data * Implement meta sorting * Update test data
* Organize display styles (#1452)toasted-nutbread2021-02-27
| | | | | | | | | | | | | * Improve grouping for inflection and expression styles * kanji-link => expression-kanji-link * Remove unnecessary entry-header2 and entry-header3 * Move tag list into header for consistency with term definitions * Move styles * Add clear
* Refactor display styles (#1451)toasted-nutbread2021-02-27
| | | | | | | | | | | | | | | * term-expression => expression * term-pitch-accent => pitch-accent * term-reason => inflection, term-reasons => inflection-list * term-details => expression-list-details * term-glossary => glossary * Update tag list classes * term-definition => definition
* Add standalone reading (#1448)toasted-nutbread2021-02-27
| | | | | | | | | * Add option * Update display * Hide redundant readings * Improve label and description
* Improve dictionary priority (#1447)toasted-nutbread2021-02-26
| | | | | * Refactor _sortDefinitions * Remove use of useDictionaryPriority
* Improve kana segmentation (#1446)toasted-nutbread2021-02-26
| | | | | * Improve edge case furigana distribution for mixed hiragana/katakana * Update/add tests
* Improve Anki card type selection (#1445)toasted-nutbread2021-02-26
| | | | | | | | | | | | | * Update separator line styles * Add tabs * Add support for radio select * Remove old select * Move out of scroll region * Fix missing line
* Header lint (#1444)toasted-nutbread2021-02-25
| | | | | | | | | * Add eslint-plugin-header * Add rule for header format * Add missing header * Fix header issues
* Fix wait for frontend not working properly (#1443)toasted-nutbread2021-02-25
|
* Improve frequency display (#1438)toasted-nutbread2021-02-25
| | | | | | | | | | | * Add frequencyDisplayMode option * Update tests * Add setting * Update frequency display styles * Improve wrapping
* Improve note addability (#1440)toasted-nutbread2021-02-24
| | | | | | | | | | | * Add valid field * Add isNoteDataValid function * Update _areDefinitionsAddableForcedValue to return proper valid values * Refactor isAnkiConnected check * Force canAdd to false if not valid
* AnkiUtil (#1439)toasted-nutbread2021-02-24
| | | | | | | | | | | | | | | | | | | * Add AnkiUtil * Update AnkiConnect to use AnkiUtil * Use AnkiUtil in AnkiNoteBuilder * Replace containsAnyMarker with AnkiUtil.stringContainsAnyFieldMarker * Add AnkiUtil.getFieldMarkers * Add fieldsObjectContainsMarker to AnkiUtil * Remove unused global * Remove unused parameter: enabled * Add cloneFieldMarkerPattern
* Fix user select all handling (#1436)toasted-nutbread2021-02-23
| | | | | | | | | * Update how style restoration is performed * Refactor * Add workaround for Firefox issue with user-select: all * Add infinite loop prevention
* Improve tag styles (#1431)toasted-nutbread2021-02-21
| | | | | | | * Update tag styles * Refactor _createTag * Update padding
* Improve key press to focus the search query input (#1424)toasted-nutbread2021-02-19
|
* Fix translation regex replacements (#1423)toasted-nutbread2021-02-19
| | | | | | | * Fix regex replacements having issues at the start of scanned text * Fix test cases * Add tests
* Fix wanakana.unbind throwing an error (#1422)toasted-nutbread2021-02-19
|
* Fix useSettingsV2 option (for real this time) (#1421)toasted-nutbread2021-02-19
|
* Fix search tags in split and grouped display modes (#1412)toasted-nutbread2021-02-16
|
* Fix copy hotkey not working (#1411)toasted-nutbread2021-02-16
|
* Improve primary audio assignment when audio isn't available (#1407)toasted-nutbread2021-02-15
|
* Audio popup menu primary card audio selection (#1406)toasted-nutbread2021-02-15
| | | | | | | | | | | | | | | | | | | * Add card icon to audio menu items * Update cache data format * Create _getCacheItem * Add _playAudioFromSource function * Implement default card audio info * Specify exact audio to download when an override is assigned * Abstract using _getMenuItemSourceInfo * Update downloadability check * Update the main audio menu buttons to also assign the default source
* Update audio downloading to support specifying an exact array index (#1405)toasted-nutbread2021-02-15
|
* Display audio menu refactor (#1404)toasted-nutbread2021-02-15
| | | | | * Update display and generation of the audio menu * Wrap menu items in a div to allow for horizontal layout groupings
* Use consistent number of newlines at the start of files (#1402)toasted-nutbread2021-02-15
|
* Move js/settings (#1397)toasted-nutbread2021-02-14
| | | | | * Move js/settings to js/pages/settings * Fix script ordering
* Cleanup yomichan api (#1394)toasted-nutbread2021-02-14
| | | | | | | * Move invokeMessageHandler to core.js * Move getMessageResponseResult to backghend.js * Replace getTemporaryListenerResult
* Log refactoring (#1393)toasted-nutbread2021-02-14
| | | | | | | | | | | | | * Create Logger class and log instance * Replace yomichan.logWarning with log.warn * Replace yomichan.logError with log.error * Replace yomichan.log with log.log * Update the Yomichan class to use the global log object * Update lint rules
* Move api to yomichan object (#1392)toasted-nutbread2021-02-14
| | | | | | | | | | | * Move cross frame API from API to Yomichan * Add API instance to Yomichan * Move api global to yomichan.api * Pass yomichan to API * Remove IIFE
* Api prepare refactor (#1391)toasted-nutbread2021-02-14
| | | | | * Refactor API preparation * Run yomichan.prepare manually in the entry point function
* Rename window scroll (#1390)toasted-nutbread2021-02-14
| | | | | | | * Rename WindowScroll to ScrollElement * Rename window-scroll.js to scroll-element.js * Update global order