summaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/popup-preview-frame.js
Commit message (Collapse)AuthorAge
* Popup preview fixes (#948)toasted-nutbread2020-10-20
| | | | | * Select just the text node and not its container * Make background color transparent by default
* Popup preview improvements (#947)toasted-nutbread2020-10-20
| | | | | | | | | | | | | * Move CSS * Update indent * Refactor HTML/CSS * Add support for editing the source text * Add WanaKana binding for input * Rename file
* Fix page type never being detected as search page correctly (#867)toasted-nutbread2020-09-26
|
* Frontend initialization refactor (#737)toasted-nutbread2020-08-16
| | | | | | | | | | | | | * Fix incorrect popup depth reassignment * Rename variable * Rename property * Use explicit parameter values * Refactor setupNestedPopups * Refactor frontend initialization
* Frontend initialization refactor (#610)toasted-nutbread2020-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create member functions for ignoreElements and ignorePoint * Create addFullscreenChangeEventListener utility * Move popup creation management into Frontend * Move getUrl implementation * Remove old setup * Remove try/catch block * Error wrap * Add prepare call to TextScanner * Update depth when popup changes * Refactor how Frontend gets PopupFactory and frameId * Update popup preview to work * Update popup preview frame to use the frontend's popup * Update how nested popups are set up * Error wrap * Update how popups are set up on the search page * Error wrap * Error unwrap * Add missing prepare * Remove use of frontendInitializationData * Catch and log errors
* Fix frontend being null if messages are received early (#575)toasted-nutbread2020-05-30
|
* Popup preview frame refactor (#572)toasted-nutbread2020-05-29
| | | | | | | | | | | | | | | * Use private variables * Use private methods * Update overrides * Make prepare called in the entry point function * Change format of handlers * Change where _apiOptionsGetOld is assigned * Rename class
* 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
* Popup proxy host refactor (#516)toasted-nutbread2020-05-08
| | | | | | | | | | | | | | | | | | | | | | | * Rename PopupProxyHost to PopupFactory * Update FrontendApiReceiver to support non-async handlers * Make some functions non-async * Make setCustomCss non-async * Make setContentScale non-async * Remove static * Rename variables * Pass frameId into PopupFactory's constructor * Change FrontendApiReceiver source from popup-proxy-host to popup-factor * Rename _invokeHostApi to _invoke * Rename PopupProxy.getHostUrl to getUrl
* Frontend refactor (#508)toasted-nutbread2020-05-06
| | | | | | | | | * Use this.popup instead of this.frontend.popup * Rename Frontend.popup to _popup * Make Frontend functions private * Clean up Frontend constructor
* Remove Frontend inheritance (#486)toasted-nutbread2020-05-02
| | | | | | | | | | | | | | | * Make Frontend use composition instead of inheritance for TextScanner * Use push instead of concat * Update setOptions and setEnabled APIs * Update how onWindowMessage event listener is added/removed * Rename options to _options * Use bind instead of arrow function * Fix selection being cleared due to settings changes
* 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
* Create popup-preview-frame-main.jstoasted-nutbread2020-04-19
|
* 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 :)
* Update global declarationstoasted-nutbread2020-03-10
|
* Simplify event to use bindtoasted-nutbread2020-02-26
|
* Use .bind instead of () => {}toasted-nutbread2020-02-26
|
* Move event handler definitionstoasted-nutbread2020-02-26
|
* Fix unnamed functionstoasted-nutbread2020-02-22
|
* Check origin on window messagestoasted-nutbread2020-02-16
|
* Create more generic function for injecting stylesheetstoasted-nutbread2020-02-16
|
* Override setCustomOuterCss instead of Popup.injectOuterStylesheettoasted-nutbread2020-02-16
|
* Change parameter nametoasted-nutbread2020-02-16
|
* Update how popups are createdtoasted-nutbread2020-02-16
|
* Change no-undef from off to errortoasted-nutbread2020-02-11
|
* Fix equals function on TextSourceRange when imposter elements are usedtoasted-nutbread2020-01-26
|
* Remove redundant window resize handlertoasted-nutbread2020-01-22
|
* Update license info URLtoasted-nutbread2020-01-01
|
* Update copyrighttoasted-nutbread2020-01-01
|
* Move PopupProxyHost initializationtoasted-nutbread2019-12-21
|
* Update initializationtoasted-nutbread2019-12-21
|
* Remove unused yomichan_frontendtoasted-nutbread2019-12-20
|
* isVisible => isVisibleSynctoasted-nutbread2019-12-16
|
* Add setChildrenSupported to popuptoasted-nutbread2019-12-16
|
* Remove unused property assignmenttoasted-nutbread2019-12-16
|
* Update popup preview frame message handlerstoasted-nutbread2019-12-13
|
* Add showContentCompleted for improved semantic claritytoasted-nutbread2019-12-11
|
* Fix text source issuetoasted-nutbread2019-12-11
|
* fix popup previewsiikamiika2019-12-08
| | | | resolves #302
* Move settings scriptstoasted-nutbread2019-12-01