Implement generic interface for adding Data Bank scrapers

This commit is contained in:
Cohee
2024-04-18 00:14:41 +03:00
parent 47a06c14d9
commit 59bb04f1b3
6 changed files with 388 additions and 204 deletions

View File

@@ -215,6 +215,7 @@ import { evaluateMacros } from './scripts/macros.js';
import { currentUser, setUserControls } from './scripts/user.js';
import { callGenericPopup } from './scripts/popup.js';
import { renderTemplate, renderTemplateAsync } from './scripts/templates.js';
import { ScraperManager } from './scripts/scrapers.js';
//exporting functions and vars for mods
export {
@@ -7756,6 +7757,7 @@ window['SillyTavern'].getContext = function () {
*/
renderExtensionTemplate: renderExtensionTemplate,
renderExtensionTemplateAsync: renderExtensionTemplateAsync,
registerDataBankScraper: ScraperManager.registerDataBankScraper,
callPopup: callPopup,
callGenericPopup: callGenericPopup,
mainApi: main_api,