mirror of
https://github.com/langgenius/dify.git
synced 2025-11-02 20:03:09 +00:00
add datasource category
This commit is contained in:
parent
808f792f55
commit
a7eb534761
@ -21,8 +21,8 @@ export const tagKeys = [
|
||||
export const categoryKeys = [
|
||||
'model',
|
||||
'tool',
|
||||
'datasource',
|
||||
'agent-strategy',
|
||||
'extension',
|
||||
'bundle',
|
||||
'datasource',
|
||||
]
|
||||
|
||||
@ -44,6 +44,10 @@ const Description = async ({
|
||||
<span className='relative z-[2] lowercase'>{t('category.tools')}</span>
|
||||
</span>
|
||||
,
|
||||
<span className="body-md-medium relative z-[1] ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
|
||||
<span className='relative z-[2] lowercase'>{t('category.datasources')}</span>
|
||||
</span>
|
||||
,
|
||||
<span className="body-md-medium relative z-[1] ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
|
||||
<span className='relative z-[2] lowercase'>{t('category.agents')}</span>
|
||||
</span>
|
||||
|
||||
@ -21,6 +21,7 @@ export const PLUGIN_TYPE_SEARCH_MAP = {
|
||||
tool: PluginType.tool,
|
||||
agent: PluginType.agent,
|
||||
extension: PluginType.extension,
|
||||
datasource: PluginType.datasource,
|
||||
bundle: 'bundle',
|
||||
}
|
||||
type PluginTypeSwitchProps = {
|
||||
@ -56,6 +57,11 @@ const PluginTypeSwitch = ({
|
||||
text: t('plugin.category.tools'),
|
||||
icon: <RiHammerLine className='mr-1.5 h-4 w-4' />,
|
||||
},
|
||||
{
|
||||
value: PLUGIN_TYPE_SEARCH_MAP.datasource,
|
||||
text: t('plugin.category.datasources'),
|
||||
icon: <RiHammerLine className='mr-1.5 h-4 w-4' />,
|
||||
},
|
||||
{
|
||||
value: PLUGIN_TYPE_SEARCH_MAP.agent,
|
||||
text: t('plugin.category.agents'),
|
||||
|
||||
@ -7,6 +7,7 @@ export enum PluginType {
|
||||
model = 'model',
|
||||
extension = 'extension',
|
||||
agent = 'agent-strategy',
|
||||
datasource = 'datasource',
|
||||
}
|
||||
|
||||
export enum PluginSource {
|
||||
|
||||
@ -71,6 +71,10 @@ const Marketplace = ({
|
||||
{t('plugin.category.tools')}
|
||||
</span>
|
||||
,
|
||||
<span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
|
||||
{t('plugin.category.datasources')}
|
||||
</span>
|
||||
,
|
||||
<span className="body-md-medium relative ml-1 text-text-secondary after:absolute after:bottom-[1.5px] after:left-0 after:h-2 after:w-full after:bg-text-text-selected after:content-['']">
|
||||
{t('plugin.category.agents')}
|
||||
</span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user