aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
Commit message (Collapse)AuthorAge
* 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
|
* Fix typo (#1218)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
* Add links to settings v2 headings (#1212)toasted-nutbread2021-01-09
|
* 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
* CSS lint (#1201)toasted-nutbread2021-01-03
| | | | | | | | | | | | | * Use single quotes instead of double * Install stylelint * Set up config * Update package/tests * Fix lint issues * Update CSS rules
* Update permissions pages with info about MV3 permissions (#1200)toasted-nutbread2021-01-03
|
* 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
* Group templates near their relevant modal definitions (#1198)toasted-nutbread2021-01-02
|
* 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
|
* Fix incorrect body height on pitch accents preview page (#1186)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
* Simplify CSS rule (#1182)toasted-nutbread2020-12-30
|
* Improve wrapping layout for small resolutions (#1181)toasted-nutbread2020-12-30
|
* Improve location of Anki error message (#1180)toasted-nutbread2020-12-30
|
* Add section heading comments (#1179)toasted-nutbread2020-12-30
|
* Split material css (#1175)toasted-nutbread2020-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Separate material styles into a separate file * Improve action button styles * Rename --font-size-default to --font-size * Remove px units * Remove some material vars * Fix some variable names * Define variables * Remove --shadow-vertical * Revert name change * Move var * Rename var * Update vars * Remove redundant vars * Update search styles * Update styles * Update colors * Update variable names * Include material.css on float.html page
* Fix modals not being hidden by default on the welcome page (#1174)toasted-nutbread2020-12-29
|
* 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
* Remove "Top" link from settings v2 page (#1169)toasted-nutbread2020-12-28
|
* Change global.useSettingsV2 default value to true (#1168)toasted-nutbread2020-12-28
|
* 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
|
* Add window settings (#1160)toasted-nutbread2020-12-22
| | | | | * Add window icon * Move some options to a new "Window" section
* Move scanning options higher up (#1159)toasted-nutbread2020-12-22
|
* Fix missing data-setting target for scanning.enablePopupSearch (#1156)toasted-nutbread2020-12-21
|
* Improve settings item button styles (#1155)toasted-nutbread2020-12-21
| | | | | | | * Improve styles for settings-item-button * Add hover/active styles to settings-item-button * Use consistent phrasing for setting buttons and include ellipsis
* 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
|