From c951b14aa2e9a59b07a24c24fe8c93def6fb73bb Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Wed, 25 Feb 2026 19:42:51 +0800 Subject: [PATCH] feat: add useExtensionPage composable for managing plugin extensions - Implemented a new composable `useExtensionPage` to handle various functionalities related to plugin management, including fetching extensions, handling updates, and managing UI states. - Added support for conflict checking, plugin installation, and custom source management. - Integrated search and filtering capabilities for plugins in the market. - Enhanced user experience with dialogs for confirmations and notifications. - Included pagination and sorting features for better plugin visibility. --- .../components/extension/MarketPluginCard.vue | 24 +- .../src/components/shared/ExtensionCard.vue | 595 ++-- .../locales/en-US/features/extension.json | 3 + .../locales/zh-CN/features/extension.json | 3 + dashboard/src/views/ExtensionPage.vue | 2433 ++--------------- .../views/extension/InstalledPluginsTab.vue | 639 +++++ .../src/views/extension/MarketPluginsTab.vue | 373 +++ .../src/views/extension/useExtensionPage.js | 1466 ++++++++++ 8 files changed, 3112 insertions(+), 2424 deletions(-) create mode 100644 dashboard/src/views/extension/InstalledPluginsTab.vue create mode 100644 dashboard/src/views/extension/MarketPluginsTab.vue create mode 100644 dashboard/src/views/extension/useExtensionPage.js diff --git a/dashboard/src/components/extension/MarketPluginCard.vue b/dashboard/src/components/extension/MarketPluginCard.vue index 2fbb1917e..edae9227d 100644 --- a/dashboard/src/components/extension/MarketPluginCard.vue +++ b/dashboard/src/components/extension/MarketPluginCard.vue @@ -34,6 +34,7 @@ const platformDisplayList = computed(() => const handleInstall = (plugin) => { emit("install", plugin); }; +