From 6c9a6b99e0c81139c412ea1a2fa566f5332e538c Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 8 Aug 2024 11:14:22 +0800 Subject: [PATCH] refactor textarea --- .../dataset-config/settings-modal/index.tsx | 5 +++-- .../app/configuration/prompt-value-panel/index.tsx | 5 +++-- .../toolbox/moderation/form-generation.tsx | 7 ++++--- web/app/components/app/create-app-modal/index.tsx | 5 +++-- web/app/components/app/overview/settings/index.tsx | 12 ++++++++---- .../chat-with-history/config-panel/form-input.tsx | 5 +++-- .../embedded-chatbot/config-panel/form-input.tsx | 5 +++-- .../feature-panel/moderation/form-generation.tsx | 7 ++++--- web/app/components/base/textarea/index.tsx | 3 +-- .../components/datasets/hit-testing/style.module.css | 4 ---- web/app/components/datasets/hit-testing/textarea.tsx | 5 +++-- web/app/components/datasets/rename-modal/index.tsx | 5 +++-- web/app/components/datasets/settings/form/index.tsx | 5 +++-- .../components/explore/create-app-modal/index.tsx | 5 +++-- .../share/text-generation/run-once/index.tsx | 5 +++-- .../tools/edit-custom-collection-modal/index.tsx | 9 +++++---- web/app/components/tools/workflow-tool/index.tsx | 4 ++-- .../components/extract-parameter/update.tsx | 5 ++--- 18 files changed, 56 insertions(+), 45 deletions(-) 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 eec5979dd5..4faccc569e 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 @@ -8,6 +8,7 @@ import { BookOpenIcon } from '@heroicons/react/24/outline' import cn from '@/utils/classnames' import IndexMethodRadio from '@/app/components/datasets/settings/index-method-radio' import Button from '@/app/components/base/button' +import Textarea from '@/app/components/base/textarea' import type { DataSet } from '@/models/datasets' import { useToastContext } from '@/app/components/base/toast' import { updateDatasetSetting } from '@/service/datasets' @@ -192,10 +193,10 @@ const SettingsModal: FC = ({ {t('datasetSettings.form.desc')}
- + />
{/* Available Tools */} diff --git a/web/app/components/tools/workflow-tool/index.tsx b/web/app/components/tools/workflow-tool/index.tsx index 0f9fe4c4c1..976e5ffb01 100644 --- a/web/app/components/tools/workflow-tool/index.tsx +++ b/web/app/components/tools/workflow-tool/index.tsx @@ -9,6 +9,7 @@ import produce from 'immer' import type { Emoji, WorkflowToolProviderParameter, WorkflowToolProviderRequest } from '../types' import cn from '@/utils/classnames' import Drawer from '@/app/components/base/drawer-plus' +import Textarea from '@/app/components/base/textarea' import Button from '@/app/components/base/button' import Toast from '@/app/components/base/toast' import EmojiPicker from '@/app/components/base/emoji-picker' @@ -172,8 +173,7 @@ const WorkflowToolAsModal: FC = ({ {/* description */}
{t('tools.createTool.description')}
-