feat(datasource): implement data source management functionality
- Added a new API for managing data sources, including CRUD operations and connection validation. - Introduced UI components for data source settings, sync logs, and editor dialog, enhancing user experience in managing external data sources. - Updated localization files to support new data source features in multiple languages. - Implemented cron expression humanization for better scheduling visibility. - Enhanced knowledge base editor to include data source management options.
This commit is contained in:
@@ -1432,6 +1432,7 @@ export default {
|
||||
faq: 'FAQ Settings',
|
||||
graph: 'Knowledge Graph',
|
||||
multimodal: 'Multimodal',
|
||||
datasource: 'Data Sources',
|
||||
share: 'Sharing'
|
||||
},
|
||||
basic: {
|
||||
@@ -3344,4 +3345,166 @@ export default {
|
||||
yesterday: 'Yesterday',
|
||||
daysAgo: '{days} days ago',
|
||||
},
|
||||
datasource: {
|
||||
title: 'Data Sources',
|
||||
description: 'Configure external data sources to sync content into this knowledge base',
|
||||
add: 'Add Data Source',
|
||||
addFirst: 'Add your first data source',
|
||||
empty: 'No data sources configured',
|
||||
edit: 'Edit',
|
||||
delete: 'Delete',
|
||||
deleteConfirm: 'Delete this data source? Synced knowledge will not be removed.',
|
||||
deleteSuccess: 'Data source deleted',
|
||||
deleteFailed: 'Failed to delete',
|
||||
syncNow: 'Sync Now',
|
||||
syncTriggered: 'Sync task submitted',
|
||||
syncFailed: 'Failed to trigger sync',
|
||||
pause: 'Pause',
|
||||
resume: 'Resume',
|
||||
paused: 'Paused',
|
||||
resumed: 'Resumed',
|
||||
pauseFailed: 'Failed to pause',
|
||||
logs: 'Logs',
|
||||
lastSync: 'Last sync',
|
||||
lastStatus: 'Result',
|
||||
schedule: 'Schedule',
|
||||
syncModeLabel: 'Sync mode',
|
||||
syncMode: {
|
||||
incremental: 'Incremental',
|
||||
full: 'Full',
|
||||
},
|
||||
status: {
|
||||
active: 'Connected',
|
||||
paused: 'Paused',
|
||||
error: 'Error',
|
||||
},
|
||||
createTitle: 'Add Data Source',
|
||||
editTitle: 'Edit Data Source',
|
||||
nameLabel: 'Name',
|
||||
namePlaceholder: 'Enter data source name',
|
||||
testConnection: 'Test Connection',
|
||||
testSuccess: 'Connection successful',
|
||||
testFailed: 'Connection failed',
|
||||
connected: 'Connected',
|
||||
connectionFailed: 'Connection failed',
|
||||
isRequired: 'is required',
|
||||
resourceHint: 'Select the spaces or folders to sync',
|
||||
resourceLoadFailed: 'Failed to load resources',
|
||||
noResources: 'No wiki spaces found',
|
||||
noResourcesDesc: 'The app needs wiki access via a group chat to fetch content',
|
||||
retryLoadResources: 'Retry',
|
||||
guideStep1: 'Create a group chat in Feishu, then add your app as a bot in the group settings',
|
||||
guideStep2: 'Open wiki "Settings" > "Member Settings" > "Add Member", search for the group chat and add it',
|
||||
guideStep3: 'Ensure the group chat role is at least "Can Read", then come back and click Retry',
|
||||
permissionDocLink: 'View Feishu wiki permission docs',
|
||||
syncScheduleLabel: 'Sync schedule',
|
||||
conflictLabel: 'Conflict strategy',
|
||||
conflict: {
|
||||
overwrite: 'Overwrite',
|
||||
skip: 'Skip existing',
|
||||
},
|
||||
syncDeletions: 'Sync deletions (remove knowledge when deleted at source)',
|
||||
createAndSync: 'Create & Sync Now',
|
||||
createSuccess: 'Data source created',
|
||||
updateSuccess: 'Data source updated',
|
||||
saveFailed: 'Failed to save',
|
||||
step: {
|
||||
selectType: 'Select Type',
|
||||
credentials: 'Credentials',
|
||||
resources: 'Resources',
|
||||
strategy: 'Strategy',
|
||||
},
|
||||
syncHistory: 'Sync History',
|
||||
noLogs: 'No sync records yet',
|
||||
logStatus: {
|
||||
running: 'Syncing',
|
||||
success: 'Success',
|
||||
partial: 'Partial',
|
||||
failed: 'Failed',
|
||||
canceled: 'Canceled',
|
||||
},
|
||||
logMetric: {
|
||||
total: 'Total',
|
||||
created: 'created',
|
||||
updated: 'updated',
|
||||
deleted: 'deleted',
|
||||
skipped: 'skipped',
|
||||
failed: 'failed',
|
||||
},
|
||||
logSummary: {
|
||||
total: 'Runs',
|
||||
success: 'Success',
|
||||
failed: 'Failed',
|
||||
items: 'Items',
|
||||
},
|
||||
logLatest: 'Latest',
|
||||
logDetail: {
|
||||
startTime: 'Started',
|
||||
endTime: 'Finished',
|
||||
duration: 'Duration',
|
||||
},
|
||||
connector: {
|
||||
feishu: 'Feishu',
|
||||
notion: 'Notion',
|
||||
yuque: 'Yuque',
|
||||
wecom_doc: 'WeCom Docs',
|
||||
},
|
||||
connectorDesc: {
|
||||
feishu: 'Sync documents, spreadsheets and files from Feishu Wiki',
|
||||
notion: 'Sync pages and databases from Notion',
|
||||
yuque: 'Sync documents from Yuque knowledge bases',
|
||||
wecom_doc: 'Sync documents from WeCom Docs',
|
||||
},
|
||||
field: {
|
||||
appId: 'App ID',
|
||||
appSecret: 'App Secret',
|
||||
integrationToken: 'Integration Token',
|
||||
apiToken: 'API Token',
|
||||
corpId: 'Corp ID',
|
||||
corpSecret: 'Corp Secret',
|
||||
},
|
||||
comingSoon: 'Coming soon',
|
||||
docHint: 'Get credentials at:',
|
||||
pleaseTestFirst: 'Please test connection first',
|
||||
prereqTitle: 'Complete these steps before connecting (all required)',
|
||||
prereqBarText: 'First time? Click to see Feishu app setup guide',
|
||||
prereqBotBrief: 'Add "Bot" capability to your app',
|
||||
prereqBotDesc: 'Open Platform > Add App Capability > Bot > create version and publish',
|
||||
prereqBotLabel: '1. Add "Bot" capability to your app (otherwise the app won\'t appear in wiki member search):',
|
||||
prereqBotStep1: 'Open your app in Feishu Open Platform, click "Add App Capability" in the left menu',
|
||||
prereqBotStep2: 'Select "Bot" and confirm',
|
||||
prereqBotStep3: 'Create a new version and publish (or test in your test organization)',
|
||||
prereqPermBrief: 'Grant API permissions',
|
||||
prereqPermLabel: '2. Grant these API permissions:',
|
||||
prereqOpenConsole: 'Open Feishu Developer Console',
|
||||
prereqMemberBrief: 'Add app to wiki via group chat',
|
||||
prereqMemberDesc: 'Create group chat > add app as bot > add group chat as wiki member',
|
||||
prereqMemberLabel: '3. Add the app to a wiki space via group chat (wiki cannot search for apps directly):',
|
||||
back: 'Back',
|
||||
next: 'Next',
|
||||
save: 'Save',
|
||||
schedule30min: 'Every 30 min',
|
||||
schedule1h: 'Every hour',
|
||||
schedule6h: 'Every 6 hours',
|
||||
schedule12h: 'Every 12 hours',
|
||||
schedule24h: 'Daily',
|
||||
scheduleHuman: {
|
||||
'30min': 'Every 30 min',
|
||||
'1h': 'Hourly',
|
||||
'6h': 'Every 6 hours',
|
||||
'12h': 'Every 12 hours',
|
||||
'24h': 'Daily',
|
||||
},
|
||||
addCard: 'Add Data Source',
|
||||
wikiSpace: 'Wiki Space',
|
||||
neverSynced: 'Never synced',
|
||||
justNow: 'Just now',
|
||||
minutesAgo: '{n}m ago',
|
||||
hoursAgo: '{n}h ago',
|
||||
daysAgo: '{n}d ago',
|
||||
syncResultCreated: '+{n}',
|
||||
syncResultUpdated: '~{n}',
|
||||
syncResultDeleted: '-{n}',
|
||||
moreActions: 'More',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user