aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Update eslint rules (#710)toasted-nutbread2024-02-19
|
* Application main updates (#708)toasted-nutbread2024-02-18
| | | | | | | * Move waitForBackendReady * Add option to wait for DOM before running main * Move script load to be earlier
* Refactor DocumentUtil (#706)toasted-nutbread2024-02-18
| | | | | * Refactor DocumentUtil * Isolate suppression
* Html templates update (#707)toasted-nutbread2024-02-18
| | | | | | | | | | | | | | | | | | | | | * Simplify display template loading * Add helper * Rename file * Rename for simplicity * Create templates file * Load * Remove templates * Move permissions templates * Remove "templates" from comments * Fix prepare
* Language descriptors organization (#704)toasted-nutbread2024-02-18
| | | | | | | | | | | | | | | | | | | | | * Move languageDescriptorMap * Move text preprocessors * Merge into language-descriptors.js * Merge typescript * Initialize inline * Move types * Update types * Update eslint * Update jsconfig reference * Rename
* disable kana conversion on search page for other languages (#705)StefanVukovic992024-02-18
| | | | | | | * disable kana conversion for other languages * ternary parentheses * css fix
* Log update (#701)toasted-nutbread2024-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't export Logger * Rename logger.js to log.js * Move helper function * Update extension name configuration * Simplify docs * Move issue URL to a field * Simplify context * Remove optional params that are never used * Configure backend * Update eslint * Simplify * Rename function * Simplify _api reference * Simplify docs * Remove unused log levels (except 'log') * Add log function * Rename for more clear intent * Use log.log
* switch preview popup's example text based on language (#700)StefanVukovic992024-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Copy functions from JapaneseUtil * Remove JapaneseUtil * Update usages of JapaneseUtil functions * part1 * frotend done? * fix tests * offscreen and type complications * add tests * start fixing tests * keep fixing tests * fix tests * Copy functions from JapaneseUtil * Remove JapaneseUtil * Update usages of JapaneseUtil functions * delete pt * renames * add tests * kebab-case filenames * lint * minor fixes * merge * fixes * fix part of comments * fix more comments * delete unused types * comment * comment * do backend * other files * move fetch utils to own file * remove extra line * add extra line * remove unnecessary export * simplify folder structure * remove redundant async * fix param type in api * fix language index * undo changes to cssStyleApplier * undo changes to utilities.js * undo changes to utilities.js * simplify language util * lint * undo phantom changes to anki integration * require textTransformations options * explicit locale in localeCompare * punctuate notes * prefer early exit * rename LanguageOptionsObjectMap * rename to textPreprocessor * tuple with names instead of boolean array * safe data setting * optional chaining * simplify LanguageOptions * encapsulate languages * delete language util * nullable language in text preprocessors controller * rename transform to process * remove settings * make translation advanced again * remove unused getTextTransformations api call * comments * change language types * RIP flags * comments * fix tests * lint * Text preprocessor type changes (#10) * Add types * Update types * Simplify type check * Refactor typing and structuring of language definitions * lint * update translator benchmark * undo markdown changes * undo markdown changes * undo markdown changes * more merge * use example text * comments * comments --------- Co-authored-by: toasted-nutbread <toasted-nutbread@users.noreply.github.com> Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Application data refactor (#699)toasted-nutbread2024-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Pass tabId and frameId to Application * Remove casts * Remove redundant frameInformationGet calls * Expose tabId and frameId * Remove unsed * Simplify * Update FrameAncestryHandler to not need a direct frameId * Remove frameId from FrameOffsetForwarder * Remove frameId from PopupFactory * Remove frameId from Frontend * Remove frameId from PopupPreviewFrame * Fix PopupFactory and Frontend constructor * Remove frameId from Display * Remove frameId from SearchDisplayController * Restore if check
* add language select, abstract text transformations (#584)StefanVukovic992024-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Copy functions from JapaneseUtil * Remove JapaneseUtil * Update usages of JapaneseUtil functions * part1 * frotend done? * fix tests * offscreen and type complications * add tests * start fixing tests * keep fixing tests * fix tests * Copy functions from JapaneseUtil * Remove JapaneseUtil * Update usages of JapaneseUtil functions * delete pt * renames * add tests * kebab-case filenames * lint * minor fixes * merge * fixes * fix part of comments * fix more comments * delete unused types * comment * comment * do backend * other files * move fetch utils to own file * remove extra line * add extra line * remove unnecessary export * simplify folder structure * remove redundant async * fix param type in api * fix language index * undo changes to cssStyleApplier * undo changes to utilities.js * undo changes to utilities.js * simplify language util * lint * undo phantom changes to anki integration * require textTransformations options * explicit locale in localeCompare * punctuate notes * prefer early exit * rename LanguageOptionsObjectMap * rename to textPreprocessor * tuple with names instead of boolean array * safe data setting * optional chaining * simplify LanguageOptions * encapsulate languages * delete language util * nullable language in text preprocessors controller * rename transform to process * remove settings * make translation advanced again * remove unused getTextTransformations api call * comments * change language types * RIP flags * comments * fix tests * lint * Text preprocessor type changes (#10) * Add types * Update types * Simplify type check * Refactor typing and structuring of language definitions * lint * update translator benchmark * undo markdown changes * undo markdown changes * undo markdown changes * more merge * simplify language controller --------- Co-authored-by: toasted-nutbread <toasted-nutbread@users.noreply.github.com> Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Even more eslint rules (#696)toasted-nutbread2024-02-17
| | | | | | | | | * capitalized-comments * Turn rules on * Add miscellaneous rules * More rules
* Make vitests idiomatic (#677)toasted-nutbread2024-02-17
|
* add docs (#685)StefanVukovic992024-02-15
|
* add missing setting (#680)StefanVukovic992024-02-15
|
* Simplify custom clone function (#678)toasted-nutbread2024-02-15
|
* Document OffscreenProxy (#675)toasted-nutbread2024-02-15
|
* separate json test out of test-code (#674)StefanVukovic992024-02-15
| | | | | * separate json testing * add to ci
* Eslint rule updates (#673)toasted-nutbread2024-02-15
| | | | | | | | | | | | | | | | | * Install unicorn * Add rules * Fix issues * Install sonarjs * Set up rules * Fix issues * Install eslint-plugin-import and fix import extensions * Simplify permitted error names
* Show all duplicate notes on click (#636)Eloy Robillard2024-02-15
| | | | | | | | | | | | | | | | | * Show all duplicate notes on click * Change 'notesView' to 'viewNotes' * Replace api.noteView with api.viewNotes * Update "viewNote" action to "viewNotes" in options util * Update options-util test with "viewNotes" action * Replace uses of "viewNote" with "viewNotes" * Replace _viewNote with _viewNotes * Rename /*ViewNote*/ methods to /*ViewNotes*/
* add cumulative handlebars upgrades test (#672)StefanVukovic992024-02-12
| | | | | | | | | | | | | * add cumulative test * undo delete line * old templates from v2 to v1 * move test handlebars data to templates folder --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Add and fix tests with options upgrades (#671)24.2.12.0Kuuuube2024-02-12
| | | | | | | | | | | | | | | | | | | | | | | * Add and fix tests and options applying * Fix comma * Add test file to json.json * Fix direction of conjugation handlebars update * Add frequency and cloze-body-kana to upgrade * Use Array.isArray() instead of arbitrary length check * Add pitch-accent-categories handlebar * programmatically get upgrade files * add type --------- Co-authored-by: Cashew <tungbinem@gmail.com>
* fix broken handlebars upgrade v24 (#670)24.2.11.1Darius Jahandarie2024-02-11
|
* publish-chrome*: update upload action to avoid error with `author` (#669)24.2.11.0Darius Jahandarie2024-02-11
|
* Move isExtensionUrl into WebExtension (#666)toasted-nutbread2024-02-11
|
* Eslint rule updates (#665)toasted-nutbread2024-02-11
| | | | | | | | | | | | | | | | | | | | | | | * Padding newline rules * Update rules * Update rules * Update rules * Updates * Update object quotes * Merge similar ts and js rules * Change export spacing rules * Move typescript-eslint rules * Spacing * Actually save and commit changes
* add pitch-accent-categories documentation (#663)24.2.10.0Kuuuube2024-02-10
|
* Add eslint eol-last rule (#662)Cashew2024-02-10
| | | | | | | * add eol-last eslint rule * fix lint * update css-json.test
* Add cloze-body-kana docs (#659)Kuuuube2024-02-10
| | | | | * add cloze-body-kana docs * Fix alphabetical ordering
* Add benchmarks for Translator class methods (#654)Cashew2024-02-10
| | | | | | | | | * add translator benches * fix path * update test names * remove unnecessary window, rename bench to translator
* Bump the minor group with 16 updates (#656)dependabot[bot]2024-02-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps the minor group with 16 updates: | Package | From | To | | --- | --- | --- | | [@zip.js/zip.js](https://github.com/gildas-lormeau/zip.js) | `2.7.32` | `2.7.34` | | [dexie-export-import](https://github.com/dexie/Dexie.js) | `4.0.7` | `4.1.0` | | [@playwright/test](https://github.com/microsoft/playwright) | `1.40.1` | `1.41.2` | | [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic/tree/HEAD/packages/eslint-plugin) | `1.5.4` | `1.6.0` | | [@types/zip.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/zip.js) | `2.0.32` | `2.0.33` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `6.16.0` | `6.21.0` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `6.16.0` | `6.21.0` | | [dotenv](https://github.com/motdotla/dotenv) | `16.3.1` | `16.4.1` | | [esbuild](https://github.com/evanw/esbuild) | `0.19.11` | `0.20.0` | | [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) | `48.0.4` | `48.0.6` | | [eslint-plugin-jsonc](https://github.com/ota-meshi/eslint-plugin-jsonc) | `2.11.2` | `2.13.0` | | [eslint-plugin-vitest](https://github.com/veritem/eslint-plugin-vitest) | `0.3.20` | `0.3.22` | | [html-validate](https://gitlab.com/html-validate/html-validate) | `8.8.0` | `8.9.1` | | [lint-staged](https://github.com/okonet/lint-staged) | `15.2.1` | `15.2.2` | | [prettier](https://github.com/prettier/prettier) | `3.2.4` | `3.2.5` | | [stylelint](https://github.com/stylelint/stylelint) | `16.1.0` | `16.2.1` | Updates `@zip.js/zip.js` from 2.7.32 to 2.7.34 - [Release notes](https://github.com/gildas-lormeau/zip.js/releases) - [Commits](https://github.com/gildas-lormeau/zip.js/compare/v2.7.32...v2.7.34) Updates `dexie-export-import` from 4.0.7 to 4.1.0 - [Release notes](https://github.com/dexie/Dexie.js/releases) - [Commits](https://github.com/dexie/Dexie.js/commits) Updates `@playwright/test` from 1.40.1 to 1.41.2 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.40.1...v1.41.2) Updates `@stylistic/eslint-plugin` from 1.5.4 to 1.6.0 - [Release notes](https://github.com/eslint-stylistic/eslint-stylistic/releases) - [Commits](https://github.com/eslint-stylistic/eslint-stylistic/commits/v1.6.0/packages/eslint-plugin) Updates `@types/zip.js` from 2.0.32 to 2.0.33 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/zip.js) Updates `@typescript-eslint/eslint-plugin` from 6.16.0 to 6.21.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.21.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 6.16.0 to 6.21.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.21.0/packages/parser) Updates `dotenv` from 16.3.1 to 16.4.1 - [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/motdotla/dotenv/compare/v16.3.1...v16.4.1) Updates `esbuild` from 0.19.11 to 0.20.0 - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.19.11...v0.20.0) Updates `eslint-plugin-jsdoc` from 48.0.4 to 48.0.6 - [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases) - [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc) - [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v48.0.4...v48.0.6) Updates `eslint-plugin-jsonc` from 2.11.2 to 2.13.0 - [Release notes](https://github.com/ota-meshi/eslint-plugin-jsonc/releases) - [Changelog](https://github.com/ota-meshi/eslint-plugin-jsonc/blob/master/CHANGELOG.md) - [Commits](https://github.com/ota-meshi/eslint-plugin-jsonc/compare/v2.11.2...v2.13.0) Updates `eslint-plugin-vitest` from 0.3.20 to 0.3.22 - [Release notes](https://github.com/veritem/eslint-plugin-vitest/releases) - [Commits](https://github.com/veritem/eslint-plugin-vitest/compare/v0.3.20...v0.3.22) Updates `html-validate` from 8.8.0 to 8.9.1 - [Release notes](https://gitlab.com/html-validate/html-validate/tags) - [Commits](https://gitlab.com/html-validate/html-validate/compare/v8.8.0...v8.9.1) Updates `lint-staged` from 15.2.1 to 15.2.2 - [Release notes](https://github.com/okonet/lint-staged/releases) - [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md) - [Commits](https://github.com/okonet/lint-staged/compare/v15.2.1...v15.2.2) Updates `prettier` from 3.2.4 to 3.2.5 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.2.4...3.2.5) Updates `stylelint` from 16.1.0 to 16.2.1 - [Release notes](https://github.com/stylelint/stylelint/releases) - [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md) - [Commits](https://github.com/stylelint/stylelint/compare/16.1.0...16.2.1) --- updated-dependencies: - dependency-name: "@zip.js/zip.js" dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor - dependency-name: dexie-export-import dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor - dependency-name: "@playwright/test" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: "@stylistic/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: "@types/zip.js" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: dotenv dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: esbuild dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: eslint-plugin-jsdoc dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: eslint-plugin-jsonc dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: eslint-plugin-vitest dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: html-validate dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor - dependency-name: lint-staged dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor - dependency-name: stylelint dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump hmarr/auto-approve-action from 3.2.1 to 4.0.0 (#658)dependabot[bot]2024-02-08
| | | | | | | | | | | | | | | Bumps [hmarr/auto-approve-action](https://github.com/hmarr/auto-approve-action) from 3.2.1 to 4.0.0. - [Release notes](https://github.com/hmarr/auto-approve-action/releases) - [Commits](https://github.com/hmarr/auto-approve-action/compare/44888193675f29a83e04faf4002fa8c0b537b1e4...f0939ea97e9205ef24d872e76833fa908a770363) --- updated-dependencies: - dependency-name: hmarr/auto-approve-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump mshick/add-pr-comment (#657)dependabot[bot]2024-02-08
| | | | | | | | | | | | | | Bumps [mshick/add-pr-comment](https://github.com/mshick/add-pr-comment) from a65df5f64fc741e91c59b8359a4bc56e57aaf5b1 to dd126dd8c253650d181ad9538d8b4fa218fc31e8. - [Release notes](https://github.com/mshick/add-pr-comment/releases) - [Commits](https://github.com/mshick/add-pr-comment/compare/a65df5f64fc741e91c59b8359a4bc56e57aaf5b1...dd126dd8c253650d181ad9538d8b4fa218fc31e8) --- updated-dependencies: - dependency-name: mshick/add-pr-comment dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Search Page Profile Switching (#648)marv2024-02-08
| | | | | | | | | | | | | * Add profile select dropdown * Remove right align on profile switcher in search * Fix API access * Don't cache optionsFull --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Dependency version pinning (#652)toasted-nutbread2024-02-08
| | | | | * Unpin typescript * Pin dependabot npm dependencies
* Fix hotkey helper not properly returning attributesArray (#651)toasted-nutbread2024-02-08
|
* Add cloze-body-kana handlebar (#650)Kuuuube2024-02-08
| | | | | * Add cloze-body-kana handlebar * Convert if else to ternary
* Stricter deinflection conditions (#644)Cashew2024-02-08
| | | | | | | | | * stricten deinflections * relocate items * fix lint * rename iru to -te
* Update eslint (#638)toasted-nutbread2024-02-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add json test * Update vscode settings to better handle json * Collapse eslint rules for easier readability * Reorganize * Update no-multi-spaces rule for JSON * Rules updates * Switch to @stylistic/eslint-plugin * Update deprecated stylistic rules * Group stylistic rules * Simplify rules * Move eslint env overrides to end of file * Add test * Move promiseAnimationFrame to separate file * Remove unneeded eslint disable * Remove unneeded
* Test handlebars (#529)toasted-nutbread2024-02-08
| | | | | | | * Add test for handlebars * Add another test * Fix header
* Transformation performance optimizations (#645)Cashew2024-02-07
| | | | | | | | | | | | | | | | | | | | | | * perform transformation bounds * fix wrong continue * fix wrong undefined check * regex performance * suffixHeuristic * escape RegExp * fix escapeRegExp * move destructuring after suffixHeuristic check --------- Co-authored-by: Stefan Vukovic <stefanvukovic44@gmail.com> Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
* Bench updates (#649)Cashew2024-02-07
| | | | | * update bench * add bench
* Update application init process (#634)toasted-nutbread2024-02-07
|
* ignore soft hyphen when scanning text (#640)StefanVukovic992024-02-05
| | | | | * add soft hyphen to ignored characters * add soft hyphen to ignored characters
* Reduce repeated anki field marker code (#632)toasted-nutbread2024-02-05
| | | | | | | | | | | * Unify repeated code for getting anki field markers * Throw because type safety exists * Simplify * Update order * Update test data
* kbn-handlebars dependency update (#613)toasted-nutbread2024-02-05
| | | | | | | | | | | | | * Update kbn-handlebars dependency * Move handlebars dependency to dev * Update package * Update readme * Update readme * Ignore legal file
* Update @types/node to 20.11.5 and pin (#637)toasted-nutbread2024-02-05
|
* allow inflection rule chains with "polite" (#627)StefanVukovic992024-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | * fix deinflection bug * add test * fix polite te and past * expand verb flag * fix polite negative * fix polite volitional * fix polite past negative * remove unneeded rules in * new deinflector format * make nicer * lint * remove extra line
* Fix EOL whitespace (#631)toasted-nutbread2024-02-04
| | | | | * Remove eol whitespace * Add setting
* move files (#630)StefanVukovic992024-02-04
|
* Extract fetch functions to utilities (#629)StefanVukovic992024-02-04
| | | | | | | | | | | | | | | * do backend * other files * move fetch utils to own file * remove extra line * add extra line * remove unnecessary export * undo changes to cssStyleApplier