From 19bba07a8bccb51a9db85c13fd921d825defe753 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Mon, 30 May 2022 12:03:24 -0400 Subject: 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 --- ext/data/schemas/options-schema.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ext/data') 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": "" } } }, -- cgit v1.2.3