From 5d4d65a85bf00253b3966fecd87651bfdb451a0e Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Fri, 21 Jun 2024 14:17:45 +0800 Subject: [PATCH] fix: button (#5470) --- web/app/(shareLayout)/webapp-signin/page.tsx | 2 +- web/app/activate/activateForm.tsx | 6 +- .../annotation/add-annotation-modal/index.tsx | 4 +- .../edit-annotation-modal/edit-item/index.tsx | 4 +- .../components/app/app-publisher/index.tsx | 15 +- .../publish-with-multiple-model.tsx | 2 +- .../warning-mask/cannot-query-dataset.tsx | 2 +- .../base/warning-mask/formatting-changed.tsx | 2 +- .../base/warning-mask/has-not-set-api.tsx | 2 +- .../config-prompt/confirm-add-var/index.tsx | 4 +- .../config/agent-setting-button.tsx | 2 +- .../config/agent/agent-setting/index.tsx | 3 +- .../config/automatic/get-automatic-res.tsx | 2 +- .../configuration/ctrl-btn-group/index.tsx | 2 +- .../dataset-config/select-dataset/index.tsx | 4 +- .../dataset-config/settings-modal/index.tsx | 3 +- .../app/configuration/debug/index.tsx | 7 +- .../chat-group/opening-statement/index.tsx | 16 +- .../prompt-value-panel/index.tsx | 1 - .../toolbox/annotation/config-param-modal.tsx | 3 +- .../moderation/moderation-setting-modal.tsx | 3 +- .../tools/external-data-tool-modal.tsx | 3 +- .../components/app/create-app-modal/index.tsx | 6 +- .../app/create-from-dsl-modal/index.tsx | 4 +- .../app/create-from-dsl-modal/uploader.tsx | 2 +- web/app/components/app/overview/appCard.tsx | 2 +- .../app/overview/customize/index.tsx | 6 +- .../app/overview/settings/index.tsx | 4 +- .../components/app/switch-app-modal/index.tsx | 4 +- .../saved-items/no-data/index.tsx | 2 +- web/app/components/base/button/index.css | 40 +- web/app/components/base/button/index.tsx | 23 +- .../chat-with-history/config-panel/index.tsx | 10 +- .../chat/chat-with-history/sidebar/index.tsx | 3 +- web/app/components/base/chat/chat/index.tsx | 2 +- .../components/base/chat/chat/try-to-ask.tsx | 3 +- .../embedded-chatbot/config-panel/index.tsx | 10 +- web/app/components/base/confirm-ui/index.tsx | 4 +- web/app/components/base/confirm/common.tsx | 2 +- .../components/base/emoji-picker/index.tsx | 2 +- .../base/features/feature-choose/index.tsx | 3 +- .../moderation/moderation-setting-modal.tsx | 3 +- .../feature-panel/opening-statement/index.tsx | 10 +- .../base/image-uploader/image-link-input.tsx | 2 +- .../base/modal/delete-confirm-modal/index.tsx | 2 +- .../base/tag-management/tag-remove-modal.tsx | 4 +- .../custom/custom-app-header-brand/index.tsx | 8 - .../custom/custom-web-app-brand/index.tsx | 13 +- .../datasets/create/step-two/index.tsx | 6 +- .../website/firecrawl/base/url-input.tsx | 2 +- .../datasets/create/website/no-data.tsx | 2 +- .../detail/batch-modal/csv-uploader.tsx | 2 +- .../documents/detail/batch-modal/index.tsx | 4 +- .../detail/completed/SegmentCard.tsx | 2 +- .../documents/detail/completed/index.tsx | 2 - .../documents/detail/new-segment-modal.tsx | 2 - .../components/datasets/documents/index.tsx | 2 +- .../components/datasets/documents/list.tsx | 2 +- .../datasets/rename-modal/index.tsx | 4 +- .../datasets/settings/form/index.tsx | 2 +- .../develop/secret-key/secret-key-button.tsx | 2 +- .../secret-key/secret-key-generate.tsx | 2 +- .../develop/secret-key/secret-key-modal.tsx | 2 +- web/app/components/explore/app-card/index.tsx | 4 +- .../account-setting/account-page/index.tsx | 12 +- .../api-based-extension-page/modal.tsx | 3 +- .../config-firecrawl-modal.tsx | 5 +- .../members-page/invite-modal/index.tsx | 2 +- .../members-page/invited-modal/index.tsx | 2 +- .../model-provider-page/model-modal/index.tsx | 8 +- .../model-load-balancing-entry-modal.tsx | 8 +- .../provider-added-card/credential-panel.tsx | 3 +- .../provider-added-card/model-list-item.tsx | 4 +- .../provider-card/index.tsx | 4 +- .../system-model-selector/index.tsx | 2 - .../components/share/chat/sidebar/index.tsx | 3 +- .../share/chat/value-panel/index.tsx | 2 - .../share/chat/welcome/massive-component.tsx | 2 +- .../share/chatbot/sidebar/index.tsx | 3 +- .../share/chatbot/value-panel/index.tsx | 2 - .../share/text-generation/index.tsx | 4 +- .../share/text-generation/result/header.tsx | 2 +- .../share/text-generation/run-batch/index.tsx | 2 +- .../run-batch/res-download/index.tsx | 2 +- .../share/text-generation/run-once/index.tsx | 2 - .../components/tools/add-tool-modal/index.tsx | 2 +- .../components/tools/add-tool-modal/tools.tsx | 10 +- .../config-credentials.tsx | 4 +- .../get-schema.tsx | 9 +- .../edit-custom-collection-modal/index.tsx | 8 +- .../edit-custom-collection-modal/test-api.tsx | 2 +- web/app/components/tools/provider/detail.tsx | 10 +- .../setting/build-in/config-credentials.tsx | 6 +- .../tools/workflow-tool/configure-button.tsx | 6 +- .../workflow-tool/confirm-modal/index.tsx | 4 +- .../components/tools/workflow-tool/index.tsx | 6 +- web/app/components/workflow/header/index.tsx | 18 +- .../components/before-run-form/index.tsx | 2 +- .../nodes/_base/components/next-step/item.tsx | 3 +- .../http/components/authorization/index.tsx | 4 +- .../components/extract-parameter/update.tsx | 4 +- .../components/workflow/nodes/tool/panel.tsx | 2 +- .../plugins/link-editor-plugin/component.tsx | 5 +- .../panel/debug-and-preview/index.tsx | 1 - .../workflow/panel/inputs-panel.tsx | 2 +- web/app/install/installForm.tsx | 2 +- web/app/signin/normalForm.tsx | 8 +- web/app/signin/oneMoreStep.tsx | 2 +- web/app/signin/userSSOForm.tsx | 2 +- web/app/styles/globals.css | 4 +- web/app/styles/preflight.css | 379 ++++++++++++++++++ web/tailwind.config.js | 4 + 112 files changed, 638 insertions(+), 256 deletions(-) create mode 100644 web/app/styles/preflight.css diff --git a/web/app/(shareLayout)/webapp-signin/page.tsx b/web/app/(shareLayout)/webapp-signin/page.tsx index abfdeaa6e3..ebb83884d6 100644 --- a/web/app/(shareLayout)/webapp-signin/page.tsx +++ b/web/app/(shareLayout)/webapp-signin/page.tsx @@ -140,7 +140,7 @@ const WebSSOForm: FC = () => { variant='primary' onClick={() => { handleSSOLogin() }} disabled={isLoading} - className="w-full !fone-medium !text-sm" + className="w-full !text-sm" >{t('login.sso')} diff --git a/web/app/activate/activateForm.tsx b/web/app/activate/activateForm.tsx index 543e0de0cd..9004b5f404 100644 --- a/web/app/activate/activateForm.tsx +++ b/web/app/activate/activateForm.tsx @@ -109,7 +109,7 @@ const ActivateForm = () => {

{t('login.invalid')}

-
@@ -196,7 +196,7 @@ const ActivateForm = () => {
-
diff --git a/web/app/components/app/annotation/add-annotation-modal/index.tsx b/web/app/components/app/annotation/add-annotation-modal/index.tsx index 261593c00d..402431afb7 100644 --- a/web/app/components/app/annotation/add-annotation-modal/index.tsx +++ b/web/app/components/app/annotation/add-annotation-modal/index.tsx @@ -104,8 +104,8 @@ const AddAnnotationModal: FC = ({
{t('appAnnotation.addModal.createNext')}
- - + +
diff --git a/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx b/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx index 4b5ff5f83a..f830755148 100644 --- a/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx +++ b/web/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx @@ -120,8 +120,8 @@ const EditItem: FC = ({ autoFocus />
- - + +
)} diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx index bb8a373f0b..c330b4c270 100644 --- a/web/app/components/app/app-publisher/index.tsx +++ b/web/app/components/app/app-publisher/index.tsx @@ -5,7 +5,6 @@ import { } from 'react' import { useTranslation } from 'react-i18next' import dayjs from 'dayjs' -import classNames from 'classnames' import { RiArrowDownSLine } from '@remixicon/react' import type { ModelAndParameter } from '../configuration/debug/types' import SuggestedAction from './suggested-action' @@ -120,10 +119,8 @@ const AppPublisher = ({ diff --git a/web/app/components/app/configuration/base/warning-mask/formatting-changed.tsx b/web/app/components/app/configuration/base/warning-mask/formatting-changed.tsx index 50e05310c8..35c2283d15 100644 --- a/web/app/components/app/configuration/base/warning-mask/formatting-changed.tsx +++ b/web/app/components/app/configuration/base/warning-mask/formatting-changed.tsx @@ -28,7 +28,7 @@ const FormattingChanged: FC = ({ description={t('appDebug.formattingChangedText')} footer={
- diff --git a/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsx b/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsx index 67ed4250cf..d83f9d920f 100644 --- a/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsx +++ b/web/app/components/app/configuration/base/warning-mask/has-not-set-api.tsx @@ -28,7 +28,7 @@ const HasNotSetAPI: FC = ({ title={isTrailFinished ? t('appDebug.notSetAPIKey.trailFinished') : t('appDebug.notSetAPIKey.title')} description={t('appDebug.notSetAPIKey.description')} footer={ - } diff --git a/web/app/components/app/configuration/config-prompt/confirm-add-var/index.tsx b/web/app/components/app/configuration/config-prompt/confirm-add-var/index.tsx index 38974c23dd..bfe5137965 100644 --- a/web/app/components/app/configuration/config-prompt/confirm-add-var/index.tsx +++ b/web/app/components/app/configuration/config-prompt/confirm-add-var/index.tsx @@ -62,8 +62,8 @@ const ConfirmAddVar: FC = ({
- - + +
diff --git a/web/app/components/app/configuration/config/agent-setting-button.tsx b/web/app/components/app/configuration/config/agent-setting-button.tsx index ebfe91464f..f50f77837e 100644 --- a/web/app/components/app/configuration/config/agent-setting-button.tsx +++ b/web/app/components/app/configuration/config/agent-setting-button.tsx @@ -25,7 +25,7 @@ const AgentSettingButton: FC = ({ return ( <> - diff --git a/web/app/components/app/configuration/config/agent/agent-setting/index.tsx b/web/app/components/app/configuration/config/agent/agent-setting/index.tsx index 65534450e3..b295a4e709 100644 --- a/web/app/components/app/configuration/config/agent/agent-setting/index.tsx +++ b/web/app/components/app/configuration/config/agent/agent-setting/index.tsx @@ -137,13 +137,12 @@ const AgentSetting: FC = ({ > - + ) diff --git a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx index 51e5b383c4..94502a8cf8 100644 --- a/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx +++ b/web/app/components/app/configuration/dataset-config/select-dataset/index.tsx @@ -155,8 +155,8 @@ const SelectDataSet: FC = ({ {selected.length > 0 && `${selected.length} ${t('appDebug.feature.dataSet.selected')}`}
- - + +
)} diff --git a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx index eb258e6751..266d3dce94 100644 --- a/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx +++ b/web/app/components/app/configuration/dataset-config/settings-modal/index.tsx @@ -275,13 +275,12 @@ const SettingsModal: FC = ({ > + + ) : ( diff --git a/web/app/components/app/configuration/prompt-value-panel/index.tsx b/web/app/components/app/configuration/prompt-value-panel/index.tsx index b60a82ad57..0192024c83 100644 --- a/web/app/components/app/configuration/prompt-value-panel/index.tsx +++ b/web/app/components/app/configuration/prompt-value-panel/index.tsx @@ -198,7 +198,6 @@ const PromptValuePanel: FC = ({
- +