toasted-nutbread
ace46503be
Make Display.authenticateMessageData private ( #1780 )
2021-06-29 22:17:14 -04:00
toasted-nutbread
1f1a958a71
Update CSS rules for images ( #1777 )
2021-06-28 22:12:17 -04:00
toasted-nutbread
9f3d267e24
Fix incorrect aspect ratio of structured-content images ( #1776 )
2021-06-28 21:46:54 -04:00
toasted-nutbread
24ef820ba8
Update structured content CSS styles ( #1770 )
2021-06-27 15:01:35 -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
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
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
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
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
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
24d43c123d
Fix incorrect selector causing invalid headword index to be used ( #1705 )
2021-05-23 13:20:38 -04:00
toasted-nutbread
be23acf499
Structured content image size units ( #1692 )
...
* Add support for sizeUnits on image content
* Update test data
2021-05-20 19:33:08 -04:00
toasted-nutbread
6184bcb812
Selection clear improvements ( #1690 )
...
* Update selection clear process
* Clean up old clearSelection API
* Update clear order
* Add clear event handling
2021-05-19 20:09:37 -04:00
toasted-nutbread
eddd028864
Add support for definitions with structured content ( #1689 )
...
* Add structured content to schema
* Add support for generating custom content
* Update importer
* Update test data
* Add verticalAlign property
2021-05-19 18:24:50 -04:00
toasted-nutbread
f3cf4d10c7
Dictionary image display refactoring ( #1687 )
...
* Generalize image definition generation
* Enable optional aspect ratio
* Move styles
* Update styles
* Add more options for collapsing images
* Add image options for collapsing
* Improve layout for images that are collapsed
2021-05-18 17:41:27 -04:00
toasted-nutbread
76276e78da
Expose search query to anki template renderer ( #1686 )
...
* Expose query and fullQuery to Anki context
* Add {search-query} marker
* Update test data
* Update tests
* Wrap search query in multiLine
2021-05-17 20:18:37 -04:00
toasted-nutbread
76c29134b3
Revert "Add support for custom text type generation ( #1683 )" ( #1684 )
...
This reverts commit 39cabc4db6
.
2021-05-16 19:52:08 -04:00
toasted-nutbread
39cabc4db6
Add support for custom text type generation ( #1683 )
2021-05-16 15:52:39 -04:00
toasted-nutbread
2c752fd89d
Popup action search ( #1678 )
...
* Set up search page in the action popup
* Fix a style causing incorrect overflow
* Fix error when trying to take a screenshot
* Fix popup size on Firefox
2021-05-15 16:30:33 -04:00
toasted-nutbread
bc6fb4e7d7
Fix incorrect _updateClipboardMonitorEnabled invocation ( #1677 )
2021-05-15 15:31:54 -04:00
toasted-nutbread
8442a8ba22
Add SearchPersistentStateController ( #1676 )
2021-05-15 15:11:42 -04:00
toasted-nutbread
46f60619d5
Display fixes ( #1648 )
...
* Fix incorrect tabId/frameId being used
* Only enable nested popups if the tabId is valid
* Remove unused APIs
2021-05-01 17:30:17 -04:00
toasted-nutbread
c514bbc4fb
Flags profile conditions ( #1647 )
...
* Generalize modifier keys
* Optimize bindings
* Add support for flags
* Add clipboard flag
* Update tests
* Add tests
2021-05-01 15:54:31 -04:00
toasted-nutbread
c433819c1b
Update search tags to always be displayed in a consistent manner ( #1645 )
2021-05-01 11:53:56 -04:00
toasted-nutbread
8ee470caa0
Remove the mouseover tags that are shown in merge mode ( #1644 )
2021-05-01 11:41:10 -04:00
soriac
ba3f7b3e96
Show any custom tags on words that have anki cards created ( #1628 )
...
* Proof-of-concept for showing card tags (#1626 )
* Resolved most PR comments:
- Added a snackbar notification when clicking tag button
- Replaced magnifying glass icon with new tag icon
- Button now contains a span w/icon, to use text color
- Removed unnecessary attributes from button
- Backend now returns full noteInfos object
- Frontend now handles filtering tags
* Add options to show/hide tag button & filter tags
* Do not show tags button if, after filtering, we have zero tags.
* Change tags option to enums, optimize tags intersection check & fix code style.
* Update options-util.js to include new tag options.
* Fix wording on new tag setting.
* Add CSS to remove hidden buttons from the display layout.
* getAnkiNoteInfo extra parameter for additional info.
* Add new tag option to tests.
* Remove unnecessary changes related to anki tags option.
* Code style fixes.
2021-04-30 17:57:53 -04:00
toasted-nutbread
40b29cb0d3
Add pitch categories template helper ( #1636 )
...
* Move utility function
* Expose dictionary entry as a hidden property for internal use
* Add pitchCategories helper
2021-04-28 21:57:49 -04:00
toasted-nutbread
38ed4dc5c7
Improve kifuku detection to not include suru nouns ( #1621 )
2021-04-26 20:00:03 -04:00
toasted-nutbread
609d4fe334
Replace furigana with reading ( #1614 )
...
* Use "reading" instead of "furigana" for reading distribution
* Update tests
2021-04-13 20:32:24 -04:00
toasted-nutbread
c73ee13086
More terminology updates ( #1600 )
...
* Update terminology
* Update display
* Rename expression-list to headword-list
* Rename expression-current-indicator
* Rename expression classes
* Update dictionary entry container
* Rename glossary => gloss
* Rename heading
* Rename gloss classes to gloss-content
2021-04-08 19:59:55 -04:00
toasted-nutbread
e444141511
Fix autofocus sometimes not working on the search page ( #1597 )
2021-04-07 19:07:42 -04:00
toasted-nutbread
e14b52ef84
Update dictionary entry terminology ( #1592 )
...
* Update terminology
* Update terminology in display.js
* Update terminology in display-audio.js
* Update terminology in text-scanner.js
* Update terminology in backend.js
* Update terminology in mecab.js
* Update terminology in audio-downloader.js
* Update terminology in translator-vm.js
* Update terminology in dictionary-data-util.js
* Update terminology in dictionary-database.js
* Update terminology in japanese-util.js
* Change/upgrade {expression} to {term}
* Update terminology in test-japanese.js
* Update terminology in test-database.js
* Update terminology in anki-templates-controller.js
* Update terminology in anki-note-builder.js
* Update terminology in backend.js
* Update terminology in text-scanner.js
* Update terminology in display.js
* Update terminology in display.js
2021-04-04 16:22:35 -04:00
toasted-nutbread
8de1e9b3d8
Update logged data name to dictionaryEntry ( #1590 )
2021-04-03 15:23:55 -04:00
toasted-nutbread
a9fe2d03b2
Update dictionary settings structure ( #1587 )
...
* Update dictionary settings structure to use an array instead of an object
* Update ensureDictionarySettings implementation
* Remove some usage of ObjectPropertyAccessor
2021-04-03 13:02:49 -04:00
toasted-nutbread
8179846e38
Refactor template rendering ( #1583 )
...
* Update _errorToJson to _serializeError
* Remove async
* Refactor render
* Simplify _getModifiedData
* Rename data => commonData
* Rename templates => template for consistency
* Improve errors check
* Update tests
2021-04-02 12:42:06 -04:00
toasted-nutbread
c66fe71ee0
Remove debug statements ( #1582 )
2021-04-01 19:17:53 -04:00
toasted-nutbread
5d7309ed54
Log Anki data ( #1579 )
...
* Remove unused modifierPost
* Add _getModifier
* Add _getModifiedData
* Add getModifiedData
* Add getRenderingData
* Update logging to also log anki note data
* Fix dangling comma
2021-03-31 20:07:11 -04:00
toasted-nutbread
da612bbdd7
Fix missing document title on the search page ( #1578 )
2021-03-31 19:58:33 -04:00
toasted-nutbread
bcbd413e57
Definition collapsing when overflowing ( #1575 )
...
* Add double-down-chevron.svg
* Add options
* Update dictionary importers
* Update settings
* Add support for collapsible definitions
* Improve case when there is a very small amount of overflow
* Fix incorrect enabled state of newly imported dictionaries
2021-03-31 18:17:28 -04:00
toasted-nutbread
cbcfdcacaf
Fix incorrect state assignment when unbinding wanakana ( #1573 )
2021-03-29 18:46:32 -04:00
toasted-nutbread
b4d6a5d3b4
Toggle option hotkey ( #1571 )
...
* Set up toggleOption hotkey action settings
* Update styles
* Disable spell check and autocomplete
* Add OptionToggleHotkeyHandler
* Improve auto-close behaviour
2021-03-28 14:04:20 -04:00
toasted-nutbread
98994d0b65
Add playAudioFromSource hotkey ( #1570 )
2021-03-28 11:27:37 -04:00
toasted-nutbread
2098d2faae
Hotkey arguments ( #1565 )
...
* Update display
* Move scope definitions
* Update scopes button after changing action
* Don't show menu if empty
* Improve scope updating
* Update style
* Simplify
* Add argument to settings
* Update convertToNumber implementation
* Add support for arguments
* Pass argument to action handler
* Update hotkey action definitions
* Remove x3 options
2021-03-27 22:30:45 -04:00
toasted-nutbread
90f7d5ba07
Add part of speech info ( #1561 )
...
* Add part of speech info to headwords
* Expose parts of speech to Anki template rendering
* Expose parts of speech
* Update pitch accent categories
* Update docs
* Add part-of-speech
* Update options and tests
* Update markers
* Update test data
2021-03-26 19:50:54 -04:00
toasted-nutbread
482dd8c8d8
Display fixes ( #1560 )
...
* Fix _getDefinitionDetailsForNote
* Fix _getExpressionAndReading
2021-03-26 19:31:19 -04:00