summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAge
* Limit action port message size (#587)toasted-nutbread2020-05-31
| | | | | | | | | | | * Add onDisconnect handler * Update how error is posted * Update action ports to send long messages in fragments * Remove ack timer * Move message destructuring into try block
* Update AudioController to not use mutable options references (#585)toasted-nutbread2020-05-30
|
* Generic settings controller merge (#584)toasted-nutbread2020-05-30
| | | | | | | | | * Update how optionsContext is assigned to targets * Add getSettings and modifySettings * Merge DOMSettingsBinder into GenericSettingController * Remove old DOMSettingsBinder
* Update how assignment of general.enableClipboardPopups works (#583)toasted-nutbread2020-05-30
|
* Backup update (#582)toasted-nutbread2020-05-30
| | | | | | | | | * Add function to assign all settings * Update how settings backups are restored * Remove page reload * Update profile index after importing
* Update AnkiController (#581)toasted-nutbread2020-05-30
| | | | | | | | | | | | | * Update how fields are populated * Update how fields are modified after a model change * Update how _onFieldsChanged assigns fields * Update how spinner is hidden * Remove jQuery usage * Use non-jQuery events
* Update AnkiTemplatesController (#580)toasted-nutbread2020-05-30
| | | | | | | * Use this._defaultFieldTemplates * Don't use mutable options * Remove some use of jQuery
* Update GenericSettingController to use DOMSettingsBinder (#578)toasted-nutbread2020-05-30
|
* SettingsController API update (#579)toasted-nutbread2020-05-30
| | | | | * Include optionsContext as part of optionsChanged event * Add get/modify functions
* Organize settings/main.js (#577)toasted-nutbread2020-05-30
|
* Use SettingsController (#576)toasted-nutbread2020-05-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use settingsController internally in settings/main.js * Replace modifyingProfileChange with SettingsController.optionsContextChanged * Update ClipboardPopupsController to use SettingsController * Store reference to checkbox * Use this._settingsController for everything * Change where current profile is initially assigned from * Remove some unnecessary async calls * Move setup calls * Update AnkiTemplatesController to use SettingsController * Cache default field templates * Update AnkiController to use SettingsController * Update AudioController to use SettingsController * Update SettingsBackup to use SettingsController * Update DictionaryController to use SettingsController * Update GenericSettingController to use SettingsController * Update ProfileController to use SettingsController * Remove unused * Remove unused * Replace some uses of api.options* functions * Fix missing awaits * Fix invalid function
* Fix frontend being null if messages are received early (#575)toasted-nutbread2020-05-30
|
* Generic settings controller + clipboard popups controller (#573)toasted-nutbread2020-05-29
| | | | | * Create GenericSettingController * Create ClipboardPopupsController
* 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
* Convert popup-preview.js to a class (#571)toasted-nutbread2020-05-29
| | | | | * Convert popup-preview.js to a class * Don't invoke 'prepare'
* Convert dictionaries.js and storage.js to classes (#570)toasted-nutbread2020-05-29
| | | | | | | | | * Convert dictionaries.js to a class * Remove storage spinner * Convert storage.js to a class * Move dataset assignments into main.js
* Audio controller (#569)toasted-nutbread2020-05-29
| | | | | | | | | | | * Convert audio.js into a class * Move audio-ui.js classes into audio.js * Rename fields * Merge classes * Remove audio-ui.js
* Anki settings controllers (#567)toasted-nutbread2020-05-29
| | | | | * Convert anki-templates.js to a class * Convert anki.js to a class
* Change profile.js into a class (#566)toasted-nutbread2020-05-29
| | | | | | | * Update how settings profile is stored and accessed * Convert profiles.js into a class * Rename members of ProfileController
* Create class to abstract access, mutation, and events for settings (#565)toasted-nutbread2020-05-29
|
* DOM binder fixes (#564)toasted-nutbread2020-05-29
| | | | | * Fix incorrect updateValue function * Add source
* Update legal.html to include full licenses (#563)toasted-nutbread2020-05-24
|
* Update background global object usage (#556)toasted-nutbread2020-05-24
| | | | | | | * Omit global window object for scripts used on the background page * Validate document exists before using * Remove dom.js from background.html
* Ensure single popup factory (#554)toasted-nutbread2020-05-24
| | | | | * Add createPopupFactory * Ensure only a single PopupFactory is generated
* Settings backup refactor (#551)toasted-nutbread2020-05-24
| | | | | * Update backup.js to be a class * Move utilReadFileArrayBuffer
* Settings binder (#542)toasted-nutbread2020-05-24
| | | | | | | | | | | | | | | | | | | | | | | * Fix _modifySetting being async * Return values for modifySettings's set and splice actions * Add apiGetSettings * Create a class which can accumulate tasks to run in bulk * Create a class which binds input elements to customizable sources * Create class which binds input elements to settings * Add support for value transforms * Remove redundant ObjectPropertyAccessor.getPathArray * Fix not using correct types for input.min/max/step * Fix wrong condition * Use api object
* Ensure the return value of promiseTimeout always has .resolve and .reject (#550)toasted-nutbread2020-05-24
|
* Settings refactor (#541)toasted-nutbread2020-05-24
| | | | | | | | | | | | | | | | | * Remove debug info * Trigger onOptionsUpdated instead of formWrite when profile changes * Update how Anki field changes are observed * Update how general.enableClipboardPopups setting is changed * Change where ankiTemplatesUpdateValue occurs * Change where onDictionaryOptionsChanged occurs * Remove unused global declarations * Remove stray data attribute
* Add icons (#540)toasted-nutbread2020-05-24
| | | | | * Add icons * Update icons
* Style adjustments (#537)toasted-nutbread2020-05-24
| | | | | | | | | | | | | * Remove newlines for term-definition-item-template * Update how action button icons are styled * Fix spacing * Group text colors together * Correct image styles * Fix missing </span>
* 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 missing spreads (#552)toasted-nutbread2020-05-23
|
* Cross frame communication (#531)toasted-nutbread2020-05-23
| | | | | | | * Set up new cross-frame port connector * Create classes for cross-frame API invocation with replies * Remove event listeners on disconnect
* Add support for additional types of event listeners (#522)toasted-nutbread2020-05-23
| | | | | * Add support for additional types of event listeners * Fixes
* Version bump to 20.5.22.020.5.22.0Alex Yatskov2020-05-22
|
* Fix "tags" template (#539)siikamiika2020-05-22
| | | | | | | * fix tag templates for merge and group modes * update version upgrade * adjust upgrade replacement order
* Dynamic loader load style (#521)toasted-nutbread2020-05-19
| | | | | | | | | * Remove unnecessary load of /fg/css/client.css * Replace dynamicLoader.loadStyles with dynamicLoader.loadStyle * Replace Popup._injectStylesheet with dynamicLoader.loadStyle * Remove unused global
* Use both shadowRoot and openOrClosedShadowRoot (#534)toasted-nutbread2020-05-10
|
* Load frame content using contentDocument.location.href instead of src ↵toasted-nutbread2020-05-10
| | | | attribute (#529)
* Use CSS variables for themes (#528)toasted-nutbread2020-05-10
| | | | | | | | | | | | | | | | | | | * Update formatting * Merge default tag color with category-less tags * Use CSS variables for colors * Add dark theme colors * Move color variables into display.css * Remove old stylesheets * Update headings * Bump minimum Firefox version to support CSS var() * Revert popular kanji text color
* Text source refactor (#527)toasted-nutbread2020-05-10
| | | | | | | | | * Update TextSourceElement API to have parity with TextSourceRange * Make fields private * Update equality check * Fix "this.element" being used instead of just "element"
* Fix setStartOffset not appending (#526)toasted-nutbread2020-05-09
|
* Omit the sound tag if it's empty (#525)toasted-nutbread2020-05-09
|
* Fix not awaiting the AudioSystem.arrayBufferDigest promise (#524)toasted-nutbread2020-05-09
|
* Frontend/popup proxy message refactoring (#520)toasted-nutbread2020-05-09
| | | | | | | | | | | | | * Use direct message handler functions * Remove unused targetPopupId * Make target a member of FrontendApiSender * Rename frameId to parentFrameId for clarity * Remove _parentFrameId * Rename _parentId to _parentPopupId for clarity
* 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 refactor (#518)toasted-nutbread2020-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | * Add default * Convert function to non-static * Remove static for private functions * Replace .call * Move functions with side effects into a synchronous prepare function * Rename variables with "container" to "frame" in _initializeFrame * Rename variables with "container" to "frame" * Rename getContainer to getFrame * Rename getContainerRect to getFrameRect * Organize and simplify * Fix incorrect change of "popup" => "this" * Move initial _updateVisibility into prepare()
* Text scanner refactor (#517)toasted-nutbread2020-05-08
| | | | | | | | | | | | | | | * Fix return type * Pass search function as a constructor argument * Pass constructor as a details object For consistency with other complex constructors and improved semantics. * Convert _ignorePoints to a single optional function * Organize functions * Rename ignorePoints to ignorePoint
* 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
* Text scanner refactor (#515)toasted-nutbread2020-05-07
| | | | | | | | | | | * Mark functions as private * Mark fields as private * Add getter/setters for publicly used fields * Replace public static functions with private non-static functions * Update comment