aboutsummaryrefslogtreecommitdiff
path: root/ext/js
Commit message (Collapse)AuthorAge
* add single dictionary handlebars (#814)24.5.5.0StefanVukovic992024-05-05
| | | | | | | | | | | | | | | | | * add single dictionary handlebars * fix dicts with kanji in title * sort * rename to single-glossary-XYZ * add brief and no dict variants * add docs, only terms no kanji * allow testing single dict handlebars * remove empty comment
* Fix definition.cloze and text-based getMedia in handlebars being escaped (#857)Kuuuube2024-05-04
| | | | | | | | | * Fix definition.cloze in handlebars not being unescaped * Fix {clipboard-text} * Fix {selection-text} * Update update note
* add some Japanese transforms (#833)Lyroxide2024-05-04
| | | | | | | | | | | | | * add -rya -cha -n * add tests * fix typos * resolve merge conflicts * add tests * change to -ya with chaining
* add finnish language option (#867)StefanVukovic992024-04-29
|
* fix profile select on search page not updating (#858)StefanVukovic992024-04-25
|
* add profile switching keyboard shortcuts (#832)StefanVukovic992024-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add profile switching * add duplicate behavior dropdown (#853) * duplicate behavior dropdown * allow duplicate for existing users * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * remove suggestion comment --------- Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu> --------- Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu>
* add duplicate behavior dropdown (#853)StefanVukovic992024-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | * duplicate behavior dropdown * allow duplicate for existing users * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * Update docs/anki-integration.md Co-authored-by: James Maa <jmaa@berkeley.edu> Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> * remove suggestion comment --------- Signed-off-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu>
* Added Details and Summary tags to Structured Content (#842)Matttttt2024-04-22
| | | | | | | | | * add details and summary tags * fixed css test --------- Co-authored-by: martholomew <martholomew@users.noreply.github.com>
* move Albanian grammar comments to test (#852)StefanVukovic992024-04-22
| | | | | * move albanian grammar comments to test * redundant line
* rework text processors (#793)24.4.21.0StefanVukovic992024-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | * rework text processors * rename text-preprocessors file * Fix search header left margins on small screens (#839) * Refocuses search input on backspace (#840) Fixes #775. Note that this behavior gets overridden if backspace is set as a shortcut action. * Change hotkey triggering condition to account for IME usage (#837) _isKeyCharacterInput only worked when not using an IME, as inside of an IME when a keydown event is fired, the key is reported as "Process", which does not have a key.length equal to 1. This resulted in hotkeys being triggered while typing, which this commit fixes. --------- Co-authored-by: James Maa <jmaa@berkeley.edu> Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Co-authored-by: Andrew Thomas Sartor <andrew@sartor.net>
* start using german deinflections (#848)24.4.20.0StefanVukovic992024-04-20
| | | | | * use german transforms * fix test
* Prevent logging error when anki is disconnected (#843)StefanVukovic992024-04-20
| | | | | * log only on errors that aren't disconnected anki * move back
* Change hotkey triggering condition to account for IME usage (#837)Andrew Thomas Sartor2024-04-19
| | | | | | _isKeyCharacterInput only worked when not using an IME, as inside of an IME when a keydown event is fired, the key is reported as "Process", which does not have a key.length equal to 1. This resulted in hotkeys being triggered while typing, which this commit fixes.
* Refocuses search input on backspace (#840)Andrew Thomas Sartor2024-04-19
| | | | Fixes #775. Note that this behavior gets overridden if backspace is set as a shortcut action.
* cache clipboard image to prevent duplicating in anki media (#776)StefanVukovic992024-04-18
| | | | | * cache clipboard image to prevent duplicating in anki media * change filename format for all media
* Added Old Irish (#831)Matttttt2024-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added Old Irish (SGA) * Merge Yomitan Updates (#1) * fix (#811) * Add scanOnTouchTap and improve touch scanning defaults (#791) * Add scanOnTouchTap * Update version to 30 * Cleanup if statement * log anki error when hiding button (#821) * Fix noteInfos not getting assigned (#819) * improve term sorting (#806) * improve term sorting * edge case * fix: add missing handlebar entry (#823) * fix: add missing handlebar entry * fix: add new handlebar to tests * Revert to using canAddNotes (#827) Fix #818 * Remove unused canAdd (#824) Co-authored-by: James Maa <jamesmaa@Jamess-MacBook-Pro.local> * Fix duplicate check not working across note types (#830) * Fix duplicate check not working across note types * Add invalidNoteId --------- Co-authored-by: James Maa <jmaa@berkeley.edu> --------- Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Co-authored-by: m-edlund <me@fwegmann.com> Co-authored-by: Eloy Robillard <eloy.robillard@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu> Co-authored-by: James Maa <jamesmaa@Jamess-MacBook-Pro.local> * Revert "Merge Yomitan Updates (#1)" This reverts commit 748dc2202b3ea9e0a028ebae5ecf51208b422c2b. * Fix Static Analysis Error * Fix eslint erro --------- Co-authored-by: martholomew <martholomew@users.noreply.github.com> Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com> Co-authored-by: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Co-authored-by: m-edlund <me@fwegmann.com> Co-authored-by: Eloy Robillard <eloy.robillard@gmail.com> Co-authored-by: James Maa <jmaa@berkeley.edu> Co-authored-by: James Maa <jamesmaa@Jamess-MacBook-Pro.local>
* Fix duplicate check not working across note types (#830)24.4.16.0Kuuuube2024-04-16
| | | | | | | | | * Fix duplicate check not working across note types * Add invalidNoteId --------- Co-authored-by: James Maa <jmaa@berkeley.edu>
* Remove unused canAdd (#824)James Maa2024-04-16
| | | Co-authored-by: James Maa <jamesmaa@Jamess-MacBook-Pro.local>
* Revert to using canAddNotes (#827)Eloy Robillard2024-04-16
| | | Fix #818
* fix: add missing handlebar entry (#823)m-edlund2024-04-15
| | | | | * fix: add missing handlebar entry * fix: add new handlebar to tests
* improve term sorting (#806)24.4.15.0StefanVukovic992024-04-15
| | | | | * improve term sorting * edge case
* Fix noteInfos not getting assigned (#819)Kuuuube2024-04-15
|
* log anki error when hiding button (#821)StefanVukovic992024-04-15
|
* Add scanOnTouchTap and improve touch scanning defaults (#791)24.4.14.0Kuuuube2024-04-14
| | | | | | | * Add scanOnTouchTap * Update version to 30 * Cleanup if statement
* fix (#811)StefanVukovic992024-04-14
|
* fix deinflection on past simple of english phrasal verbs (#808)StefanVukovic992024-04-09
|
* english grammar: adverb form of some adjectives (#803)StefanVukovic992024-04-09
|
* rename language options (#794)Cashew2024-04-09
| | | Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
* feature: add handlebar for jidoujisho pitch graph (#773)m-edlund2024-04-09
| | | | | | | | | * feat: add handlebar for jidoujisho pitch graph * fix: update handlebar upgrade test --------- Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
* Fix duplicated title (#735)Cashew2024-04-09
| | | | | | | | | | | | | * fix duplicated title * add comment * fix lint * change to use action.default_title --------- Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
* Simplify diacratic removal; modify Latin & Greek preprocessors (#724)Matttttt2024-04-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplified diacratic removal and added preprocessors to LA and GRC * linted * Clarified the name of removeAlphabeticDiacritics * Add comment to removeAlphabeticDiacritics Signed-off-by: Darius Jahandarie <djahandarie@gmail.com> * Change to NFD Signed-off-by: Matttttt <18152455+martholomew@users.noreply.github.com> * Remove trailing spaces in comment Signed-off-by: Darius Jahandarie <djahandarie@gmail.com> * Remove latin preprocessors .eslintrc.json Signed-off-by: Matttttt <18152455+martholomew@users.noreply.github.com> * fix tests --------- Signed-off-by: Darius Jahandarie <djahandarie@gmail.com> Signed-off-by: Matttttt <18152455+martholomew@users.noreply.github.com> Co-authored-by: martholomew <martholomew@users.noreply.github.com> Co-authored-by: Darius Jahandarie <djahandarie@gmail.com> Co-authored-by: Stefan Vukovic <stefanvukovic44@gmail.com>
* add turkish (#783)24.4.7.0StefanVukovic992024-03-22
|
* expand deinflection format (#745)StefanVukovic992024-03-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * abstract deinflections * undo redundant changes * remove cast * switch to js * MultiLanguageTransformer * comments * comments * fix test * suffixInflection * fix bench * substring instead of replace * without heuristic * suffixMap * add other language deinflections * wip * catch cycles * fix tests * uninflect to deinflect * use less regex * add suru masu stem deinflection
* add suru verb masu stem deinflection (#774)StefanVukovic992024-03-18
|
* feat: support skipping already import dictionaries (#769)Birudo un2024-03-18
|
* Add an option to allow both viewing and adding duplicates (#693)Eloy Robillard2024-03-18
| | | | | * Detect duplicates when checking if can add note * Display the stacked add buttons
* Move sandbox files (#731)toasted-nutbread2024-03-04
| | | | | * Move sandbox files * Update order
* add arabic diacritics: maddah, hamza, subscript and superscript alef (#762)StefanVukovic992024-03-04
|
* add diacritics (#756)StefanVukovic992024-03-03
|
* fix whitespace (#755)StefanVukovic992024-03-03
|
* enable new dicts only on added profile (#752)StefanVukovic992024-03-03
|
* Fix sentence-furigana template (#733)Kuuuube2024-03-02
|
* Mark string and text glossary content as safe to avoid broken <br> (#732)Kuuuube2024-03-02
|
* Object utilities (#729)toasted-nutbread2024-02-27
| | | | | | | | | | | | | | | | | | | | | * Create utilities * Rename old isObject * Use new isObject * Remove old function * Add additional function * Simplify for now * Rename function for clarity * Rename function * Expand type * Update eslint
* Remove redundant escaping (#722)Kuuuube2024-02-27
|
* make deinflections language-specific (#720)StefanVukovic992024-02-27
| | | | | | | | | | | | | * abstract deinflections * undo redundant changes * remove cast * MultiLanguageTransformer * comments * comments
* "isJapanese" check move (#730)toasted-nutbread2024-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move isStringPartiallyJapanese out of ClipboardMonitor * Create isStringPartiallyJapanese function * Add textMayBeTranslatable * Rename API function * Rename internal function * Add helper * Update translatable check * Pass language to TextScanner * Pass language explicitly * Use textMayBeTranslatable * No redundant translatable check * Update eslint * Remove double newline * Collapse * Rename
* Turn on @typescript-eslint/no-unsafe-argument (#728)24.2.26.0toasted-nutbread2024-02-25
|
* Fix anki template field marker menu (#725)toasted-nutbread2024-02-25
| | | | | | | | | * Fix HTML collection * Expose templates * Fix menu setup * Warn
* fix translator bug, simplify language-transformer (#687)24.2.23.0StefanVukovic992024-02-23
| | | | | | | | | | | | | | | * simplify transformer * use isPartOfSpeech * simplify * rename to isDictionaryForm * NOP --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>