Lua: widgets

This commit is contained in:
Zef Hemel
2024-10-13 15:14:22 +02:00
parent 4b6cd183a8
commit c1a20af981
8 changed files with 388 additions and 142 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import type { SysCallMapping } from "../../lib/plugos/system.ts";
import { reloadAllMarkdownWidgets } from "../cm_plugins/markdown_widget.ts";
import { reloadAllWidgets } from "../cm_plugins/markdown_widget.ts";
import { broadcastReload } from "../components/widget_sandbox_iframe.ts";
export function clientCodeWidgetSyscalls(): SysCallMapping {
return {
"codeWidget.refreshAll": () => {
broadcastReload();
reloadAllMarkdownWidgets();
reloadAllWidgets();
},
};
}