Skip to content

Commit

Permalink
feat: Replace crawler icon #2915 (#2916)
Browse files Browse the repository at this point in the history
### 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):
  • Loading branch information
cike8899 authored Oct 21, 2024
1 parent ac26d09 commit 609cfa7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
13 changes: 12 additions & 1 deletion web/src/assets/svg/crawler.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const BackendServiceApi = ({ show }: { show(): void }) => {
<Flex gap={8} align="center">
<b>{t('backendServiceApi')}</b>
<Paragraph
copyable={{ text: `${location.origin}/api/v1/` }}
copyable={{ text: `${location.origin}` }}
className={styles.apiLinkText}
>
{location.origin}/api/v1/
{location.origin}
</Paragraph>
</Flex>
</Card>
Expand Down
2 changes: 1 addition & 1 deletion web/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions web/src/pages/flow/constant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
2 changes: 2 additions & 0 deletions web/src/pages/flow/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import {
initialBingValues,
initialCategorizeValues,
initialConcentratorValues,
initialCrawlerValues,
initialDeepLValues,
initialDuckValues,
initialExeSqlValues,
Expand Down Expand Up @@ -129,6 +130,7 @@ export const useInitializeOperatorParams = () => {
[Operator.Concentrator]: initialConcentratorValues,
[Operator.TuShare]: initialTuShareValues,
[Operator.Note]: initialNoteValues,
[Operator.Crawler]: initialCrawlerValues,
};
}, [llmId]);

Expand Down

0 comments on commit 609cfa7

Please sign in to comment.