1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

update sdoc version

This commit is contained in:
杨顺强
2023-07-14 16:58:48 +08:00
parent 9b94d17a9c
commit 4784b84f45
10 changed files with 36 additions and 26 deletions

View File

@@ -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.76",
"@seafile/sdoc-editor": "0.1.77",
"@seafile/seafile-calendar": "0.0.12",
"@seafile/seafile-editor": "0.3.132",
"@seafile/slate-react": "0.54.13",
@@ -5198,9 +5198,9 @@
"license": "MIT"
},
"node_modules/@seafile/sdoc-editor": {
"version": "0.1.76",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.76.tgz",
"integrity": "sha512-ykv4JYfUdFRAfVuDerPnZUjAEf/gIaq+FX7iyXBNk1WGjkQ/yOmNMxCF1PgD+pm3VRr4jRboT9rkQvG4y2RMGQ==",
"version": "0.1.77",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.77.tgz",
"integrity": "sha512-uIbJuqCrdgNeLuH0d5aDI6qYGh8sxUzylKi8864f4ORCf/fBUlImJd+BWUWI0cMz7PMrODyayrLJS5X5cYRRzw==",
"dependencies": {
"@seafile/react-image-lightbox": "2.0.2",
"@seafile/slate": "0.91.8",
@@ -33361,9 +33361,9 @@
"version": "1.1.16"
},
"@seafile/sdoc-editor": {
"version": "0.1.76",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.76.tgz",
"integrity": "sha512-ykv4JYfUdFRAfVuDerPnZUjAEf/gIaq+FX7iyXBNk1WGjkQ/yOmNMxCF1PgD+pm3VRr4jRboT9rkQvG4y2RMGQ==",
"version": "0.1.77",
"resolved": "https://registry.npmjs.org/@seafile/sdoc-editor/-/sdoc-editor-0.1.77.tgz",
"integrity": "sha512-uIbJuqCrdgNeLuH0d5aDI6qYGh8sxUzylKi8864f4ORCf/fBUlImJd+BWUWI0cMz7PMrODyayrLJS5X5cYRRzw==",
"requires": {
"@seafile/react-image-lightbox": "2.0.2",
"@seafile/slate": "0.91.8",

View File

@@ -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.76",
"@seafile/sdoc-editor": "0.1.77",
"@seafile/seafile-calendar": "0.0.12",
"@seafile/seafile-editor": "0.3.132",
"@seafile/slate-react": "0.54.13",

View File

@@ -3,6 +3,8 @@
"Italic": "Italic",
"Underline": "Underline",
"Strikethrough": "Strikethrough",
"Superscript": "Superscript",
"Subscript": "Subscript",
"Inline_code": "Code",
"Header_one": "Heading 1",
"Header_two": "Heading 2",

View File

@@ -3,6 +3,8 @@
"Italic": "斜体",
"Underline": "下划线",
"Strikethrough": "中划线",
"Superscript": "上标",
"Subscript": "下标",
"Inline_code": "代码",
"Header_one": "一级标题",
"Header_two": "二级标题",

View File

@@ -1,11 +1,11 @@
@font-face {
font-family: "sdocfont"; /* Project id 4097705 */
src: url('./sdoc-editor-font/iconfont.eot?t=1688352029576'); /* IE9 */
src: url('./sdoc-editor-font/iconfont.eot?t=1688352029576#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('./sdoc-editor-font/iconfont.woff2?t=1688352029576') format('woff2'),
url('./sdoc-editor-font/iconfont.woff?t=1688352029576') format('woff'),
url('./sdoc-editor-font/iconfont.ttf?t=1688352029576') format('truetype'),
url('./sdoc-editor-font/iconfont.svg?t=1688352029576#sdocfont') format('svg');
src: url('./sdoc-editor-font/iconfont.eot?t=1689301494065'); /* IE9 */
src: url('./sdoc-editor-font/iconfont.eot?t=1689301494065#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('./sdoc-editor-font/iconfont.woff2?t=1689301494065') format('woff2'),
url('./sdoc-editor-font/iconfont.woff?t=1689301494065') format('woff'),
url('./sdoc-editor-font/iconfont.ttf?t=1689301494065') format('truetype'),
url('./sdoc-editor-font/iconfont.svg?t=1689301494065#sdocfont') format('svg');
}
.sdocfont {
@@ -16,6 +16,18 @@
-moz-osx-font-smoothing: grayscale;
}
.sdoc-superscript:before {
content: "\e638";
}
.sdoc-subscript:before {
content: "\e639";
}
.sdoc-revise:before {
content: "\e63f";
}
.sdoc-caret-up:before {
content: "\e636";
}
@@ -48,14 +60,6 @@
content: "\e62f";
}
.sdoc-superscripts:before {
content: "\e638";
}
.sdoc-subscripts:before {
content: "\e639";
}
.sdoc-delete-table:before {
content: "\e637";
}

View File

@@ -14,6 +14,12 @@
/>
<missing-glyph />
<glyph glyph-name="sdoc-superscript" unicode="&#58936;" d="M659.62016 812.8c22.4 22.4 57.6 25.6 83.2 6.4l6.4-6.4 3.2-3.2c22.4-22.4 25.6-57.6 9.6-83.2l-6.4-6.4L474.02016 384l281.6-336c22.4-25.6 22.4-67.2-3.2-92.8l-3.2-3.2c-12.8-9.6-28.8-16-44.8-16-16 0-32 6.4-44.8 19.2l-3.2 3.2L384.42016 281.6 112.42016-44.8l-3.2-3.2c-22.4-22.4-57.6-25.6-80-6.4l-6.4 6.4-3.2 3.2c-22.4 22.4-25.6 57.6-9.6 83.2l6.4 6.4L298.02016 384 16.42016 720c-22.4 25.6-22.4 67.2 3.2 92.8l3.2 3.2c12.8 9.6 28.8 16 44.8 16s32-6.4 44.8-19.2l3.2-3.2 272-320 272 323.2z m259.2 19.2c28.8 0 54.4-9.6 73.6-25.6 22.4-19.2 32-41.6 32-70.4 0-28.8-9.6-51.2-32-73.6-9.6-12.8-28.8-25.6-54.4-41.6l-9.6-9.6c-32-22.4-51.2-38.4-57.6-54.4H1024.42016V512h-217.6c0 32 9.6 60.8 32 83.2 9.6 12.8 28.8 28.8 57.6 51.2l12.8 9.6c19.2 12.8 35.2 25.6 41.6 35.2 12.8 16 19.2 32 19.2 51.2 0 16-6.4 28.8-12.8 38.4-9.6 9.6-22.4 12.8-41.6 12.8-19.2 0-35.2-6.4-44.8-19.2-9.6-12.8-16-32-16-54.4h-51.2c0 35.2 9.6 64 32 86.4 22.4 12.8 51.2 25.6 83.2 25.6z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-subscript" unicode="&#58937;" d="M659.62016 812.8c22.4 22.4 57.6 25.6 83.2 6.4l6.4-6.4 3.2-3.2c22.4-22.4 25.6-57.6 9.6-83.2l-6.4-6.4L474.02016 384l281.6-336c22.4-25.6 22.4-67.2-3.2-92.8l-3.2-3.2c-12.8-9.6-28.8-16-44.8-16-16 0-32 6.4-44.8 19.2l-3.2 3.2L384.42016 281.6 112.42016-44.8l-3.2-3.2c-22.4-22.4-57.6-25.6-80-6.4l-6.4 6.4-3.2 3.2c-22.4 22.4-25.6 57.6-9.6 83.2l6.4 6.4L298.02016 384 16.42016 720c-22.4 25.6-22.4 67.2 3.2 92.8l3.2 3.2c12.8 9.6 28.8 16 44.8 16s32-6.4 44.8-19.2l3.2-3.2 272-320 272 323.2zM918.82016 288c28.8 0 54.4-9.6 73.6-25.6 19.2-16 28.8-38.4 28.8-67.2 0-28.8-9.6-51.2-32-73.6-9.6-12.8-28.8-25.6-54.4-41.6l-6.4-12.8c-32-22.4-51.2-38.4-57.6-54.4H1024.42016V-32h-217.6c0 32 9.6 60.8 32 83.2 9.6 12.8 28.8 28.8 60.8 48l12.8 9.6c19.2 12.8 35.2 25.6 41.6 35.2 12.8 16 19.2 32 19.2 51.2 0 16-6.4 28.8-12.8 38.4-9.6 9.6-22.4 12.8-41.6 12.8-19.2 0-35.2-6.4-44.8-19.2-9.6-12.8-16-32-16-54.4h-51.2c0 35.2 9.6 64 32 86.4 19.2 16 48 28.8 80 28.8z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-revise" unicode="&#58943;" d="M812.8-28.8c0-9.6-3.2-19.2-9.6-25.6-6.4-6.4-16-9.6-25.6-9.6h-275.2c-9.6 0-19.2 3.2-25.6 9.6-6.4 6.4-9.6 16-9.6 25.6v19.2c0 9.6 3.2 19.2 9.6 25.6 6.4 6.4 16 9.6 25.6 9.6h272c19.2 0 35.2-16 35.2-35.2l3.2-19.2z m-432 70.4c-67.2-38.4-115.2-64-169.6-92.8-38.4-12.8-70.4-25.6-96 0-25.6 25.6-16 64-3.2 102.4 25.6 60.8 54.4 121.6 86.4 179.2L633.6 691.2l182.4-192-435.2-457.6zM921.6 608l-38.4-41.6-182.4 192L736 803.2c35.2 38.4 96 41.6 134.4 6.4l6.4-6.4L928 748.8c41.6-41.6 38.4-92.8-6.4-140.8z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-caret-up" unicode="&#58934;" d="M550.4 588.8l265.6-336c32-38.4 6.4-102.4-38.4-102.4H246.4c-44.8 0-70.4 60.8-38.4 102.4l265.6 336c19.2 25.6 57.6 25.6 76.8 0z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-starred" unicode="&#58941;" d="M995.2 412.8c54.4 54.4 25.6 153.6-51.2 163.2l-192 28.8c-28.8 3.2-57.6 25.6-70.4 54.4l-86.4 182.4C579.2 876.8 544 896 512 896s-67.2-19.2-83.2-54.4l-86.4-182.4c-12.8-28.8-38.4-48-70.4-51.2l-192-28.8C3.2 566.4-25.6 470.4 28.8 416l140.8-140.8c22.4-22.4 32-54.4 25.6-86.4l-32-201.6c-9.6-64 38.4-112 92.8-112 12.8 0 28.8 3.2 41.6 12.8l172.8 96c12.8 6.4 28.8 9.6 41.6 9.6 16 0 28.8-3.2 41.6-9.6l172.8-96c12.8-6.4 28.8-12.8 41.6-12.8 54.4 0 102.4 51.2 92.8 112l-32 201.6c-6.4 32 3.2 64 25.6 86.4l140.8 137.6z" horiz-adv-x="1024" />
@@ -30,10 +36,6 @@
<glyph glyph-name="sdoc-align-left" unicode="&#58927;" d="M630.4 771.2v-73.6c0-16-12.8-28.8-28.8-28.8H124.8c-16 0-28.8 12.8-28.8 28.8V771.2c0 16 12.8 28.8 28.8 28.8h476.8c16 0 28.8-12.8 28.8-28.8zM96 537.6v-73.6c0-16 12.8-28.8 28.8-28.8H896c16 0 28.8 12.8 28.8 28.8v73.6c0 16-12.8 28.8-28.8 28.8H124.8c-16 0-28.8-12.8-28.8-28.8zM124.8-32H896c16 0 28.8 12.8 28.8 28.8v73.6c0 16-12.8 28.8-28.8 28.8H124.8c-16 0-28.8-12.8-28.8-28.8v-73.6c0-16 12.8-28.8 28.8-28.8z m476.8 364.8H124.8c-16 0-28.8-12.8-28.8-28.8v-73.6c0-16 12.8-28.8 28.8-28.8h476.8c16 0 28.8 12.8 28.8 28.8v73.6c0 16-12.8 28.8-28.8 28.8z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-superscripts" unicode="&#58936;" d="M659.62016 812.8c22.4 22.4 57.6 25.6 83.2 6.4l6.4-6.4 3.2-3.2c22.4-22.4 25.6-57.6 9.6-83.2l-6.4-6.4L474.02016 384l281.6-336c22.4-25.6 22.4-67.2-3.2-92.8l-3.2-3.2c-12.8-9.6-28.8-16-44.8-16-16 0-32 6.4-44.8 19.2l-3.2 3.2L384.42016 281.6 112.42016-44.8l-3.2-3.2c-22.4-22.4-57.6-25.6-80-6.4l-6.4 6.4-3.2 3.2c-22.4 22.4-25.6 57.6-9.6 83.2l6.4 6.4L298.02016 384 16.42016 720c-22.4 25.6-22.4 67.2 3.2 92.8l3.2 3.2c12.8 9.6 28.8 16 44.8 16s32-6.4 44.8-19.2l3.2-3.2 272-320 272 323.2z m259.2 19.2c28.8 0 54.4-9.6 73.6-25.6 22.4-19.2 32-41.6 32-70.4 0-28.8-9.6-51.2-32-73.6-9.6-12.8-28.8-25.6-54.4-41.6l-9.6-9.6c-32-22.4-51.2-38.4-57.6-54.4H1024.42016V512h-217.6c0 32 9.6 60.8 32 83.2 9.6 12.8 28.8 28.8 57.6 51.2l12.8 9.6c19.2 12.8 35.2 25.6 41.6 35.2 12.8 16 19.2 32 19.2 51.2 0 16-6.4 28.8-12.8 38.4-9.6 9.6-22.4 12.8-41.6 12.8-19.2 0-35.2-6.4-44.8-19.2-9.6-12.8-16-32-16-54.4h-51.2c0 35.2 9.6 64 32 86.4 22.4 12.8 51.2 25.6 83.2 25.6z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-subscripts" unicode="&#58937;" d="M659.62016 812.8c22.4 22.4 57.6 25.6 83.2 6.4l6.4-6.4 3.2-3.2c22.4-22.4 25.6-57.6 9.6-83.2l-6.4-6.4L474.02016 384l281.6-336c22.4-25.6 22.4-67.2-3.2-92.8l-3.2-3.2c-12.8-9.6-28.8-16-44.8-16-16 0-32 6.4-44.8 19.2l-3.2 3.2L384.42016 281.6 112.42016-44.8l-3.2-3.2c-22.4-22.4-57.6-25.6-80-6.4l-6.4 6.4-3.2 3.2c-22.4 22.4-25.6 57.6-9.6 83.2l6.4 6.4L298.02016 384 16.42016 720c-22.4 25.6-22.4 67.2 3.2 92.8l3.2 3.2c12.8 9.6 28.8 16 44.8 16s32-6.4 44.8-19.2l3.2-3.2 272-320 272 323.2zM918.82016 288c28.8 0 54.4-9.6 73.6-25.6 19.2-16 28.8-38.4 28.8-67.2 0-28.8-9.6-51.2-32-73.6-9.6-12.8-28.8-25.6-54.4-41.6l-6.4-12.8c-32-22.4-51.2-38.4-57.6-54.4H1024.42016V-32h-217.6c0 32 9.6 60.8 32 83.2 9.6 12.8 28.8 28.8 60.8 48l12.8 9.6c19.2 12.8 35.2 25.6 41.6 35.2 12.8 16 19.2 32 19.2 51.2 0 16-6.4 28.8-12.8 38.4-9.6 9.6-22.4 12.8-41.6 12.8-19.2 0-35.2-6.4-44.8-19.2-9.6-12.8-16-32-16-54.4h-51.2c0 35.2 9.6 64 32 86.4 19.2 16 48 28.8 80 28.8z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-delete-table" unicode="&#58935;" d="M800 352c124.8 0 224-102.4 224-220.8S921.6-96 800-96s-224 102.4-224 220.8 99.2 227.2 224 227.2z m128 448c35.2 0 60.8-25.6 64-60.8v-396.8c-35.2 32-80 54.4-128 67.2V544h-288v-160h92.8C576 336 512 240 512 128c0-60.8 19.2-115.2 48-160H96c-35.2 0-60.8 25.6-64 60.8V736c0 35.2 25.6 60.8 60.8 64H928z m-38.4-640h-176c-25.6 0-38.4-12.8-38.4-32 0-12.8 19.2-32 38.4-32h176c25.6 0 38.4 12.8 38.4 32 0 12.8-16 32-38.4 32zM448 256H160v-160h288v160z m0 288H160v-160h288v160z" horiz-adv-x="1024" />
<glyph glyph-name="sdoc-align-right" unicode="&#58928;" d="M393.6 697.6V771.2c0 16 12.8 28.8 28.8 28.8h476.8c16 0 28.8-12.8 28.8-28.8v-73.6c0-16-12.8-28.8-28.8-28.8H422.4c-16 0-28.8 12.8-28.8 28.8z m-268.8-262.4H896c16 0 28.8 12.8 28.8 28.8v73.6c0 16-12.8 28.8-28.8 28.8H124.8c-16 0-28.8-12.8-28.8-28.8v-73.6c0-16 12.8-28.8 28.8-28.8z m0-467.2H896c16 0 28.8 12.8 28.8 28.8v73.6c0 16-12.8 28.8-28.8 28.8H124.8c-16 0-28.8-12.8-28.8-28.8v-73.6c0-16 12.8-28.8 28.8-28.8z m297.6 233.6h476.8c16 0 28.8 12.8 28.8 28.8v73.6c0 16-12.8 28.8-28.8 28.8H422.4c-16 0-28.8-12.8-28.8-28.8v-73.6c0-16 12.8-28.8 28.8-28.8z" horiz-adv-x="1024" />

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB