summaryrefslogtreecommitdiff
path: root/ext/mixed
Commit message (Collapse)AuthorAge
* 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
* Use ruby tag for frequency disambiguation (#1211)toasted-nutbread2021-01-09
|
* 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
|
* 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
* 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
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* Improve contrast of dark theme tag text color (#1192)toasted-nutbread2020-12-31
|
* Fix kanji selection area being on top of tags (#1191)toasted-nutbread2020-12-31
|
* Fix some issues with the display layout (#1190)toasted-nutbread2020-12-31
|
* Improve tag scanning behaviour (#1189)toasted-nutbread2020-12-31
| | | | | * Update include/exclude selectors for Display._definitionTextScanner * Fix missing condition
* Fix display notification close button style (#1185)toasted-nutbread2020-12-30
|
* Fix overlay panel animations for different action bar locations (#1183)toasted-nutbread2020-12-30
|
* Display profile panel (#1178)toasted-nutbread2020-12-29
| | | | | | | | | | | * Expose Display.displayGenerator * Update search when assigning options context * Don't clear selection unless the popup changes * Merge search styles * Create panel for changing the profile
* Fix button styles for action bar buttons (#1177)toasted-nutbread2020-12-29
| | | | | * Fix button styles for action bar buttons * Fix button colors
* Fix various issues with some styles (#1176)toasted-nutbread2020-12-29
|
* 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
* Rename PopupElement to PanelElement; split classes into separate files (#1173)toasted-nutbread2020-12-29
|
* Improve crispness of icons used on settings v2 page (#1170)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
* Add window settings (#1160)toasted-nutbread2020-12-22
| | | | | * Add window icon * Move some options to a new "Window" section
* Furigana distribution improvements (#1157)toasted-nutbread2020-12-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve furigana when reading kana is not an exact match * Simplify group structure * Return consistent type * Add more tests * Remove redundant isAmbiguous assignment * Simplify group usage * Add helper function * Optimize returned arrays * Use variable * Remove s(p)lice calls * Reduce number of convertKatakanaToHiragana calls * Optimize text length access * Optimize reading substring * Move segmentize to a separate function * Use var * Use _createFuriganaSegment * Optimize distributeFuriganaInflected
* 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
* Fix Display._definitionTextScanner not ignoring certain elements (#1153)toasted-nutbread2020-12-21
|
* 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
* Settings v2 icon improvements (#1147)toasted-nutbread2020-12-20
| | | | | | | | | | | * Update navigation icons * Improve outline layout, fixing badge indicators * Change attribute value * Update icon buttons * Update settings page
* Fix triangle indicator for kanji (#1141)toasted-nutbread2020-12-19
|
* 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
* Improve the accent color for the dark theme (#1139)toasted-nutbread2020-12-19
|
* Focus the current entry earlier in the generation process (#1137)toasted-nutbread2020-12-19
|
* Disable indicator transitions when not in use (#1136)toasted-nutbread2020-12-19
|
* 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