aboutsummaryrefslogtreecommitdiff
path: root/ext/js
Commit message (Collapse)AuthorAge
* Text source generator function move (#611)toasted-nutbread2024-02-03
| | | | | | | * Move functionality into TextSourceGenerator * Move extractSentence * Move isWhitespace
* Add frequency number handlebars (#600)Kuuuube2024-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add frequencies-num handlebar * Fix handlebar name * Fix inconsistent variable name format * Add frequency-number to anki tests * Use full names for total and frequency variables * Migrate handlebars to JS, split rank and occurance, add average * Remove left behind frequency-number * Fix "occurrence" spelling * Cleanup types * Add frequency support for kanji cards * Fix code style * Clean up most of duplicate code and merge functions * Fix frequencies.length check * Use less witchcraft and remove redundant type casting
* Fix auto hide search popup (#592)toasted-nutbread2024-02-03
| | | | | | | | | | | * Remove return * Update searched event * Fix auto-hide search popup event not occuring * Add TODO * Split into multiple events
* Application refactor (#591)toasted-nutbread2024-02-01
| | | | | | | | | | | * Rename Yomitan class to Application, change initialization style * Rename file * Update init * Update config * Remove dead code
* Document util + google docs util state refactor (#590)toasted-nutbread2024-01-31
| | | | | | | | | * Remove static from GoogleDocsUtil since it has state * Create TextSourceGenerator * Remove DocumentUtil custom registrations * Use TextSourceGenerator
* Module refactoring (#588)toasted-nutbread2024-01-31
| | | | | | | | | | | | | | | | | | | | | * Convert PronunciationGenerator into static functions * Convert DictionaryDataUtil into static functions * Convert AnkiNoteDataCreator into static functions * Convert MediaUtil into static functions * Convert RegexUtil into static functions * Convert StringUtil into static functions * Convert ArrayBufferUtil into static functions * Convert AnkiUtil into static functions * Convert PermissionsUtil into static functions * Convert ProfileConditionsUtil into static functions
* Language transformer (#582)toasted-nutbread2024-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Set up new deinflection data file * Define types * Test * Add internal types * Set up loading for transforms * Add getPartOfSpeechFlags * Convert static methods * Add note * Add transform function * Update trace structure * Add a language tag to the language transform descriptor * Add clear function * Add function for multiple parts of speech * Clarify naming * Add getConditionFlagsFromConditionType * Add plural function * Replace usages of Deinflector * Update tests * Update config * Remove old * Rename * Rename files
* Allow `clip-path`, `background`, `text-emphasis` styles in structured ↵Stephen Kraus2024-01-31
| | | | | | | | | | | content (#556) * Allow `clip-path` and `background` styles in structured content * Allow `text-emphasis` style in structured content --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Fix chrome.runtime.lastError not working properly on Firefox (#593)toasted-nutbread2024-01-31
|
* JapaneseUtil refactor (#555)toasted-nutbread2024-01-28
| | | | | | | * Copy functions from JapaneseUtil * Remove JapaneseUtil * Update usages of JapaneseUtil functions
* Adding a handlebar to return pitch accent categories of a word (#563)arbyste2024-01-27
| | | | | * Fixing logic in isNonNounVerbOrAdjective function * Adding handlebar to return pitch accent categories of a word
* Add border styling options for structured content images (#577)Stephen Kraus2024-01-27
| | | | | | | | | * Add border styling options for structured content images * Replace border style, width, and color properties with shorthand --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* fix typo (#557)StefanVukovic992024-01-27
|
* Remove unneeded eslint disables (#554)toasted-nutbread2024-01-27
| | | | | * Install eslint-plugin-eslint-comments * Update rules, fix issues
* fix deinflection bug (#547)StefanVukovic992024-01-27
| | | | | * fix deinflection bug * add test
* WebExtension class (#551)toasted-nutbread2024-01-21
| | | | | | | | | | | * Add WebExtension class * Use WebExtension class * Use WebExtension instance for all runtime message sending * Use getUrl * Add a sendMessage variant which ignores the response and error
* Add warning if available storage space is low (#548)The Man2024-01-21
| | | | | * Add warning if storage space is low * b -> strong
* Improve handling of the applicationReady message (#552)toasted-nutbread2024-01-21
|
* Separate core classes into separate files (#545)toasted-nutbread2024-01-20
|
* improve dictionary validation (#520)Cashew2024-01-20
| | | | | | | | | | | | | | | * improve dictionary validation * fix * improve performance * add undefined check * rename types * rename types * rename
* Add Deinflector.rulesMatch helper function (#530)toasted-nutbread2024-01-20
|
* Update copyright year (#524)toasted-nutbread2024-01-20
| | | | | | | | | | | | | * Update copyright year * Update lib files * Rebase updates * Update dates * Update years to range * Update permitted pattern
* Fix AnkiTemplateRenderer again (#535)toasted-nutbread2024-01-20
| | | | | * Fix args issues in regex functions * Add tests
* Dictionary deinflections (#503)StefanVukovic992024-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * fix v3 * wip * fix tests * fix maxitems * hide deinflection definitions * fix anki template * undo unnecessary change * delete console.log * refactor * add set false to handlebars * lint * fix tests * fix comments * fix * use Map in areArraysEqualIgnoreOrder * move inflection source icons to css * lint * improve naming * fix tests * add test * typescript * use for of * wip * comments * anki template upgrade * update descriptions
* Add toError utility function (#523)toasted-nutbread2024-01-15
| | | | | * Add asError utility function * Rename to toError
* Allow `text-shadow` style in dictionary structured content (#527)Stephen Kraus2024-01-15
| | | Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* add option to disable part of speech rule check (#438)StefanVukovic992024-01-13
| | | | | | | | | | | | | | | | | | | | | | | * pos filter wip * add part of speech filter option * add part of speech filter option * remove from deinflector * update test * remove return * tie to dictionary * duplicate to welcome page * delete unused html * fix ts * typo
* Fix dictionary move to index (#514)Jake2024-01-13
| | | | | * Fix dictionary move to index * Use number isnan
* type updates (#500)Cashew2024-01-13
| | | | | | | | | * type updates * remove comments * fix comment * remove types
* Cross frame API safety (#491)toasted-nutbread2023-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Require error type * Add TODOs * Fix init * Updates * More type safety * Fix incorrect API map * Update type safety * Updates * Add API * Update types * Update types * Updates * Remove unused * Restore types * Update frame ancestry handler * Simplify names * Fix * Remove old message handlers
* Add eslint rule no-restricted-syntax (#486)toasted-nutbread2023-12-29
|
* remove redundancy in cache-map (#485)Cashew2023-12-29
| | | | | * remove redundancy * fix lint
* enum update (#482)Cashew2023-12-29
| | | | | | | * enum update * fix indentation * fix indentation
* Display API safety (#479)toasted-nutbread2023-12-29
| | | | | | | | | | | | | | | | | | | | | * Remove unused * Add TODOs * Rename * Initial setup * More updates * Simplify naming * Set up window API * Remove type * Move type * Update type
* Options util updates (#475)toasted-nutbread2023-12-29
| | | | | | | | | * Simplify async handling * Update comments * Add description * Update update 22
* Fix google docs (#473)toasted-nutbread2023-12-29
| | | | | | | | | | | * Add support for content script execution world * Update manifest version to support world parameter in Chromium browsers * Update google docs injection * Reuse code for registration * Add info
* Comment updates (#481)Cashew2023-12-29
| | | | | * comment updates * comment updates
* Add explicit passive option to touchstart event (#480)toasted-nutbread2023-12-29
|
* Event dispatcher refactor (#463)toasted-nutbread2023-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor EventDispatcher template type * Update core types * Update log * Update clipboard monitor * Update application events * Update popup events * Update text scanner * Update cross frame API * Update display events * Type updates * Update display history * Update query parser * Update search persistent state controller * Update panel element * Update popup menu * Update audio system * Update hotkey handler * Update settings controller * Update audio controller * Update types * Update types * Update types * Add event handler types * Update type * Fix issues * Remove error suppression * Fix typo
* Simplify dom text scanner (#453)toasted-nutbread2023-12-29
| | | | | * Remove "enum" from name, update comment * Simplify
* search resolution option (#436)StefanVukovic992023-12-29
| | | | | | | | | | | | | | | * add search resolution setting * move finding next substring to method * use regex literal * fix comments * fix comments * add options update function * update test
* API type safety updates (#457)toasted-nutbread2023-12-28
| | | | | | | | | | | | | | | | | | | | | | | * Update message handlers in SearchDisplayController * Update types * Updates * Updates * Simplify * Updates * Updates * Rename * Improve types * Improve types * Resolve TODOs
* add phonetic transcriptions term meta type (#434)StefanVukovic992023-12-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move dictionary files to dictionary folder * wip * move dictionary files to dictionary folder * add ipa term meta * wip * fixing comments wip * fixing comments wip * fixing comments wip * fixing comments wip * fixing comments wip * fixing comments wip * fix comments * fix comments * update test data * fix gitignore * engines * add tests * update database test * fix test
* Remove IIFEs (#452)Cashew2023-12-27
| | | | | | | | | | | * remove IIFEs * Move IIFE into function * revert google-docs.js to IIFE * add entry point jsdoc * revert content-script-wrapper
* Script manager cleanup (#456)toasted-nutbread2023-12-27
| | | | | | | | | | | | | | | | | | | * Remove unused functions * Remove fallback code * Simplify injectStylesheet * Simplify unregisterContentScript * Merge functions * Simplify registration details * Simplify injectScript * Remove class wrapper * Remove unused injectScript
* switch updates (#459)Cashew2023-12-27
| | | | | | | | | * switch updates * revert to if-else * revert to if-else * remove empty default
* API map updates (#458)toasted-nutbread2023-12-27
| | | | | | | | | * Rename * Fix incorrect union types * Update type names * Fix types
* Google docs fixes (#455)toasted-nutbread2023-12-27
| | | | | * Simplify GoogleDocsUtil deferred import * Remove loadExtensionScripts
* Add support for more HTML attributes and style declarations in structured ↵Stephen Kraus2023-12-27
| | | | | | | | | | | | | | | content (#450) * Add support for more HTMl attributes and style declarations * Update test term to use new `margin` property * Allow string values for 'padding' and 'margin' properties * Remove newly added default 'unset' values from term bank schema --------- Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Style updates (#447)Cashew2023-12-25
| | | | | | | | | | | | | * style updates * style updates * style updates * revert changes to dev/lib/handlebars * revert changes to dev/lib/handlebars * revert changes to dev/lib/handlebars