aboutsummaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAge
* Merge redundant toggle handling code (#693)toasted-nutbread2020-07-26
|
* Don't assign mode as a search parameter (#692)toasted-nutbread2020-07-26
|
* Display history refactor (#691)toasted-nutbread2020-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create DisplayHistory * Change arguments for _setContentTermsOrKanji * Set up history-driven content updates * Use new history only * Load definitions if missing * Refactor definitions getting * Add support for wildcards * Move definitions setup * Add events * Allow state change even if there is no history state * Update search page to use history * Fix history overwriting * Fix search page not seeing state chang events during prepare * Update state if necessary * Don't reassign query text if the same * Remove DisplayContext * Initialize with real history state * Track URL * Update DisplayHistory to support pseudo-history * Configure history settings on search page * Fix state * Use full URL * Change data format of setContent * Rename details to content * Update event arguments * Fix animation * Remove old state changes * Clear content properly * Remove set/clear content overrides * Fix setting up event listeners for content clear * Make clearContent private * Make focus opt-in * Validate source * Add unloaded type * Generalize content params * Update how extension unload content is assigned * Restore query blurring
* Add eachUpTo function (#690)toasted-nutbread2020-07-26
|
* Fix search popup mode (#687)toasted-nutbread2020-07-25
| | | | | * Fix missing mode on search popup * Remove mode update
* Set content refactor (#686)toasted-nutbread2020-07-25
| | | | | | | | | | | | | | | | | | | | | | | * Simplify invoke * Pass isTerms instead of type * Update DisplaySearch.setContent to pass argument array * Simplify argument object structure for setContent * Move focus and disableHistory level * Always include focus and disableHistory options * Change disableHistory to history * Pass source text to setContent * Use consistent argument/object field order * Remove unused previous field * Combine logic for forward/back navigation
* Display fixes and refactoring (#685)toasted-nutbread2020-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | * Fix scroll target override sometimes using undefined value * Clear event listeners in clearContent() * Remove unused arguments * Remove unused disableScroll * Destructure definitions and context * Merge _setContentTerms and _setContentKanji * Move history tracking * Destructure context * Rename context to noteContext for clarity * Destructure before passing args * Move window focus * Update scroll defaults
* Simplify Popup.showContent API to use only two details arguments (#684)toasted-nutbread2020-07-24
|
* Query parser refactor (#683)toasted-nutbread2020-07-24
| | | | | * Rename files to better match class name * Don't pass setContent to QueryParser; use a generic event instead
* Update DisplaySearch.setContent/clearContent to close popups (#682)toasted-nutbread2020-07-24
|
* Dev dependencies updates (#679)toasted-nutbread2020-07-19
| | | | | | | | | | | * Update eslint to 7.5.0 * Update eslint-plugin-no-unsanitized to 3.1.2 * Update fake-indexeddb to 3.1.1 * Rename DictionaryImporter.import to .importDictionary Conflicts with o-unsanitized/method
* Force targetTabId to be null if not a number (#678)toasted-nutbread2020-07-19
|
* Display refactoring (#674)toasted-nutbread2020-07-18
| | | | | | | | | * Move setupNestedPopups to Display * Move auto-play timer and delay into Display * Move some message handler definitions into Display * Move default optionsContext definition
* Reusable backend popup window (#673)toasted-nutbread2020-07-18
| | | | | | | | | | | * Update _updateSearchQuery to return the promise * Update how the clipboard search popup is opened * Create an API function to open the search popup * Skip animation on popup creation * Add API function
* Script ready state change (#672)toasted-nutbread2020-07-18
| | | | | | | * Update how backend/frontend ready states are awaited and signaled * Log errors on the search page * Update action name
* Refactor context-main.js (#671)toasted-nutbread2020-07-18
|
* Content script ready checks (#670)toasted-nutbread2020-07-18
| | | | | * Move ready checkout of Display * Add function to wait until if a tab's content script is ready
* Fix incorrect URL being used (#669)toasted-nutbread2020-07-18
|
* Port name details (#667)toasted-nutbread2020-07-18
| | | | | | | | | * Use a stringified JSON details object for extension port names * Fix incorrect frame ID check * Add support for connecting to different tabs * Add function for invoking on a different tab
* 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
* Fix Anki CORS requests (#666)toasted-nutbread2020-07-17
|
* Fix incorrect field name (#665)toasted-nutbread2020-07-14
|
* Remove backend options context (#661)toasted-nutbread2020-07-11
| | | | | * Add support for getting the current profile * Explicitly use current options
* Message handler refactor (#660)toasted-nutbread2020-07-11
| | | | | | | | | | | * Refactor searchQueryUpdate action * Use standard message handler style * Use name "promiseOrResult" for consistency * Use standard message handler convention for Yomichan message handlers * Use common message handler invoker
* Popup crossFrame communication (#658)toasted-nutbread2020-07-10
| | | | | | | | | * Add support for dynamic message handlers * Pass messages using crossFrame.invoke instead of contentWindow.postMessage * Set up async handlers * Simplify configure call and response
* Various updates to FrameOffsetForwarder (#657)toasted-nutbread2020-07-10
| | | | | | | | | | | | | * Remove bindings * Fast exit if same window * Simplify selector * Rename functions, reuse _getFrameOffsetParent * Update message style * Send reply message to a specific frame
* Add support for async vs non-async (#656)toasted-nutbread2020-07-10
|
* Refactor hotkey definitions to be more generic (#655)toasted-nutbread2020-07-08
|
* Generalized frame connections (#654)toasted-nutbread2020-07-08
| | | | | | | | | * Create FrameClient and FrameEndpoint * Use new Frame* classes for Popup=>frame connection * Update api.sendMessageToFrame and api.broadcastTab to include the sender's frameId * Update FrameClient to store the frame's frameId
* Refactor DisplayFloat=>Frontend message passing (#652)toasted-nutbread2020-07-08
| | | | | | | | | | | * Change getOrCreatePopup arguments to be an object * Add ownerFrameId to popup and DisplayFloat * Refactor DisplayFloat host action invocation * Use CrossFrameAPI instead of window.postMessage * Update popup closing functionality on the search page
* 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
* Refactor text source map (#649)toasted-nutbread2020-07-03
| | | | | | | | | * Use a null check instead of array check * Convert statisc to non-private * Use public source * Add public function for getting the mapping
* Extension unload detection (#647)toasted-nutbread2020-07-03
| | | | | | | * Update how extension unload is detected * Remove event handlers and use yomichan.isExtensionUnloaded instead * Update terminology
* Add up arrow icon (#648)toasted-nutbread2020-07-03
|
* 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
* Move private function definitions inside of IIFE (#641)toasted-nutbread2020-07-03
|
* Make PopupProxy._frameOffsetExpireTimeout non-static (#640)toasted-nutbread2020-07-03
|
* Refactor timer privates (#639)toasted-nutbread2020-07-03
| | | | | * Make Timer.current public * Make _indentString non-static
* Util refactor and fix (#638)toasted-nutbread2020-07-03
| | | | | * Remove unused functions * Fix clone function not being visible on the window object
* Page exit prevention refactor (#637)toasted-nutbread2020-07-03
| | | | | | | * Add page exit prevention functionality to SettingsController * Update dictionary controller to use new page exit prevention system * Remove page-exit-prevention.js
* Make JsonSchemaProxyHandler.unconstrainedSchema public and non-configurable ↵toasted-nutbread2020-07-03
| | | | (#636)
* Don't use/assign popup private fields without using "this" (#635)toasted-nutbread2020-07-03
|
* Fix chrome.runtime.manifest failing when extension is reloaded (#646)toasted-nutbread2020-07-01
|
* Fix incorrect handlebars execution context in helpers (#645)toasted-nutbread2020-06-29
|
* Rename GenericDatabase to Database (#634)toasted-nutbread2020-06-28
|
* Rename Database to DictionaryDatabase (#633)toasted-nutbread2020-06-28
|
* Merge BackendEventHandler into Backend class (#632)toasted-nutbread2020-06-28
| | | | | * Merge BackendEventHandler into Backend class * Remove unused public functions
* Backend refactor (#631)toasted-nutbread2020-06-28
| | | | | | | | | | | | | | | | | | | | | | | * Mark fields as private * Remove static * Make functions private * Create onCommand handler * Group event handlers * Move functions * Merge _onOptionsUpdated and _applyOptions * Rename event handler * Move event handlers * Remove _getOptionsSchema * Move private functions
* Use deferPromise (#630)toasted-nutbread2020-06-28
| | | | | | | * Use deferPromise * Move definition * Implement promiseTimeout using deferPromise
* Update browser compatibility and Edge detection (#629)toasted-nutbread2020-06-28
|