summaryrefslogtreecommitdiff
path: root/ext/js/display
Commit message (Collapse)AuthorAge
* Action handler name disambiguation (#2018)toasted-nutbread2021-11-21
| | | | | | | | | | | | | | | | | | | * Disambiguate PopupFactory action handlers * Update HotkeyHandler action names * Disambiguate Frontend action handlers * Disambiguate Display action handlers * Disambiguate PopupPreviewFrame action handlers * Disambiguate Yomichan action handlers * Disambiguate Frontend action handlers * Disambiguate Display action handlers * Disambiguate SearchDisplayController action handlers
* Fix search page not being cleared properly (#2005)toasted-nutbread2021-11-13
|
* Don't stop audio playback when hiding a popup (#1995)toasted-nutbread2021-10-21
|
* Display menu button (#1992)toasted-nutbread2021-10-17
| | | | | * Implement new menu which includes a debug log option * Update wording
* Display button updates (#1991)toasted-nutbread2021-10-17
| | | | | * Update display buttons * Remove use of _addMultipleEventListeners
* String frequency support (#1989)toasted-nutbread2021-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | * Restore support for string frequency values * Add support for {value, displayValue} frequencies * Update test data * Improve number parsing of string frequencies * Improve reading detection * Expose a displayValue property for frequency information * Update docs * Expose displayValue to Anki note data * Fix translator * Update display generation * Update test data * Update counts
* Fix query being set to null when an empty search page is opened (#1988)toasted-nutbread2021-10-14
|
* Search query back button (#1981)toasted-nutbread2021-10-09
| | | | | * Always allow history to go back/forward when using browser history * Add a back button which is visible when using the query parser
* Display refactoring (#1978)toasted-nutbread2021-10-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor _setContentTermsOrKanji * Update query assignment * Simplify * Remove redundant _updateQueryParser * Reorder query assignment * Remove isTerms, replace with isKanji * Simplify defaults * Refactor events * Update DisplayAnki to use events * Simplify * Update DisplayAudio to use events * Simplify * Move audio hotkeys * Add frameVisibilityChange event * Fix name * Add logDictionaryEntryData event * Move clearAutoPlayTimer handler * Fix call * Externalize DisplayAnki and DisplayAudio from Display * Simplify clear
* Hotkey dictionary navigation fix (#1970)toasted-nutbread2021-09-30
| | | | | | | * Add getRect function to ScrollElement * Update _focusEntry to take a definition index * Update behaviour of (next|previous)EntryDifferentDictionary
* Search query offset value (#1968)toasted-nutbread2021-09-27
| | | | | | | | | | | * Add type property to TextSource* classes * Use type property rather than instanceof * Expose a sentence offset value * Use offset added to URL * Improve fallback sentence for Anki note context
* Remove display query post process (#1967)toasted-nutbread2021-09-26
| | | | | * Remove search query post-processing * Remove _rawQuery, as it is redundant with _query
* Add data-is-primary attribute to headwords (#1946)toasted-nutbread2021-09-11
|
* Structured content data (#1930)toasted-nutbread2021-09-04
| | | | | | | | | | | * Add support for structured-content data attributes * Assign dataset properties * Don't remove data-sc attributes * Use helper functions * Update test data
* Fix repeated note IDs shown on the "View Note" button (#1927)toasted-nutbread2021-09-03
|
* Add support for structured content margins (#1920)toasted-nutbread2021-08-31
|
* Fix empty sentence on some search page URLs (#1919)toasted-nutbread2021-08-31
|
* Fix history replacement issue (#1917)toasted-nutbread2021-08-30
| | | | | * Remove unused "history" field of event details * Change setContent history parameter to historyMode
* Fix auto-play not working on the search page (#1882)toasted-nutbread2021-08-10
|
* Improve audio auto play cancellation (#1873)toasted-nutbread2021-08-02
| | | | | * Cancel automatic audio playback when hiding the popup * Don't play audio if the popup is hidden
* Rename pitchAccent in source code (#1852)toasted-nutbread2021-07-26
| | | | | | | | | | | * Rename pitchAccentPosition to pitchAccentDownstepPosition * Rename function * Rename * Rename * pitches => pronunciations
* Rename CSS class names "pitch-accent" to "pronunciation" (#1850)toasted-nutbread2021-07-25
| | | | | | | | | | | | | * pitch-accents => pronunciations * Update dataset property names * pitch-accent-dictionary => pronunciation-dictionary * Update styles * Update template name * Update attributes
* Fix definition image aspect ratio issue (#1847)toasted-nutbread2021-07-22
| | | | | * Fix incorrect aspect ratio * Update test data
* Pronunciation template helper (#1840)toasted-nutbread2021-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename field * Set up pronunication components * Fix documentation * Rename function * Update test dependencies * Fix constructor * Log errors * Add pronunciation helper * Add styleApplier argument to _getHtml/_normalizeHtml * Use getAttribute for 'class' to support namespaced elements (e.g. svg) * Update format name * Add optional tag * Update docs
* Sandbox script folders (#1837)toasted-nutbread2021-07-17
| | | | | | | | | * Move scripts * Update paths * Fix ordering * Simplify eslint rules
* Display pronunciation refactor (#1835)toasted-nutbread2021-07-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify svg and container styles * Rename pitch-accent-details to pitch-accent-graph-container * Rename pitch-accent-graph* to pronunciation-graph* * Remove unused template * Omit quotes * Rename pitch-accent-character to pronunciation-mora * Simplify names * Replace pronunciation-mora-inner with pronunciation-character * Improve grouping of nasal characters * Simplify character replacement * Replace pseudo-elements with real elements * Use an element rather than a fragment * Rename functions * Add wrapper * Rename pitch-accent-characters to pronunciation-text-container * Update test data * Update downstep notation generation * Rename pitch-accent-position to pronunciation-downstep-notation-container * Space * Wrap pronunciations in a container node * Update preview * Embed pitch accent styles directly
* Pronunciation nasal improvement (#1834)toasted-nutbread2021-07-17
| | | | | | | | | * Organize * Add utility to get diacritic information about a character * Show mora without diacritic * Add a hidden handakuten for copy-paste purposes
* Display pronunciation separation (#1833)toasted-nutbread2021-07-17
| | | | | | | | | | | * Create PronunciationGenerator * Update DisplayGenerator * Update templates * Move pronunciation styles to a separate file * Simplify pitch-accents-preview.html
* Devoice and nasal pronunciation info (#1832)toasted-nutbread2021-07-15
| | | | | | | | | | | | | * Update schema to support information about nasal and devoiced mora * Expose nasalPositions and devoicePositions in dictionary entry data * Expose nasalPositions, devoicePositions in grouped pitch info * Update display generator * Update test dictionary data * Update test data
* Multi view note (#1829)toasted-nutbread2021-07-14
| | | | | | | * Add support for a menu to view multiple note IDs * Show a + badge when there are multiple notes available * Organize
* Duplicate scope check all models (#1810)toasted-nutbread2021-07-13
| | | | | | | * Add duplicateScopeCheckAllModels option to createNote * Add duplicateScopeCheckAllModels option * Add setting
* Improve error when card has missing content (#1818)toasted-nutbread2021-07-09
|
* Anki text furigana parsing and {sentence-furigana} marker (#1814)toasted-nutbread2021-07-09
| | | | | | | | | | | | | * 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
* JapaneseUtil updates (#1813)toasted-nutbread2021-07-09
| | | | | | | | | * Rename test file * Use shorthand * Add support checking functions * Remove convertReading from JapaneseUtil
* Text parse updates (#1811)toasted-nutbread2021-07-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Expose more settings to QueryParser * Rename textParse to parseText * Refactor * Convert reading inside QueryParser rather than Backend * Remove use of readingMode from backend * Rename * Update parseText args * Simplify * Update results * Move use of optionsContext * Run mecab and internal parser in parallel * Added "dictionary-reading" reading mode * Update romaji conversion case
* Fix incorrect resultOutputMode (#1804)toasted-nutbread2021-07-06
|
* Template renderer media updates (#1802)toasted-nutbread2021-07-06
| | | | | | | | | | | | | | | | | * Add TemplateRendererMediaProvider to abstract media-related functionality * Update representation of injected media * Update templates * Update upgrade file * Update tests * Update test data * Force media to be an object * Update test data
* Pass requirements to note generation (#1800)toasted-nutbread2021-07-05
| | | | | | | * Update structure * Pass requirements to _createNote * Show an error for requirements that weren't fulfilled
* DisplayAnki note requirements (#1799)toasted-nutbread2021-07-05
| | | | | * Update how errors are collected from _formatField * Expose requirements
* Store anki note details (#1798)toasted-nutbread2021-07-05
| | | | | | | | | | | | | | | * Update error handling of _areDictionaryEntriesAddable * Store note details * Remove promise after use * Rename function * Clear stored details * Rename function * Rename function
* Refactor DisplayAnki.setupEntriesComplete params and implementation (#1794)toasted-nutbread2021-07-04
|
* Update the note context object generation process to ensure consistency (#1792)toasted-nutbread2021-07-03
|
* DisplayAnki (#1791)toasted-nutbread2021-07-03
| | | | | | | | | | | * Remove anki functionality from display * Rename function * Display API updates * Use DisplayAnki * TODO
* Refactor createNote (#1789)toasted-nutbread2021-07-03
| | | | | * Update createNote to return a wrapper object * Update how createNote creates errors
* Make Display.authenticateMessageData private (#1780)toasted-nutbread2021-06-29
|
* Update CSS rules for images (#1777)toasted-nutbread2021-06-28
|
* Fix incorrect aspect ratio of structured-content images (#1776)toasted-nutbread2021-06-28
|
* Update structured content CSS styles (#1770)toasted-nutbread2021-06-27
|
* Structured content generation updates (#1760)toasted-nutbread2021-06-26
| | | | | | | * Simplify _createElement, fix misuse of classList * Don't use templates to generate image content * Omit templates
* Fix missing error logging when logging debug info (#1758)toasted-nutbread2021-06-26
|