summaryrefslogtreecommitdiff
path: root/ext/bg/js/anki-note-builder.js
Commit message (Collapse)AuthorAge
* Add clipboard-text Anki field (#863)toasted-nutbread2020-09-26
| | | | | | | * Add clipboard-text anki field * Add markers * Update clipboard injection
* 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
* AudioUriBuilder simplification (#799)toasted-nutbread2020-09-10
| | | | | | | | | | | | | * Rename variables to disambiguate * Update handler argument convention * Update getUri argument convention * Change _getAudioUri argument convention * Change getDefinitionAudio argument convention * Add api.getDefinitionAudio definition
* Generalize AnkiNoteBuilder to not use audioSystem directly (#796)toasted-nutbread2020-09-09
|
* Anki media injection move (#793)toasted-nutbread2020-09-09
| | | | | | | | | | | | | | | * Update AnkiNoteBuilder to not store a reference to an AniConnect instance * Use more consistent details format * Organize options assignment * Move media injection * Inject images before injecting audio * Make functions private * Make static functions private
* Use common function for data URL mediatype/data extraction (#792)toasted-nutbread2020-09-09
|
* Anki screenshot refactor (#791)toasted-nutbread2020-09-09
| | | | | | | * Use more consistent style for injectScreenshot * Move screenshot generation into AnkiNoteBuilder/Backend * Get optionsContext before await
* 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
* 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
* Defer assignment of marker (#762)toasted-nutbread2020-09-04
|
* 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
* Optimize anki note field generation (#611)toasted-nutbread2020-06-21
|
* 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
* Remove invalid file name characters from Anki media files (#496)toasted-nutbread2020-05-06
| | | | | * Replace invalid file name characters * Replace "filename" with "fileName"
* Anki audio download (#477)toasted-nutbread2020-05-02
| | | | | | | * Update how audio is added to Anki cards * Upgrade Anki templates * Update comments
* 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
* Update the parameters passed to various audio-related functionstoasted-nutbread2020-04-18
|
* Pass anki reference to AnkiNoteBuilder constructortoasted-nutbread2020-04-12
|
* 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 :)
* Fix field nametoasted-nutbread2020-04-07
|
* Pass AudioSystem instance to AnkiNoteBuilder constructortoasted-nutbread2020-04-07
|
* Remove inconsistent/unused return valuetoasted-nutbread2020-04-07
|
* Create _containsMarker to reduce redundant codetoasted-nutbread2020-04-07
|
* Move _dateToString into a new functiontoasted-nutbread2020-04-07
|
* Move media injection functions into AnkiNoteBuildertoasted-nutbread2020-04-07
|
* Add custom context object for note creationtoasted-nutbread2020-04-06
|
* Remove marker restrictionstoasted-nutbread2020-03-07
|
* Move stringReplaceAsynctoasted-nutbread2020-03-07
| | | | | It is only used in AnkiNoteBuilder and it was originally created for this purpose.
* Use dependency injection for apiTemplateRendertoasted-nutbread2020-03-07
|
* Move Anki note generation functionality into a new classtoasted-nutbread2020-03-07