summaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
Commit message (Collapse)AuthorAge
* Extension unload indication fix (#662)toasted-nutbread2020-07-18
| | | | | | | | | | | | | | | | | | | * Remove unused function * Rename field * Change extensionUnloaded trigger function * Update how extension unloaded content is shown * Ignore certain errors caused by extension unload * Add _showExtensionUnloaded function * Wrap internals of updateOptions * Suppress errors caued by extension unload * Make the frontend trigger the popup's extensionUnloaded event
* Refactor hotkey definitions to be more generic (#655)toasted-nutbread2020-07-08
|
* Display class refactoring (#650)toasted-nutbread2020-07-03
| | | | | | | | | | | | | | | | | | | | | | | * Organize by public/private * Don't access super class's private members * Make _autoPlayAudioTimer private * Refactor constructors * Make functions private * Organize by public/private * Organize window message handlers * Make fields private * Refactor DisplaySearch constructor * Make functions private * Organize by public/private
* Extension unload detection (#647)toasted-nutbread2020-07-03
| | | | | | | * Update how extension unload is detected * Remove event handlers and use yomichan.isExtensionUnloaded instead * Update terminology
* Display refactor (#643)toasted-nutbread2020-07-03
| | | | | | | | | | | | | | | | | | | * Remove statics * Move orphan detection and error handling to Display * Add clearContent function * Add/use public get/set functions for optionsContext * Add public getOptions * Move interactive assignment * Mark fields as private * Mark functions as private * Change stray getter into a function
* Yomichan object separation (#627)toasted-nutbread2020-06-28
| | | | | | | | | | | | | * Move "yomichan" object setup to a separate file * Update script imports * Align message handlers * Rename Yomichan.prepare to Yomichan.ready * Add new prepare function * Improve isExtensionUrl
* Use DOMTextScanner (#536)toasted-nutbread2020-06-21
| | | | | | | | | | | | | | | | | * Use DOMTextScanner instead of TextSourceRange.seek* * Move getNodesInRange to dom.js * Move anyNodeMatchesSelector to dom.js * Remove unused functions * Update tests * Add layoutAwareScan option * Use layoutAwareScan for source and sentence scanning * Remove unused IGNORE_TEXT_PATTERN
* Safely handle volume values that are out of range (#617)toasted-nutbread2020-06-21
|
* 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
* Use CSS variables for themes (#528)toasted-nutbread2020-05-10
| | | | | | | | | | | | | | | | | | | * Update formatting * Merge default tag color with category-less tags * Use CSS variables for colors * Add dark theme colors * Move color variables into display.css * Remove old stylesheets * Update headings * Bump minimum Firefox version to support CSS var() * Revert popular kanji text color
* Modifier key profile condition (#487)siikamiika2020-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | * update Frontend options on modifier change * add modifier key profile condition * use select element for modifier condition value * support "is" and "is not" modifier key conditions * use plural * remove dead null check it's never null in that function * pass element on rather than assigning to this * rename event * remove Firefox OS key to Meta detection * hide Meta from dropdown on Firefox * move input type
* Frontend refactor (part 1) (#484)toasted-nutbread2020-04-27
| | | | | | | | | | | | | | | | | | | * Remove _getVisualViewportScale * Use super's mouse event listener definitions * Remove redundant override * Remove getTouchEventListeners override * Rename Display.onSearchClear to onEscape * Change onSearchClear to clearSelection and use an event * Update how text is marked for selection and deselection * Replace onError with yomichan.logError * Update setEnabled to refresh all event listeners
* Update Popup and DisplayFloat optionsContext from Frontend (#464)siikamiika2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | * set optionsContext from Frontend * update Popup+Display options on Frontend change * remove popup setOptions * only update DisplayFloat options from Frontend * fix optionsContext usage * fix preview frame arguments * keep Frontend URL up to date * cache url * fix preview frame * trigger modifyingProfileChange in correct places * remove async from function not using await * refactor optionsContext in Frontend
* Add support for displaying imagestoasted-nutbread2020-04-18
|
* Fix overlapping audio.play calls due to awaittoasted-nutbread2020-04-18
|
* Await and handle errors from audio.play()toasted-nutbread2020-04-18
|
* Update styletoasted-nutbread2020-04-18
|
* Fix button title text not updating correctly in merge modetoasted-nutbread2020-04-18
|
* Return index of the source instead of the source valuetoasted-nutbread2020-04-18
|
* Disable cache on the backend and fix a bug with the cache keytoasted-nutbread2020-04-18
|
* Update the parameters passed to various audio-related functionstoasted-nutbread2020-04-18
|
* Merge pull request #437 from toasted-nutbread/backend-api-handler-changestoasted-nutbread2020-04-11
|\ | | | | Backend api handler changes
| * apiBroadcast => apiBroadcastTabtoasted-nutbread2020-04-10
| |
| * Rename apiForward to apiBroadcasttoasted-nutbread2020-04-07
| |
* | 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 :)
* Fix not awaiting this._getNoteContexttoasted-nutbread2020-04-06
|
* Add overridable getDocumentTitletoasted-nutbread2020-04-06
|
* Add support for {document-title}toasted-nutbread2020-04-06
|
* Add custom context object for note creationtoasted-nutbread2020-04-06
|
* Rename context to detailstoasted-nutbread2020-04-06
|
* Add optionstoasted-nutbread2020-03-28
|
* remove targetPopupId 'all'siikamiika2020-03-21
| | | | Make unset targetPopupId mean the same thing instead
* apply all options on profile changesiikamiika2020-03-21
|
* Update global declarationstoasted-nutbread2020-03-10
|
* Rename audio functions using "url" to use "uri"toasted-nutbread2020-03-07
|
* Rename functiontoasted-nutbread2020-03-07
|
* Use dependency injection for getAudioUri implementationtoasted-nutbread2020-03-07
|
* Use AudioSystem in Displaytoasted-nutbread2020-03-07
|
* ensure Backend prepare in other placessiikamiika2020-03-02
|
* Fix audio buttons not being hidden properlytoasted-nutbread2020-03-01
|
* Move event handler definitionstoasted-nutbread2020-02-26
|
* Fix noteUsesScreenshot not checking modetoasted-nutbread2020-02-25
|
* Use for oftoasted-nutbread2020-02-25
|
* Use for oftoasted-nutbread2020-02-25
|
* temporarily disable navigation header mouse wheelsiikamiika2020-02-24
| | | | Unblock release #355, #376
* Create EventListenerCollection classtoasted-nutbread2020-02-16
|
* Use consistent timeout for both setContentTerms and setContentKanjitoasted-nutbread2020-02-15
|
* Use promiseTimeout instead of delaytoasted-nutbread2020-02-15
|
* Move error handling for apiDefinitionsAddabletoasted-nutbread2020-02-15
|
* Rename optionsUpdate event to optionsUpdatedtoasted-nutbread2020-02-14
| | | | | | Past tense better indicates that the options were changed, but no data is being included as part of the event. It is also more consistent with the other event names the yomichan object currently provides.