tachybase_todo/packages/samples/custom-block/src/server/index.ts
chenos 249dff16d3
refactor: plugin manager (#965)
* feat: improve code

* chore: update version

* feat: api service

* fix: api services

* feat: improve code

* feat: improve code

* feat: improve code

* feat: pm socket

* fix: test errors

* feat: add built-in plugins before upgrade

* feat: update docs

* feat: improve code

* fix: after load
2022-10-27 13:00:16 +08:00

17 lines
258 B
TypeScript

import { InstallOptions, Plugin } from '@nocobase/server';
export class CustomBlockPlugin extends Plugin {
beforeLoad() {
// TODO
}
async load() {}
async install(options: InstallOptions) {
// TODO
}
}
export default CustomBlockPlugin;