add verified tag

This commit is contained in:
JzoNg 2024-10-17 13:44:56 +08:00
parent 307af29b65
commit 1ecea62052
3 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import {
RiBugLine,
RiCloseLine,
RiHardDrive3Line,
// RiVerifiedBadgeLine,
RiVerifiedBadgeLine,
} from '@remixicon/react'
import type { PluginDetail } from '../types'
import { PluginSource } from '../types'
@ -73,7 +73,7 @@ const PluginDetailPanel: FC<Props> = ({
<div className="ml-3 w-0 grow">
<div className="flex items-center h-5">
<Title title={pluginDetail.declaration.label[locale]} />
{/* <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" /> */}
{pluginDetail.declaration.verified && <RiVerifiedBadgeLine className="shrink-0 ml-0.5 w-4 h-4 text-text-accent" />}
<Badge
className='mx-1'
text={pluginDetail.version}

View File

@ -25,6 +25,7 @@ export const toolNotion = {
resource: {},
plugins: {},
tool: {}, // TODO
verified: true,
},
installation_id: 'jflkdsjoewingljlsadjgoijg-dkfjldajglkajglask-dlfkajdg',
tenant_id: 'jflkdsjoewingljlsadjgoijg',

View File

@ -47,6 +47,7 @@ export type PluginDeclaration = {
created_at: string
resource: any // useless in frontend
plugins: any // useless in frontend
verified: boolean
tool: PluginToolDeclaration
endpoint: PluginEndpointDeclaration
model: any // TODO