feat: marketplace page

This commit is contained in:
Junyan Qin
2025-08-16 18:05:33 +08:00
parent 5179b3e53a
commit 28d4b1dd61
35 changed files with 1095 additions and 395 deletions
+27 -1
View File
@@ -1,4 +1,4 @@
import { ComponentManifest } from '@/app/infra/entities/common';
import { ComponentManifest, I18nObject } from '@/app/infra/entities/common';
export interface Plugin {
status: 'intialized' | 'mounted' | 'unmounted';
@@ -9,6 +9,8 @@ export interface Plugin {
};
debug: boolean;
enabled: boolean;
install_source: string;
install_info: Record<string, any>; // eslint-disable-line @typescript-eslint/no-explicit-any
components: {
component_config: object;
manifest: {
@@ -16,3 +18,27 @@ export interface Plugin {
};
};
}
// marketplace plugin v4
export enum PluginV4Status {
Any = 'any',
Live = 'live',
Deleted = 'deleted',
}
export interface PluginV4 {
id: number;
plugin_id: string;
author: string;
name: string;
label: I18nObject;
description: I18nObject;
icon: string;
repository: string;
tags: string[];
install_count: number;
latest_version: string;
status: PluginV4Status;
created_at: string;
updated_at: string;
}