mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 20:48:06 +01:00
This commit is contained in:
parent
3cc93f2425
commit
22565b9006
12 changed files with 84 additions and 216 deletions
|
|
@ -27,6 +27,8 @@ import {loadPlugins, reloadPlugin} from "../plugin/loader";
|
|||
import {hideAllElements} from "../protyle/ui/hideElements";
|
||||
import {reloadEmoji} from "../emoji";
|
||||
import {updateControlAlt} from "../protyle/util/hotKey";
|
||||
import {updateAppearance} from "../config/util/updateAppearance";
|
||||
import {renderSnippet} from "../config/util/snippets";
|
||||
|
||||
class App {
|
||||
public plugins: import("../plugin").Plugin[] = [];
|
||||
|
|
@ -56,6 +58,12 @@ class App {
|
|||
});
|
||||
if (data) {
|
||||
switch (data.cmd) {
|
||||
case "setAppearance":
|
||||
updateAppearance(data.data);
|
||||
break;
|
||||
case "setSnippet":
|
||||
renderSnippet();
|
||||
break;
|
||||
case "setDefRefCount":
|
||||
setDefRefCount(data.data);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue