summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Audio request errors (#2161)toasted-nutbread2022-05-28
| | | | | | | | | | | | | | | | | | | | | * Generalize _onBeforeSendHeadersAddListener * Simplify filter assignment * Use requestId rather than done * Properly support Firefox addListener without arguments * Add details to fetchAnonymous errors * Refactor * Enable support for no header modifications * Update MV3 support for error details * Expose errors in downloadTermAudio * Throw an error if audio download fails due to potential permissions reasons
* Use \f rather than \x0C for whitespace form feed (#2158)toasted-nutbread2022-05-22
|
* Add apiReflect and apiExists to AnkiConnect (#2150)toasted-nutbread2022-05-22
|
* Add firefox-mv3 build target (#2155)toasted-nutbread2022-05-22
|
* Simplify assignment of _contentType = 'clear' (#2154)toasted-nutbread2022-05-21
|
* Fix capitalization of "Non-Standard" (#2153)toasted-nutbread2022-05-21
|
* Anki findNotes (#2152)toasted-nutbread2022-05-21
| | | | | * Add findNotes API * Add api.findAnkiNotes
* Fix the color of links in display footer notifications (#2151)toasted-nutbread2022-05-21
|
* Display notification updates (#2149)toasted-nutbread2022-05-20
| | | | | | | | | | | * Expose container and node on DisplayNotification * Add Display.createNotification * Rename methods * Rename fields * Remove double newline
* ESlint JSdoc (#2148)toasted-nutbread2022-05-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Install eslint-plugin-jsdoc * Initial rules setup * Update lists * Use @returns rather than @return * Remove error throwing code which is never executed * Fix issues relating to @throws * General error fixes * Update Display type documentation * Various doc fixes * Fix invalid tuple syntax * Doc updates * Remove unused * Doc updates * Enable jsdoc/require-returns * Update rules * Update remaining rules
* Add mode documentation about the types used by Translator (#2147)toasted-nutbread2022-05-19
|
* DOMTextScanner updates (#2146)toasted-nutbread2022-05-18
| | | | | | | | | | | * JSDoc updates * Move function * Simplify * Refactor return type * Refactor getElementSeekInfo return type
* CssStyleApplier updates (#2145)toasted-nutbread2022-05-18
| | | | | | | | | * Update internal structure of _styleData * Rename parameter * Rename * Add docs
* Fix this._horizontalTextPositionBelow being assigned incorrectly (#2144)toasted-nutbread2022-05-18
|
* Update _getNodeNoteIds to return integer IDs (#2142)toasted-nutbread2022-05-16
|
* Popup positioning improvements (#2135)toasted-nutbread2022-05-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename elementRect to sourceRect * Add getRects function to TextSourceElement and TextSourceRange * Add jsdocs * Remove unnecessary valid parameter * Remove default parameter * Make optionsContext optional * Remove unnecessary checks * Update sourceRect to use left/right rather than x/y * Update the return type of Popup*.getFrameRect * Rename some unrelated rect vars for disambiguation * Disambiguate between Popup.Rect and Popup.ValidRect * Move sourceRect destructuring * Pass multiple source rects * Simplify * Change Rect to use right/bottom rather than width/height * Update how popup offset is applied * Simplify frame offset * Remove _applyFrameOffset * Use right/bottom rather than width/height * Simplify some positioning settings * Update parameter names for clarity * Fix typos * Refactor data type for _getPosition* functions * Support using multiple source rects * Combine _getPosition functions * Refactor * Expose after dataset value * Consistently use this's property * Add jsdoc
* Dependency update (#2141)toasted-nutbread2022-05-16
| | | | | * Update dependencies * Update JSZip to 3.9.1
* Parse5 update (#2140)toasted-nutbread2022-05-16
| | | | | | | | | | | | | * Update build-libs.js * Add a test for build-libs.js * Update parse5 * Rebuild parse5 * Update build-libs.js to generate consistent path names * Rebuild
* Dictionary validate updates (#2137)toasted-nutbread2022-05-16
| | | | | | | | | * Reuse JsomSchema instance * Install ajv * Add support for using ajv as a JSON schema validator * Update usage
* Update some JSON schemas to be more compliant to the spec (#2136)toasted-nutbread2022-05-16
|
* Update structured content tests (#2134)toasted-nutbread2022-05-14
|
* Ignore DOMExceptions thrown by assigning an invalid dataset property (#2133)toasted-nutbread2022-05-14
|
* Regex optimizations (#2132)toasted-nutbread2022-05-14
| | | | | | | * Remove regex construction for SimpleDOMParser.getElementsByClassName * Remove regex construction for CssStyleApplier._getRulesForClass * Rename, add jsdoc for clarity
* Structured content auto language (#2131)toasted-nutbread2022-05-14
| | | | | | | | | | | | | | | | | | | | | | * Pass JapaneseUtil instance to StructuredContentGenerator * Move body of createStructuredContent to an internal function * Create _createStructuredContentGenericElement * Wrap structured content in a <span> * Change _createStructuredContent to _appendStructuredContent * Add public appendStructuredContent function * Add missing return * Remove unused _createDocumentFragment * Automatically assign lang=ja for content with Japanese characters without an explicit language * Add test
* Add new structured content features: lists and the HTML `lang` attribute (#2129)Stephen Kraus2022-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for structured content lists and `list-style-type` style A full list of supported style types is documented here: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type There's nothing in this code preventing a term bank from assigning, for example, a `list-style-type` style to a `div` element, but it doesn't seem like browsers will complain about things like that. * Add support for `lang` attribute in structured content Support added for the following node types: "ruby", "rt", "rp", "table", "thead", "tbody", "tfoot", "tr", "td", "th", "span", "div", "ol", "ul", "li", "a" I couldn't get it to work for the alt-hover text on "img" tags. Tests are included in the file "test/data/dictionaries/valid-dictionary/term_bank_1.json" * Add styles for structured content lists * Add override rules for new structured-content list styles see: https://github.com/FooSoft/yomichan/pull/2129 Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Bump moment from 2.29.1 to 2.29.2 (#2114)dependabot[bot]2022-04-09
| | | | | | | | | | | | | | | | Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2. - [Release notes](https://github.com/moment/moment/releases) - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md) - [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2) --- updated-dependencies: - dependency-name: moment dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Update extension update manifest for FirefoxAlex Yatskov2022-04-08
|
* Update version22.4.4.0toasted-nutbread2022-04-04
|
* Hide popup on cursor exit (#2109)toasted-nutbread2022-04-03
| | | | | | | | | * Update phrasing * Add new options * Add settings * Implement
* Add a warning about the future of the Google docs workaround (#2108)toasted-nutbread2022-04-03
|
* Update browser bugs (#2107)toasted-nutbread2022-04-03
|
* Update Popup to not store the full options object (#2106)toasted-nutbread2022-04-03
|
* Theme updates (#2105)toasted-nutbread2022-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change siteColor to siteTheme * Fix potential null exception * Simplify * Update display theme assignment * Add a data-browser-theme attribute * Add "browser" option for theme * Create ThemeController * Add theme-controller.js to relevant pages * Use ThemeController * Simplify * Fix 'light' being used instead of 'default' * Update the settings values to more accurately reflect their usage * Change default site theme in display.js * Remove async * Restore async for consistency
* Update input action prevention settings (#2104)toasted-nutbread2022-04-02
| | | | | * Update styles for the input action prevention modal * Add information
* Settings advanced indicators (#2103)toasted-nutbread2022-04-02
| | | | | * Update the advanced toggle to have a custom color * Add indicators to advanced-only settings
* Settings page mobile layout updates (#2102)toasted-nutbread2022-04-02
| | | | | * Remove use of --settings-group-inner-vertical-margin * Update alignment
* Text scanner event capture (#2101)toasted-nutbread2022-04-02
| | | | | * Add capture parameter to event listeners * Enable capture
* Update node version and dependencies (#2100)toasted-nutbread2022-04-02
| | | | | | | | | * Update packages * Update node version used in CI * Update node packages again using node v16 * Update stylelint-config-recommended
* Workaround for Google Docs canvas rendering updates (#2096)toasted-nutbread2022-04-02
|
* Structured content links (#2089)toasted-nutbread2022-03-17
| | | | | | | | | | | | | | | | | * Update CSS to JSON converter to generalize the remove-property comment * Fix navigation not being updated when _clearContent is run * Add structured content schema for link tags * Add test links * Add external-link icon * Pass Display instance to DisplayContentManager * Update structured content generation * Update link styles
* AnkiTemplateRendererContentManager (#2088)toasted-nutbread2022-03-14
| | | | | | | | | * Make function private * Update comments * Refactor the content manager that is provided to StructuredContentGenerator in AnkiTemplateRenderer * Update function to not be async, for API parity
* Rename MediaLoader to DisplayContentManager (#2087)toasted-nutbread2022-03-14
|
* Update ClipboardReader.getImage implementation (#2085)toasted-nutbread2022-03-13
|
* Improve Anki storeMediaFile (#2084)toasted-nutbread2022-03-13
| | | | | * Use the return value of storeMediaFile * Update documentation
* Add additional Anki card marker aliases (#2083)toasted-nutbread2022-03-13
|
* Add support for logging Anki errors on the settings page (#2073)toasted-nutbread2022-02-20
|
* Remove a couple of questions from FAQ which are old and no longer relevant.Alex Yatskov2022-02-19
|
* Merge branch 'master' of github.com:FooSoft/yomichanAlex Yatskov2022-02-14
|\
| * Update anki card frequency (#2065)toasted-nutbread2022-02-05
| | | | | | | | | | * Prefer to use displayValue for Anki card frequency values * Update test data
* | Update dictionary links to point to raw downloadsAlex Yatskov2022-02-14
|/