This commit is contained in:
Vanessa 2023-06-30 10:44:33 +08:00
parent 65920afeeb
commit 4c7a01a911
6 changed files with 8 additions and 3 deletions

View file

@ -16,6 +16,7 @@ export class Plugin {
public i18n: IObject;
public eventBus: EventBus;
public data: any = {};
public displayName: string;
public name: string;
public protyleSlash: {
filter: string[],
@ -53,11 +54,13 @@ export class Plugin {
constructor(options: {
app: App,
name: string,
displayName: string,
i18n: IObject
}) {
this.app = options.app;
this.i18n = options.i18n;
this.name = options.name;
this.displayName = options.displayName;
this.eventBus = new EventBus(options.name);
}