From 609cfa7b5fb24c96056a9bc6042ad5ab58f0289c Mon Sep 17 00:00:00 2001 From: balibabu Date: Mon, 21 Oct 2024 14:28:30 +0800 Subject: [PATCH] feat: Replace crawler icon #2915 (#2916) ### What problem does this PR solve? feat: Replace crawler icon #2915 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): --- web/src/assets/svg/crawler.svg | 13 ++++++++++++- .../chat-overview-modal/backend-service-api.tsx | 4 ++-- web/src/locales/en.ts | 2 +- web/src/pages/flow/constant.tsx | 4 ++++ web/src/pages/flow/hooks.ts | 2 ++ 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/web/src/assets/svg/crawler.svg b/web/src/assets/svg/crawler.svg index b61773fbc3..507f567f31 100644 --- a/web/src/assets/svg/crawler.svg +++ b/web/src/assets/svg/crawler.svg @@ -1 +1,12 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/web/src/components/api-service/chat-overview-modal/backend-service-api.tsx b/web/src/components/api-service/chat-overview-modal/backend-service-api.tsx index 0cf86eda10..2524000c1d 100644 --- a/web/src/components/api-service/chat-overview-modal/backend-service-api.tsx +++ b/web/src/components/api-service/chat-overview-modal/backend-service-api.tsx @@ -22,10 +22,10 @@ const BackendServiceApi = ({ show }: { show(): void }) => { {t('backendServiceApi')} - {location.origin}/api/v1/ + {location.origin} diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index cbc0bc874b..0b63dd333a 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -937,7 +937,7 @@ The above is the content you need to summarize.`, markdown: 'Markdown', content: 'Content', }, - extractType: 'extractType', + extractType: 'Extract type', info: 'Info', history: 'History', financials: 'Financials', diff --git a/web/src/pages/flow/constant.tsx b/web/src/pages/flow/constant.tsx index 7aae71a687..48d1019ff9 100644 --- a/web/src/pages/flow/constant.tsx +++ b/web/src/pages/flow/constant.tsx @@ -505,6 +505,10 @@ export const initialNoteValues = { text: '', }; +export const initialCrawlerValues = { + extract_type: 'markdown', +}; + export const CategorizeAnchorPointPositions = [ { top: 1, right: 34 }, { top: 8, right: 18 }, diff --git a/web/src/pages/flow/hooks.ts b/web/src/pages/flow/hooks.ts index 81305335b6..59785dbdbc 100644 --- a/web/src/pages/flow/hooks.ts +++ b/web/src/pages/flow/hooks.ts @@ -41,6 +41,7 @@ import { initialBingValues, initialCategorizeValues, initialConcentratorValues, + initialCrawlerValues, initialDeepLValues, initialDuckValues, initialExeSqlValues, @@ -129,6 +130,7 @@ export const useInitializeOperatorParams = () => { [Operator.Concentrator]: initialConcentratorValues, [Operator.TuShare]: initialTuShareValues, [Operator.Note]: initialNoteValues, + [Operator.Crawler]: initialCrawlerValues, }; }, [llmId]);