feat(client): AiScript: ノート書き換えAPI
This commit is contained in:
@@ -111,6 +111,7 @@ export default () => new Vuex.Store({
|
||||
postFormActions: [],
|
||||
userActions: [],
|
||||
noteActions: [],
|
||||
noteViewInterruptors: [],
|
||||
},
|
||||
|
||||
getters: {
|
||||
@@ -274,6 +275,14 @@ export default () => new Vuex.Store({
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
registerNoteViewInterruptor(state, { pluginId, handler }) {
|
||||
state.noteViewInterruptors.push({
|
||||
handler: (note) => {
|
||||
return state.pluginContexts.get(pluginId).execFn(handler, [utils.jsToVal(note)]);
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
Reference in New Issue
Block a user