mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
refactor(plugin): 重构插件定义和安装流程
- 更新插件配置格式,增加依赖库和插件类型字段 - 修改插件安装流程,支持安装依赖插件和第三方库 - 优化插件列表过滤逻辑,按类型筛选插件 - 调整 Dockerfile,使用 Node.js22 镜像并更新 pnpm 安装方式
This commit is contained in:
@@ -86,7 +86,9 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||
});
|
||||
const disabledNames = list.map(it => it.name);
|
||||
|
||||
return builtInList.filter(it => !disabledNames.includes(it.name));
|
||||
return builtInList.filter(it =>{
|
||||
return !disabledNames.includes(it.name)
|
||||
});
|
||||
}
|
||||
|
||||
async getBuiltInEntityList() {
|
||||
@@ -253,7 +255,7 @@ export class PluginService extends BaseService<PluginEntity> {
|
||||
let registry = null;
|
||||
if (item.pluginType === "access") {
|
||||
registry = accessRegistry;
|
||||
} else if (item.pluginType === "plugin") {
|
||||
} else if (item.pluginType === "deploy") {
|
||||
registry = pluginRegistry;
|
||||
} else if (item.pluginType === "dnsProvider") {
|
||||
registry = dnsProviderRegistry;
|
||||
|
||||
Reference in New Issue
Block a user