feat(client): AiScript: ノート書き換えAPI
This commit is contained in:
parent
595ad04ddb
commit
30df8ea121
5 changed files with 30 additions and 8 deletions
|
@ -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),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue