aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
Commit message (Collapse)AuthorAge
* Handle stack overflow caused by wanakana.toKana (#615)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
* Add apiModifySettings (#501)toasted-nutbread2020-05-06
| | | | | | | | | | | | | | | | | * Update getProfile/getProfileFromContext to store this.options in a variable * Add useSchema parameter to options getter functions * Add apiModifySettings * Use apiModifySettings instead of apiOptionsSet * Remove apiOptionsSet * Fix incorrect deleteCount check * Require explicit scope for options * Throw on invalid scope
* Text selection fixes (#511)siikamiika2020-05-07
| | | | | * select matched text in Frontend.findKanji * blur search query input when setting content
* 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
* Error logging refactoring (#454)toasted-nutbread2020-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create new logging methods on yomichan object * Use new yomichan.logError instead of global logError * Remove old logError * Handle unhandledrejection events * Add addEventListener stub * Update log function * Update error conversion to support more types * Add log event * Add API log function * Log errors to the backend * Make error/warning logs update the badge * Clear log error indicator on extension button click * Log correct URL on the background page * Fix incorrect error conversion * Remove unhandledrejection handling Firefox doesn't support it properly. * Remove unused argument type from log function * Improve function name * Change console.warn to yomichan.logWarning * Move log forwarding initialization into main scripts
* 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
* Merge pull request #463 from toasted-nutbread/explicit-entry-pointtoasted-nutbread2020-04-23
|\ | | | | Explicit entry points
| * Rename search-frontend.js to search-main.jstoasted-nutbread2020-04-19
| | | | | | | | Also move DisplaySearch creation into the main() function.
* | Use wanakana object directlytoasted-nutbread2020-04-20
|/
* Merge pull request #443 from toasted-nutbread/fix-get-selectiontoasted-nutbread2020-04-12
|\ | | | | Fix getSelection not working in QueryParser
| * Use window.getSelection instead of document.getSelectiontoasted-nutbread2020-04-11
| |
* | 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 :)
* use dependency injection in QueryParsersiikamiika2020-03-21
| | | | | Also fix an issue with settings update triggering a lookup on unprepared QueryParser.
* apply all options on profile changesiikamiika2020-03-21
|
* Update global declarationstoasted-nutbread2020-03-10
|
* fix searchQueryUpdatesiikamiika2020-03-09
|
* Use explicit dependency injection for ClipboardMonitortoasted-nutbread2020-03-07
|
* Use events for ClipboardMonitortoasted-nutbread2020-03-07
|
* ensure Backend prepare in other placessiikamiika2020-03-02
|
* Fix empty keys definitions and add Shift/Alt checkstoasted-nutbread2020-02-29
|
* Use .bind instead of () => {}toasted-nutbread2020-02-26
|
* Move event handler definitionstoasted-nutbread2020-02-26
|
* Refactor DisplaySearch.onKeyDownIgnoreKeystoasted-nutbread2020-02-26
|
* Organize, remove unnecessary null checkstoasted-nutbread2020-02-26
|
* Move event handler function bodiestoasted-nutbread2020-02-26
|
* Add no-shadowtoasted-nutbread2020-02-22
|
* Merge pull request #357 from siikamiika/simplify-display-preparesiikamiika2020-02-14
|\ | | | | Simplify display prepare
| * use Promise.all to await dependenciessiikamiika2020-02-13
| |
| * rename display initialize methods to preparesiikamiika2020-02-13
| |
* | Remove unusedtoasted-nutbread2020-02-11
| |
* | Define more globalstoasted-nutbread2020-02-11
| |
* | Change no-undef from off to errortoasted-nutbread2020-02-11
|/
* fix async issuessiikamiika2020-02-10
|
* preserve search page mode on manual searchsiikamiika2020-02-10
|
* update popup search with chrome.tabs.sendMessagesiikamiika2020-02-10
|
* use parseUrl in Backendsiikamiika2020-02-10
|
* simplify setQuery kana conversionsiikamiika2020-02-09
|
* disable internal clipboard monitor in native popupsiikamiika2020-02-09
|
* fix constant usage from wrong scopesiikamiika2020-02-09
|
* hide search input in native popupssiikamiika2020-02-09
|
* extract ClipboardMonitor from DisplaySearchsiikamiika2020-02-09
|
* move apiClipboardGet Firefox handling to Backendsiikamiika2020-02-09
|
* Replace and remove old character/string testing functionstoasted-nutbread2020-01-24
|
* Update detection of Japanese characterstoasted-nutbread2020-01-24
|
* Only use Display.setContenttoasted-nutbread2020-01-16
|
* use TextScanner in QueryParsersiikamiika2020-01-16
|
* Update license info URLtoasted-nutbread2020-01-01
|
* Update copyrighttoasted-nutbread2020-01-01
|