summaryrefslogtreecommitdiff
path: root/ext/data
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-05-30 12:03:24 -0400
committerGitHub <noreply@github.com>2022-05-30 12:03:24 -0400
commit19bba07a8bccb51a9db85c13fd921d825defe753 (patch)
tree4354e2d3396f5957a005256a85f60d239ab30c0d /ext/data
parent0b5d54e7c66c17383e23855a1c3d4dbb1ea817fc (diff)
Add support for Anki API key (#2169)
* Update material.css to support password fields * Support password * Add "apiKey" setting * Use apiKey * Update options if API key changes * Update tests
Diffstat (limited to 'ext/data')
-rw-r--r--ext/data/schemas/options-schema.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json
index 46d8a32a..215ca32c 100644
--- a/ext/data/schemas/options-schema.json
+++ b/ext/data/schemas/options-schema.json
@@ -845,7 +845,8 @@
"fieldTemplates",
"suspendNewCards",
"displayTags",
- "noteGuiMode"
+ "noteGuiMode",
+ "apiKey"
],
"properties": {
"enable": {
@@ -965,6 +966,10 @@
"type": "string",
"enum": ["browse", "edit"],
"default": "browse"
+ },
+ "apiKey": {
+ "type": "string",
+ "default": ""
}
}
},