diff --git a/web/app/components/explore/app-card/index.tsx b/web/app/components/explore/app-card/index.tsx index 31d218a467..7857020556 100644 --- a/web/app/components/explore/app-card/index.tsx +++ b/web/app/components/explore/app-card/index.tsx @@ -6,6 +6,9 @@ import cn from '@/utils/classnames' import type { App } from '@/models/explore' import AppIcon from '@/app/components/base/app-icon' import { AppTypeIcon } from '../../app/type-selector' +import { useGlobalPublicStore } from '@/context/global-public-context' +import { RiArrowRightUpLine } from '@remixicon/react' +import Link from 'next/link' export type AppCardProps = { app: App canCreate: boolean @@ -21,8 +24,11 @@ const AppCard = ({ }: AppCardProps) => { const { t } = useTranslation() const { app: appBasicInfo } = app + const { systemFeatures } = useGlobalPublicStore() + const isTrialApp = app.can_trial && systemFeatures.enable_trial_app + return ( -
+
- {isExplore && canCreate && ( - )}
diff --git a/web/i18n/de-DE/explore.ts b/web/i18n/de-DE/explore.ts index 564f065815..0578c100a0 100644 --- a/web/i18n/de-DE/explore.ts +++ b/web/i18n/de-DE/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Zum Arbeitsbereich hinzufügen', customize: 'Anpassen', }, appCustomize: { diff --git a/web/i18n/en-US/explore.ts b/web/i18n/en-US/explore.ts index ec50e30192..6e30f1d50a 100644 --- a/web/i18n/en-US/explore.ts +++ b/web/i18n/en-US/explore.ts @@ -22,8 +22,8 @@ const translation = { resetFilter: 'Clear filter', }, appCard: { - addToWorkspace: 'Add to Workspace', - customize: 'Customize', + addToWorkspace: 'Use template', + try: 'Details', }, appCustomize: { title: 'Create app from {{name}}', diff --git a/web/i18n/es-ES/explore.ts b/web/i18n/es-ES/explore.ts index abeccfdd93..19cfe9ad79 100644 --- a/web/i18n/es-ES/explore.ts +++ b/web/i18n/es-ES/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Agregar al espacio de trabajo', customize: 'Personalizar', }, appCustomize: { diff --git a/web/i18n/fa-IR/explore.ts b/web/i18n/fa-IR/explore.ts index de0ad6d963..fe4bb2af57 100644 --- a/web/i18n/fa-IR/explore.ts +++ b/web/i18n/fa-IR/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'افزودن به فضای کاری', customize: 'سفارشی کردن', }, appCustomize: { diff --git a/web/i18n/fr-FR/explore.ts b/web/i18n/fr-FR/explore.ts index 5c641ceaf1..e16e709451 100644 --- a/web/i18n/fr-FR/explore.ts +++ b/web/i18n/fr-FR/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Ajouter à l\'espace de travail', customize: 'Personnaliser', }, appCustomize: { diff --git a/web/i18n/hi-IN/explore.ts b/web/i18n/hi-IN/explore.ts index adb518fbac..f3b7a550a4 100644 --- a/web/i18n/hi-IN/explore.ts +++ b/web/i18n/hi-IN/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'कार्यक्षेत्र में जोड़ें', customize: 'अनुकूलित करें', }, appCustomize: { diff --git a/web/i18n/id-ID/explore.ts b/web/i18n/id-ID/explore.ts index 336cfb576e..21f3ecff3b 100644 --- a/web/i18n/id-ID/explore.ts +++ b/web/i18n/id-ID/explore.ts @@ -18,7 +18,6 @@ const translation = { }, appCard: { customize: 'Menyesuaikan', - addToWorkspace: 'Tambahkan ke Ruang Kerja', }, appCustomize: { subTitle: 'Ikon & nama aplikasi', diff --git a/web/i18n/it-IT/explore.ts b/web/i18n/it-IT/explore.ts index 1682b8c852..683fa86847 100644 --- a/web/i18n/it-IT/explore.ts +++ b/web/i18n/it-IT/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Aggiungi a Workspace', customize: 'Personalizza', }, appCustomize: { diff --git a/web/i18n/ja-JP/explore.ts b/web/i18n/ja-JP/explore.ts index 4545e4ede4..d9aa8f44b1 100644 --- a/web/i18n/ja-JP/explore.ts +++ b/web/i18n/ja-JP/explore.ts @@ -22,7 +22,8 @@ const translation = { resetFilter: 'クリア', }, appCard: { - addToWorkspace: 'ワークスペースに追加', + addToWorkspace: 'テンプレートを使用', + try: '詳細', customize: 'カスタマイズ', }, appCustomize: { diff --git a/web/i18n/ko-KR/explore.ts b/web/i18n/ko-KR/explore.ts index a302663a2c..1d88002019 100644 --- a/web/i18n/ko-KR/explore.ts +++ b/web/i18n/ko-KR/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: '작업 공간에 추가', customize: '사용자 정의', }, appCustomize: { diff --git a/web/i18n/pl-PL/explore.ts b/web/i18n/pl-PL/explore.ts index a325f5e89c..028709950f 100644 --- a/web/i18n/pl-PL/explore.ts +++ b/web/i18n/pl-PL/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Dodaj do przestrzeni roboczej', customize: 'Dostosuj', }, appCustomize: { diff --git a/web/i18n/pt-BR/explore.ts b/web/i18n/pt-BR/explore.ts index 5dc8a18ea9..e9bb02602f 100644 --- a/web/i18n/pt-BR/explore.ts +++ b/web/i18n/pt-BR/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Adicionar ao Espaço de Trabalho', customize: 'Personalizar', }, appCustomize: { diff --git a/web/i18n/ro-RO/explore.ts b/web/i18n/ro-RO/explore.ts index ae3a2b9c4f..f6d2794f77 100644 --- a/web/i18n/ro-RO/explore.ts +++ b/web/i18n/ro-RO/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Adăugați la spațiul de lucru', customize: 'Personalizați', }, appCustomize: { diff --git a/web/i18n/ru-RU/explore.ts b/web/i18n/ru-RU/explore.ts index b26cdd24c6..f74c33577c 100644 --- a/web/i18n/ru-RU/explore.ts +++ b/web/i18n/ru-RU/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Добавить в рабочее пространство', customize: 'Настроить', }, appCustomize: { diff --git a/web/i18n/sl-SI/explore.ts b/web/i18n/sl-SI/explore.ts index 84bdc80880..75a47ec6e7 100644 --- a/web/i18n/sl-SI/explore.ts +++ b/web/i18n/sl-SI/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Dodaj v delovni prostor', customize: 'Prilagodi', }, appCustomize: { diff --git a/web/i18n/th-TH/explore.ts b/web/i18n/th-TH/explore.ts index b316240b71..f18e38c091 100644 --- a/web/i18n/th-TH/explore.ts +++ b/web/i18n/th-TH/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'เพิ่มไปยังพื้นที่ทํางาน', customize: 'ปรับแต่ง', }, appCustomize: { diff --git a/web/i18n/tr-TR/explore.ts b/web/i18n/tr-TR/explore.ts index 402e1c3bac..ab7b9ed7ef 100644 --- a/web/i18n/tr-TR/explore.ts +++ b/web/i18n/tr-TR/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Çalışma Alanına Ekle', customize: 'Özelleştir', }, appCustomize: { diff --git a/web/i18n/uk-UA/explore.ts b/web/i18n/uk-UA/explore.ts index e9e59e6353..0030c554f7 100644 --- a/web/i18n/uk-UA/explore.ts +++ b/web/i18n/uk-UA/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Додати до робочого простору', customize: 'Налаштувати', }, appCustomize: { diff --git a/web/i18n/vi-VN/explore.ts b/web/i18n/vi-VN/explore.ts index 149c96dfb9..9f7770742e 100644 --- a/web/i18n/vi-VN/explore.ts +++ b/web/i18n/vi-VN/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: 'Thêm vào không gian làm việc', customize: 'Tùy chỉnh', }, appCustomize: { diff --git a/web/i18n/zh-Hans/explore.ts b/web/i18n/zh-Hans/explore.ts index b0617cfabc..7b4c60298a 100644 --- a/web/i18n/zh-Hans/explore.ts +++ b/web/i18n/zh-Hans/explore.ts @@ -22,7 +22,8 @@ const translation = { resetFilter: '清除筛选', }, appCard: { - addToWorkspace: '添加到工作区', + addToWorkspace: '使用模板', + try: '详情', customize: '自定义', }, appCustomize: { diff --git a/web/i18n/zh-Hant/explore.ts b/web/i18n/zh-Hant/explore.ts index 64dc5b9400..cdcd6afe4a 100644 --- a/web/i18n/zh-Hant/explore.ts +++ b/web/i18n/zh-Hant/explore.ts @@ -18,7 +18,6 @@ const translation = { apps: { }, appCard: { - addToWorkspace: '新增到工作區', customize: '自定義', }, appCustomize: { diff --git a/web/models/explore.ts b/web/models/explore.ts index ad243e931e..735aa54eab 100644 --- a/web/models/explore.ts +++ b/web/models/explore.ts @@ -27,6 +27,7 @@ export type App = { installed: boolean editable: boolean is_agent: boolean + can_trial: boolean } export type InstalledApp = {