feat: support firecrawl frontend code (#5226)
This commit is contained in:
parent
8d1386df0f
commit
28554350de
51 changed files with 1979 additions and 145 deletions
|
|
@ -37,6 +37,10 @@ const translation = {
|
|||
duplicate: 'Duplicate',
|
||||
rename: 'Rename',
|
||||
},
|
||||
errorMsg: {
|
||||
fieldRequired: '{{field}} is required',
|
||||
urlError: 'url should start with http:// or https://',
|
||||
},
|
||||
placeholder: {
|
||||
input: 'Please enter',
|
||||
select: 'Please select',
|
||||
|
|
@ -360,6 +364,7 @@ const translation = {
|
|||
dataSource: {
|
||||
add: 'Add a data source',
|
||||
connect: 'Connect',
|
||||
configure: 'Configure',
|
||||
notion: {
|
||||
title: 'Notion',
|
||||
description: 'Using Notion as a data source for the Knowledge.',
|
||||
|
|
@ -379,6 +384,14 @@ const translation = {
|
|||
preview: 'PREVIEW',
|
||||
},
|
||||
},
|
||||
website: {
|
||||
title: 'Website',
|
||||
description: 'Import content from websites using web crawler.',
|
||||
with: 'With',
|
||||
configuredCrawlers: 'Configured crawlers',
|
||||
active: 'Active',
|
||||
inactive: 'Inactive',
|
||||
},
|
||||
},
|
||||
plugin: {
|
||||
serpapi: {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,12 @@ const translation = {
|
|||
error: {
|
||||
unavailable: 'This Knowledge is not available',
|
||||
},
|
||||
firecrawl: {
|
||||
configFirecrawl: 'Configure 🔥Firecrawl',
|
||||
apiKeyPlaceholder: 'API key from firecrawl.dev, starting with "fc-"',
|
||||
apiKeyFormatError: 'API key should start with "fc-"',
|
||||
getApiKeyLinkText: 'Get your API key from firecrawl.dev',
|
||||
},
|
||||
stepOne: {
|
||||
filePreview: 'File Preview',
|
||||
pagePreview: 'Page Preview',
|
||||
|
|
@ -50,6 +56,30 @@ const translation = {
|
|||
confirmButton: 'Create',
|
||||
failed: 'Creation failed',
|
||||
},
|
||||
website: {
|
||||
fireCrawlNotConfigured: 'Firecrawl is not configured',
|
||||
fireCrawlNotConfiguredDescription: 'Configure Firecrawl with API key to use it.',
|
||||
configure: 'Configure',
|
||||
run: 'Run',
|
||||
firecrawlTitle: 'Extract web content with 🔥Firecrawl',
|
||||
firecrawlDoc: 'Firecrawl docs',
|
||||
firecrawlDocLink: 'https://docs.dify.ai/guides/knowledge-base/sync_from_website',
|
||||
options: 'Options',
|
||||
crawlSubPage: 'Crawl sub-pages',
|
||||
limit: 'Limit',
|
||||
maxDepth: 'Max depth',
|
||||
excludePaths: 'Exclude paths',
|
||||
includeOnlyPaths: 'Include only paths',
|
||||
extractOnlyMainContent: 'Extract only main content (no headers, navs, footers, etc.)',
|
||||
exceptionErrorTitle: 'An exception occurred while running Firecrawl job:',
|
||||
unknownError: 'Unknown error',
|
||||
totalPageScraped: 'Total pages scraped:',
|
||||
selectAll: 'Select All',
|
||||
resetAll: 'Reset All',
|
||||
scrapTimeInfo: 'Scraped {{total}} pages in total within {{time}}s',
|
||||
preview: 'Preview',
|
||||
maxDepthTooltip: 'Maximum depth to crawl. Depth 1 is the base URL, depth 2 includes the base URL and its direct children, and so on.',
|
||||
},
|
||||
},
|
||||
stepTwo: {
|
||||
segmentation: 'Chunk settings',
|
||||
|
|
@ -86,9 +116,11 @@ const translation = {
|
|||
calculating: 'Calculating...',
|
||||
fileSource: 'Preprocess documents',
|
||||
notionSource: 'Preprocess pages',
|
||||
websiteSource: 'Preprocess website',
|
||||
other: 'and other ',
|
||||
fileUnit: ' files',
|
||||
notionUnit: ' pages',
|
||||
webpageUnit: ' pages',
|
||||
previousStep: 'Previous step',
|
||||
nextStep: 'Save & Process',
|
||||
save: 'Save & Process',
|
||||
|
|
|
|||
|
|
@ -2,8 +2,9 @@ const translation = {
|
|||
list: {
|
||||
title: 'Documents',
|
||||
desc: 'All files of the Knowledge are shown here, and the entire Knowledge can be linked to Dify citations or indexed via the Chat plugin.',
|
||||
addFile: 'add file',
|
||||
addFile: 'Add file',
|
||||
addPages: 'Add Pages',
|
||||
addUrl: 'Add URL',
|
||||
table: {
|
||||
header: {
|
||||
fileName: 'FILE NAME',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue