mirror of https://github.com/langgenius/dify.git
chore: update category ui
This commit is contained in:
parent
9e66564526
commit
176d810c8d
|
|
@ -5,7 +5,6 @@ import { useTranslation } from 'react-i18next'
|
|||
import cn from '@/utils/classnames'
|
||||
import exploreI18n from '@/i18n/en-US/explore'
|
||||
import type { AppCategory } from '@/models/explore'
|
||||
import { ThumbsUp } from '@/app/components/base/icons/src/vender/line/alertsAndFeedback'
|
||||
|
||||
const categoryI18n = exploreI18n.category
|
||||
|
||||
|
|
@ -31,7 +30,7 @@ const Category: FC<ICategoryProps> = ({
|
|||
const isAllCategories = !list.includes(value as AppCategory) || value === allCategoriesEn
|
||||
|
||||
const itemClassName = (isSelected: boolean) => cn(
|
||||
'flex h-[32px] cursor-pointer items-center rounded-lg border-[0.5px] border-transparent px-3 py-[7px] font-medium leading-[18px] text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active',
|
||||
'system-sm-medium flex h-7 cursor-pointer items-center rounded-lg border border-transparent px-3 text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active',
|
||||
isSelected && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text-active shadow-xs',
|
||||
)
|
||||
|
||||
|
|
@ -41,7 +40,6 @@ const Category: FC<ICategoryProps> = ({
|
|||
className={itemClassName(isAllCategories)}
|
||||
onClick={() => onChange(allCategoriesEn)}
|
||||
>
|
||||
<ThumbsUp className='mr-1 h-3.5 w-3.5' />
|
||||
{t('explore.apps.allCategories')}
|
||||
</div>
|
||||
{list.filter(name => name !== allCategoriesEn).map(name => (
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Alle Kategorien',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Zum Arbeitsbereich hinzufügen',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const translation = {
|
|||
},
|
||||
apps: {
|
||||
title: 'Try Dify\'s curated apps to find AI solutions for your business',
|
||||
allCategories: 'Recommended',
|
||||
allCategories: 'All',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Add to Workspace',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Recomendado',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Agregar al espacio de trabajo',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'پیشنهاد شده',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'افزودن به فضای کاری',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Recommandé',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Ajouter à l\'espace de travail',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'अनुशंसित',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'कार्यक्षेत्र में जोड़ें',
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ const translation = {
|
|||
chat: 'Mengobrol',
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Direkomendasikan',
|
||||
},
|
||||
appCard: {
|
||||
customize: 'Menyesuaikan',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Consigliato',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Aggiungi a Workspace',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const translation = {
|
|||
},
|
||||
apps: {
|
||||
title: 'Difyの厳選アプリを試して、ビジネス向けのAIソリューションを見つけましょう',
|
||||
allCategories: '推奨',
|
||||
allCategories: '全て',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'ワークスペースに追加',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: '모든 카테고리',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: '작업 공간에 추가',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Polecane',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Dodaj do przestrzeni roboczej',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Recomendado',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Adicionar ao Espaço de Trabalho',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Recomandate',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Adăugați la spațiul de lucru',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Рекомендуемые',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Добавить в рабочее пространство',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Priporočeno',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Dodaj v delovni prostor',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'แนะ นำ',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'เพิ่มไปยังพื้นที่ทํางาน',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Önerilen',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Çalışma Alanına Ekle',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Рекомендовані',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Додати до робочого простору',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: 'Tất cả danh mục',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: 'Thêm vào không gian làm việc',
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ const translation = {
|
|||
},
|
||||
apps: {
|
||||
title: '试用 Dify 精选示例应用,为您的业务寻找 AI 解决方案',
|
||||
allCategories: '推荐',
|
||||
allCategories: '所有',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: '添加到工作区',
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ const translation = {
|
|||
},
|
||||
},
|
||||
apps: {
|
||||
allCategories: '推薦',
|
||||
},
|
||||
appCard: {
|
||||
addToWorkspace: '新增到工作區',
|
||||
|
|
|
|||
Loading…
Reference in New Issue