feat(plugins): add plugin new version detection (#1865)

* feat(plugins): 添加插件更新检测功能

* perf: card style

---------

Co-authored-by: Junyan Qin <rockchinq@gmail.com>
This commit is contained in:
sheetung
2025-12-18 12:17:25 +08:00
committed by GitHub
parent 82e2123fe7
commit 3ab9ffb7b7
8 changed files with 132 additions and 10 deletions
@@ -13,6 +13,7 @@ export interface IPluginCardVO {
status: string;
components: PluginComponent[];
debug: boolean;
hasUpdate?: boolean;
}
export class PluginCardVO implements IPluginCardVO {
@@ -28,6 +29,7 @@ export class PluginCardVO implements IPluginCardVO {
install_info: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
status: string;
components: PluginComponent[];
hasUpdate?: boolean;
constructor(prop: IPluginCardVO) {
this.author = prop.author;
@@ -42,5 +44,6 @@ export class PluginCardVO implements IPluginCardVO {
this.debug = prop.debug;
this.install_source = prop.install_source;
this.install_info = prop.install_info;
this.hasUpdate = prop.hasUpdate;
}
}