-
-
{{ kb.batchActionLabel('delete', kb.batchSubmitting, kb.selectedDocuments.length) }}
-
-
- {{ kb.t('kbWorkspace.documents.selectedCount', { selected: kb.selectedDocuments.length, total: kb.filteredDocuments.length }) }}
- {{ kb.t('kbWorkspace.documents.showingRange', { start: kb.pagedDocumentRange.start, end: kb.pagedDocumentRange.end }) }}
+
+
+
+
+
+
+
+
+
+
+
@@ -403,121 +374,111 @@ const kb = useKbWorkspace({ embedded: props.embedded });
? 'border-brand-200 bg-brand-50/50 border-brand-200'
: 'border-default'"
>
-
-
-
-
-
-
-
-
{{ kb.t('kbWorkspace.documents.versionCount', { count: doc.version_count ?? 0 }) }}
-
{{ kb.t('kbWorkspace.documents.currentVersion', { version: doc.latest_version.version_no }) }}
+
+
+
+
+
+
-
{{ kb.t('kbWorkspace.documents.updatedAt', { time: kb.formatDateTime(doc.updated_at) }) }}
+
+ {{ kb.t('kbWorkspace.documents.versionCount', { count: doc.version_count ?? 0 }) }}
+ {{ kb.t('kbWorkspace.documents.currentVersion', { version: doc.latest_version.version_no }) }}
+
+
+
+ {{ kb.t('kbWorkspace.common.failureReason', { reason: kb.getDocumentWorkflowState(doc).primaryError }) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ kb.t('kbWorkspace.documents.updatedAt', { time: kb.formatDateTime(doc.updated_at) }) }}
+
+
- {{ kb.t('kbWorkspace.common.failureReason', { reason: kb.getDocumentWorkflowState(doc).primaryError }) }}
+ {{ badge.label }}:{{ badge.value }}
-
-
-
- {{ badge.label }}:{{ badge.value }}
-
-
-
-
-
-
-
-
-
-
-
- {{ kb.t('kbWorkspace.documents.pageInfo', { page: kb.documentListPage, totalPages: kb.filteredDocumentTotalPages, total: kb.filteredDocuments.length }) }}
-
-
-
-
-
-
+ v-model:page="kb.documentListPage"
+ v-model:page-size="kb.documentListPageSize"
+ :total="kb.filteredDocuments.length"
+ :pages="kb.filteredDocumentTotalPages"
+ :page-size-options="[...kb.DOCUMENT_PAGE_SIZE_OPTIONS]"
+ />
diff --git a/frontend/src/locales/en/kb.json b/frontend/src/locales/en/kb.json
index 28bc6997..5a844013 100644
--- a/frontend/src/locales/en/kb.json
+++ b/frontend/src/locales/en/kb.json
@@ -1,4 +1,4 @@
-{
+{
"kbDifySettings": {
"title": "Dify Settings",
"subtitle": "Manage Dify connection and default sync parameters for the knowledge base module.",
@@ -168,8 +168,8 @@
"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})",
+ "batchClean": "Batch clean",
+ "batchCleanCount": "Batch clean ({count})",
"batchSync": "Batch sync",
"batchSyncCount": "Batch sync ({count})",
"batchDelete": "Batch delete",
@@ -390,3 +390,4 @@
}
}
}
+
diff --git a/frontend/src/locales/th/kb.json b/frontend/src/locales/th/kb.json
index 039e0247..56e191fa 100644
--- a/frontend/src/locales/th/kb.json
+++ b/frontend/src/locales/th/kb.json
@@ -1,4 +1,4 @@
-{
+{
"kbDifySettings": {
"title": "ตั้งค่า Dify",
"subtitle": "จัดการการเชื่อมต่อ Dify และค่าซิงค์เริ่มต้นของโมดูลคลังความรู้",
@@ -168,8 +168,8 @@
"infoTip": "รายการเอกสารพื้นฐานในกลุ่มนี้ การอัปโหลดไฟล์จะสร้างเอกสารและเริ่มทำความสะอาดอัตโนมัติ",
"uploadPath": "อัปโหลดจาก path",
"uploadFile": "อัปโหลดไฟล์",
- "batchClean": "ทำความสะอาดข้อมูล",
- "batchCleanCount": "ทำความสะอาดข้อมูล ({count})",
+ "batchClean": "ทำความสะอาดเป็นชุด",
+ "batchCleanCount": "ทำความสะอาดเป็นชุด ({count})",
"batchSync": "ซิงค์เป็นชุด",
"batchSyncCount": "ซิงค์เป็นชุด ({count})",
"batchDelete": "ลบเป็นชุด",
@@ -390,3 +390,4 @@
}
}
}
+
diff --git a/frontend/src/locales/zh-CN/kb.json b/frontend/src/locales/zh-CN/kb.json
index b32daae8..8e553639 100644
--- a/frontend/src/locales/zh-CN/kb.json
+++ b/frontend/src/locales/zh-CN/kb.json
@@ -1,4 +1,4 @@
-{
+{
"kbDifySettings": {
"title": "Dify 设置",
"subtitle": "管理知识库模块使用的 Dify 连接和默认同步参数。",
@@ -168,8 +168,8 @@
"infoTip": "当前分组下的基础文档条目,上传文件后将自动创建文档并开始清洗流程。",
"uploadPath": "上传路径",
"uploadFile": "上传文件",
- "batchClean": "清洗数据",
- "batchCleanCount": "清洗数据({count})",
+ "batchClean": "批量清洗",
+ "batchCleanCount": "批量清洗({count})",
"batchSync": "批量同步",
"batchSyncCount": "批量同步({count})",
"batchDelete": "批量删除",
@@ -390,3 +390,4 @@
}
}
}
+
diff --git a/frontend/src/locales/zh-TW/kb.json b/frontend/src/locales/zh-TW/kb.json
index 383fa075..4b47b053 100644
--- a/frontend/src/locales/zh-TW/kb.json
+++ b/frontend/src/locales/zh-TW/kb.json
@@ -1,4 +1,4 @@
-{
+{
"kbDifySettings": {
"title": "Dify 設定",
"subtitle": "管理知識庫模組使用的 Dify 連線和預設同步參數。",
@@ -168,8 +168,8 @@
"infoTip": "當前分組下的基礎文檔條目,上傳文件後將自動創建文檔並開始清洗流程。",
"uploadPath": "上傳路徑",
"uploadFile": "上傳文件",
- "batchClean": "清洗數據",
- "batchCleanCount": "清洗數據({count})",
+ "batchClean": "批量清洗",
+ "batchCleanCount": "批量清洗({count})",
"batchSync": "批量同步",
"batchSyncCount": "批量同步({count})",
"batchDelete": "批量刪除",
@@ -390,3 +390,4 @@
}
}
}
+