From 307af29b65756cd115320e9fe6b24058cdad29cc Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 17 Oct 2024 08:49:29 +0800 Subject: [PATCH] add plugin description --- web/app/components/plugins/plugin-detail-panel/index.tsx | 5 ++--- web/app/components/plugins/plugin-detail-panel/mock.ts | 2 +- web/app/components/plugins/types.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsx index bd5bed93b7..5aba9e5cf5 100644 --- a/web/app/components/plugins/plugin-detail-panel/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/index.tsx @@ -11,7 +11,7 @@ import { } from '@remixicon/react' import type { PluginDetail } from '../types' import { PluginSource } from '../types' -// import Description from '../card/base/description' +import Description from '../card/base/description' import Icon from '../card/base/card-icon' import Title from '../card/base/title' import OrgInfo from '../card/base/org-info' @@ -122,8 +122,7 @@ const PluginDetailPanel: FC = ({ - {/* category === extension TODO */} - {/* */} +
diff --git a/web/app/components/plugins/plugin-detail-panel/mock.ts b/web/app/components/plugins/plugin-detail-panel/mock.ts index 985e16a7b5..f41d749bc9 100644 --- a/web/app/components/plugins/plugin-detail-panel/mock.ts +++ b/web/app/components/plugins/plugin-detail-panel/mock.ts @@ -17,7 +17,7 @@ export const toolNotion = { 'en-US': 'Notion Page Search', 'zh-Hans': 'Notion 页面搜索', }, - brief: { + description: { 'en-US': 'Description: Search Notion pages and open visited ones faster. No admin access required.More and more info...More and more info...More and more info...', 'zh-Hans': '搜索 Notion 页面并更快地打开已访问的页面。无需管理员访问权限。More and more info...More and more info...More and more info...', }, diff --git a/web/app/components/plugins/types.ts b/web/app/components/plugins/types.ts index 413a5172c9..c25d9fd1a8 100644 --- a/web/app/components/plugins/types.ts +++ b/web/app/components/plugins/types.ts @@ -43,7 +43,7 @@ export type PluginDeclaration = { name: string category: PluginType label: Record - brief: Record + description: Record created_at: string resource: any // useless in frontend plugins: any // useless in frontend