Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Replace crawler icon #2915 #2916

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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