perf: add component list in plugin detail dialog

This commit is contained in:
Junyan Qin
2025-10-12 19:57:42 +08:00
parent f1ddddfe00
commit 547e3d098e
15 changed files with 122 additions and 74 deletions
@@ -0,0 +1,46 @@
import { PluginComponent } from '@/app/infra/entities/plugin';
export interface IPluginCardVO {
author: string;
label: string;
name: string;
description: string;
version: string;
enabled: boolean;
priority: number;
install_source: string;
install_info: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
status: string;
components: PluginComponent[];
debug: boolean;
}
export class PluginCardVO implements IPluginCardVO {
author: string;
label: string;
name: string;
description: string;
version: string;
enabled: boolean;
priority: number;
debug: boolean;
install_source: string;
install_info: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
status: string;
components: PluginComponent[];
constructor(prop: IPluginCardVO) {
this.author = prop.author;
this.label = prop.label;
this.description = prop.description;
this.enabled = prop.enabled;
this.components = prop.components;
this.name = prop.name;
this.priority = prop.priority;
this.status = prop.status;
this.version = prop.version;
this.debug = prop.debug;
this.install_source = prop.install_source;
this.install_info = prop.install_info;
}
}