aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/popup-preview-frame.js
Commit message (Collapse)AuthorAge
* Move bg/js/settings(2) (#1385)toasted-nutbread2021-02-13
| | | | | * Move bg/js/settings/ to js/settings/ * Move bg/js/settings2/ to js/settings/
* Improve popup window ownership (#1364)toasted-nutbread2021-02-09
| | | | | | | | | | | | | | | | | * Update frameInformationGet to also return the tab ID * Add tabId to Frontend * Pass tabId/frameId to Display * Pass ownership information using setContent * Remove ownerFrameId for Popup classes * Use frameId instead of ownerFrameId for screenshotting * Use contentOrigin instead of owner * Update _invokeContentOrigin implementation
* Fix the settings page trying to create a popup window (#1341)toasted-nutbread2021-01-31
|
* Add support for frontend hotkeys; add scanSelectedText action (#1266)toasted-nutbread2021-01-17
| | | | | | | * Add support for frontend hotkeys; add scanSelectedText action * Remove unused global * Remove duplicate hotkey handler script
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* Fix global declarations check (#1101)toasted-nutbread2020-12-12
| | | | | * Fix getSubstringCount not properly checking word boundaries * Remove unused global declarations
* Fix outer CSS being incorrectly injected (#1075)toasted-nutbread2020-11-29
|
* Yomichan popup styles refactor (#1067)toasted-nutbread2020-11-26
| | | | | | | | | | | | | * Rename classes yomichan-float to yomichan-popup * Use attributes instead of classes * Refactor * Update popup outer scaling * Update outer theme usage * Move client.css to popup-outer.css in /mixed
* Popup setup refactoring (#1054)toasted-nutbread2020-11-23
| | | | | | | | | | | | | * Pass childrenSupported as a parameter to Frontend/Popup constructors * Remove setChildrenSupported * Use event listener instead of function override * Update options order * Expand options and use object for clarity * Fix childrenSupported not being fully propagated
* Frontend options override refactor (#1016)toasted-nutbread2020-11-08
| | | | | * Update how options context overriding works * Make function private
* 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