feat(client): AiScript: ノート書き換えAPI

This commit is contained in:
syuilo 2020-07-29 01:15:02 +09:00
parent 595ad04ddb
commit 30df8ea121
5 changed files with 30 additions and 8 deletions

View file

@ -70,6 +70,9 @@ export function createPluginEnv(vm, opts) {
'Plugin:register_note_action': values.FN_NATIVE(([title, handler]) => {
vm.$store.commit('registerNoteAction', { pluginId: opts.plugin.id, title: title.value, handler });
}),
'Plugin:register_note_view_interruptor': values.FN_NATIVE(([handler]) => {
vm.$store.commit('registerNoteViewInterruptor', { pluginId: opts.plugin.id, handler });
}),
'Plugin:config': values.OBJ(config),
};
}