diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx index 5c86c0c51d..623f4102fa 100644 --- a/web/app/components/app/app-publisher/index.tsx +++ b/web/app/components/app/app-publisher/index.tsx @@ -12,6 +12,7 @@ import type { ModelAndParameter } from '../configuration/debug/types' import Divider from '../../base/divider' import AccessControl from '../app-access-control' import Loading from '../../base/loading' +import Tooltip from '../../base/tooltip' import SuggestedAction from './suggested-action' import PublishWithMultipleModel from './publish-with-multiple-model' import Button from '@/app/components/base/button' @@ -251,10 +252,12 @@ const AppPublisher = ({ -
- }>{t('workflow.common.runApp')} +
+ + }>{t('workflow.common.runApp')} + {appDetail?.mode === 'workflow' - ? ( + ? ( {t('workflow.common.batchRunApp')} + ) - : ( + : ( { setEmbeddingModalOpen(true) @@ -274,33 +278,41 @@ const AppPublisher = ({ > {t('workflow.common.embedIntoSite')} + )} - { - handleOpenInExplore() - }} - disabled={!publishedAt || !useCanAccessApp?.result} - icon={} - > - {t('workflow.common.openInExplore')} - - }>{t('workflow.common.accessAPIReference')} - {appDetail?.mode === 'workflow' && ( - + { + handleOpenInExplore() }} - name={appDetail?.name} - description={appDetail?.description} - inputs={inputs} - handlePublish={handlePublish} - onRefreshData={onRefreshData} - /> + disabled={!publishedAt || !useCanAccessApp?.result} + icon={} + > + {t('workflow.common.openInExplore')} + + + + }>{t('workflow.common.accessAPIReference')} + + + {appDetail?.mode === 'workflow' && ( + + + )}
} diff --git a/web/app/components/app/app-publisher/suggested-action.tsx b/web/app/components/app/app-publisher/suggested-action.tsx index a371eafde0..171e146175 100644 --- a/web/app/components/app/app-publisher/suggested-action.tsx +++ b/web/app/components/app/app-publisher/suggested-action.tsx @@ -14,7 +14,7 @@ const SuggestedAction = ({ icon, link, disabled, children, className, ...props } target='_blank' rel='noreferrer' className={classNames( - 'flex justify-start items-center gap-2 h-[34px] px-2.5 bg-gray-100 rounded-lg transition-colors [&:not(:first-child)]:mt-1', + 'flex-1 flex justify-start items-center gap-2 h-[34px] px-2.5 bg-gray-100 rounded-lg transition-colors [&:not(:first-child)]:mt-1', disabled ? 'shadow-xs opacity-30 cursor-not-allowed' : 'hover:bg-primary-50 hover:text-primary-600 cursor-pointer', className, )} diff --git a/web/app/components/base/tooltip/index.tsx b/web/app/components/base/tooltip/index.tsx index 65b5a99077..4ce282c245 100644 --- a/web/app/components/base/tooltip/index.tsx +++ b/web/app/components/base/tooltip/index.tsx @@ -90,6 +90,7 @@ const Tooltip: FC = ({ }} onMouseLeave={() => triggerMethod === 'hover' && handleLeave(true)} asChild={asChild} + className={!asChild ? triggerClassName : ''} > {children ||
} diff --git a/web/i18n/en-US/app-overview.ts b/web/i18n/en-US/app-overview.ts index 2e6e4d4809..043fa43c0b 100644 --- a/web/i18n/en-US/app-overview.ts +++ b/web/i18n/en-US/app-overview.ts @@ -65,7 +65,7 @@ const translation = { more: { entry: 'Show more settings', copyright: 'Copyright', - copyrightTip: 'Display copyright information in the webapp', + copyrightTip: 'Display copyright information in the web app', copyrightTooltip: 'Please upgrade to Professional plan or above', copyRightPlaceholder: 'Enter the name of the author or organization', privacyPolicy: 'Privacy Policy', diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.ts index 2463eee208..24aea7334d 100644 --- a/web/i18n/en-US/app.ts +++ b/web/i18n/en-US/app.ts @@ -174,10 +174,10 @@ const translation = { }, }, showMyCreatedAppsOnly: 'Created by me', - accessControl: 'Webapp Access Control', + accessControl: 'web app Access Control', accessControlDialog: { title: 'Access Control', - description: 'Set webapp access permissions', + description: 'Set web app access permissions', accessLabel: 'Who has access', accessItems: { anyone: 'Anyone with the link', @@ -202,6 +202,7 @@ const translation = { title: 'Who can access web app', notSet: 'Not set', }, + noAccessPermission: 'No access permission', } export default translation diff --git a/web/i18n/en-US/login.ts b/web/i18n/en-US/login.ts index 25fe8f9e75..18c1965f19 100644 --- a/web/i18n/en-US/login.ts +++ b/web/i18n/en-US/login.ts @@ -105,7 +105,7 @@ const translation = { licenseInactive: 'License Inactive', licenseInactiveTip: 'The Dify Enterprise license for your workspace is inactive. Please contact your administrator to continue using Dify.', webapp: { - noLoginMethod: 'Authentication method not configured for webapp', + noLoginMethod: 'Authentication method not configured for web app', noLoginMethodTip: 'Please contact the system admin to add an authentication method.', disabled: 'Webapp authentication is disabled. Please contact the system admin to enable it. You can try to use the app directly.', }, diff --git a/web/i18n/it-IT/app-overview.ts b/web/i18n/it-IT/app-overview.ts index ef45e7cb83..93cbcabccd 100644 --- a/web/i18n/it-IT/app-overview.ts +++ b/web/i18n/it-IT/app-overview.ts @@ -73,7 +73,7 @@ const translation = { 'Inserisci il testo del disclaimer personalizzato', customDisclaimerTip: 'Il testo del disclaimer personalizzato verrà visualizzato sul lato client, fornendo informazioni aggiuntive sull\'applicazione', - copyrightTip: 'Visualizzare le informazioni sul copyright nella webapp', + copyrightTip: 'Visualizzare le informazioni sul copyright nella web app', copyrightTooltip: 'Si prega di eseguire l\'upgrade al piano Professional o superiore', }, sso: { diff --git a/web/i18n/pt-BR/app-overview.ts b/web/i18n/pt-BR/app-overview.ts index 4c9ea05101..f7e7368324 100644 --- a/web/i18n/pt-BR/app-overview.ts +++ b/web/i18n/pt-BR/app-overview.ts @@ -65,7 +65,7 @@ const translation = { customDisclaimer: 'Aviso Legal Personalizado', customDisclaimerPlaceholder: 'Insira o texto do aviso legal', customDisclaimerTip: 'O texto do aviso legal personalizado será exibido no lado do cliente, fornecendo informações adicionais sobre o aplicativo', - copyrightTip: 'Exibir informações de direitos autorais no webapp', + copyrightTip: 'Exibir informações de direitos autorais no web app', copyrightTooltip: 'Por favor, atualize para o plano Professional ou superior', }, sso: { diff --git a/web/i18n/zh-Hans/app-debug.ts b/web/i18n/zh-Hans/app-debug.ts index 14f1358dd6..3912f923e6 100644 --- a/web/i18n/zh-Hans/app-debug.ts +++ b/web/i18n/zh-Hans/app-debug.ts @@ -214,7 +214,7 @@ const translation = { modalTitle: '图片上传设置', }, bar: { - empty: '开启功能增强 webapp 用户体验', + empty: '开启功能增强 web app 用户体验', enableText: '功能已开启', manage: '管理', },