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

View File

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

View File

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