1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-23 12:50:16 +00:00
bramw_baserow/web-frontend/modules/core/plugins.js
2021-09-14 14:46:55 +00:00

19 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) {}
}