diff --git a/.gitignore b/.gitignore index 83598d5b..0adb7cf1 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ devconfig/* !.vscode/extensions.json .idea/* +# macOS +.DS_Store + # Build *.db checkVersion.sh diff --git a/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx b/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx index 94c01647..3a3424c9 100644 --- a/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx +++ b/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx @@ -55,6 +55,7 @@ function getAuthorAvatar (homepage?: string, downloadUrl?: string): string | und export interface PluginStoreCardProps { data: PluginStoreItem; onInstall: () => void; + onViewDetail?: () => void; installStatus?: InstallStatus; installedVersion?: string; } @@ -62,6 +63,7 @@ export interface PluginStoreCardProps { const PluginStoreCard: React.FC = ({ data, onInstall, + onViewDetail, installStatus = 'not-installed', installedVersion, }) => { @@ -91,7 +93,10 @@ const PluginStoreCard: React.FC = ({ )} shadow='sm' > - + {/* Header: Avatar + Name + Author */}
= ({
- + e.stopPropagation()} + > {installStatus === 'installed' ? (