aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
Commit message (Collapse)AuthorAge
* Update comm message errors to include what the action was (#1312)toasted-nutbread2021-01-25
|
* Various firefox fixes (#1306)toasted-nutbread2021-01-24
| | | | | * Fix for chrome.commands not being present on Firefox's embedded float.html * Fix _getSearchContext mishandling _optionsContextOverride
* Multiple custom audio sources (#1303)toasted-nutbread2021-01-23
| | | | | | | | | | | | | | | * Fix label * Fix icon size being flexible * Add schema * Add customSourceType option * Update settings * Pass customSourceType to the audio downloader * Implement custom audio JSON mode
* Audio button menu (#1302)toasted-nutbread2021-01-23
| | | | | | | | | * Fix popup menus not stoping events * Ensure non-stale use of buttons * Enable popup menus on the popup/search pages * Add audio menu
* Update popup menu structure (#1301)toasted-nutbread2021-01-23
| | | | | | | | | * Wrap menu items in popup-menu-body * Use bodyNode instead of node * Update selector * Update _setPosition to not use items
* Audio play button status badge (#1300)toasted-nutbread2021-01-23
| | | | | | | | | | | | | | | * Add plus-thick.svg * Add success-color variable * Fix icon display * Add badge * Add missing audioResolved * Update audio badge * Expose attribute
* Add missing audio field (#1296)toasted-nutbread2021-01-23
|
* More display audio refactoring (#1293)toasted-nutbread2021-01-23
| | | | | | | | | | | | | | | * Add _getExpressionAndReading utility * Add _getExpressionReadingKey utility * Add _getAudioOptions * Separate some logic into _createAudioFromInfoList * Update cache data format so that it can be accessed synchronously * Allow sources to be manually specified * Add options to enable playback of a specific entry of a source
* Update display audio cache (#1292)toasted-nutbread2021-01-23
| | | | | | | | | | | | | * Use a standard map * Wrap function * Improve cache to support multiple different source arrays For the same reading/expression * Rename variable * Use null instead of an error
* Display audio update (#1291)toasted-nutbread2021-01-22
| | | | | | | * Move createExpressionAudio to DisplayAudio * Move createAudioFromInfo to DisplayAudio * Update TextToSpeechAudio
* Update audio validity checks to be based on the source (#1290)toasted-nutbread2021-01-22
|
* Simplify CacheMap (#1287)toasted-nutbread2021-01-21
| | | | | | | | | * Simplify CacheMap, removing support for array path keys * Update keys * Update JsonSchemaValidator * Update AudioSystem
* Update data-menu-position to be space separated instead of comma separated ↵toasted-nutbread2021-01-21
| | | | (#1286)
* Move popup-menu.js (#1280)toasted-nutbread2021-01-20
|
* Fix DisplayGenerator not working on pitch-accents-preview.html (#1276)toasted-nutbread2021-01-19
|
* Audio system refactoring (#1275)toasted-nutbread2021-01-18
| | | | | | | | | | | | | | | * Simplify details * Simplify audio creation * Return an array of sources instead of a single item * Use sourceIndex instead of index * Rename APIs * Return more info about the source * Return source instead of sourceIndex
* Hotkey help controller (#1272)toasted-nutbread2021-01-18
| | | | | | | | | | | * Create HotkeyHelpController * Expose getAllTemplates * Update hotkeys on the context page * Update hotkeys on the display pages * Fix display issue where a hotkey used to be defined but no longer is
* Hotkey util (#1270)toasted-nutbread2021-01-18
| | | | | | | | | * Create HotkeyUtil * Create tests * Use HotkeyUtil * Fix issues
* Display audio (#1269)toasted-nutbread2021-01-18
| | | | | * Update display definition/definition node handling * Separate display audio controls into a separate class
* Audio system improvements (#1268)toasted-nutbread2021-01-17
| | | | | * Simplify API * Move fallback audio
* Add support for frontend hotkeys; add scanSelectedText action (#1266)toasted-nutbread2021-01-17
| | | | | | | * Add support for frontend hotkeys; add scanSelectedText action * Remove unused global * Remove duplicate hotkey handler script
* Remove _onMessage (#1265)toasted-nutbread2021-01-17
|
* Optimize hotkey registration (#1264)toasted-nutbread2021-01-17
|
* Hotkey forwarding support (#1263)toasted-nutbread2021-01-17
| | | | | | | | | * Add support for allowing HotkeyHandler to forward hotkeys * Update hotkey registration * Pass HotkeyHandler instance into Display* constructor * Implement hotkey forwarding
* Text scanner improvements (#1261)toasted-nutbread2021-01-17
| | | | | | | | | | | | | | | | | * Add support for allowing TextScanner.search to force focus * Simplify query parser searched event forwarding * Defer fallback creation * Simplify event listeners * Change type to pointerType * Change cause to eventType * Change empty to passive; make .search function passive * Remove unused input index
* Optimize hotkey handler to not hook any events if cannot do anything (#1260)toasted-nutbread2021-01-16
|
* Update TextScanner.search to return the event details object (#1257)toasted-nutbread2021-01-16
|
* Add check to ignore hotkey registrations with null key (#1256)toasted-nutbread2021-01-16
|
* Refactor hotkey handling (#1250)toasted-nutbread2021-01-16
| | | | | * Create HotkeyHandler * Update Display to use HotkeyHandler
* Update hotkey issues (#1244)toasted-nutbread2021-01-15
| | | | | * Scroll to the bottom when adding inputs * Skip if empty action
* Add hotkeys to change dictionary (#1243)toasted-nutbread2021-01-15
| | | | | * Add nextEntryDifferentDictionary and previousEntryDifferentDictionary hotkeys * Update settings
* Separate close hotkey (#1242)toasted-nutbread2021-01-15
| | | | | | | * Add focusSearchBox hotkey * Update close hotkey action * Update hotkeys
* Support suspending new anki cards (#1240)toasted-nutbread2021-01-14
| | | | | | | | | | | * Add new option: anki.suspendNewCards * Update Anki APIs * Suspend card based on options * Add setting * Disable wrap for toggle property
* Hotkeys (#1236)toasted-nutbread2021-01-14
| | | | | | | | | | | * Set up hotkey inputs * Improve key display * Add setInput * Add KeyboardShortcutController * Update how display handles hotkeys
* Use code instead of key (#1234)toasted-nutbread2021-01-14
| | | | | | | * Update KeyboardMouseInputField to use .code instead of .key * Update Display to use .code instead of .key * Remove unused function
* Anki note data abstraction (#1228)toasted-nutbread2021-01-12
| | | | | | | | | | | | | | | | | | | | | | | * Create AnkiNoteData * Create AnkiNoteDataDefinitionProxyHandler * Update media injection * Create AnkiNoteDataDefinitionSecondaryProperties * Update note context format * Expose url and cloze on definition * Simplify for understandability * Remove unused _createNoteData * Update public object * Remove trims on sentence, since it should already be trimmed * Fix unused global
* Refactor note document title (#1227)toasted-nutbread2021-01-12
| | | | | | | | | | | | | * Pass url into setContent * Update where url is checked from * Add documentTitle to state information * Update how _getNoteContext gets the document title * Update how url is fetched for options context * Pass document title in to 'searched' event
* Refactor text scanner options context generation (#1225)toasted-nutbread2021-01-11
| | | | | * Refactor how options context is created and updated * Udpate TextScanner/QueryParser to use getSearchContext instead of getOptionsContext
* Refactor display anki functions (#1224)toasted-nutbread2021-01-11
| | | | | | | | | | | * Refactor note adding/viewing functions * Move _addDefinition * Update where anki field templates are assigned * Update _createNote to not include options/templates arguments * Simplify getAnkiNoteInfo to not require duplicateScope
* Refactor anki note building (#1223)toasted-nutbread2021-01-10
| | | | | | | | | | | * Move TemplateRendererProxy creation into AnkiNoteBuilder * Simplify _stringReplaceAsync * Organize note generation * Rename API * Make the template rendering function more generic
* Update how navigation sidebar visibility is controlled (#1221)toasted-nutbread2021-01-10
|
* Fix profile panel not being able to be closed due to hidden sidebar (#1220)toasted-nutbread2021-01-10
|
* Customizable sentence parsing (#1217)toasted-nutbread2021-01-10
| | | | | | | | | | | | | | | * Add new sentenceParsing options * Update TextScanner.setOptions * Assign terminator/quote maps * Pass sentence parsing info to extractSentence * Simplify setting * Add setting for enableTerminationCharacters * Create new settings for sentence termination characters
* Refactor sentence parsing (#1215)toasted-nutbread2021-01-09
| | | | | | | | | | | | | * Rename sentenceExtent with sentenceScanExtent * Update TextScanner.setOptions * Change function argument order * Rename quote map variables * Fix edge case quote handling * Update terminator maps to support character inclusion
* Sentence parsing options (#1214)toasted-nutbread2021-01-09
| | | | | | | * Rename options.anki.sentenceExt to options.sentenceParsing.scanExtent * Create sentence parsing icon * Create new sentence parsing section
* Refactor sentence scanning (#1213)toasted-nutbread2021-01-09
| | | | | | | | | * Update tests * Update extractSentence implementation * Remove old extractSentence implementation * Optimize maps/sets
* Update term tags display and fix a layout issue (#1208)toasted-nutbread2021-01-09
| | | | | | | * Fix layout issue with term expression display * Update display of term tags * Update tag notification to include disambiguation information
* Improve frequency display (#1209)toasted-nutbread2021-01-09
| | | | | | | | | * Disable old frequencies * Update layout * Implement new frequency display * Update count info
* Core refactor (#1207)toasted-nutbread2021-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | * Copy set intersection functions * Remove unused functions * Simplify url check * Remove parseUrl * Simplify stringReverse * Remove hasOwn due to infrequent use * Rename errorToJson/jsonToError to de/serializeError For clarity on intended use. * Fix time argument on timeout * Add missing return value * Throw an error for unexpected argument values * Add documentation comments
* Update DictionaryDataUtil to be able to be used in a sandbox frame (#1206)toasted-nutbread2021-01-07
|