aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
Commit message (Collapse)AuthorAge
* Update default settings page (#1254)toasted-nutbread2021-01-16
| | | | | | | | | * Update settings v2 to be the default for existing users * Update information on the old settings page * Update information on the new settings page * Update tests
* Shorten options upgrade list (#1252)toasted-nutbread2021-01-16
|
* Stroke count marker (#1251)toasted-nutbread2021-01-16
| | | | | | | | | * Add stroke-count definition * Update options * Update documentation * Add helper
* Refactor hotkey handling (#1250)toasted-nutbread2021-01-16
| | | | | * Create HotkeyHandler * Update Display to use HotkeyHandler
* Update extension shortcuts (#1246)toasted-nutbread2021-01-16
| | | | | * Update commands * Add command to open the popup window
* Popup window options (#1245)toasted-nutbread2021-01-16
| | | | | | | | | | | | | | | * Add popupWindow options * Add toBoolean converter * Add settings * Use new options * Add test link * Fix window state not working * Make the window section advanced only
* Update hotkey issues (#1244)toasted-nutbread2021-01-15
| | | | | * Scroll to the bottom when adding inputs * Skip if empty action
* Separate close hotkey (#1242)toasted-nutbread2021-01-15
| | | | | | | * Add focusSearchBox hotkey * Update close hotkey action * Update hotkeys
* Fix note context on settings page (#1241)toasted-nutbread2021-01-15
|
* 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
* Fix profile conditions issues (#1239)toasted-nutbread2021-01-14
| | | | | | | | | * Add an event for when the number of profile conditions changes * Update count * Fix stale data being used * Add "Remove group" option
* Clarify some settings descriptions (#1238)toasted-nutbread2021-01-14
| | | | | | | | | * Clarify the meaning of the 'None' option; rename to 'No key' * Clarify Auto-hide search popup * Clarify Scan delay * Move Support inputs for devices with touch screens; make advanced
* Add reset input to profile condition (#1237)toasted-nutbread2021-01-14
| | | | | * Add _setType and _setOperator * Add reset value menu option
* Hotkeys (#1236)toasted-nutbread2021-01-14
| | | | | | | | | | | * Set up hotkey inputs * Improve key display * Add setInput * Add KeyboardShortcutController * Update how display handles hotkeys
* Convert getDefaultOptions to a utility function (#1235)toasted-nutbread2021-01-14
|
* 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
* Search key handling refactor (#1233)toasted-nutbread2021-01-14
| | | | | | | | | * Move super invocation * Move active element check * Simplify key handling * Remove unused
* Update KeyboardMouseInputField (#1232)toasted-nutbread2021-01-14
| | | | | | | | | | | | | * Assign missing type * Update KeyboardMouseInputField to use an array instead of a string * Use "modifiers" instead of "value" or "inputs" * Simplify * Add support for using keys * Use bool args instead of a string
* 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
* Change popupActionBarLocation to top (#1222)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
* 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
* 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
* Fix AnkiCardController using stale data (#1204)toasted-nutbread2021-01-06
|
* Refactor anki note generation (#1202)toasted-nutbread2021-01-03
| | | | | | | * Create _injectAnkiNoteMedia function * Remove unused code path * Simplify modeOptions
* Translator regex replacements (#1199)toasted-nutbread2021-01-03
| | | | | | | | | | | | | | | | | | | * Add support for regex replacements during the translation process * Allow assignment of textReplacements * Rename * Set up test data * Write expected data * Set up options * Prevent infinite loop if regex matches empty string * Implement setting controller * Add support for testing pattern replacements
* Simplify collapseEmphaticOptions options (#1196)toasted-nutbread2021-01-01
|
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* Simplify glossary layout setting (#1188)toasted-nutbread2020-12-31
| | | | | * Add conditionalConvert transform * Convert glossaryLayoutMode option to a toggle
* Improve settings transforms (#1187)toasted-nutbread2020-12-31
|
* Translator frequency data improvements (#1184)toasted-nutbread2020-12-30
| | | | | | | * Specify if a frequency has a specific reading * Make frequency data creation more standardized * Update test data
* Improve location of Anki error message (#1180)toasted-nutbread2020-12-30
|
* Rename PopupElement to PanelElement; split classes into separate files (#1173)toasted-nutbread2020-12-29
|
* Remove top link code (#1172)toasted-nutbread2020-12-28
|
* Improve element hiding (#1171)toasted-nutbread2020-12-28
| | | | | * Use multi-line definition for transition * Update how PopupElement visibility is controlled
* Improve document focus control (#1167)toasted-nutbread2020-12-28
| | | | | | | | | * Improve styles for #content-scroll-focus * Create new class to manage and control document focus * Use new focus class * Add a check to prevent redundant .blur calls
* Change popupCurrentIndicatorMode default to triangle (#1161)toasted-nutbread2020-12-22
|
* Improve query parser scanning (#1154)toasted-nutbread2020-12-21
| | | | | * Improve how the search page updates after settings have changed * Always update the history on the first scan of the query parser
* Update the popup preview to always be visible on the settings v2 page (#1151)toasted-nutbread2020-12-20
|
* Settings v2 modal size toggle (#1149)toasted-nutbread2020-12-20
| | | | | | | | | | | | | * Add collapse/expand icons * Update header layout * Allow size animation * Add styles for modal header buttons * Support action buttons * Update modals to support size changing
* Dictionary display updates (#1146)toasted-nutbread2020-12-20
| | | | | | | | | | | | | | | | | * Display dictionary-list as flex * Move styles * Move enabled toggle * Update details * Disable sorting based on priority * Update styles * Update title color when disabled * Update display style of secondary search dictionaries
* Indicate if first Anki card field is invalid (#1145)toasted-nutbread2020-12-20
| | | | | * Add AnkiNoteBuilder.containsAnyMarker * Flag first field as invalid when there is no marker
* Improve styles for invalid inputs (#1143)toasted-nutbread2020-12-20
|
* Popup action bar options (#1140)toasted-nutbread2020-12-19
| | | | | | | | | | | | | * Add options for action bar visibility and location * Add settings * Update styles * Expose properties * Update styles * Update tests
* Update termTags for termGrouped mode to include all definition tags (#1138)toasted-nutbread2020-12-19
| | | | | * Update termTags for termGrouped mode to include all definition tags * Update tests
* Entry indicator update (#1134)toasted-nutbread2020-12-19
| | | | | | | | | | | | | | | | | | | | | | | * Move entry current indicator rules * Simplify rules * Add popupCurrentIndicatorMode option * Add option to settings page * Expose popupCurrentIndicatorMode * Restore asterisk current indicator * Implement dot * Update action button vars * Fix tests * Add none option * Add triangle option