From 6b29860788c742e53c40b2e394ee130fcbba1c8f Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 9 Oct 2024 18:12:14 +0800 Subject: [PATCH] feat: add installed --- .../(commonLayout)/plugins/test/card/page.tsx | 35 ++++++++++++++----- web/app/components/plugins/card-mock.ts | 4 +-- web/app/components/plugins/card.tsx | 11 ++++-- 3 files changed, 38 insertions(+), 12 deletions(-) diff --git a/web/app/(commonLayout)/plugins/test/card/page.tsx b/web/app/(commonLayout)/plugins/test/card/page.tsx index ac85164412..952660feea 100644 --- a/web/app/(commonLayout)/plugins/test/card/page.tsx +++ b/web/app/(commonLayout)/plugins/test/card/page.tsx @@ -3,15 +3,34 @@ import { extensionDallE, modelGPT4, toolNotion } from '@/app/components/plugins/ const PluginList = async () => { return ( - <> -
- - - - - +
+
+

Dify Plugin list

+
+ + + + + +
+ +

Install Plugin / Package under bundle

+
+ +
+

Installed

+
+ +
- +
) } diff --git a/web/app/components/plugins/card-mock.ts b/web/app/components/plugins/card-mock.ts index f054afb855..27f7fd5386 100644 --- a/web/app/components/plugins/card-mock.ts +++ b/web/app/components/plugins/card-mock.ts @@ -11,8 +11,8 @@ export const toolNotion = { 'zh-Hans': 'Notion 页面搜索', }, brief: { - 'en-US': 'Description: Search Notion pages and open visited ones faster. No admin access required.', - 'zh-Hans': '搜索 Notion 页面并更快地打开已访问的页面。无需管理员访问权限。', + '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/card.tsx b/web/app/components/plugins/card.tsx index 30885961ea..291b7b1a84 100644 --- a/web/app/components/plugins/card.tsx +++ b/web/app/components/plugins/card.tsx @@ -1,5 +1,5 @@ import React, { useMemo } from 'react' -import { RiVerifiedBadgeLine } from '@remixicon/react' +import { RiCheckLine, RiVerifiedBadgeLine } from '@remixicon/react' import type { FC } from 'react' import { LeftCorner } from '../base/icons/src/vender/plugin' import type { Plugin } from './types' @@ -31,6 +31,13 @@ export const Icon = ({ backgroundImage: `url(${src})`, }} > + {installed + &&
+
+ +
+
+ }
) } @@ -108,7 +115,7 @@ const Card = ({ const { type, name, org, label } = payload return ( -
+
{/* Header */}