Files
edgeever/apps/web/src/lib/plugins/plugin-lifecycle.fixture.mjs
T

9 lines
332 B
JavaScript

export default {
async activate(context) {
await context.notes.query();
const panel = context.ui.panels.register({ id: 'delayed', title: 'Delayed', purpose: 'workflow', mount() {} });
const command = context.commands.register({ id: 'open', title: 'Open', run() {} });
return () => { command(); panel(); };
},
};