aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings
Commit message (Collapse)AuthorAge
* Fix dictionary settings not being deleted when deleting a single dictionary ↵toasted-nutbread2020-10-06
| | | | (#893)
* Move searchTerms/searchKanji to front of object definitions (#873)toasted-nutbread2020-09-27
|
* Fix data-setting attributes not being updated on index change (#872)toasted-nutbread2020-09-27
|
* Add scan on touch move and prevent touch scroll options (#871)toasted-nutbread2020-09-27
| | | | | | | | | * Add scanOnTouchMove/preventTouchScrolling scanning input options * Add settings controls * Support scanOnTouchMove in TextScanner * Support preventTouchScrolling in TextScanner
* Fix page type never being detected as search page correctly (#867)toasted-nutbread2020-09-26
|
* Add clipboard-text Anki field (#863)toasted-nutbread2020-09-26
| | | | | | | * Add clipboard-text anki field * Add markers * Update clipboard injection
* Audio system refactor (#858)toasted-nutbread2020-09-26
| | | | | | | | | | | | | | | * Refactor AudioUriBuilder * Add downloadAudio function * Refactor AudioSystem * Update API usage * Rename file * Update scripts * Add prepare calls
* Dictionary delete improvements (#844)toasted-nutbread2020-09-19
| | | | | | | * Change where clearDatabaseCaches occurs * Move dictionary deletion into the settings page * Remove api.deleteDictionary
* Fix settings sanitization resulting in invalid data for the schema (#843)toasted-nutbread2020-09-19
|
* Modal refactor (#842)toasted-nutbread2020-09-19
| | | | | * Add Modal class * Use Modal class
* Handlebars sandbox (#612)toasted-nutbread2020-09-18
| | | | | | | | | * Set up template renderer proxy * Use proxy * Remove unused handlebars script tags * Update manifest
* Cleanup unused utils (#832)toasted-nutbread2020-09-15
| | | | | | | | | * Remove api.optionsSave * Remove getOptionsMutable and getOptionsFullMutable * Remove util.js * Remove yomichanBackend
* Dictionary controller refactor (#831)toasted-nutbread2020-09-15
| | | | | * Create new DictionaryController * Update input disabling when modifying the database
* Database change event (#826)toasted-nutbread2020-09-13
| | | | | * Add api.triggerDatabaseUpdated and yomichan.on('databaseUpdated') * Update databaseUpdated event usage
* Profile controller refactor (#825)toasted-nutbread2020-09-13
| | | | | * Add refresh function * Create new ProfileController class
* Add scan dictionary type filters (#822)toasted-nutbread2020-09-13
| | | | | | | | | | | | | | | * Add options for searchTerms and searchKanji * Add settings HTML * Add options to TextScanner * Update _search/_findDefinitions to include searchTerms/searchKanji args * Update _searchAtFromMouseMove args * Change argument structure for _searchAt * Use scanning options for searchTerms and searchKanji
* Add workaround for Firefox bug not detecting pen input type correctly (#820)toasted-nutbread2020-09-13
|
* More scanning options (#815)toasted-nutbread2020-09-12
| | | | | | | | | * Reorganize options * Add advanced options * Add a setting transform 'setRelativeAttribute' * Add advanced options to HTML/CSS
* Use a grid layout for scanning inputs (#814)toasted-nutbread2020-09-12
|
* Add support for pointer event input detection (#810)toasted-nutbread2020-09-11
|
* Fix adding new scanning inputs not working (#808)toasted-nutbread2020-09-11
|
* OptionsUtil refactor / options default values (#807)toasted-nutbread2020-09-11
| | | | | | | | | | | | | | | | | | | | | | | * Replace _readFile with _fetchAsset for consistency with Backend * Fix error messages * Make OptionsUtil non-static * Update how default options are assigned * Add createValidatingProxy * Add validate, update _onApiSetAllSettings * Remove unused api.optionsSchemaGet * Remove Backend._optionsSchema * Update OptionsUtil to create its own JsonSchemaValidator * Rename Backend._optionsSchemaValidator * Make getDefault non-async
* Input type filters (#806)toasted-nutbread2020-09-11
| | | | | | | | | | | | | * Add options for scanning input types * Move buttons in layout, refactor CSS * Add options for input types * Use input type filters * Add _getMatchingInputGroupFromEvent * Use input filters for touch events
* Use Anki classes directly in Display (#804)toasted-nutbread2020-09-10
| | | | | | | | | | | * Add _getTemplates function * Add template renderer to display pages * Add AnkiNoteBuilder to Display * Update AnkiTemplatesController to directly use TemplateRenderer * Remove old APIs
* Anki note media injection move (#801)toasted-nutbread2020-09-10
| | | | | | | * Move anki note media injection functionality into Backend * Add marker/mode checks * Remove media injection from AnkiNoteBuilder
* Update the AnkiController class to use an instance of AnkiConnect directly ↵toasted-nutbread2020-09-09
| | | | | | | (#795) * Update AnkiController to use AnkiConnect instance directly * Remove unused
* Settings controller file renaming (#794)toasted-nutbread2020-09-09
| | | | | | | * Rename SettingsBackup to BackupController * Rename files to more closely match classes * Improve organization of script imports
* Scanning input generalization (#789)toasted-nutbread2020-09-09
| | | | | | | | | | | | | | | | | | | | | | | | | * Add inputs to options.scanning * Update CSS for mouse buttons * Update list counters * Set up HTML/CSS * Add input controller * Use new inputs * Include mouse buttons * Update how button inputs are detected * Add index/empty fields to the input details object * Update none check for scanning modifier * Remove old settings * Remove unused global
* Anki API refactor (#790)toasted-nutbread2020-09-09
| | | | | | | | | | | | | | | * Add function guiBrowseNote * Assign default server as null * Use get/set properties for server/enabled * Refactor option values * Refactor createNote/Data functions to not use options format directly * Use createNote for testing * Add errors
* Move assignment of the operating system property (#786)toasted-nutbread2020-09-08
|
* Fix modifier keys not being spread (#785)toasted-nutbread2020-09-08
|
* Anki note clipboard marker (#780)toasted-nutbread2020-09-08
| | | | | | | | | | | * Update fields reference * Add support for adding clipboard images to anki notes * Add handlebars templates * Add markers * Add markers to readme
* Modifier key refactor (#784)toasted-nutbread2020-09-08
| | | | | | | * Add functions for getting keyboard key information * Use os + DocumentUtil to get modifier key names * Remove keyboard modifier info from environment info
* Mouse inputs (#783)toasted-nutbread2020-09-07
| | | | | | | | | | | | | | | * Add mouse icon * Add _updateModifiers * Add support for mouse button modifiers * Improve names of mouse inputs * Improve mouse input sorting * Rename getModifierKeyStrings to getModifierInputStrings * Refactor keyboard/mouse inputs into KeyboardMouseInputField
* Profile conditions fixes and improvements (#782)toasted-nutbread2020-09-07
| | | | | | | | | * Fix operator changes * Fix default value not changing during type change * Fix incorrect display value being assigned * Refactor _updateValueInput
* Settings dictionary import refactor (#759)toasted-nutbread2020-09-04
| | | | | | | * Fix .purge not re-opening the database after deletion failure * Create DictionaryImportController * Remove backend dictionary import
* Json schema profile conditions (#758)toasted-nutbread2020-09-04
| | | | | | | | | | | | | | | * Add clearCache function * Add upgrade * Use schema-based profile condition validation * Update profile conditions settings controller * Remove unnecessary async * Remove old * Remove unused templates
* Move generateId to core.js (#748)toasted-nutbread2020-08-22
|
* 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
* DOM + DocumentUtil merge (#727)toasted-nutbread2020-08-09
| | | | | | | | | * Add DOM functions to DocumentUtil * Use DocumentUtil instead of DOM * Remove DOM * Move document-util.js into mixed
* Pitch accent Anki field templates (#701)toasted-nutbread2020-08-01
| | | | | | | | | | | | | | | | | | | * Template helper updates * Add pitch data to exported field formatting data * Reuse note data * Add no-op * Set up pitch accent templates * Refactor version update functions * Implement upgrade process for new Anki templates * Consistency * Update README and anki.js to have matching markers
* Options util (#700)toasted-nutbread2020-08-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Move options functions into a class * Rename and privatize * Organize by public/private * Refactor to use async function * Simplify update function signature * Add comment for update * Rename * Copy _applyUpdates into _legacyProfileUpdateUpdateVersion * Organize * Move profile options updates * Refactor update details * Add async support * Formatting
* 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
* Fix incorrect field name (#665)toasted-nutbread2020-07-14
|
* 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
* Yomichan object separation (#627)toasted-nutbread2020-06-28
| | | | | | | | | | | | | * Move "yomichan" object setup to a separate file * Update script imports * Align message handlers * Rename Yomichan.prepare to Yomichan.ready * Add new prepare function * Improve isExtensionUrl
* Make PopupFactory.prepare non-async (#625)toasted-nutbread2020-06-25
|
* 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
* Detect language tags starting with "ja_" (#596)toasted-nutbread2020-06-13
|
* Update AudioController to not use mutable options references (#585)toasted-nutbread2020-05-30
|