aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings
Commit message (Collapse)AuthorAge
* Modifier key platform names (#519)siikamiika2020-05-09
| | | | | | | | | | | | | | | | | | | | | * wip * add environment class * use Environment class * use Environment for scanning modifier options * remove Environment in favor of API * await promise * use modifier symbols on macOS * fix key separator issues * if else to switch * simplify variable names
* 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
* Move util database modification functions (#499)toasted-nutbread2020-05-06
| | | | | | | | | | | | | | | | | | | * Update onProgress callback to handle multiple arguments * Add apiImportDictionaryArchive * Add apiDeleteDictionary * Make onProgress the last argument for consistency * Remove deprecated util functions * Fix issue with missing progress args * Remove function calls which modify the database from Translator * Update tests * Fix errors not being serialized correctly in _createActionListenerPort
* Fix modifier key condition data (#506)siikamiika2020-05-06
| | | | | | | | | | | | | * save transformed data for modifier key conditions * validate transformed input * fix regression * undo rename * refactor transformInput handling * don't overwrite value with null
* 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
* 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
* Add duplicateScope: 'deck' option (#476)toasted-nutbread2020-04-27
| | | | | | | | | * Add duplicateScope: 'deck' option * Add option to control duplicate scope * Use duplicateScope for findNoteIds * Update location of quotes
* 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
| * Use IIFE for entry pointstoasted-nutbread2020-04-22
| |
| * Create popup-preview-frame-main.jstoasted-nutbread2020-04-19
| |
* | Use wanakana object directlytoasted-nutbread2020-04-20
|/
* Remove unused globaltoasted-nutbread2020-04-18
|
* Disable cache on the backend and fix a bug with the cache keytoasted-nutbread2020-04-18
|
* Remove de/structuring from public APItoasted-nutbread2020-04-18
|
* Update the parameters passed to various audio-related functionstoasted-nutbread2020-04-18
|
* Merge pull request #447 from toasted-nutbread/util-conversionstoasted-nutbread2020-04-18
|\ | | | | Util conversions
| * Convert some util* functions into api* functionstoasted-nutbread2020-04-11
| |
* | Merge pull request #440 from toasted-nutbread/collapse-emphatic-sequencestoasted-nutbread2020-04-12
|\ \ | |/ |/| Add support for collapsing emphatic character sequences
| * Add support for collapsing emphatic character sequencestoasted-nutbread2020-04-10
| |
* | 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 :)
* Merge pull request #434 from toasted-nutbread/error-fixestoasted-nutbread2020-04-07
|\ | | | | Error fixes
| * Use logError instead of console.logtoasted-nutbread2020-04-05
| |
| * Fix error reporting during dictionary importtoasted-nutbread2020-04-05
| |
* | Merge pull request #433 from toasted-nutbread/extra-dictionary-informationtoasted-nutbread2020-04-07
|\ \ | | | | | | Extra dictionary information
| * | Update settings page to display additional informationtoasted-nutbread2020-04-05
| |/
* | Add document-title tag to settings optionstoasted-nutbread2020-04-06
| |
* | Add support for {document-title}toasted-nutbread2020-04-06
| |
* | Add custom context object for note creationtoasted-nutbread2020-04-06
|/
* add option for iframe popupssiikamiika2020-04-05
|
* Add optionstoasted-nutbread2020-03-28
|
* Update global declarationstoasted-nutbread2020-03-10
|
* Rename audio functions using "url" to use "uri"toasted-nutbread2020-03-07
|
* Use dependency injection for apiTemplateRendertoasted-nutbread2020-03-07
|
* Move Anki note generation functionality into a new classtoasted-nutbread2020-03-07
|
* Use dependency injection for getAudioUri implementationtoasted-nutbread2020-03-07
|
* Use AudioSystem on the audio settings pagetoasted-nutbread2020-03-07
|
* fix Backend prepare issues in settingssiikamiika2020-03-02
|
* simplify backend preparesiikamiika2020-03-01
|
* Load default Anki field templates from a filetoasted-nutbread2020-02-27
|
* Simplify event to use bindtoasted-nutbread2020-02-26
|
* Use functions directly rather than wrapping in () => {} when args are sametoasted-nutbread2020-02-26
|
* Use .bind instead of () => {}toasted-nutbread2020-02-26
|
* Move event handler definitionstoasted-nutbread2020-02-26
|
* Use Map to avoid using for intoasted-nutbread2020-02-25
|
* Fix popupScalingFactor being limited to integer valuestoasted-nutbread2020-02-23
|
* Add no-shadowtoasted-nutbread2020-02-22
|