feat: 新增URL导入功能并优化知识库文档展示样式

This commit is contained in:
wizardchen
2025-11-20 23:41:49 +08:00
parent c1f46df0dd
commit 21649b62c7
9 changed files with 532 additions and 25 deletions
+26
View File
@@ -50,6 +50,32 @@ export default {
uploadFailed: 'File upload failed!',
docActionUnsupported: 'This knowledge base type does not support this action',
fileExists: 'File already exists',
uploadFile: 'Upload File',
uploadFileDesc: 'Supports PDF, Word, TXT, etc.',
importURL: 'Import from URL',
importURLDesc: 'Import via URL link',
importURLTitle: 'Import from URL',
manualCreate: 'Manual Create',
manualCreateDesc: 'Write document content directly',
urlRequired: 'Please enter a URL',
invalidURL: 'Please enter a valid URL',
urlImportSuccess: 'URL imported successfully!',
urlImportFailed: 'URL import failed!',
urlExists: 'This URL already exists',
urlLabel: 'URL Address',
urlPlaceholder: 'Enter webpage URL, e.g., https://example.com',
urlTip: 'Supports importing various webpage contents. The system will automatically extract and parse text content from the webpage',
typeURL: 'URL',
typeManual: 'Manual',
typeFile: 'File',
urlSource: 'Source URL',
documentTitle: 'Document Title',
webContent: 'Web Content',
documentContent: 'Document Content',
importTime: 'Import Time',
createTime: 'Create Time',
characters: 'chars',
segment: 'Segment',
notInitialized: 'Knowledge base is not initialized. Please configure models in settings before uploading files',
getInfoFailed: 'Failed to get knowledge base information, file upload is not possible',
missingId: 'Knowledge base ID is missing',