Files
baserow/web-frontend/modules/core/plugins.js
T

20 lines
575 B
JavaScript

import { Registerable } from '@baserow/modules/core/registry'
/**
* The name plugin might be a bit confusing because you also have Nuxt plugins, but
* this is not the same. A plugin can contain hooks for certain events such as when
* a user account is created.
*/
export class BaserowPlugin extends Registerable {
constructor(...args) {
super(...args)
this.type = this.getType()
}
/**
* Hook that is called when a user creates a new account. This can for example be
* used for submitting an analytical event.
*/
userCreated(user, context) {}
}