+ {/* 标题 */}
+
+
+
+
+
+
+
+
+ {/* 安装提示 */}
+ {restartNoticeVisible && (
+
+
+
+
+
+
+ 安装、卸载或更新插件后,部分插件需要重启麦麦才能生效
+
+
+
+
+
+
+ )}
+
+ {/* Git 状态警告 */}
+ {gitStatus && !gitStatus.installed && (
+
+
+
+
+
+
+ Git 未安装
+
+
+ {gitStatus.error || '请先安装 Git 才能使用插件安装功能'}
+
+
+
+
+
+
+ 您可以从{' '}
+
+ git-scm.com
+ {' '}
+ 下载并安装 Git。安装完成后,请重启麦麦应用。
+
+
+
+ )}
+
+ {/* 搜索和筛选栏 */}
+
+
+
+ {/* 搜索框 */}
+
+
+ setSearchQuery(event.target.value)}
+ className="pl-9"
+ />
+
+
+ {/* 分类筛选 */}
+
+
+
+ {/* 兼容性筛选 */}
+
+ setShowCompatibleOnly(checked === true)}
+ />
+
+
+
+
+
+ {/* 标签页 */}
+
+
+ 全部插件 ({getFilteredPluginCount('all')})
+ 已安装 ({getFilteredPluginCount('installed')})
+ 可更新 ({getFilteredPluginCount('updates')})
+
+
+
+ {/* 进度条 - 仅显示插件清单加载进度 */}
+ {loadProgress && loadProgress.stage === 'loading' && loadProgress.operation === 'fetch' && (
+
+
+
+
+
+ 加载插件列表
+
+
{loadProgress.progress}%
+
+
+
{loadProgress.message}
+ {loadProgress.total_plugins > 0 && (
+
+ 已加载 {loadProgress.loaded_plugins} / {loadProgress.total_plugins} 个插件
+
+ )}
+
+
+ )}
+
+ {/* 加载错误显示 */}
+ {loadProgress && loadProgress.stage === 'error' && loadProgress.error && (
+
+
+
+
+
+ 加载失败
+ {loadProgress.error}
+
+
+
+
+ )}
+
+ {/* 插件卡片网格 */}
+ {loading ? (
+
+
+ 加载插件列表中...
+
+ ) : error ? (
+
+
+
+
加载失败
+
{error}
+
+
+
+ ) : activeTab === 'all' ? (
+
+ ) : activeTab === 'installed' ? (
+
+ ) : (
+
+ {filteredUpdatablePlugins.map((plugin) => (
+
+ ))}
+
+ )}
+
+ {/* 安装对话框 */}
+
+
+ {/* 重启遮罩层 */}
+
+
+