aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display-generator.js
Commit message (Collapse)AuthorAge
* Move mixed/js (#1383)toasted-nutbread2021-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move mixed/js/core.js to js/core.js * Move mixed/js/yomichan.js to js/yomichan.js * Move mixed/js/timer.js to js/debug/timer.js * Move mixed/js/hotkey-handler.js to js/input/hotkey-handler.js * Move mixed/js/hotkey-help-controller.js to js/input/hotkey-help-controller.js * Move mixed/js/hotkey-util.js to js/input/hotkey-util.js * Move mixed/js/audio-system.js to js/input/audio-system.js * Move mixed/js/media-loader.js to js/input/media-loader.js * Move mixed/js/text-to-speech-audio.js to js/input/text-to-speech-audio.js * Move mixed/js/comm.js to js/comm/cross-frame-api.js * Move mixed/js/api.js to js/comm/api.js * Move mixed/js/frame-client.js to js/comm/frame-client.js * Move mixed/js/frame-endpoint.js to js/comm/frame-endpoint.js * Move mixed/js/display.js to js/display/display.js * Move mixed/js/display-audio.js to js/display/display-audio.js * Move mixed/js/display-generator.js to js/display/display-generator.js * Move mixed/js/display-history.js to js/display/display-history.js * Move mixed/js/display-notification.js to js/display/display-notification.js * Move mixed/js/display-profile-selection.js to js/display/display-profile-selection.js * Move mixed/js/japanese.js to js/language/japanese-util.js * Move mixed/js/dictionary-data-util.js to js/language/dictionary-data-util.js * Move mixed/js/document-focus-controller.js to js/dom/document-focus-controller.js * Move mixed/js/document-util.js to js/dom/document-util.js * Move mixed/js/dom-data-binder.js to js/dom/dom-data-binder.js * Move mixed/js/html-template-collection.js to js/dom/html-template-collection.js * Move mixed/js/panel-element.js to js/dom/panel-element.js * Move mixed/js/popup-menu.js to js/dom/popup-menu.js * Move mixed/js/selector-observer.js to js/dom/selector-observer.js * Move mixed/js/scroll.js to js/dom/window-scroll.js * Move mixed/js/text-scanner.js to js/language/text-scanner.js * Move mixed/js/cache-map.js to js/general/cache-map.js * Move mixed/js/object-property-accessor.js to js/general/object-property-accessor.js * Move mixed/js/task-accumulator.js to js/general/task-accumulator.js * Move mixed/js/environment.js to js/background/environment.js * Move mixed/js/dynamic-loader.js to js/scripting/dynamic-loader.js * Move mixed/js/dynamic-loader-sentinel.js to js/scripting/dynamic-loader-sentinel.js
* Enforce language (#1344)toasted-nutbread2021-02-08
| | | | | | | | | * Assign text content and a language * Remove _appendMultilineText * Assign lang for createTextNode content * Add language attributes to HTML pages
* Add note errors (#1329)toasted-nutbread2021-01-30
| | | | | | | | | | | | | | | | | | | * Update _addAnkiNote to track errors * Change comparison * Update anki note adding to show errors * Fix template * Show errors when Anki card creation behaves unexpectedly * Update some errors related to anki media injection * Update addAnkiNote error handling * Improve Anki errors * Simplify error messages related to template rendering
* Remove the dictionary tag from the definitionTags (#1324)toasted-nutbread2021-01-28
| | | | | | | | | | | * Remove dictionary tag from term definitionTags and kanji tags * Update test data * Update templates * Update tests * Update information
* 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
* Fix DisplayGenerator not working on pitch-accents-preview.html (#1276)toasted-nutbread2021-01-19
|
* 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
* 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
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* 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
* Improve display tags (#1117)toasted-nutbread2020-12-18
| | | | | | | | | | | * Update tag style * Add styles/HTML for notifications * Add DisplayNotification class * Add support for tag notifications * Simplify notification content
* Fix frequency tags (#1080)toasted-nutbread2020-12-05
| | | | | | | | | * Rename term-frequency to tag-frequency * Move tag styles * Expand * Use separate templates for terms vs kanji
* JapaneseUtil normalization (#1076)toasted-nutbread2020-11-29
| | | | | * Use JapaneseUtil as a class which is manually instantiated * Use alias function for toKana
* Display style updates (#1072)toasted-nutbread2020-11-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add variables for tag styles * Add variable for compact list separator * Improve compactness of pitch accents * Improve kanji link styles * Improve coloring for lists * Move styles * Update styles for lists * Move conditional styles * Simplify definitions * Remove unused styles * Cleanup * Use strings for dataset properties * Don't always collapse pitch accents
* Improve html templates (#1061)toasted-nutbread2020-11-24
| | | | | | | | | | | * Add template pre-processing * Remove whitespace * Add labels * Reuse tag template for search tags * Add space
* Frequency display improvements (#1060)toasted-nutbread2020-11-24
| | | | | | | * Hide redundant frequencies * Add dataset counters for unique expressions/readings * Update frequency display to include disambiguations
* More display updates (#1050)toasted-nutbread2020-11-21
| | | | | | | | | | | * Use grid for layout * Add data-count attribute * Fix scroll issues during focus * Add index to entries * Simplify audio playback
* Display updates (#1029)toasted-nutbread2020-11-14
| | | | | | | | | | | | | * Simplify expression creation * Add attribute indicating whether the reading is the same or not * Update kanji debug info * Remove some unnecessary null checks * Simplify iterable check * Update float and search HTML to be more consistent
* Display updates (#1024)toasted-nutbread2020-11-13
| | | | | * Update display generation to use new format assumptions * Simplify how debug information is presented
* Compact tags refactor (#1021)toasted-nutbread2020-11-12
| | | | | | | | | | | | | * Update translator to flag redundant tags instead of remove * Update how compact tags are shown in the popup * Pass compactTags option to note builder * Update options templates * Add options upgrade * Add options upgrade test
* Pitch accents preview (#987)toasted-nutbread2020-11-03
| | | | | * Add public preparePitchAccents function to DisplayGenerator * Add pitch accents preview HTML, CSS, and JS
* Fix display issues (#984)toasted-nutbread2020-11-01
| | | | | | | | | | | | | | | * Remove unused function * Update expresionMulti detection * Simplify kanji early escape * Simplify frequency/pitch data creation * Update implementation of _buildTermMeta * Update how pitch accents sources are collected * Remove old _buildTermMeta
* Template handler update (#896)toasted-nutbread2020-10-07
| | | | | | | | | * Rename TemplateHandler to HtmlTemplateCollection * Rename _templateHandler to _templates * Allow creation from both string and element * Simplify setup of templates, don't throw errors on invalid ID
* More display refactoring (#697)toasted-nutbread2020-08-01
| | | | | | | | | | | | | | | | | | | * Remove some unnecessary _setQuery calls * Add support for forcing the query parser to be visible or hidden * Move _setEventListenersActive calls * Remove URL for kanji links * Refactor _setContentTermsOrKanji * Move search query text assignment into Display * Move title updates into Display * Move popup close calls * Prevent infinite loop of extension unload events
* Dictionary data utility class (#698)toasted-nutbread2020-07-30
| | | | | * Create utility class for helping format dictionary data * Change format
* API refactor (#532)toasted-nutbread2020-05-24
| | | | | | | | | | | | | * Convert api.js into a class instance * Use new api.* functions * Fix missing binds * Group functions with progress callbacks together * Change style * Fix API override not working
* Add support for displaying imagestoasted-nutbread2020-04-18
|
* Merge pull request #438 from toasted-nutbread/display-generator-refactoringtoasted-nutbread2020-04-11
|\ | | | | Display generator refactoring
| * Simplify access to details fields in createTermEntrytoasted-nutbread2020-04-09
| |
| * Update how termTags is passed to _createTermExpressiontoasted-nutbread2020-04-09
| |
| * Rename "only" to "disambiguation" to match naming convention used for pitch ↵toasted-nutbread2020-04-09
| | | | | | | | accents
| * Update _appendMultiple to not use a fallbacktoasted-nutbread2020-04-09
| |
| * Organizetoasted-nutbread2020-04-09
| |
| * Mark functions as privatetoasted-nutbread2020-04-09
| |
| * Remove staticstoasted-nutbread2020-04-09
| |
| * Remove data-multi assignmentstoasted-nutbread2020-04-09
| |
* | Update license author field to broader to explicitly reflect thatAlex Yatskov2020-04-10
|/ | | | | Yomichan is an ongoing community project. It really does take a village, and everyone who contributes code owns a part of it :)
* Include readings in disambiguationstoasted-nutbread2020-03-29
|
* Change namestoasted-nutbread2020-03-29
|
* Update how pitch accent expressions are disambiguatedtoasted-nutbread2020-03-28
|
* Update stylestoasted-nutbread2020-03-28
|
* Move Japanese utility functions out of display-generator.jstoasted-nutbread2020-03-28
|
* Add support for accent graphtoasted-nutbread2020-03-28
|
* Add support for displaying pitch accentstoasted-nutbread2020-03-28
|
* Add metadata for unique expression counttoasted-nutbread2020-03-28
|
* Add support for different sections for term contenttoasted-nutbread2020-03-28
|
* Update _appendMultiple to support general iterablestoasted-nutbread2020-03-28
|
* Replace DisplayGenerator._isCharacterKanji with jp.isCodePointKanjitoasted-nutbread2020-03-21
|
* Update global declarationstoasted-nutbread2020-03-10
|