mirror of
https://github.com/langgenius/dify.git
synced 2026-04-27 19:27:23 +08:00
refactor: pricing modal
This commit is contained in:
parent
86bc2924f3
commit
ae36958ef4
@ -46,17 +46,10 @@ const List = ({
|
|||||||
label={t('billing.plansCommon.documentsRequestQuota', { count: planInfo.documentsRequestQuota })}
|
label={t('billing.plansCommon.documentsRequestQuota', { count: planInfo.documentsRequestQuota })}
|
||||||
tooltip={t('billing.plansCommon.documentsRequestQuotaTooltip')}
|
tooltip={t('billing.plansCommon.documentsRequestQuotaTooltip')}
|
||||||
/>
|
/>
|
||||||
<Item
|
|
||||||
label={
|
|
||||||
planInfo.apiRateLimit === NUM_INFINITE
|
|
||||||
? t('billing.plansCommon.unlimitedApiRate')
|
|
||||||
: `${t('billing.plansCommon.apiRateLimitUnit', { count: planInfo.apiRateLimit })} ${t('billing.plansCommon.apiRateLimit')} / ${t('billing.plansCommon.month')}`
|
|
||||||
}
|
|
||||||
tooltip={planInfo.apiRateLimit === NUM_INFINITE ? undefined : t('billing.plansCommon.apiRateLimitTooltip') as string}
|
|
||||||
/>
|
|
||||||
<Item
|
<Item
|
||||||
label={[t(`billing.plansCommon.priority.${planInfo.documentProcessingPriority}`), t('billing.plansCommon.documentProcessingPriority')].join('')}
|
label={[t(`billing.plansCommon.priority.${planInfo.documentProcessingPriority}`), t('billing.plansCommon.documentProcessingPriority')].join('')}
|
||||||
/>
|
/>
|
||||||
|
<Divider bgStyle='gradient' />
|
||||||
<Item
|
<Item
|
||||||
label={
|
label={
|
||||||
planInfo.triggerEvents === NUM_INFINITE
|
planInfo.triggerEvents === NUM_INFINITE
|
||||||
@ -67,6 +60,13 @@ const List = ({
|
|||||||
}
|
}
|
||||||
tooltip={t('billing.plansCommon.triggerEvents.tooltip') as string}
|
tooltip={t('billing.plansCommon.triggerEvents.tooltip') as string}
|
||||||
/>
|
/>
|
||||||
|
<Item
|
||||||
|
label={
|
||||||
|
plan === Plan.sandbox
|
||||||
|
? t('billing.plansCommon.startNodes.limited', { count: 2 })
|
||||||
|
: t('billing.plansCommon.startNodes.unlimited')
|
||||||
|
}
|
||||||
|
/>
|
||||||
<Item
|
<Item
|
||||||
label={
|
label={
|
||||||
plan === Plan.sandbox
|
plan === Plan.sandbox
|
||||||
@ -77,13 +77,6 @@ const List = ({
|
|||||||
}
|
}
|
||||||
tooltip={t('billing.plansCommon.workflowExecution.tooltip') as string}
|
tooltip={t('billing.plansCommon.workflowExecution.tooltip') as string}
|
||||||
/>
|
/>
|
||||||
<Item
|
|
||||||
label={
|
|
||||||
plan === Plan.sandbox
|
|
||||||
? t('billing.plansCommon.startNodes.limited', { count: 2 })
|
|
||||||
: t('billing.plansCommon.startNodes.unlimited')
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Divider bgStyle='gradient' />
|
<Divider bgStyle='gradient' />
|
||||||
<Item
|
<Item
|
||||||
label={t('billing.plansCommon.annotatedResponse.title', { count: planInfo.annotatedResponse })}
|
label={t('billing.plansCommon.annotatedResponse.title', { count: planInfo.annotatedResponse })}
|
||||||
@ -92,6 +85,14 @@ const List = ({
|
|||||||
<Item
|
<Item
|
||||||
label={t('billing.plansCommon.logsHistory', { days: planInfo.logHistory === NUM_INFINITE ? t('billing.plansCommon.unlimited') as string : `${planInfo.logHistory} ${t('billing.plansCommon.days')}` })}
|
label={t('billing.plansCommon.logsHistory', { days: planInfo.logHistory === NUM_INFINITE ? t('billing.plansCommon.unlimited') as string : `${planInfo.logHistory} ${t('billing.plansCommon.days')}` })}
|
||||||
/>
|
/>
|
||||||
|
<Item
|
||||||
|
label={
|
||||||
|
planInfo.apiRateLimit === NUM_INFINITE
|
||||||
|
? t('billing.plansCommon.unlimitedApiRate')
|
||||||
|
: `${t('billing.plansCommon.apiRateLimitUnit', { count: planInfo.apiRateLimit })} ${t('billing.plansCommon.apiRateLimit')} / ${t('billing.plansCommon.month')}`
|
||||||
|
}
|
||||||
|
tooltip={planInfo.apiRateLimit === NUM_INFINITE ? undefined : t('billing.plansCommon.apiRateLimitTooltip') as string}
|
||||||
|
/>
|
||||||
<Divider bgStyle='gradient' />
|
<Divider bgStyle='gradient' />
|
||||||
<Item
|
<Item
|
||||||
label={t('billing.plansCommon.modelProviders')}
|
label={t('billing.plansCommon.modelProviders')}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user