diff --git a/astrbot/core/star/star_manager.py b/astrbot/core/star/star_manager.py index 13c93f22..3dd4cd1c 100644 --- a/astrbot/core/star/star_manager.py +++ b/astrbot/core/star/star_manager.py @@ -652,7 +652,11 @@ class PluginManager: plugin_info = None if plugin: - plugin_info = {"repo": plugin.repo, "readme": cleaned_content} + plugin_info = { + "repo": plugin.repo, + "readme": cleaned_content, + "name": plugin.name, + } return plugin_info @@ -847,6 +851,10 @@ class PluginManager: plugin_info = None if plugin: - plugin_info = {"repo": plugin.repo, "readme": readme_content} + plugin_info = { + "repo": plugin.repo, + "readme": readme_content, + "name": plugin.name, + } return plugin_info diff --git a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts index e8f49c74..8495ece4 100644 --- a/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +++ b/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts @@ -41,22 +41,17 @@ const sidebarItem: menu[] = [ to: '/config', }, { - title: '插件管理', + title: '插件', icon: 'mdi-puzzle', to: '/extension' }, - { - title: '插件市场', - icon: 'mdi-storefront', - to: '/extension-marketplace' - }, { title: '聊天', icon: 'mdi-chat', to: '/chat' }, { - title: '对话数据库', + title: '对话数据', icon: 'mdi-database', to: '/conversation' }, diff --git a/dashboard/src/router/MainRoutes.ts b/dashboard/src/router/MainRoutes.ts index 0c2d9cf0..f3dd22a3 100644 --- a/dashboard/src/router/MainRoutes.ts +++ b/dashboard/src/router/MainRoutes.ts @@ -19,7 +19,7 @@ const MainRoutes = { { name: 'ExtensionMarketplace', path: '/extension-marketplace', - component: () => import('@/views/ExtensionMarketplace.vue') + component: () => import('@/views/ExtensionPage.vue') }, { name: 'Platforms', diff --git a/dashboard/src/views/ExtensionMarketplace.vue b/dashboard/src/views/ExtensionMarketplace.vue deleted file mode 100644 index 764b8f83..00000000 --- a/dashboard/src/views/ExtensionMarketplace.vue +++ /dev/null @@ -1,704 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/dashboard/src/views/ExtensionPage.vue b/dashboard/src/views/ExtensionPage.vue index 5c964924..681f66a5 100644 --- a/dashboard/src/views/ExtensionPage.vue +++ b/dashboard/src/views/ExtensionPage.vue @@ -1,16 +1,16 @@ - 已安装的插件 + AstrBot 插件 - 管理已经安装的所有插件 + 管理、安装 AstrBot 插件 - - - - - - mdi-view-grid - - - mdi-view-list - - + + - - {{ showReserved ? '隐藏系统插件' : '显示系统插件' }} - - - - 平台命令配置 - - - - -
- - -
+
+ + + mdi-puzzle + 已安装插件 + + + mdi-store + 插件市场 + + + + - - - - - - + + mdi-view-list + + - - -
- - -