refactor(frontend): 前端重构 V3
This commit is contained in:
1 parent
8d8b40812d
commit
ec97ea8787
80 files changed
+6887
-3733
No files matched your search
@@ -687,7 +687,43 @@
|
||||
"cancel": "Cancel",
|
||||
"saving": "Saving...",
|
||||
"saveChanges": "Save changes",
|
||||
"createSchedule": "Create schedule"
|
||||
"createSchedule": "Create schedule",
|
||||
"dsDbType": "Database type",
|
||||
"dsHost": "Host",
|
||||
"dsHostPlaceholder": "e.g. 192.168.1.100 or ${SRM_SQLSERVER_HOST}",
|
||||
"dsPort": "Port",
|
||||
"dsDatabase": "Database",
|
||||
"dsDatabasePlaceholder": "Database name",
|
||||
"dsUsername": "Username",
|
||||
"dsPassword": "Password",
|
||||
"dsPasswordPlaceholder": "or ${ENV_VAR}",
|
||||
"dsDriver": "ODBC driver",
|
||||
"dsEncrypt": "Encrypt",
|
||||
"dsTrustCert": "TrustServerCertificate",
|
||||
"defaultNo": "Default (no)",
|
||||
"defaultYes": "Default (yes)",
|
||||
"envVarHint": "Values support {token} format and are resolved from environment variables at runtime (recommended for passwords).",
|
||||
"envVarToken": "${ENV_VAR_NAME}",
|
||||
"baseFetchSql": "Base fetch SQL (base_fetch_sql) — SELECT + FROM + JOIN only, no WHERE",
|
||||
"fetchWhereConditions": "WHERE clause (fetch_where_conditions) — edit to test different filters",
|
||||
"fetchOrderBy": "Order by (fetch_order_by)",
|
||||
"detailSql": "Detail SQL (detail_sql)",
|
||||
"writebackSql": "Writeback SQL (writeback_sql)",
|
||||
"rowIdKey": "Row ID key (row_id_key)",
|
||||
"logPrefix": "Log prefix (log_prefix)",
|
||||
"aliasOrder": "Field order (alias_order) — comma-separated",
|
||||
"detailAliasOrder": "Detail field order (detail_alias_order) — comma-separated",
|
||||
"headerLabels": "Header labels (header_labels) — JSON",
|
||||
"apiUrl": "API URL",
|
||||
"apiMethod": "HTTP method",
|
||||
"apiTimeoutSeconds": "Timeout (seconds)",
|
||||
"apiHeaders": "Request headers (Headers) — JSON",
|
||||
"apiBodyTemplate": "Request body template (Body)",
|
||||
"agentLabel": "Agent",
|
||||
"agentOptionId": " (ID: {id})",
|
||||
"difySystemPrompt": "Dify System Prompt",
|
||||
"difySystemPromptHint": "Available when a Dify Agent is enabled. Saved as system_prompt in the Workflow; LLM nodes must reference this variable.",
|
||||
"difySystemPromptPlaceholder": "e.g. You are a material compliance assistant. Based on record test data, return JSON with dify_result (pass/fail/manual review) and dify_message."
|
||||
},
|
||||
"testRun": {
|
||||
"title": "Test run — {name}",
|
||||
@@ -711,7 +747,9 @@
|
||||
"writeToKb": "Write to knowledge base",
|
||||
"writeToKbHint": "After a successful or partially successful test run, sync the Excel result to the schedule knowledge base group.",
|
||||
"noKbGroupHint": "Enable knowledge base sync and select a group in schedule settings first.",
|
||||
"kbSyncNoStatus": "Knowledge base sync was requested but no status was returned. Check backend logs or schedule KB settings."
|
||||
"kbSyncNoStatus": "Knowledge base sync was requested but no status was returned. Check backend logs or schedule KB settings.",
|
||||
"baseFetchSqlReadonly": "Base fetch SQL (base_fetch_sql) — read-only",
|
||||
"limitRows": "Row limit (limit)"
|
||||
},
|
||||
"status": {
|
||||
"all": "All",
|
||||
@@ -753,6 +791,17 @@
|
||||
"runNowFailed": "Manual run failed",
|
||||
"downloadExcelFailed": "Failed to download Excel",
|
||||
"deleteFailed": "Delete schedule failed"
|
||||
},
|
||||
"difySnapshot": {
|
||||
"title": "Dify execution snapshot (audit)",
|
||||
"agent": "Agent",
|
||||
"agentId": " (ID: {id})",
|
||||
"difyAppId": "Dify App ID",
|
||||
"systemPrompt": "System Prompt",
|
||||
"notConfigured": "(Not configured)",
|
||||
"notConfiguredUseDefault": "(Not configured; using Dify workflow default prompt)",
|
||||
"notEnabledTest": "Dify was not enabled for this test",
|
||||
"notEnabledRun": "Dify Agent was not enabled for this run"
|
||||
}
|
||||
},
|
||||
"role": {
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"errorOccurred": "An error occurred",
|
||||
"close": "Close",
|
||||
"cancel": "Cancel",
|
||||
"loading": "Loading...",
|
||||
"refresh": "Refresh",
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"deleteDialog": {
|
||||
"defaultTitle": "Are you sure you want to delete?",
|
||||
"defaultMessage": "When clicked the OK button, this dialog will be closed after 1 second",
|
||||
"cancel": "Cancel",
|
||||
"confirm": "OK"
|
||||
},
|
||||
"messageDialog": {
|
||||
"success": "Success",
|
||||
"info": "Notice",
|
||||
"warning": "Warning",
|
||||
"error": "Error"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"title": "Feedback",
|
||||
"labels": {
|
||||
"type": "Feedback Type",
|
||||
"module": "Feedback Module",
|
||||
"content": "Feedback Content"
|
||||
},
|
||||
"type": {
|
||||
"featureSuggestion": "Feature Suggestion",
|
||||
"issueReport": "Issue Report",
|
||||
"experienceOptimization": "Experience Optimization"
|
||||
},
|
||||
"module": {
|
||||
"knowledgeBase": "Knowledge Base",
|
||||
"general": "General",
|
||||
"workflow": "Workflow",
|
||||
"accountPermission": "Account & Permission"
|
||||
},
|
||||
"placeholder": {
|
||||
"content": "Please describe your issue or suggestion to help us improve continuously."
|
||||
},
|
||||
"msg": {
|
||||
"fillContent": "Please enter feedback content",
|
||||
"submitFailed": "Failed to submit feedback"
|
||||
},
|
||||
"cancel": "Cancel",
|
||||
"submitting": "Submitting...",
|
||||
"submit": "Submit"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"title": "File Preview",
|
||||
"download": "Download File",
|
||||
"downloading": "Downloading...",
|
||||
"tooLarge": "The file is too large for online preview. Please click Download File above to get the original file.",
|
||||
"previewFailed": "Preview failed: ",
|
||||
"msg": {
|
||||
"downloadFailed": "Download failed: {reason}",
|
||||
"unknownError": "Unknown error"
|
||||
}
|
||||
}
|
||||
@@ -99,6 +99,265 @@
|
||||
"noDescription": "No description",
|
||||
"documentCount": "{count} docs",
|
||||
"updatedAt": "Updated at: "
|
||||
},
|
||||
"sidebar": {
|
||||
"groupsTitle": "Groups",
|
||||
"loadingGroups": "Loading groups...",
|
||||
"emptyGroups": "No knowledge base groups yet.",
|
||||
"noDescription": "No description"
|
||||
},
|
||||
"summary": {
|
||||
"currentGroup": "Current group",
|
||||
"documentCount": "Documents",
|
||||
"pendingSync": "Pending sync",
|
||||
"uploadFailed": "Upload failures",
|
||||
"cleanFailed": "Clean failures",
|
||||
"syncFailed": "Sync failures"
|
||||
},
|
||||
"filters": {
|
||||
"all": "All",
|
||||
"upload": "Upload",
|
||||
"clean": "Clean",
|
||||
"sync": "Sync"
|
||||
},
|
||||
"common": {
|
||||
"processing": "Processing...",
|
||||
"delete": "Delete",
|
||||
"close": "Close",
|
||||
"cancel": "Cancel",
|
||||
"retry": "Retry",
|
||||
"remove": "Remove",
|
||||
"none": "None",
|
||||
"countUnit": "items",
|
||||
"failureReason": "Reason: {reason}",
|
||||
"perPage": "Per page",
|
||||
"prevPage": "Previous",
|
||||
"nextPage": "Next"
|
||||
},
|
||||
"documents": {
|
||||
"title": "Documents",
|
||||
"infoTip": "Basic document entries in this group. Uploading files creates documents and starts cleaning automatically.",
|
||||
"uploadPath": "Upload path",
|
||||
"uploadFile": "Upload file",
|
||||
"batchClean": "Clean data",
|
||||
"batchCleanCount": "Clean data ({count})",
|
||||
"batchSync": "Batch sync",
|
||||
"batchSyncCount": "Batch sync ({count})",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteCount": "Batch delete ({count})",
|
||||
"historyBatches": "History batches",
|
||||
"searchPlaceholder": "Search by file name",
|
||||
"clearSearch": "Clear search",
|
||||
"selectGroup": "Please select a knowledge base group.",
|
||||
"loadingDocuments": "Loading documents...",
|
||||
"emptyNoDocs": "No documents in this group. Upload a file above to create the first record.",
|
||||
"emptyNoSearchMatch": "No documents match the current search and filters.",
|
||||
"emptyNoFilterMatch": "No documents match the current filters.",
|
||||
"versionCount": "Versions: {count}",
|
||||
"currentVersion": "Current: v{version}",
|
||||
"viewRecord": "View history",
|
||||
"uploadVersion": "Upload version",
|
||||
"syncDify": "Sync to Dify",
|
||||
"syncingDify": "Syncing...",
|
||||
"updatedAt": "Updated: {time}",
|
||||
"selectedCount": "Selected {selected} · Total {total}",
|
||||
"showingRange": "Showing {start}-{end}",
|
||||
"pageInfo": "Page {page} / {totalPages} · {total} items",
|
||||
"documentFallback": "Document #{id}"
|
||||
},
|
||||
"pathUpload": {
|
||||
"progressTitle": "Path upload progress",
|
||||
"uploading": "Uploading",
|
||||
"completed": "Completed",
|
||||
"batchHint": "Recommended {batchSize} files per batch, auto-continue every {seconds}s.",
|
||||
"total": "Total {count}",
|
||||
"pending": "Pending {count}",
|
||||
"uploaded": "Uploaded {count}",
|
||||
"failed": "Failed {count}",
|
||||
"success": "Success {count}",
|
||||
"pendingProcess": "Pending {count}",
|
||||
"currentFile": "Current file: {name}",
|
||||
"details": "Upload details",
|
||||
"viewHistory": "View history",
|
||||
"retryFailedFiles": "Retry failed files",
|
||||
"retryAllFailed": "Retry all failed files",
|
||||
"selectAllFiltered": "Select all filtered",
|
||||
"deselectAllFiltered": "Deselect all",
|
||||
"selectAll": "Select all",
|
||||
"deselectAll": "Deselect all",
|
||||
"batchLabel": "Batch #{id}",
|
||||
"createdAt": "Created: {time}",
|
||||
"finishedAt": " · Finished: {time}",
|
||||
"noBatchMessage": "No batch description",
|
||||
"batchDelete": "Batch delete",
|
||||
"batchDeleteCount": "Batch delete ({count})",
|
||||
"deleting": "Deleting...",
|
||||
"emptyHistory": "No path upload history yet."
|
||||
},
|
||||
"recordModal": {
|
||||
"title": "Document history",
|
||||
"viewing": "Viewing: {name}",
|
||||
"loading": "Loading document history...",
|
||||
"versionsTitle": "Versions",
|
||||
"versionsCount": "{count} items",
|
||||
"versionsEmpty": "No versions yet. Upload a version to see it here.",
|
||||
"syncTitle": "Dify sync records",
|
||||
"syncEmpty": "No Dify sync records. Click \"Sync to Dify\" to create one.",
|
||||
"versionLabel": "Version: {id}",
|
||||
"sizeBytes": "Size: {size} bytes"
|
||||
},
|
||||
"markdownModal": {
|
||||
"readingVersion": "Loading current version...",
|
||||
"previewText": "Preview text",
|
||||
"cleanMarkdown": "Cleaned Markdown",
|
||||
"loading": "Loading cleaned Markdown...",
|
||||
"placeholder": "No Markdown yet. Paste or edit content here.",
|
||||
"saving": "Saving...",
|
||||
"save": "Save Markdown",
|
||||
"editorTitle": "Markdown editor"
|
||||
},
|
||||
"sourceInfoModal": {
|
||||
"title": "Source file info",
|
||||
"viewing": "Viewing: {name}",
|
||||
"loading": "Loading source file info...",
|
||||
"empty": "No source file info. Upload a version to see it here.",
|
||||
"currentVersion": "Current version",
|
||||
"opening": "Opening...",
|
||||
"fileName": "File: {name}",
|
||||
"fileSize": "Size: {size}",
|
||||
"fileType": "Type: {ext}"
|
||||
},
|
||||
"failureModal": {
|
||||
"uploadData": "Upload failures",
|
||||
"cleanData": "Clean failures",
|
||||
"syncData": "Sync failures",
|
||||
"generic": "Failure data",
|
||||
"stageUploadFailed": "Upload failed",
|
||||
"stageCleanFailed": "Clean failed",
|
||||
"stageSyncFailed": "Sync failed"
|
||||
},
|
||||
"pathUploadModal": {
|
||||
"title": "Upload path",
|
||||
"subtitle": "Select a local folder. Files are imported in batches and enter the cleaning workflow automatically.",
|
||||
"localPickerTitle": "Local folder picker",
|
||||
"localPickerHint": "You can add folders multiple times. Browsers cannot read arbitrary pasted paths.",
|
||||
"pickFolder": "Select local folder",
|
||||
"pathListLabel": "Path list",
|
||||
"pathListPlaceholder": "Paths fill in after folder selection; paste notes for multiple paths if needed.",
|
||||
"pendingFiles": "Pending files",
|
||||
"selectedRoots": "Selected roots: {paths}",
|
||||
"noRoots": "None",
|
||||
"pickFolderFirst": "Select a local folder before confirming upload.",
|
||||
"confirmUpload": "Confirm upload"
|
||||
},
|
||||
"pathUploadHistoryModal": {
|
||||
"title": "Path upload history",
|
||||
"subtitle": "View batch results, failed files, and retry options."
|
||||
},
|
||||
"status": {
|
||||
"draft": "Pending upload",
|
||||
"uploaded": "Uploaded",
|
||||
"processing": "Cleaning",
|
||||
"cleaned": "Cleaned",
|
||||
"ready": "Ready",
|
||||
"synced": "Synced",
|
||||
"syncing": "Syncing",
|
||||
"failed": "Failed",
|
||||
"queued": "Queued",
|
||||
"running": "Running",
|
||||
"success": "Success",
|
||||
"cancelled": "Cancelled",
|
||||
"idle": "Not started",
|
||||
"done": "Completed",
|
||||
"pendingClean": "Pending clean",
|
||||
"pendingSync": "Pending sync",
|
||||
"cleaning": "Cleaning",
|
||||
"uploading": "Uploading",
|
||||
"unknown": "Unknown status",
|
||||
"unnamedDocument": "Untitled document"
|
||||
},
|
||||
"workflow": {
|
||||
"upload": "Upload",
|
||||
"clean": "Clean",
|
||||
"sync": "Sync"
|
||||
},
|
||||
"errors": {
|
||||
"unreadableClean": "Historical failure reason is unreadable. Click \"Clean data\" to retry.",
|
||||
"unreadableSync": "Historical sync failure is unreadable. Please retry sync.",
|
||||
"unreadableUpload": "Historical upload failure is unreadable. Please re-upload.",
|
||||
"legacyCleanRecovered": "Legacy clean task was recovered manually. Click \"Clean data\" to retry.",
|
||||
"sourceFileNotFound": "Source file not found. Re-upload before cleaning.",
|
||||
"cleanTimeout": "Clean timed out. Retry later or check if the source file is corrupted.",
|
||||
"duplicateFile": "Upload failed: file already exists.",
|
||||
"apiRequestFailed": "Knowledge base API request failed.",
|
||||
"localFolder": "Local folder",
|
||||
"fileFallback": "File {index}",
|
||||
"uploadFailed": "Upload failed"
|
||||
},
|
||||
"msg": {
|
||||
"operationFailed": "Operation failed",
|
||||
"loadGroupsFailed": "Failed to load groups",
|
||||
"loadDocumentsFailed": "Failed to load documents",
|
||||
"loadJobsFailed": "Failed to load jobs",
|
||||
"readSourceFailed": "Failed to read source file",
|
||||
"noVersion": "No version",
|
||||
"readMarkdownFailed": "Failed to read cleaned Markdown",
|
||||
"saveMarkdownFailed": "Failed to save Markdown",
|
||||
"markdownSaved": "Cleaned Markdown saved",
|
||||
"deleteDocumentFailed": "Failed to delete document",
|
||||
"documentDeleted": "Document deleted",
|
||||
"selectDocumentsToSync": "Please select documents to sync",
|
||||
"batchSyncResult": "Batch sync submitted: {success} succeeded, {fail} failed. {detail}",
|
||||
"batchSyncSuccess": "Batch sync submitted: {success} succeeded",
|
||||
"selectDocumentsToClean": "Please select documents to clean",
|
||||
"noDocumentsToClean": "No selected documents can be cleaned",
|
||||
"batchCleanResult": "Batch clean submitted: {success} succeeded, {fail} failed. {detail}",
|
||||
"batchCleanSuccess": "Batch clean submitted: {success} succeeded",
|
||||
"selectDocumentsToDelete": "Please select documents to delete",
|
||||
"batchDeleteResult": "Batch delete completed: {success} succeeded, {fail} failed. {detail}",
|
||||
"batchDeleteSuccess": "Batch delete completed: {success} succeeded",
|
||||
"reselectFile": "Please re-select a file for \"{name}\"",
|
||||
"recleanFailed": "Re-clean failed",
|
||||
"recleanSubmitted": "Re-clean submitted: {name}",
|
||||
"resyncFailed": "Re-sync failed: {detail}",
|
||||
"resyncSubmitted": "Re-sync submitted: {name}",
|
||||
"processingFile": "Processing file...",
|
||||
"uploadFailed": "File upload failed",
|
||||
"versionUploaded": "Version \"{file}\" uploaded, clean queued",
|
||||
"uploadingProgress": "Uploading {current}/{total}: {file}",
|
||||
"createDocumentFailed": "Failed to create document",
|
||||
"uploadVersionFailed": "Failed to upload version",
|
||||
"uploadCleanupFailed": "Upload failed and empty document could not be removed ({detail})",
|
||||
"uploadSummary": "Upload done: {success} succeeded, {fail} failed. {detail}",
|
||||
"uploadAllSuccess": "Uploaded {count} file(s), clean tasks queued",
|
||||
"syncDifyFailed": "Sync to Dify failed: {detail}",
|
||||
"syncDifyFailedGeneric": "Sync to Dify failed",
|
||||
"syncSubmitted": "Sync task submitted",
|
||||
"pathUploadBusy": "Upload in progress, please wait",
|
||||
"selectGroupFirst": "Please select a group first",
|
||||
"selectPathFiles": "Please select at least one local folder or file",
|
||||
"createPathJobFailed": "Failed to create path upload job",
|
||||
"pathStageFailed": "Path file staging failed",
|
||||
"pathUploadDone": "Path files uploaded and clean submitted",
|
||||
"deletePathFileConfirm": "Delete path file \"{path}\"?",
|
||||
"deletePathFileFailed": "Failed to delete path file",
|
||||
"pathRecordDeletedWithDoc": "Path record deleted with document",
|
||||
"pathRecordDeleted": "Path record deleted",
|
||||
"selectPathFilesToDelete": "Please select files to delete",
|
||||
"batchDeletePathConfirm": "Delete {count} selected path file(s)?",
|
||||
"batchDeletePathResult": "Batch delete: {success} succeeded, {fail} failed. {detail}",
|
||||
"batchDeletePathSuccess": "Batch delete: {success} succeeded",
|
||||
"retryPathFailed": "Failed to retry files",
|
||||
"retryPathOne": "Failed file resubmitted",
|
||||
"retryPathAll": "Failed files resubmitted",
|
||||
"pathUploadProgress": "Path upload: total {total}, pending {pending}, uploaded {uploaded}, failed {failed}",
|
||||
"deleteDocumentConfirm": "Delete document \"{name}\"?",
|
||||
"batchDeleteDocumentsConfirm": "Delete {count} selected document(s)? Dify documents will also be removed.",
|
||||
"markdownFailedWithReason": "Clean failed, no Markdown yet. Reason: {reason}",
|
||||
"markdownFailedRetry": "Clean failed, no Markdown yet. Please re-clean.",
|
||||
"markdownProcessing": "Document is being cleaned, no Markdown yet.",
|
||||
"markdownPendingClean": "Document pending clean, no Markdown yet.",
|
||||
"markdownNotGenerated": "No Markdown generated for this document yet."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"title": "Profile",
|
||||
"personalInfo": "Personal Information",
|
||||
"basicInfo": "Basic Information",
|
||||
"department": "Department",
|
||||
"language": "Language",
|
||||
"username": "Username",
|
||||
"employeeId": "Employee ID",
|
||||
"realName": "Real Name",
|
||||
"email": "Email",
|
||||
"phoneNumber": "Phone Number",
|
||||
"theme": "Theme",
|
||||
"roleAdmin": "Administrator",
|
||||
"roleUser": "User",
|
||||
"unsavedChanges": "You have unsaved changes",
|
||||
"editHint": "Switch to edit mode to update profile details",
|
||||
"switchEditHint": "Switch to edit mode to update profile details",
|
||||
"directEditHint": "You can edit your profile information directly",
|
||||
"security": "Security",
|
||||
"preferences": "Preferences",
|
||||
"edit": "Edit",
|
||||
"cancel": "Cancel",
|
||||
"saveSuccess": "Profile saved successfully",
|
||||
"passwordChanged": "Password changed successfully",
|
||||
"passwordMismatch": "Passwords do not match",
|
||||
"currentPassword": "Current Password",
|
||||
"newPassword": "New Password",
|
||||
"confirmPassword": "Confirm Password",
|
||||
"changePassword": "Change Password",
|
||||
"changingPassword": "Changing...",
|
||||
"changePasswordContactAdmin": "Please contact the administrator to change your password."
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"title": "Schedule Runs",
|
||||
"refresh": "Refresh",
|
||||
"tip": "Only runs where you are the owner or in notification list are shown.",
|
||||
"loading": "Loading...",
|
||||
"empty": "No visible records",
|
||||
"viewExcel": "View Excel",
|
||||
"columns": {
|
||||
"runNo": "Run No.",
|
||||
"schedule": "Schedule",
|
||||
"start": "Start",
|
||||
"end": "End",
|
||||
"status": "Status",
|
||||
"total": "Total",
|
||||
"success": "Success",
|
||||
"failed": "Failed"
|
||||
},
|
||||
"msg": {
|
||||
"loadFailed": "Failed to load schedule runs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"label": "Theme",
|
||||
"light": "Light",
|
||||
"dark": "Dark",
|
||||
"system": "Follow System",
|
||||
"switchToLight": "Switch to light mode",
|
||||
"switchToDark": "Switch to dark mode"
|
||||
}
|
||||
Reference in new issue
Block a user