From 2fabc103bc01f1faebb96e18d0bf099f2973259b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=A1=BA=E5=BC=BA?= <978987373@qq.com> Date: Mon, 21 Aug 2023 11:13:49 +0800 Subject: [PATCH] update sdoc version --- frontend/package-lock.json | 14 +++++++------- frontend/package.json | 2 +- media/sdoc-editor/locales/en/sdoc-editor.json | 7 ++++--- media/sdoc-editor/locales/zh-CN/sdoc-editor.json | 7 ++++--- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 149b1fdf5f..fbdcf9a1c8 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -11,7 +11,7 @@ "@gatsbyjs/reach-router": "1.3.9", "@seafile/react-image-lightbox": "2.0.2", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "0.1.119", + "@seafile/sdoc-editor": "0.1.120", "@seafile/seafile-calendar": "0.0.12", "@seafile/seafile-editor": "0.3.132", "@seafile/slate-react": "0.54.13", @@ -5207,9 +5207,9 @@ "license": "MIT" }, "node_modules/@seafile/sdoc-editor": { - "version": "0.1.119", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.119.tgz", - "integrity": "sha512-kGidLnTO/1mj6LyMciB8bnYVcF8+Rykh/6Xx9oT/FQtKz/8p1109dJSFiMfZHL1U2IPjKbczcaeJ+Ej/4OoA5g==", + "version": "0.1.120", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.120.tgz", + "integrity": "sha512-EhO56ftbGCNizMoOMNzqlCb3cOllW/YHJ0R1kdUkHvxc7nnrIRXXqeFKZdSU81xnBulHDF3+mzY2SEZjO3mwow==", "dependencies": { "@seafile/react-image-lightbox": "2.0.2", "@seafile/slate": "0.91.8", @@ -33418,9 +33418,9 @@ "version": "1.1.16" }, "@seafile/sdoc-editor": { - "version": "0.1.119", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.119.tgz", - "integrity": "sha512-kGidLnTO/1mj6LyMciB8bnYVcF8+Rykh/6Xx9oT/FQtKz/8p1109dJSFiMfZHL1U2IPjKbczcaeJ+Ej/4OoA5g==", + "version": "0.1.120", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.120.tgz", + "integrity": "sha512-EhO56ftbGCNizMoOMNzqlCb3cOllW/YHJ0R1kdUkHvxc7nnrIRXXqeFKZdSU81xnBulHDF3+mzY2SEZjO3mwow==", "requires": { "@seafile/react-image-lightbox": "2.0.2", "@seafile/slate": "0.91.8", diff --git a/frontend/package.json b/frontend/package.json index fe562fa8a1..267059e818 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,7 @@ "@gatsbyjs/reach-router": "1.3.9", "@seafile/react-image-lightbox": "2.0.2", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "0.1.119", + "@seafile/sdoc-editor": "0.1.120", "@seafile/seafile-calendar": "0.0.12", "@seafile/seafile-editor": "0.3.132", "@seafile/slate-react": "0.54.13", diff --git a/media/sdoc-editor/locales/en/sdoc-editor.json b/media/sdoc-editor/locales/en/sdoc-editor.json index 91f1746951..98fdc286f3 100644 --- a/media/sdoc-editor/locales/en/sdoc-editor.json +++ b/media/sdoc-editor/locales/en/sdoc-editor.json @@ -273,7 +273,7 @@ "Revision": "Revision", "Error": "Error", "Start_revise": "Start revise", - "Failed_to_execute_operation_on_server": "Failed to execute operation on server", + "Failed_to_execute_operation_on_server": "Failed to execute operation on server, the current operation has been withdrawn", "Start_revise_tip": "Create a temporary document and modify on it, merge it back after reviewing changes", "Load_doc_content_error": "Load doc content error", "Sdoc_format_invalid": "The content of the document does not conform to the sdoc specification", @@ -341,7 +341,6 @@ "Font": "Font", "All_fonts": "All fonts", "Default_font": "Default font", - "Document_content_load_failed": "Document content failed to load, please refresh the page to try again", "Pending_operations_exceed_limit": "There are multiple operations not synced to the server. Please check your network.", "Recently_saved": "Recently saved", "Sdoc_document" : "Sdoc document", @@ -349,5 +348,7 @@ "Icon_and_text_Link": "Icon and text Link", "Card": "Card", "Select_sdoc_document": "Select sdoc document", - "Local_file": "Local file" + "Local_file": "Local file", + "Internal_server_exec_operations_error": "An exception occurred on the server, please refresh the page and try again", + "Failed_to_sync_with_server_operations": "Synchronization with the server failed, please refresh the page" } diff --git a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json index e5ed0ba285..7a6e85f21d 100644 --- a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json +++ b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json @@ -273,7 +273,7 @@ "Revision": "修订稿", "Error": "错误", "Start_revise": "开始修订", - "Failed_to_execute_operation_on_server": "无法在服务器上执行操作", + "Failed_to_execute_operation_on_server": "无法在服务器上执行操作,当前操作已经撤回", "Start_revise_tip": "创建一个临时文档并对其进行修订,检查更改后将其合并回来", "Load_doc_content_error": "加载文档内容错误", "Sdoc_format_invalid": "文档内容不符合 sdoc 规范", @@ -343,7 +343,6 @@ "Font": "字体", "All_fonts": "所有字体", "Default_font": "默认字体", - "Document_content_load_failed": "文档内容加载失败, 请刷新页面重新访问", "Pending_operations_exceed_limit": "有多个操作未同步到服务器。请检查你的网络。", "Recently_saved": "最近保存", "Sdoc_document" : "sdoc 文档", @@ -351,5 +350,7 @@ "Icon_and_text_Link": "图标+文字链", "Card": "卡片", "Select_sdoc_document": "选择sdoc文档", - "Local_file": "本地文件" + "Local_file": "本地文件", + "Internal_server_exec_operations_error": "在服务器执行操作异常,请刷新页面后重试", + "Failed_to_sync_with_server_operations": "与服务器同步操作失败,请刷新页面" }