Commit Graph

3793 Commits

Author SHA1 Message Date
toasted-nutbread
af706dea7e
Add prepare functionality to the TemplateRendererProxy shim (#1775) 2021-06-27 20:30:37 -04:00
toasted-nutbread
1794c94844
Add separation before template-renderer-frame-main.js (#1774) 2021-06-27 19:29:22 -04:00
toasted-nutbread
1ba19adfe2
Add CssStyleApplier class (#1773) 2021-06-27 19:21:27 -04:00
toasted-nutbread
32d5fccc36
Template renderer init update (#1772)
* Update TemplateRendererFrameApi to post a 'ready' message

* Wait for 'ready' message rather than using 'load' event
2021-06-27 18:16:21 -04:00
toasted-nutbread
002da9fba8
Structured content style json (#1771)
* Install css

* Remove unnecessary rule

* Create CSS overrides file

* Create script to generate CSS JSON file

* Generate JSON

* Add test
2021-06-27 17:57:00 -04:00
toasted-nutbread
24ef820ba8
Update structured content CSS styles (#1770) 2021-06-27 15:01:35 -04:00
toasted-nutbread
94819e0ec3
Move structured content CSS into a separate file (#1769) 2021-06-27 11:46:16 -04:00
toasted-nutbread
6b8cd5e623
Template patcher updates (#1766)
* Don't append anything if the additions is empty

* Simplify update list
2021-06-26 23:55:06 -04:00
toasted-nutbread
e7ba321eb9
Update template documentation (#1765) 2021-06-26 23:19:08 -04:00
toasted-nutbread
8eb9c94f8a
Template renderer internal data update (#1764)
* Add cleanup callbacks

* Move requirements

* Add custom data
2021-06-26 17:43:07 -04:00
toasted-nutbread
73caeac0fb
Test updates (#1763)
* Allow passing of globals to custom VMs

* Add _serializeError

* Expose document to VM
2021-06-26 17:05:59 -04:00
toasted-nutbread
f9167c8fdd
Template rendering updates (#1762)
* Remove unused function

* Update template rendering return value
2021-06-26 17:05:55 -04:00
toasted-nutbread
f497cb2a07
Remove unused template (#1761) 2021-06-26 15:52:00 -04:00
toasted-nutbread
e5284988e2
Structured content generation updates (#1760)
* Simplify _createElement, fix misuse of classList

* Don't use templates to generate image content

* Omit templates
2021-06-26 15:49:23 -04:00
toasted-nutbread
fcf651c225
Update eslint rules for structured-content-generator.js (#1759) 2021-06-26 15:27:37 -04:00
toasted-nutbread
f389b3c232
Fix missing error logging when logging debug info (#1758) 2021-06-26 15:27:33 -04:00
toasted-nutbread
8d1d428ed4
Move structured-content generation code into a separate file (#1757) 2021-06-26 14:40:37 -04:00
toasted-nutbread
435af3a485
Improve what info is logged when debugging a definition (#1756) 2021-06-26 14:10:18 -04:00
toasted-nutbread
845070b817
Translator sorting updates (#1755)
* Update when definition sorting takes place

* Update test data

* Change order of sorting
2021-06-26 12:37:38 -04:00
toasted-nutbread
6e0a367afc
Translator data format updates (#1754)
* Add {dictionaryIndex, dictionaryPriority} to definitions

* Add score to definitions

* Add id to definition

* Use definition id instead of ids array

* Remove ids array

* Update docs

* Update test data
2021-06-26 11:57:09 -04:00
toasted-nutbread
5756885fa9
Structured content updates (#1753)
* Update schema

* Update content generation

* Update styles

* Update test data

* Update style names
2021-06-25 17:24:29 -04:00
toasted-nutbread
cf70b3de64
Fix search input focus not working properly (#1752) 2021-06-25 16:49:47 -04:00
toasted-nutbread
4d5e85ff09
Update dependencies (#1749)
* Update dependencies

* Remove unnecessary readonly attribute

* Run npm audit fix
2021-06-24 19:59:52 -04:00
toasted-nutbread
ef4ea2271b
Fix handling of document.body as <frameset> (#1748) 2021-06-24 19:18:33 -04:00
toasted-nutbread
1878b118fb
Fix an incorrect return value of the EventDispatcher.off function (#1747) 2021-06-24 19:15:09 -04:00
0556c50319 Update README 2021-06-08 21:02:55 -07:00
toasted-nutbread
ab286b79b4
Update browser bug list (#1734) 2021-06-06 15:14:41 -04:00
toasted-nutbread
7ae964c830
Structured content updates (#1733)
* Add support for imageRendering

* Make crisp-edges appearance on Firefox more similar to Chrome

* Refactor

* Add background option

* Move data-image-rendering attribute

* Restructure

* Organize

* Add support for appearance

* Update test dictionary

* Update tests
2021-06-06 14:47:48 -04:00
toasted-nutbread
3a095b1f6c
Improve secondary definitions (#1731)
* Improve secondary search definitions

* Simplify
2021-06-05 23:17:13 -04:00
toasted-nutbread
d87515ec12
Translator id updates (#1730)
* Allow unsequenced definitions to be added to multiple groups

* Update translator data to store multiple IDs

* Update Anki note data

* Update test data

* Update docs
2021-06-05 22:27:58 -04:00
toasted-nutbread
057283245e
Add support for definitionless main dictionary (#1729) 2021-06-05 13:35:23 -04:00
toasted-nutbread
57fb496fbc
Simplify createAudio function (#1728) 2021-06-04 20:17:04 -04:00
toasted-nutbread
c7e6c37095
Fix _getMatchURL missing search and not sanitizing wildcards (#1727) 2021-06-03 19:52:00 -04:00
toasted-nutbread
97d0a158d0 Update version 2021-05-31 22:25:05 -04:00
toasted-nutbread
744f9bb836 Revert "Auto update manifest version (#1724)"
This reverts commit e637408b4a.
2021-05-31 22:24:17 -04:00
toasted-nutbread
e637408b4a
Auto update manifest version (#1724)
* Update manifest to auto-fill the version based on most recent git tag

* Install git in the CI pipeline
2021-05-31 14:20:40 -04:00
toasted-nutbread
983cdd2339
Improve error message when running manifest commands (#1723) 2021-05-31 14:20:35 -04:00
toasted-nutbread
003cf791b1
Update build script (#1722)
* Add support for making non-buildable variants

* Add support for running a command to assign a value

* Update chrome-dev inheritance

* Add base variant

* Update manifest to auto-fill the version based on most recent git tag

* Add support for changing the default manifest

* Change the default manifest

* Move some manifest utility functions into manifest-util.js

* Move more manifest functionality into ManifestUtil

* Revert "Update manifest to auto-fill the version based on most recent git tag"

This reverts commit 2a66e40ff24f9dc545783503bcf3404f21148356.
2021-05-31 13:24:40 -04:00
toasted-nutbread
6da81d59c3
Update schema descriptions to be less redundant (#1721) 2021-05-30 16:22:25 -04:00
toasted-nutbread
5bf82a5b81
Primary audio fixes (#1719)
* Fix case when subIndex is not assigned

* Fix incorrect assignment of primary card audio

* Improve opacity style

* Improve styles for :focus-visible
2021-05-30 13:29:55 -04:00
toasted-nutbread
cca01e85a3
Improve multiple audio sources (#1718)
* Add url/voice options to audio sources

* Add help for TTS

* Remove old settings

* Update tests

* Update use of audio source URL

* Improve labels for sources with the same type
2021-05-30 12:41:19 -04:00
toasted-nutbread
efd35de67f
Refactor display audio options (#1717)
* Update how options are updated and stored in DisplayAudio

* Add source list

* Improve menus for custom json

* Clear cache after options update

* Move function

* Update public API

* Simplify playing audio from a specific source

* Simplify audio list

* Refactor audio source usage

* Refactoring

* Refactor argument names

* Fix incorrect source usage

* Remove unused

* Remove return value

* Simplify details

* Simplify Anki card audio details

* Update the data that is passed to AudioDownloader

* Simplify schema handling

* Remove unnecessary details
2021-05-30 12:15:07 -04:00
toasted-nutbread
0f0e80aadb
Refactor AudioController (#1715)
* Remove unused checks/code

* Refactor audio controller into AudioController and AudioSourceEntry
2021-05-27 22:16:34 -04:00
toasted-nutbread
dbd4371795
Update packages (#1714) 2021-05-26 21:44:46 -04:00
toasted-nutbread
52aa92208c
Fix set/deleteProperty not allowing array splicing (#1713)
* Fix set/deleteProperty not allowing array splicing

* Update tests
2021-05-26 21:08:24 -04:00
toasted-nutbread
8ed712512b
Add some help popups for custom audio sources (#1712) 2021-05-26 20:40:53 -04:00
toasted-nutbread
0232325f96
Refactor json audio source (#1711)
* Move sources to the end of audio options object

* Add custom-json audio source type

* Add support for downloading custom-json

* Remove customSourceType
2021-05-26 20:38:15 -04:00
toasted-nutbread
900bceda47
Fix json schema array properties (#1709)
* Fix proxy array properties being handled incorrectly

* Add tests to check array properties
2021-05-24 18:53:42 -04:00
toasted-nutbread
54e102f343
Json schema ref support (#1708)
* Add basic support for JSON schema $ref

* Add tests
2021-05-23 15:49:25 -04:00
toasted-nutbread
8e330d54d6
Fix popup preview disappearing after changing a setting (#1707) 2021-05-23 14:30:31 -04:00