diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 3559020817..cc782e3806 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -12,7 +12,7 @@ "@gatsbyjs/reach-router": "1.3.9", "@seafile/react-image-lightbox": "2.0.2", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "0.5.7", + "@seafile/sdoc-editor": "0.5.8", "@seafile/seafile-calendar": "0.0.12", "@seafile/seafile-editor": "1.0.22", "@uiw/codemirror-extensions-langs": "^4.19.4", @@ -4607,9 +4607,9 @@ "integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig==" }, "node_modules/@seafile/sdoc-editor": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.7.tgz", - "integrity": "sha512-BtC25HbIrMuXyH/Whblb3ebNBsFo47oHb/nZpkBsNv503ZvOGhEstRPDsE83WQArMdeKYaTH/jZ7Igz7WLFhuQ==", + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.8.tgz", + "integrity": "sha512-hHF4HWWkg6A3r76c/HqPefto0PxrHKFNb264/Hlr3jV5f1XieoiSsKt3XF5SBE91mTwYVljvpg7fVjreeck6Cg==", "dependencies": { "@seafile/react-image-lightbox": "2.0.4", "@seafile/slate": "0.91.8", @@ -31734,9 +31734,9 @@ "integrity": "sha512-8rBbmAEuuwOAGHYGCtEzpx+bxAcGS+V30otMmhRe7bPAdh4E57RWgCa8x7pkzHGFlY1t5d+ILz1gojvPVMYQig==" }, "@seafile/sdoc-editor": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.7.tgz", - "integrity": "sha512-BtC25HbIrMuXyH/Whblb3ebNBsFo47oHb/nZpkBsNv503ZvOGhEstRPDsE83WQArMdeKYaTH/jZ7Igz7WLFhuQ==", + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.5.8.tgz", + "integrity": "sha512-hHF4HWWkg6A3r76c/HqPefto0PxrHKFNb264/Hlr3jV5f1XieoiSsKt3XF5SBE91mTwYVljvpg7fVjreeck6Cg==", "requires": { "@seafile/react-image-lightbox": "2.0.4", "@seafile/slate": "0.91.8", diff --git a/frontend/package.json b/frontend/package.json index b068983566..27f80a1757 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,7 +7,7 @@ "@gatsbyjs/reach-router": "1.3.9", "@seafile/react-image-lightbox": "2.0.2", "@seafile/resumablejs": "1.1.16", - "@seafile/sdoc-editor": "0.5.7", + "@seafile/sdoc-editor": "0.5.8", "@seafile/seafile-calendar": "0.0.12", "@seafile/seafile-editor": "1.0.22", "@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 b34df93a3f..3270424a8d 100644 --- a/media/sdoc-editor/locales/cs/sdoc-editor.json +++ b/media/sdoc-editor/locales/cs/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "Recent visited", "The_document_does_not_exist": "The document does not exist", "Create_a_new_sdoc_file": "Create a new sdoc file", - "Create": "Vytvořit" + "Create": "Vytvořit", + "Top_align": "Top", + "Center_align": "Middle", + "Bottom_align": "Bottom" } diff --git a/media/sdoc-editor/locales/de/sdoc-editor.json b/media/sdoc-editor/locales/de/sdoc-editor.json index 1c04736979..3c7bbd9206 100644 --- a/media/sdoc-editor/locales/de/sdoc-editor.json +++ b/media/sdoc-editor/locales/de/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "Recent visited", "The_document_does_not_exist": "The document does not exist", "Create_a_new_sdoc_file": "Create a new sdoc file", - "Create": "Erstellen" + "Create": "Erstellen", + "Top_align": "Top", + "Center_align": "Middle", + "Bottom_align": "Bottom" } diff --git a/media/sdoc-editor/locales/en/sdoc-editor.json b/media/sdoc-editor/locales/en/sdoc-editor.json index 40d617dee8..5d57237743 100644 --- a/media/sdoc-editor/locales/en/sdoc-editor.json +++ b/media/sdoc-editor/locales/en/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "Recent visited", "The_document_does_not_exist": "The document does not exist", "Create_a_new_sdoc_file": "Create a new sdoc file", - "Create": "Create" + "Create": "Create", + "Top_align": "Top", + "Center_align": "Middle", + "Bottom_align": "Bottom" } diff --git a/media/sdoc-editor/locales/es/sdoc-editor.json b/media/sdoc-editor/locales/es/sdoc-editor.json index 687e634780..ea339ac8b8 100644 --- a/media/sdoc-editor/locales/es/sdoc-editor.json +++ b/media/sdoc-editor/locales/es/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "Recent visited", "The_document_does_not_exist": "The document does not exist", "Create_a_new_sdoc_file": "Create a new sdoc file", - "Create": "Crear" + "Create": "Crear", + "Top_align": "Top", + "Center_align": "Middle", + "Bottom_align": "Bottom" } diff --git a/media/sdoc-editor/locales/fr/sdoc-editor.json b/media/sdoc-editor/locales/fr/sdoc-editor.json index 2e3e6a193c..830b0b5084 100644 --- a/media/sdoc-editor/locales/fr/sdoc-editor.json +++ b/media/sdoc-editor/locales/fr/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "Recent visited", "The_document_does_not_exist": "The document does not exist", "Create_a_new_sdoc_file": "Create a new sdoc file", - "Create": "Créer" + "Create": "Créer", + "Top_align": "Top", + "Center_align": "Middle", + "Bottom_align": "Bottom" } diff --git a/media/sdoc-editor/locales/it/sdoc-editor.json b/media/sdoc-editor/locales/it/sdoc-editor.json index 418d0d04ef..2a851bf60e 100644 --- a/media/sdoc-editor/locales/it/sdoc-editor.json +++ b/media/sdoc-editor/locales/it/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "Recent visited", "The_document_does_not_exist": "The document does not exist", "Create_a_new_sdoc_file": "Create a new sdoc file", - "Create": "Crea" + "Create": "Crea", + "Top_align": "Top", + "Center_align": "Middle", + "Bottom_align": "Bottom" } diff --git a/media/sdoc-editor/locales/ru/sdoc-editor.json b/media/sdoc-editor/locales/ru/sdoc-editor.json index 850f72bf05..60a289ea05 100644 --- a/media/sdoc-editor/locales/ru/sdoc-editor.json +++ b/media/sdoc-editor/locales/ru/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "Недавно посещенные", "The_document_does_not_exist": "Документ не существует", "Create_a_new_sdoc_file": "Создать новый файл sdoc", - "Create": "Создать" + "Create": "Создать", + "Top_align": "Top", + "Center_align": "Middle", + "Bottom_align": "Bottom" } diff --git a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json index 8eeb13ac37..3ff17af62c 100644 --- a/media/sdoc-editor/locales/zh-CN/sdoc-editor.json +++ b/media/sdoc-editor/locales/zh-CN/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "最近浏览", "The_document_does_not_exist": "不存在该文档", "Create_a_new_sdoc_file": "新建 sdoc 文件", - "Create": "创建" + "Create": "创建", + "Top_align": "顶端对齐", + "Center_align": "剧中对齐", + "Bottom_align": "底端对齐" } diff --git a/media/sdoc-editor/locales/zh_CN/sdoc-editor.json b/media/sdoc-editor/locales/zh_CN/sdoc-editor.json index 8eeb13ac37..3ff17af62c 100644 --- a/media/sdoc-editor/locales/zh_CN/sdoc-editor.json +++ b/media/sdoc-editor/locales/zh_CN/sdoc-editor.json @@ -445,5 +445,8 @@ "Recent_visited": "最近浏览", "The_document_does_not_exist": "不存在该文档", "Create_a_new_sdoc_file": "新建 sdoc 文件", - "Create": "创建" + "Create": "创建", + "Top_align": "顶端对齐", + "Center_align": "剧中对齐", + "Bottom_align": "底端对齐" } diff --git a/media/sdoc-editor/sdoc-editor-font.css b/media/sdoc-editor/sdoc-editor-font.css index 7b9e8e6fe3..8d84bd6ce2 100644 --- a/media/sdoc-editor/sdoc-editor-font.css +++ b/media/sdoc-editor/sdoc-editor-font.css @@ -16,6 +16,26 @@ -moz-osx-font-smoothing: grayscale; } +.sdoc-center-alignment:before { + content: "\e668"; +} + +.sdoc-bottom-alignment:before { + content: "\e669"; +} + +.sdoc-top-alignment:before { + content: "\e66a"; +} + +.sdoc-all-read:before { + content: "\e65d"; +} + +.sdoc-freezed:before { + content: "\e667"; +} + .sdoc-callout-color:before { content: "\e666"; } @@ -56,10 +76,6 @@ content: "\e65f"; } -.sdoc-freezed:before { - content: "\e65d"; -} - .sdoc-jump-to:before { content: "\e65a"; } diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.eot b/media/sdoc-editor/sdoc-editor-font/iconfont.eot index 865ef2dedd..0869120a53 100644 Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.eot and b/media/sdoc-editor/sdoc-editor-font/iconfont.eot differ diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.svg b/media/sdoc-editor/sdoc-editor-font/iconfont.svg index 4b073612c8..194b0a433d 100644 --- a/media/sdoc-editor/sdoc-editor-font/iconfont.svg +++ b/media/sdoc-editor/sdoc-editor-font/iconfont.svg @@ -14,6 +14,16 @@ /> + + + + + + + + + + @@ -34,8 +44,6 @@ - - diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.ttf b/media/sdoc-editor/sdoc-editor-font/iconfont.ttf index 557ce8cdd7..95e46203cb 100644 Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.ttf and b/media/sdoc-editor/sdoc-editor-font/iconfont.ttf differ diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.woff b/media/sdoc-editor/sdoc-editor-font/iconfont.woff index fa9cad1486..f5f9bb4344 100644 Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.woff and b/media/sdoc-editor/sdoc-editor-font/iconfont.woff differ diff --git a/media/sdoc-editor/sdoc-editor-font/iconfont.woff2 b/media/sdoc-editor/sdoc-editor-font/iconfont.woff2 index 4368bfb002..548c859b8d 100644 Binary files a/media/sdoc-editor/sdoc-editor-font/iconfont.woff2 and b/media/sdoc-editor/sdoc-editor-font/iconfont.woff2 differ