mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
feat: marketplace types
This commit is contained in:
@ -1,11 +1,9 @@
|
||||
'use client'
|
||||
import Card from '@/app/components/plugins/card'
|
||||
import CardMoreInfo from '@/app/components/plugins/card/card-more-info'
|
||||
import { toolNotion } from '@/app/components/plugins/card/card-mock'
|
||||
import { getLocaleOnServer } from '@/i18n/server'
|
||||
|
||||
const List = () => {
|
||||
const locale = getLocaleOnServer()
|
||||
|
||||
return (
|
||||
<div className='px-12 py-2 bg-background-default-subtle'>
|
||||
<div className='py-3'>
|
||||
|
||||
19
web/app/components/plugins/marketplace/types.ts
Normal file
19
web/app/components/plugins/marketplace/types.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import type { Plugin } from '../types'
|
||||
|
||||
export type MarketplaceCollection = {
|
||||
name: string
|
||||
description: string
|
||||
rule: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export type MarketplaceCollectionsResponse = {
|
||||
collections: MarketplaceCollection[]
|
||||
total: number
|
||||
}
|
||||
|
||||
export type MarketplaceCollectionPluginsResponse = {
|
||||
plugins: Plugin[]
|
||||
total: number
|
||||
}
|
||||
Reference in New Issue
Block a user