From a531618c48481a30d63112cf59b7806291f0bda4 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 10 Sep 2020 18:03:46 -0400 Subject: Use Anki classes directly in Display (#804) * Add _getTemplates function * Add template renderer to display pages * Add AnkiNoteBuilder to Display * Update AnkiTemplatesController to directly use TemplateRenderer * Remove old APIs --- ext/mixed/js/api.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'ext/mixed/js/api.js') diff --git a/ext/mixed/js/api.js b/ext/mixed/js/api.js index 4a1b0c11..1e7625da 100644 --- a/ext/mixed/js/api.js +++ b/ext/mixed/js/api.js @@ -89,22 +89,10 @@ const api = (() => { return this._invoke('injectAnkiNoteMedia', {expression, reading, timestamp, audioDetails, screenshotDetails, clipboardImage}); } - definitionAdd(definition, mode, context, ownerFrameId, optionsContext) { - return this._invoke('definitionAdd', {definition, mode, context, ownerFrameId, optionsContext}); - } - - definitionsAddable(definitions, modes, context, optionsContext) { - return this._invoke('definitionsAddable', {definitions, modes, context, optionsContext}); - } - noteView(noteId) { return this._invoke('noteView', {noteId}); } - templateRender(template, data, marker) { - return this._invoke('templateRender', {data, template, marker}); - } - audioGetUri(source, expression, reading, details) { return this._invoke('audioGetUri', {source, expression, reading, details}); } -- cgit v1.2.3