toasted-nutbread
74709296e5
Dictionary database worker refactoring ( #1913 )
...
* Rename DictionaryWorker => DictionaryWorkerHandler
* Rename var
* Rename file
* Simplify
* Rename DictionaryDatabaseModifier => DictionaryWorker
* Rename dictionary-database-modifier.js => dictionary-worker.js
2021-08-28 14:22:16 -04:00
toasted-nutbread
93f193c89e
Fix incorrect dictionary name ordering being used for counts ( #1912 )
2021-08-28 13:47:03 -04:00
toasted-nutbread
4839503d54
Threaded dictionary delete ( #1895 )
...
* Generalize dictionary worker
* Add deleteDictionary functionality
* Update DictionaryController to use DictionaryDatabaseModifier
* Fix incorrect result handling
2021-08-14 12:41:58 -04:00
toasted-nutbread
3e350bd563
Dictionary worker refactor ( #1894 )
...
* Rename dictionary worker files
* Rename classes
* Rename file
* Rename class
* Generalize the _invoke method
* Rename 'import' to 'importDictionary'
* Improve DictionaryImporterMediaLoader usage
* Refactor message handler
* Generalize onProgress event
2021-08-14 11:46:26 -04:00
toasted-nutbread
cd3f47a359
Dictionary import progress improvements ( #1868 )
...
* Update loop vars
* Update loop
* Improve progress reporting during the import process
2021-07-31 19:13:41 -04:00
toasted-nutbread
01c5c5c04b
Dictionary importer refactoring ( #1867 )
...
* Remove map of schemas
* Don't reuse dictionary importer instances
* Refactor
* Update how progress callback is used
2021-07-31 18:08:51 -04:00
toasted-nutbread
8c4a50f68c
DictionaryImporterThreaded ( #1865 )
...
* Create new classes for importing dictionaries from a separate thread
* Use threaded importer
* Update worker tests
2021-07-31 14:46:09 -04:00
toasted-nutbread
454ffaad96
StringUtil ( #1861 )
...
* Add StringUtil class
* Use StringUtil
2021-07-31 13:04:16 -04:00
toasted-nutbread
00c5ae7983
DictionaryImporterMediaLoader ( #1860 )
...
* Rename param for consistency
* Move media loading functionality into DictionaryImporterMediaLoader
* Create test class for media loading
* Remove unnecessary Blob/Image/URL functionality
2021-07-31 12:30:31 -04:00
toasted-nutbread
2d57d69b9e
Improve dictionary importer ( #1859 )
...
* Optimize dictionary data parsing during import
* Use ArrayBuffer instead of string
* Add missing function for testing
2021-07-31 10:53:35 -04:00
toasted-nutbread
4a2b824371
Display pronunciation separation ( #1833 )
...
* Create PronunciationGenerator
* Update DisplayGenerator
* Update templates
* Move pronunciation styles to a separate file
* Simplify pitch-accents-preview.html
2021-07-17 10:26:20 -04:00
toasted-nutbread
22f048e527
Update Anki field marker menu ( #1816 )
...
* Update anki field marker menu to have less vertical padding
* Update positioning of field marker menu
2021-07-09 18:21:29 -04:00
toasted-nutbread
d446484947
Remove old settings main.js ( #1815 )
2021-07-09 18:09:15 -04:00
toasted-nutbread
8c68fa4d94
Anki text furigana parsing and {sentence-furigana} marker ( #1814 )
...
* Add support for textFurigana media
* Add readingMode parameter
* Implement readingMode
* Add {sentence-furigana} marker
* Fallback to sentence if furigana isn't available
* Update test data
2021-07-09 17:48:27 -04:00
toasted-nutbread
daa44a8389
Fix an issue with reordering dictionary settings ( #1812 )
2021-07-09 16:06:12 -04:00
toasted-nutbread
315dc425e4
Anki card selected text ( #1809 )
...
* Add support for injecting the text selection into Anki cards
* Add selection-text
* Upgrade to add {selection-text}
* Update descriptions
* Update test data
2021-07-07 20:00:30 -04:00
toasted-nutbread
f7d177e6d0
Refactor createNote ( #1789 )
...
* Update createNote to return a wrapper object
* Update how createNote creates errors
2021-07-03 11:30:48 -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
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
8ed712512b
Add some help popups for custom audio sources ( #1712 )
2021-05-26 20:40:53 -04:00
toasted-nutbread
5188e49cd4
Clean up settings v1 code from PopupPreviewController ( #1706 )
...
* Clean up settings v1 code from PopupPreviewController
* Remove unused global
2021-05-23 13:36:43 -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
41ee167dfd
Add support for generic && and || operations for settings transforms ( #1681 )
2021-05-16 10:01:57 -04:00
toasted-nutbread
e7d349c3ec
Improve the behaviour of the "Move to..." action ( #1667 )
2021-05-11 18:11:10 -04:00
toasted-nutbread
7b14cb3ab0
Remove more legacy settings page selectors ( #1659 )
2021-05-10 18:16:01 -04:00
toasted-nutbread
376a28326b
Fix invalid node/selectors being used in the dictionary delete process ( #1658 )
2021-05-10 18:04:08 -04:00
toasted-nutbread
32f5544021
Add "Move to" menu option for moving dictionary options to a specific location ( #1651 )
...
* Add "Move to" option
* Fix IDs
2021-05-02 21:04:39 -04:00
toasted-nutbread
a8b602834f
Fix the "Prefix wildcard searches supported" toggle having incorrect state ( #1650 )
2021-05-02 10:15:47 -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
0b554c936a
Add support for reordering dictionary options ( #1641 )
2021-04-30 18:15:32 -04:00
toasted-nutbread
076e201225
Improve dictionary options ( #1640 )
...
* Update dictionary options layout
* Update extras
* Improve display when no dictionaries are installed
* Implement "All" toggle
* Move modal
* Update welcome page
* Remove resizer button
* Fix ordering
* Fix extra closing tag
2021-04-30 18:01:16 -04:00
toasted-nutbread
69a739f00a
Use childNodes instead of children ( #1638 )
2021-04-28 22:07:11 -04:00
toasted-nutbread
763c6c76aa
Add scanTextAtCaret option ( #1632 )
2021-04-26 21:11:43 -04:00
toasted-nutbread
bbf47865ff
Improve AnkiController to indicate when the model/deck is invalid ( #1611 )
2021-04-12 20:20:14 -04:00
toasted-nutbread
20d60a2ba7
Initial safari compatibility ( #1609 )
...
* Update environment info to return the 'safari' browser
* Fix popup display on Safari
* Update environment assignment
* Add data-loading-stalled property when loading takes longer than expected
* Add notification when loading has stalled
* Allow getDictionaryInfo invocation on non-privileged contexts
* Update _validatePrivilegedMessageSender
* Don't listen to 'voiceschanged' event unless addEventListener is present
Also expose an event
2021-04-10 23:55:11 -04:00
toasted-nutbread
51c9bef032
Add PermissionsOriginController ( #1603 )
2021-04-08 22:52:28 -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
0e26d9a667
Remove code for old settings page ( #1588 )
2021-04-03 13:32:53 -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
f4af3f31ef
Make secondary dictionary option controllers more consistent ( #1577 )
2021-03-31 18:53:08 -04:00
toasted-nutbread
bdec71976a
Fix dictionary settings being missing after importing settings ( #1576 )
2021-03-31 18:32:17 -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
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
8fe0e5fdf5
Add reset argument menu item ( #1566 )
2021-03-27 22:56:48 -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
422f011fac
Update hotkey settings design ( #1564 )
...
* Update PopupMenu event prevention
* Use vars for button padding
* Add button-inner-label style
* Add input-button button
* Update display of scope selection
* Add hidden argument text input field
* Remove unnecessary calls
* Display a strike through the enabled button when no scopes are selected
2021-03-27 13:21:34 -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
49b603c756
Remove old settings page ( #1524 )
...
* Remove old settings page
* Remove spinner.gif
2021-03-14 22:51:48 -04:00