aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/anki-controller.js
Commit message (Collapse)AuthorAge
* Move bg/js/settings(2) (#1385)toasted-nutbread2021-02-13
| | | | | * Move bg/js/settings/ to js/settings/ * Move bg/js/settings2/ to js/settings/
* Permissions button in browser action popup (#1368)toasted-nutbread2021-02-11
| | | | | | | | | | | | | | | | | | | | | * Add key icon * Update context icon styles * Add permissions links * Show warning badge if permissions are insufficient for certain settings * Create PermissionsUtil * Use PermissionsUtil in Backend * Update SettingsController to use PermissionsUtil * Update AnkiController to use getRequiredPermissionsForAnkiFieldValue * Show the permissions buttons/links on the context page when necessary * Update MV3 compatibility
* Auto-fill Anki card fields when possible (#1355)toasted-nutbread2021-02-08
|
* Settings permissions info display (#1338)toasted-nutbread2021-01-31
| | | | | | | | | | | | | * Add getAllPermissions function * Add permissionsChanged event * Update ClipboardPopupsController to show permissions validation info * Add invalid indicator * Display invalid indicator when permissions are not valid * Fix border color transition not being necessary on input-suffix-button
* Permissions requesting fixes (#1334)toasted-nutbread2021-01-30
| | | | | | | | | * Fix permissions requests not occurring during user interaction * Update toggle after changing permissions * Update functions * Update clipboard requests
* Remove the dictionary tag from the definitionTags (#1324)toasted-nutbread2021-01-28
| | | | | | | | | | | * Remove dictionary tag from term definitionTags and kanji tags * Update test data * Update templates * Update tests * Update information
* Update popup menu structure (#1301)toasted-nutbread2021-01-23
| | | | | | | | | * Wrap menu items in popup-menu-body * Use bodyNode instead of node * Update selector * Update _setPosition to not use items
* Menu refactor (#1277)toasted-nutbread2021-01-19
| | | | | | | | | | | | | | | | | | | | | * Rename menuOpened event to menuOpen * Rename menuClosed event to menuClose * Rename close event * Assign _isClosed * Reuse event detail * Expose PopupMenu.openMenus * Rename and expose properties * Add cancelable argument to close * Update menuOpen detail * Update menuClose detail
* Stroke count marker (#1251)toasted-nutbread2021-01-16
| | | | | | | | | * Add stroke-count definition * Update options * Update documentation * Add helper
* Refactor anki note building (#1223)toasted-nutbread2021-01-10
| | | | | | | | | | | * Move TemplateRendererProxy creation into AnkiNoteBuilder * Simplify _stringReplaceAsync * Organize note generation * Rename API * Make the template rendering function more generic
* Fix AnkiCardController using stale data (#1204)toasted-nutbread2021-01-06
|
* Update copyright year (#1194)toasted-nutbread2021-01-01
| | | | | * Update copyright year * Remove redundant Author info
* Improve location of Anki error message (#1180)toasted-nutbread2020-12-30
|
* Indicate if first Anki card field is invalid (#1145)toasted-nutbread2020-12-20
| | | | | * Add AnkiNoteBuilder.containsAnyMarker * Flag first field as invalid when there is no marker
* Improve styles for invalid inputs (#1143)toasted-nutbread2020-12-20
|
* Display an indication when Anki field order/existence doesn't match (#1119)toasted-nutbread2020-12-18
|
* Frequencies marker (#1074)toasted-nutbread2020-11-28
| | | | | | | | | | | * Update japanese.js tests * Simplify fallback/early exit * Add overloads to furigana and furiganaPlain handlebars helper functions * Expose unique expression/reading arrays (and subsequently counts) * Add {frequencies} marker
* Conjugation marker (#988)toasted-nutbread2020-11-04
| | | | | | | | | * Add {conjugation} marker * Add info * Add upgrade * Update test
* Anki templates refactor (#970)toasted-nutbread2020-10-30
| | | | | * Support menus with multiple sources * Update anki templates controller
* Remove error type from error message (#958)toasted-nutbread2020-10-26
|
* Anki controller refactor (#957)toasted-nutbread2020-10-25
| | | | | | | * Add _setFieldMarker helper function * Add support for persistent nodes * Add support for menus
* Sort deck and model names in Anki card settings (#956)toasted-nutbread2020-10-25
|
* Anki controller refactor (#954)toasted-nutbread2020-10-25
| | | | | | | | | * Simplify data transform for anki.enable setting * Refactor AnkiController * Implement marker link clicking * Request permissions for clipboard
* Settings templates refactor (#897)toasted-nutbread2020-10-07
| | | | | * Add template instantiation API to SettingsController * Use SettingsController.instantiateTemplate
* Add clipboard-text Anki field (#863)toasted-nutbread2020-09-26
| | | | | | | * Add clipboard-text anki field * Add markers * Update clipboard injection
* 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