feat: add plugins settings i18n + typing

This commit is contained in:
Mohamed Marrouchi
2024-10-19 13:56:09 +01:00
parent 8d846186cc
commit 92bb4978c3
20 changed files with 107 additions and 67 deletions

View File

@@ -59,7 +59,7 @@ export class BlockController extends BaseController<
private readonly categoryService: CategoryService,
private readonly labelService: LabelService,
private readonly userService: UserService,
private pluginsService: PluginService<BaseBlockPlugin>,
private pluginsService: PluginService<BaseBlockPlugin<any>>,
) {
super(blockService);
}
@@ -122,8 +122,7 @@ export class BlockController extends BaseController<
const plugins = this.pluginsService
.getAllByType(PluginType.block)
.map((p) => ({
title: p.title,
name: p.id,
id: p.id,
template: {
...p.template,
message: {