mirror of
https://github.com/langgenius/dify.git
synced 2025-11-12 09:25:17 +00:00
add datasource category
This commit is contained in:
parent
808f792f55
commit
a7eb534761
@ -21,8 +21,8 @@ export const tagKeys = [
|
|||||||
export const categoryKeys = [
|
export const categoryKeys = [
|
||||||
'model',
|
'model',
|
||||||
'tool',
|
'tool',
|
||||||
|
'datasource',
|
||||||
'agent-strategy',
|
'agent-strategy',
|
||||||
'extension',
|
'extension',
|
||||||
'bundle',
|
'bundle',
|
||||||
'datasource',
|
|
||||||
]
|
]
|
||||||
|
|||||||
@ -44,6 +44,10 @@ const Description = async ({
|
|||||||
<span className='relative z-[2] lowercase'>{t('category.tools')}</span>
|
<span className='relative z-[2] lowercase'>{t('category.tools')}</span>
|
||||||
</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="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 className='relative z-[2] lowercase'>{t('category.agents')}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@ -21,6 +21,7 @@ export const PLUGIN_TYPE_SEARCH_MAP = {
|
|||||||
tool: PluginType.tool,
|
tool: PluginType.tool,
|
||||||
agent: PluginType.agent,
|
agent: PluginType.agent,
|
||||||
extension: PluginType.extension,
|
extension: PluginType.extension,
|
||||||
|
datasource: PluginType.datasource,
|
||||||
bundle: 'bundle',
|
bundle: 'bundle',
|
||||||
}
|
}
|
||||||
type PluginTypeSwitchProps = {
|
type PluginTypeSwitchProps = {
|
||||||
@ -56,6 +57,11 @@ const PluginTypeSwitch = ({
|
|||||||
text: t('plugin.category.tools'),
|
text: t('plugin.category.tools'),
|
||||||
icon: <RiHammerLine className='mr-1.5 h-4 w-4' />,
|
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,
|
value: PLUGIN_TYPE_SEARCH_MAP.agent,
|
||||||
text: t('plugin.category.agents'),
|
text: t('plugin.category.agents'),
|
||||||
|
|||||||
@ -7,6 +7,7 @@ export enum PluginType {
|
|||||||
model = 'model',
|
model = 'model',
|
||||||
extension = 'extension',
|
extension = 'extension',
|
||||||
agent = 'agent-strategy',
|
agent = 'agent-strategy',
|
||||||
|
datasource = 'datasource',
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum PluginSource {
|
export enum PluginSource {
|
||||||
|
|||||||
@ -71,6 +71,10 @@ const Marketplace = ({
|
|||||||
{t('plugin.category.tools')}
|
{t('plugin.category.tools')}
|
||||||
</span>
|
</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-['']">
|
<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')}
|
{t('plugin.category.agents')}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user