Commit Graph

3835 Commits

Author SHA1 Message Date
04bb98e78c Remove links to dictionaries 2024-09-15 12:04:52 -07:00
1a41a514a1 Fix broken link 2024-04-11 21:02:06 -07:00
528a63fdac Remove downloads for Yomichan 2023-12-10 12:02:05 -08:00
2f13cf5d2a Update maintanence info 2023-02-25 12:43:18 -08:00
a528c72107 Remove updates.json from master, it will be accessed from the metadata branch instead. 2022-10-30 12:48:50 -07:00
991fa8189a Change URL Firefox testing builds use to locate updates.json 2022-10-30 12:42:26 -07:00
toasted-nutbread
752d73418b Update version 2022-10-23 17:24:56 -04:00
toasted-nutbread
4abbc707a5
Use "const" instead of "enum" with one value (#2259) 2022-10-16 22:08:08 -04:00
toasted-nutbread
c93682f677
Ajv error fix (#2258)
* Fix ajv validation errors

* Update error format
2022-10-16 22:08:03 -04:00
toasted-nutbread
096bde44ee
Documentation updates (#2257)
* Document Backend

* Document RequestBuilder

* Document some of AnkiConnect
2022-10-16 22:07:57 -04:00
toasted-nutbread
a47cbc39e2
Fix unnecessary margin on search box in Firefox (#2255) 2022-10-15 22:43:21 -04:00
toasted-nutbread
9ef7f9d383
Clipboard updates (#2254)
* Rename

* Rename vars

* Refactor paste target

* Prevent most CSS url() properties from loading

* Add helper function to clear rich function

* Add useRichText argument

* Update condition for using readText

* Fix indent

* Update CSS
2022-10-15 22:43:12 -04:00
toasted-nutbread
a370b46fae
Dependency updates (#2253)
* Update dependencies

* Rebuild parse5

* Update version info

* Audit fix
2022-10-15 13:31:37 -04:00
toasted-nutbread
3dd7c63c53
Ignore file updates (#2252)
* Update ignore to use directories

* Add lint ignore files
2022-10-15 13:13:21 -04:00
toasted-nutbread
441b6882ca
Lint updates (#2247)
* Fix spacing

* Update lint dependencies

* Disable false positive rule

* Update header rule

* Install eslint-plugin-jsonc

* Update lint rules to include jsonc extension
2022-10-15 13:09:02 -04:00
toasted-nutbread
5e707248ce
Fix text selection not always working properly (#2246) 2022-10-15 11:40:22 -04:00
toasted-nutbread
abb3e5d5d0
Audio certificate error notification (#2243)
* Refactor error throwing and change ID

* Show a notification when an audio download fails due to an expired cert
2022-10-05 22:51:15 -04:00
toasted-nutbread
f76c7d74d0
Cleanup and refactoring (#2239)
* Remove unused ignoreSelectors

* Remove unused isMouseButtonPressed

* Update getWritingMode to use the immediate element if possible

* Move static functions to DocumentUtil

* Fix documentation
2022-09-27 20:17:59 -04:00
toasted-nutbread
be7855bad2
More API documentation (#2238)
* Document TextSourceRange

* Document TextSourceElement

* Document DocumentUtil

* Document DocumentFocusController
2022-09-26 19:37:14 -04:00
38c3d1b98c Update Firefox testing release 2022-09-25 09:00:07 -07:00
toasted-nutbread
018dc602d9 Update version 2022-09-25 09:54:57 -04:00
toasted-nutbread
642dcb8fc9
Google Docs accessibility simplifications (#2237)
* Use getAttribute instead of dataset, in case SVG node APIs are unusual

* Use pointer-events instead of fill

* Use elementFromPoint instead of elementsFromPoint
2022-09-25 09:42:20 -04:00
toasted-nutbread
75d3059451
TextSource* API updates (#2236)
* Move TextSourceRange static functions to DocumentUtil

getWritingMode is also simplified

* Update Google Docs range to be empty to match other range sources

* Rename imposterContainer to imposterElement

* Add static creation functions

* Add static creation function

* Remove unused collapse function

* Don't select imposter elements

* Refactor setEndOffset

* Adjust argument order for setEndOffset

* Update TextSourceRange constructor

* Remove unused isConnected

* Cache rects

* Fix test

* Remove unused getRect

* Revert "Fix test"

* Remove cachedRect

* Use the source element rect to handle scroll differences

* Writing mode update

* Remove _cachedRects update

This shouldn't be necessary as the imposter is usually detached
almost immediately after scanning, giving no time for the window
to be resized or scrolled.
2022-09-25 09:37:33 -04:00
toasted-nutbread
8240482e9d
Google Docs accessibility update (#2235)
* Update Google Docs injection script

* Create GoogleDocsUtil

* Update Frontend.js to register GoogleDocsUtil's getRangeFromPoint handler

* Update setting name and description

* Add comment

* Fix Firefox support
2022-09-24 22:44:40 -04:00
toasted-nutbread
da52caa152
DocumentUtil extensibility (#2234)
* Update DocumentUtil.getRangeFromPoint to be extensible

* Add documentation
2022-09-24 17:17:10 -04:00
toasted-nutbread
115c3ce3d7
API loadExtensionScripts (#2233)
* Inject MV3 scripts immediately

* Add api.loadExtensionScripts
2022-09-24 16:41:21 -04:00
toasted-nutbread
1e91bf151f
DocumentUtil static (#2232)
* Make all methods static

The two non-static methods are kept for temporary compatibility

* Use this instead of class name now that functions are static

* Update test

* Don't instantiate DocumentUtil

* Remove temporary non-static methods

* Remove unused global declaration
2022-09-24 16:05:19 -04:00
b27d290509 Update Firefox testing release 2022-09-21 19:52:20 -07:00
toasted-nutbread
794b206870 Version update 2022-09-20 21:11:50 -04:00
toasted-nutbread
480869c3d1
Exclude documentElement from zoom calculation (#2227)
* Exclude documentElement from zoom calculation

* Add an option

* Refactor zoom coordinate conversion functions

* Convert zoom coordinates for text sources

* Rename variable

* Convert rect coordinate spaces

* Handle shadow DOM
2022-09-20 21:06:39 -04:00
ac373a6794 Update testing version to 22.9.9.0 2022-09-11 10:55:23 -07:00
toasted-nutbread
227cbbc7cd Version update 2022-09-09 19:58:51 -04:00
Alexei Yatskov
09f885a6c2
Merge pull request #2222 from toasted-nutbread/remove-dictionaries
Remove old dictionaries
2022-08-31 19:39:26 -07:00
toasted-nutbread
e242b6598c
Update readme (#2221) 2022-08-21 12:21:59 -04:00
toasted-nutbread
b0ae419634 Remove dictionaries 2022-08-21 12:20:53 -04:00
toasted-nutbread
e7944d29b0
TextSourceElement surrogate pair support (#2217)
* Update StringUtil

* Refactor

* Handle UTF-16 surrogate pairs
2022-08-20 14:32:34 -04:00
toasted-nutbread
4194252fe3
New StringUtil (#2216)
* Create new StringUtil

* Use StringUtil in DOMTextScanner

* Fix order
2022-08-20 13:11:38 -04:00
toasted-nutbread
d3807d88ec
ArrayBufferUtil (#2215)
* Rename StringUtil to ArrayBufferUtil

* Update docs

* Rename file string-util.js to array-buffer-util.js
2022-08-20 12:53:22 -04:00
toasted-nutbread
cd0a6b60e2
Fix setEndOffset (#2214)
* Add _layoutAwareScan option to TextSourceElement.setEndOffset for parity

* Remove default param
2022-08-20 12:38:55 -04:00
toasted-nutbread
c5c5308ff2
Update DOMTextScanner to support UTF-16 surrogate pairs (#2213) 2022-08-20 11:32:20 -04:00
toasted-nutbread
5c267f4bb7
Profile index fixes (#2207)
* Update settings controller to consistently initialize

* Allow profile index to be reset if an error occurs

* Update message handler to be async

* Fix error when deleting the current profile
2022-08-20 11:31:50 -04:00
toasted-nutbread
9436928e3d
Optimize AnkiConnect.findNoteIds (#2190)
* Use for loop rather than map

* Add _getNoteQuery

* Optimize findNoteIds to reduce repeat queries
2022-08-20 11:31:06 -04:00
toasted-nutbread
5dcb698a5a
Update browser bugs (#2189) 2022-08-20 11:29:47 -04:00
toasted-nutbread
ada4df1971
Fix invalid default values for popupTheme and popupOuterTheme (#2180)
* Fix invalid default values for popupTheme and popupOuterTheme

* Options update
2022-08-20 11:29:31 -04:00
toasted-nutbread
0b1ad40347
CSS zoom handling (#2178)
* Refactor

* Handle CSS zoom when scanning
2022-08-20 11:20:23 -04:00
toasted-nutbread
310303ca1a
Audio download timeout (#2187)
* Add support for an idle timeout when downloading audio

* Update eslint rules

* Pass idleTimeout to the downloader from DisplayAnki

* Add anki.downloadTimeout setting

* Update tests

* Assign _audioDownloadIdleTimeout using settings

* Show info about cancelled downloads

* Handle Firefox bug

* Improve audio errors

* Refactor

* Move functions to RequestBuilder
2022-08-20 11:17:24 -04:00
toasted-nutbread
02483a45b1
Fix TextSourceElement.getRects (#2177) 2022-08-20 11:14:46 -04:00
Stephen Kraus
c331ceae99
Add new structured content styling options (#2203)
Allow for arbitrary string assignment to the font-size property.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-size

Add support for the text-align property.
https://developer.mozilla.org/en-US/docs/Web/CSS/text-align

Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
2022-08-14 13:30:25 -04:00
289a61a62f Remove metadata which is no longer needed for generating foosoft.net 2022-07-14 10:44:33 -07:00
70c3c4a66c Update updates.json for testing release 2022-07-03 11:38:12 -07:00