From fc98980acce3a3fcde784b598e4fc9491854b46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=A1=BA=E5=BC=BA?= <978987373@qq.com> Date: Fri, 17 Nov 2023 13:05:47 +0800 Subject: [PATCH] update sdoc version and sdoc translate --- frontend/package-lock.json | 30 +++++++++---------- frontend/package.json | 2 +- media/sdoc-editor/locales/cs/sdoc-editor.json | 6 ++-- media/sdoc-editor/locales/de/sdoc-editor.json | 6 ++-- media/sdoc-editor/locales/en/sdoc-editor.json | 6 ++-- media/sdoc-editor/locales/es/sdoc-editor.json | 6 ++-- media/sdoc-editor/locales/fr/sdoc-editor.json | 6 ++-- media/sdoc-editor/locales/it/sdoc-editor.json | 6 ++-- media/sdoc-editor/locales/ru/sdoc-editor.json | 6 ++-- .../locales/zh-CN/sdoc-editor.json | 6 ++-- .../locales/zh_CN/sdoc-editor.json | 6 ++-- 11 files changed, 52 insertions(+), 34 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5598dc6a22..5902d4b187 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.2.29", + "@seafile/sdoc-editor": "0.2.30", "@seafile/seafile-calendar": "0.0.12", "@seafile/seafile-editor": "0.4.8", "@uiw/codemirror-extensions-langs": "^4.19.4", @@ -4615,16 +4615,16 @@ "integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig==" }, "node_modules/@seafile/sdoc-editor": { - "version": "0.2.29", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.2.29.tgz", - "integrity": "sha512-SfgLwdkU8hIHMhZM3diwZ46ZtAH2ldaTtk222iYWseofB2CNMlvC0uMNhpRN8kJO1rnKVrLCJ3O8wrN9313ifQ==", + "version": "0.2.30", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.2.30.tgz", + "integrity": "sha512-Lej19Um9S+xBgKMv4Ys0Ye0shjj69Zwxbld3qh849GeTKKFwvcRj9orV0DZuI6T9aNNYjsuXz9IgjatDVLalgw==", "dependencies": { "@seafile/react-image-lightbox": "2.0.4", "@seafile/slate": "0.91.8", "@seafile/slate-history": "0.86.2", "@seafile/slate-hyperscript": "0.81.7", "@seafile/slate-react": "0.92.6", - "axios": "1.4.0", + "axios": "^1.6.0", "classnames": "2.3.2", "copy-to-clipboard": "^3.3.3", "dayjs": "1.11.2", @@ -4658,9 +4658,9 @@ } }, "node_modules/@seafile/sdoc-editor/node_modules/axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -29863,16 +29863,16 @@ "integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig==" }, "@seafile/sdoc-editor": { - "version": "0.2.29", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.2.29.tgz", - "integrity": "sha512-SfgLwdkU8hIHMhZM3diwZ46ZtAH2ldaTtk222iYWseofB2CNMlvC0uMNhpRN8kJO1rnKVrLCJ3O8wrN9313ifQ==", + "version": "0.2.30", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.2.30.tgz", + "integrity": "sha512-Lej19Um9S+xBgKMv4Ys0Ye0shjj69Zwxbld3qh849GeTKKFwvcRj9orV0DZuI6T9aNNYjsuXz9IgjatDVLalgw==", "requires": { "@seafile/react-image-lightbox": "2.0.4", "@seafile/slate": "0.91.8", "@seafile/slate-history": "0.86.2", "@seafile/slate-hyperscript": "0.81.7", "@seafile/slate-react": "0.92.6", - "axios": "1.4.0", + "axios": "^1.6.0", "classnames": "2.3.2", "copy-to-clipboard": "^3.3.3", "dayjs": "1.11.2", @@ -29902,9 +29902,9 @@ } }, "axios": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz", - "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", "requires": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", diff --git a/frontend/package.json b/frontend/package.json index 8718fb81b3..dd93274309 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.2.29", + "@seafile/sdoc-editor": "0.2.30", "@seafile/seafile-calendar": "0.0.12", "@seafile/seafile-editor": "0.4.8", "@uiw/codemirror-extensions-langs": "^4.19.4", diff --git a/media/sdoc-editor/locales/cs/sdoc-editor.json b/media/sdoc-editor/locales/cs/sdoc-editor.json index 722323866d..f372a40000 100644 --- a/media/sdoc-editor/locales/cs/sdoc-editor.json +++ b/media/sdoc-editor/locales/cs/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "There are conflicts in the documents. Do you want to merge them?", "Has_conflict_before_view_changes_tip": "There are conflicts in the document. Please resolve the conflict before viewing the changes!", "Has_been_removed_tip": "Document has been removed, please view other documents.", - "Revision_created": "Revision {{id}} created", "Checking": "Checking...", "Publishing": "Publishing...", "Inline": "Inline", @@ -408,5 +407,8 @@ "Add_option": "Vytvořit nový štítek", "Find_an_option": "Search tags", "Copy_link_of_section": "Copy link of section", - "revision": "revision" + "revision": "revision", + "xxx_added_a_new_comment": "{{author}} added a new comment", + "xxx_added_a_reply": "{{author}} added a reply", + "New": "Nový" } diff --git a/media/sdoc-editor/locales/de/sdoc-editor.json b/media/sdoc-editor/locales/de/sdoc-editor.json index ac8da4674d..31d5472b03 100644 --- a/media/sdoc-editor/locales/de/sdoc-editor.json +++ b/media/sdoc-editor/locales/de/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "There are conflicts in the documents. Do you want to merge them?", "Has_conflict_before_view_changes_tip": "There are conflicts in the document. Please resolve the conflict before viewing the changes!", "Has_been_removed_tip": "Document has been removed, please view other documents.", - "Revision_created": "Revision {{id}} created", "Checking": "Checking...", "Publishing": "Publishing...", "Inline": "Inline", @@ -408,5 +407,8 @@ "Add_option": "Neues Tag erstellen", "Find_an_option": "Search tags", "Copy_link_of_section": "Copy link of section", - "revision": "revision" + "revision": "revision", + "xxx_added_a_new_comment": "{{author}} added a new comment", + "xxx_added_a_reply": "{{author}} added a reply", + "New": "Erstellen" } diff --git a/media/sdoc-editor/locales/en/sdoc-editor.json b/media/sdoc-editor/locales/en/sdoc-editor.json index 3baf06b258..43c90e0abf 100644 --- a/media/sdoc-editor/locales/en/sdoc-editor.json +++ b/media/sdoc-editor/locales/en/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "There are conflicts in the documents. Do you want to merge them?", "Has_conflict_before_view_changes_tip": "There are conflicts in the document. Please resolve the conflict before viewing the changes!", "Has_been_removed_tip": "Document has been removed, please view other documents.", - "Revision_created": "Revision {{id}} created", "Checking": "Checking...", "Publishing": "Publishing...", "Inline": "Inline", @@ -408,5 +407,8 @@ "Add_option": "Create a new tag", "Find_an_option": "Search tags", "Copy_link_of_section": "Copy link of section", - "revision": "revision" + "revision": "revision", + "xxx_added_a_new_comment": "{{author}} added a new comment", + "xxx_added_a_reply": "{{author}} added a reply", + "New": "New" } diff --git a/media/sdoc-editor/locales/es/sdoc-editor.json b/media/sdoc-editor/locales/es/sdoc-editor.json index 1d0bdc2158..939d2b3ccb 100644 --- a/media/sdoc-editor/locales/es/sdoc-editor.json +++ b/media/sdoc-editor/locales/es/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "There are conflicts in the documents. Do you want to merge them?", "Has_conflict_before_view_changes_tip": "There are conflicts in the document. Please resolve the conflict before viewing the changes!", "Has_been_removed_tip": "Document has been removed, please view other documents.", - "Revision_created": "Revision {{id}} created", "Checking": "Checking...", "Publishing": "Publishing...", "Inline": "Inline", @@ -408,5 +407,8 @@ "Add_option": "Cear una nueva etiqueta", "Find_an_option": "Search tags", "Copy_link_of_section": "Copy link of section", - "revision": "revision" + "revision": "revision", + "xxx_added_a_new_comment": "{{author}} added a new comment", + "xxx_added_a_reply": "{{author}} added a reply", + "New": "Nuevo" } diff --git a/media/sdoc-editor/locales/fr/sdoc-editor.json b/media/sdoc-editor/locales/fr/sdoc-editor.json index f906d72cc7..f97606ffe5 100644 --- a/media/sdoc-editor/locales/fr/sdoc-editor.json +++ b/media/sdoc-editor/locales/fr/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "There are conflicts in the documents. Do you want to merge them?", "Has_conflict_before_view_changes_tip": "There are conflicts in the document. Please resolve the conflict before viewing the changes!", "Has_been_removed_tip": "Document has been removed, please view other documents.", - "Revision_created": "Revision {{id}} created", "Checking": "Checking...", "Publishing": "Publishing...", "Inline": "Inline", @@ -408,5 +407,8 @@ "Add_option": "Créer un nouveau Tag", "Find_an_option": "Search tags", "Copy_link_of_section": "Copy link of section", - "revision": "revision" + "revision": "revision", + "xxx_added_a_new_comment": "{{author}} added a new comment", + "xxx_added_a_reply": "{{author}} added a reply", + "New": "Créer" } diff --git a/media/sdoc-editor/locales/it/sdoc-editor.json b/media/sdoc-editor/locales/it/sdoc-editor.json index f820b9e545..a601051fbe 100644 --- a/media/sdoc-editor/locales/it/sdoc-editor.json +++ b/media/sdoc-editor/locales/it/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "There are conflicts in the documents. Do you want to merge them?", "Has_conflict_before_view_changes_tip": "There are conflicts in the document. Please resolve the conflict before viewing the changes!", "Has_been_removed_tip": "Document has been removed, please view other documents.", - "Revision_created": "Revision {{id}} created", "Checking": "Checking...", "Publishing": "Publishing...", "Inline": "Inline", @@ -408,5 +407,8 @@ "Add_option": "Crea un nuovo tag", "Find_an_option": "Search tags", "Copy_link_of_section": "Copy link of section", - "revision": "revision" + "revision": "revision", + "xxx_added_a_new_comment": "{{author}} added a new comment", + "xxx_added_a_reply": "{{author}} added a reply", + "New": "Nuovo" } diff --git a/media/sdoc-editor/locales/ru/sdoc-editor.json b/media/sdoc-editor/locales/ru/sdoc-editor.json index 444b86c36c..aed91f39ff 100644 --- a/media/sdoc-editor/locales/ru/sdoc-editor.json +++ b/media/sdoc-editor/locales/ru/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "В документах есть конфликты. Вы хотите объединить их?", "Has_conflict_before_view_changes_tip": "В документе есть конфликты. Разрешите конфликт перед просмотром изменений!", "Has_been_removed_tip": "Документ удален, посмотрите другие документы.", - "Revision_created": "Версия {{id}} создана", "Checking": "Проверка...", "Publishing": "Публикация...", "Inline": "Встроенный", @@ -408,5 +407,8 @@ "Add_option": "Создать новый тег", "Find_an_option": "Поиск тегов", "Copy_link_of_section": "Копировать ссылку на раздел", - "revision": "версия" + "revision": "версия", + "xxx_added_a_new_comment": "{{author}} добавил новый комментарий", + "xxx_added_a_reply": "{{author}} добавил ответ", + "New": "Новый" } diff --git a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json index 387ea2b41a..7b059406b0 100644 --- a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json +++ b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "文档有冲突,是否合并?", "Has_conflict_before_view_changes_tip": "文档有冲突,请解决冲突后再查看更改!", "Has_been_removed_tip": "文档已经被删除,请查看其他文档", - "Revision_created": "已创建修订稿 {{id}}", "Checking": "检查中...", "Publishing": "发布中...", "Inline": "嵌入行内", @@ -408,5 +407,8 @@ "Add_option": "新建标签", "Find_an_option": "查找标签", "Copy_link_of_section": "拷贝章节的链接", - "revision": "修订稿" + "revision": "修订稿", + "xxx_added_a_new_comment": "{{author}} 添加了一条新评论", + "xxx_added_a_reply": "{{author}} 添加了一条回复", + "New": "新" } diff --git a/media/sdoc-editor/locales/zh_CN/sdoc-editor.json b/media/sdoc-editor/locales/zh_CN/sdoc-editor.json index 387ea2b41a..7b059406b0 100644 --- a/media/sdoc-editor/locales/zh_CN/sdoc-editor.json +++ b/media/sdoc-editor/locales/zh_CN/sdoc-editor.json @@ -384,7 +384,6 @@ "Merge_tip": "文档有冲突,是否合并?", "Has_conflict_before_view_changes_tip": "文档有冲突,请解决冲突后再查看更改!", "Has_been_removed_tip": "文档已经被删除,请查看其他文档", - "Revision_created": "已创建修订稿 {{id}}", "Checking": "检查中...", "Publishing": "发布中...", "Inline": "嵌入行内", @@ -408,5 +407,8 @@ "Add_option": "新建标签", "Find_an_option": "查找标签", "Copy_link_of_section": "拷贝章节的链接", - "revision": "修订稿" + "revision": "修订稿", + "xxx_added_a_new_comment": "{{author}} 添加了一条新评论", + "xxx_added_a_reply": "{{author}} 添加了一条回复", + "New": "新" }