@seafile/seafile-editor 0.3.10 → 0.3.12-1.bate

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/README.md +42 -102
  2. package/dist/assets/css/comment-dialog.css +50 -0
  3. package/dist/{css → assets/css}/diff-viewer.css +1 -1
  4. package/dist/assets/css/formula.css +19 -0
  5. package/dist/{css → assets/css}/history-viewer.css +0 -0
  6. package/dist/{css/richeditor → assets/css}/image.css +41 -35
  7. package/dist/assets/css/issue-card.css +43 -0
  8. package/dist/assets/css/keyboard-shortcuts.css +58 -0
  9. package/dist/{css/richeditor → assets/css}/link.css +1 -1
  10. package/dist/{css/plaineditor → assets/css}/markdown-editor.css +0 -0
  11. package/dist/{css → assets/css}/markdown-viewer.css +1 -1
  12. package/dist/{css/richeditor → assets/css}/navbar-imgbutton.css +14 -18
  13. package/dist/assets/css/outline.css +29 -0
  14. package/dist/{css/richeditor → assets/css}/table.css +1 -1
  15. package/dist/{css/richeditor → assets/css}/textlink-hovermenu.css +7 -4
  16. package/dist/{css → assets/css}/topbar.css +98 -135
  17. package/dist/{css/richeditor → assets/css}/tree-view.css +1 -1
  18. package/dist/{css/richeditor/right-panel.css → assets/css/user-help.css} +10 -10
  19. package/dist/assets/editor/plain-editor.css +30 -0
  20. package/dist/assets/editor/seatable-editor.css +77 -0
  21. package/dist/assets/editor/simple-editor.css +77 -0
  22. package/dist/components/add-formula-dialog.js +115 -0
  23. package/dist/components/add-image-dialog.js +23 -30
  24. package/dist/components/add-link-dialog.js +32 -39
  25. package/dist/components/click-outside.js +46 -0
  26. package/dist/components/comment-dialog.js +97 -0
  27. package/dist/components/context-menu.js +15 -31
  28. package/dist/components/error-boundary.js +28 -0
  29. package/dist/components/loading.js +9 -15
  30. package/dist/components/markdown-lint.js +72 -0
  31. package/dist/components/menu/index.js +4 -0
  32. package/dist/components/menu/item.js +49 -0
  33. package/dist/components/menu/menu.js +38 -0
  34. package/dist/components/menu/style.css +42 -0
  35. package/dist/components/modal-portal.js +4 -13
  36. package/dist/components/outline/index.js +92 -0
  37. package/dist/components/outline/outline-item.js +58 -0
  38. package/dist/components/select/_option.js +44 -0
  39. package/dist/components/select/field-setting.js +106 -0
  40. package/dist/components/select/index.js +149 -0
  41. package/dist/components/select/style.css +144 -0
  42. package/dist/components/shortcut-dialog.js +131 -0
  43. package/dist/components/svg-icons/check-mark-icon.js +14 -0
  44. package/dist/components/svg-icons/column-icon.js +17 -0
  45. package/dist/components/svg-icons/text-icon.js +34 -0
  46. package/dist/components/toast/alert.js +16 -29
  47. package/dist/components/toast/toast.js +9 -32
  48. package/dist/components/toast/toastManager.js +16 -49
  49. package/dist/components/toast/toaster.js +12 -22
  50. package/dist/components/{topbar-component → toolbar}/header-list.js +18 -33
  51. package/dist/components/toolbar/help-group.js +33 -0
  52. package/dist/components/toolbar/index.js +4 -0
  53. package/dist/components/{topbar-component/upload-img.js → toolbar/insert-image.js} +41 -57
  54. package/dist/components/toolbar/insert-table.js +132 -0
  55. package/dist/components/toolbar/table-group.js +74 -0
  56. package/dist/components/toolbar/toolbar.js +279 -0
  57. package/dist/components/{topbar-component → toolbar/widgets}/button-group.js +5 -13
  58. package/dist/components/toolbar/widgets/button-item.js +129 -0
  59. package/dist/components/toolbar/widgets/drop-list.js +88 -0
  60. package/dist/components/user-help.js +179 -0
  61. package/dist/constants/cell-types.js +29 -0
  62. package/dist/constants/column.js +4 -0
  63. package/dist/editor/code-highlight-package.js +0 -13
  64. package/dist/editor/controller/block-element-controller.js +140 -91
  65. package/dist/editor/controller/inline-element-controller.js +35 -21
  66. package/dist/editor/controller/normalize-controller.js +45 -34
  67. package/dist/editor/controller/shortcut-controller.js +178 -95
  68. package/dist/editor/controller/void-element-controller.js +2 -4
  69. package/dist/editor/custom/custom.js +7 -4
  70. package/dist/editor/custom/get-event-transfer.js +7 -5
  71. package/dist/editor/custom/getNodesByTypeAtRange.js +18 -47
  72. package/dist/editor/custom/insertNodes.js +21 -48
  73. package/dist/editor/custom/is-empty-paragraph.js +9 -0
  74. package/dist/editor/custom/set-event-transfer.js +20 -4
  75. package/dist/editor/custom/split-nodes-at-point.js +110 -146
  76. package/dist/editor/custom/unwrap-node-by-type-at-range.js +20 -36
  77. package/dist/editor/editor-builder.js +105 -0
  78. package/dist/editor/editor-component/check-list-item.js +11 -25
  79. package/dist/editor/editor-component/code-block.js +52 -49
  80. package/dist/editor/editor-component/column.js +100 -0
  81. package/dist/editor/editor-component/formula.js +67 -0
  82. package/dist/editor/editor-component/image.js +112 -91
  83. package/dist/editor/editor-component/link.js +2 -6
  84. package/dist/editor/editor-component/table.js +20 -49
  85. package/dist/editor/{textlink-hovermenu.js → editor-component/textlink-hovermenu.js} +27 -41
  86. package/dist/editor/editor-plugin.js +130 -64
  87. package/dist/editor/editor-utils/block-element-utils/blockquote-utils.js +23 -26
  88. package/dist/editor/editor-utils/block-element-utils/code-utils.js +12 -37
  89. package/dist/editor/editor-utils/block-element-utils/formula-utils.js +51 -0
  90. package/dist/editor/editor-utils/block-element-utils/index.js +9 -16
  91. package/dist/editor/editor-utils/block-element-utils/list-utils.js +239 -231
  92. package/dist/editor/editor-utils/block-element-utils/table-utils.js +87 -93
  93. package/dist/editor/editor-utils/clear-format-utils.js +84 -0
  94. package/dist/editor/editor-utils/common-editor-utils.js +112 -155
  95. package/dist/editor/editor-utils/inline-element-utils/index.js +29 -31
  96. package/dist/editor/editor-utils/mark-utils.js +3 -8
  97. package/dist/editor/editor-utils/range-utils.js +0 -2
  98. package/dist/editor/editor-utils/selection-utils.js +30 -0
  99. package/dist/editor/editor-utils/text-utils.js +17 -27
  100. package/dist/editor/editor.js +27 -2
  101. package/dist/editor/element-model/blockquote.js +3 -6
  102. package/dist/editor/element-model/column.js +19 -0
  103. package/dist/editor/element-model/image.js +3 -6
  104. package/dist/editor/element-model/link.js +3 -6
  105. package/dist/editor/element-model/table.js +28 -21
  106. package/dist/editor/element-model/text.js +3 -6
  107. package/dist/editor/index.js +79 -0
  108. package/dist/editor/load-script.js +70 -0
  109. package/dist/editor/markdown-editor.js +281 -0
  110. package/dist/editor/plain-markdown-editor.js +25 -69
  111. package/dist/editor/seatable-editor.js +208 -0
  112. package/dist/editor/simple-editor.js +105 -100
  113. package/dist/index.js +11 -0
  114. package/dist/lib/slate-hyperscript/creators.js +243 -0
  115. package/dist/lib/slate-hyperscript/hyperscript.js +78 -0
  116. package/dist/lib/slate-hyperscript/index.js +3 -0
  117. package/dist/lib/slate-hyperscript/tokens.js +99 -0
  118. package/dist/lib/unified/index.js +29 -101
  119. package/dist/lib/vfile/core.js +13 -31
  120. package/dist/lib/vfile/index.js +4 -10
  121. package/dist/utils/copy-to-clipboard.js +4 -12
  122. package/dist/utils/deserialize-html.js +83 -49
  123. package/dist/utils/diff/compare-strings.js +0 -9
  124. package/dist/utils/diff/diff.js +59 -178
  125. package/dist/utils/render-slate.js +78 -93
  126. package/dist/utils/seafile-markdown2html.js +24 -21
  127. package/dist/utils/slate2markdown/deserialize.js +133 -189
  128. package/dist/utils/slate2markdown/serialize.js +58 -132
  129. package/dist/utils/utils.js +52 -2
  130. package/dist/viewer/diff-viewer.js +15 -26
  131. package/dist/viewer/markdown-viewer.js +32 -31
  132. package/dist/viewer/seatable-viewer.js +63 -0
  133. package/dist/viewer/slate-viewer.js +69 -43
  134. package/dist/viewer/viewer-formula.js +54 -0
  135. package/dist/viewer/viewer-image.css +7 -0
  136. package/dist/viewer/viewer-image.js +46 -20
  137. package/dist/viewer/viewer-outline.js +17 -56
  138. package/package.json +49 -57
  139. package/public/index.html +0 -4
  140. package/public/locales/en/seafile-editor.json +13 -1
  141. package/public/locales/zh-CN/seafile-editor.json +23 -12
  142. package/public/media/scripts/mathjax/tex-svg.js +1 -0
  143. package/public/media/seafile-editor-font/iconfont.eot +0 -0
  144. package/public/media/seafile-editor-font/iconfont.svg +119 -51
  145. package/public/media/seafile-editor-font/iconfont.ttf +0 -0
  146. package/public/media/seafile-editor-font/iconfont.woff +0 -0
  147. package/public/media/seafile-editor-font/iconfont.woff2 +0 -0
  148. package/public/media/seafile-editor-font.css +221 -51
  149. package/public/media/seafile-ui.css +1 -1
  150. package/dist/components/outline.js +0 -128
  151. package/dist/components/related-files-list.js +0 -75
  152. package/dist/components/toolbar.js +0 -201
  153. package/dist/components/topbar-component/icon-button.js +0 -94
  154. package/dist/components/topbar-component/insert-file.js +0 -68
  155. package/dist/components/topbar-component/table-toolbar.js +0 -176
  156. package/dist/css/layout.css +0 -89
  157. package/dist/css/markdown-viewer-slate/file-tags-list.css +0 -76
  158. package/dist/css/react-mentions-default-style.js +0 -72
  159. package/dist/css/related-files-list.css +0 -56
  160. package/dist/css/richeditor/comments-list.css +0 -183
  161. package/dist/css/richeditor/detail-list-view.css +0 -114
  162. package/dist/css/richeditor/document-info.css +0 -57
  163. package/dist/css/richeditor/participants-list.css +0 -22
  164. package/dist/css/richeditor/rich-editor-main.css +0 -42
  165. package/dist/css/richeditor/side-panel.css +0 -186
  166. package/dist/editor/seafile-editor.js +0 -328
  167. package/dist/editor-api.js +0 -273
  168. package/dist/index.css +0 -97
  169. package/dist/seafile-editor-chooser.js +0 -42
  170. package/dist/seafile-markdown-editor.js +0 -323
  171. package/dist/seafile-markdown-viewer.js +0 -96
  172. package/dist/seafile-simple-editor.js +0 -76
  173. package/public/media/font-awesome/fa-regular-400.eot +0 -0
  174. package/public/media/font-awesome/fa-regular-400.svg +0 -803
  175. package/public/media/font-awesome/fa-regular-400.ttf +0 -0
  176. package/public/media/font-awesome/fa-regular-400.woff +0 -0
  177. package/public/media/font-awesome/fa-regular-400.woff2 +0 -0
  178. package/public/media/font-awesome/fa-solid-900.eot +0 -0
  179. package/public/media/font-awesome/fa-solid-900.svg +0 -4527
  180. package/public/media/font-awesome/fa-solid-900.ttf +0 -0
  181. package/public/media/font-awesome/fa-solid-900.woff +0 -0
  182. package/public/media/font-awesome/fa-solid-900.woff2 +0 -0
  183. package/public/media/fontawesome-all.min.css +0 -5
package/README.md CHANGED
@@ -1,111 +1,51 @@
1
- This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
1
+ # Seafile-editor
2
2
 
3
- ## Folder Structure
3
+ 项目是基于 react-slate 组件库的二次封装, 用于满足公司富文本编辑器的使用需求
4
4
 
5
- After creation, your project should look like this:
5
+ ## 目录结构
6
6
 
7
7
  ```
8
8
  seafile-editor/
9
- README.md
10
- node_modules/
11
- package.json
12
- public/
13
- index.html
9
+ dist // 打包后的文件
10
+ node_modules/ // 依赖第三方组件库
11
+ public/ // 公共资源文件库
12
+ index.html
14
13
  favicon.ico
15
- src/
16
- App.css
17
- App.js
18
- App.test.js
19
- index.css
20
- index.js
21
- logo.svg
22
- ```
23
-
24
- For the project to build, **these files must exist with exact filenames**:
25
-
26
- * `public/index.html` is the page template;
27
- * `src/index.js` is the JavaScript entry point.
28
-
29
- You can delete or rename the other files.
30
-
31
- You may create subdirectories inside `src`. For faster rebuilds, only files inside `src` are processed by Webpack.<br>
32
- You need to **put any JS and CSS files inside `src`**, otherwise Webpack won’t see them.
33
-
34
- Only files inside `public` can be used from `public/index.html`.<br>
35
- Read instructions below for using assets from JavaScript and HTML.
36
-
37
- You can, however, create more top-level directories.<br>
38
- They will not be included in the production build so you can use them for things like documentation.
39
-
40
- ## Quick Start
41
-
42
- Install dependency
43
-
44
- ```
45
- npm install
46
- ```
47
-
48
- create `src/config.js` with the following contents
49
-
50
- ```
51
- const serverConfig = {
52
- serviceUrl: "https://download.seafile.top",
53
- username: "xxx",
54
- password: "xxx",
55
- repoID: "xxxxxxx-xxxx-xxx-xxx-xxxx"
56
- }
57
-
58
- export { serverConfig }
59
- ```
60
-
61
- Make sure you have a file `test.md` in the root of your Seafile library.
62
-
63
- Start the example application
64
-
65
- ```
66
- npm start
14
+ site(demo 模块, 基于组件库创建的测试模块)
15
+ _i18n // 国际化模块
16
+ api // api 模块
17
+ assets // css 文件, 图片文件
18
+ commons // 公共组件
19
+ components // 应用组件
20
+ containers // 容器组件
21
+ pages // 页面组件
22
+ app.js // 应用对象
23
+ index.html // 主页
24
+ index.js // 应用入口
25
+ setting.js // 应用配置文件
26
+ setting.local.dist.js // 应用配置模版
27
+ setting.local.dist // 用户基于 setting.local.dist.js copy 一份的配置文件
28
+ src/(组件库)
29
+ assets // css 文件, 资源文件
30
+ components // 封装的视图组件
31
+ editor // 封装的编辑器组件
32
+ lib // 底层接口
33
+ utils // 工具接口
34
+ viewer // 封装的视图组件
35
+ index.js // 组件库导出内容入口文件
36
+ tests // 测试
37
+ webpack // site 打包文件
38
+ config.js // site 打包配置文件
39
+ dev-server.js // site 后端服务器
40
+ package.json
41
+ readme.md // 组件库说明文档
67
42
  ```
68
43
 
44
+ ## 本地测试步骤
45
+ 1. 新增本地配置文件 setting.local.js(基于 /site/setting.local.dist.js copy 一份)
46
+ 2. 在 seahub 项目创建一个测试文件, 根据需要的配置信息完善配置内容
47
+ 3. 执行 npm run start, 启动测试服务, 可以打开相应的网址, 对封装的组件进行测试
69
48
 
70
- ## Available Scripts
71
-
72
- In the project directory, you can run:
73
-
74
- ### `npm start`
75
-
76
- Runs the app in the development mode.<br>
77
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
78
-
79
- The page will reload if you make edits.<br>
80
- You will also see any lint errors in the console.
81
-
82
- ### `npm test`
83
-
84
- Launches the test runner in the interactive watch mode.<br>
85
- See the section about [running tests](#running-tests) for more information.
86
-
87
- ### `npm run build`
88
-
89
- Builds the app for production to the `build` folder.<br>
90
- It correctly bundles React in production mode and optimizes the build for the best performance.
91
-
92
- The build is minified and the filenames include the hashes.<br>
93
- Your app is ready to be deployed!
94
-
95
- See the section about [deployment](#deployment) for more information.
96
-
97
- ### `npm run eject`
98
-
99
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
100
-
101
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
102
-
103
- Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
104
-
105
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
106
-
107
- ### `npm run prepublish`
108
-
109
- Run this command before publish to npm registry. And increase verison number in `package.json`.
110
-
111
- Publish project by `npm publish` and view at [package page](https://www.npmjs.com/package/@seafile/seafile-editor).
49
+ ## 新版本发布
50
+ 1. 更新 package.json 中的 version 属性
51
+ 2. 执行 npm publish 完成新版本发布
@@ -0,0 +1,50 @@
1
+ .seafile-editor-comment.comment-dialog {
2
+ width: 500px;
3
+ position: absolute;
4
+ top: 30%;
5
+ right: 0;
6
+ padding: 15px;
7
+ background-color: #fafafa;
8
+ border: 1px solid rgba(0,0,0,.2);
9
+ border-radius: .3rem;
10
+ box-shadow: 0 0 3px #ccc;
11
+ z-index: 1000;
12
+ }
13
+
14
+ .seafile-editor-comment.comment-dialog .comment-dialog-triangle {
15
+ position: absolute;
16
+ left: -5px;
17
+ top: 50%;
18
+ transform: rotate(45deg);
19
+ border: 1px solid rgba(0,0,0,.2);
20
+ border-top: none;
21
+ border-right: none;
22
+ width: 10px;
23
+ height: 10px;
24
+ background-color: #fafafa;
25
+ box-shadow: -1px 1px #ccc;
26
+ }
27
+
28
+ .seafile-editor-comment.comment-dialog textarea {
29
+ width: 100%;
30
+ min-height: 100px;
31
+ max-height: 300px;
32
+ padding: 5px;
33
+ background-color: #fff;
34
+ }
35
+
36
+ .seafile-editor-comment.comment-dialog .button-group .btn {
37
+ margin-right: 10px;
38
+ }
39
+
40
+ .seafile-editor-comment.comment-dialog .comment-dialog-quote {
41
+ margin-top: 10px;
42
+ max-height: 6rem;
43
+ overflow: auto;
44
+ padding-left: 1rem;
45
+ }
46
+
47
+ .seafile-editor-comment.comment-dialog .comment-dialog-quote ul,
48
+ .seafile-editor-comment.comment-dialog .comment-dialog-quote ol {
49
+ padding-left: 1rem;
50
+ }
@@ -102,4 +102,4 @@
102
102
  .article .diff-replaced .new-paragraph {
103
103
  background-color: #e6ffed;
104
104
  margin-top: 0;
105
- }
105
+ }
@@ -0,0 +1,19 @@
1
+ .seafile-editor-module .selected-formula {
2
+ outline: 2px solid #007bff;
3
+ }
4
+
5
+ .seafile-editor-module .block-formula {
6
+ display: block;
7
+ user-select: none;
8
+ }
9
+
10
+ .seafile-editor-module .MathJax {
11
+ margin: 0;
12
+ }
13
+
14
+ .formula-preview {
15
+ padding: 10px;
16
+ border: 2px dashed #ebebeb;
17
+ min-height: 40px;
18
+ overflow-x: auto;
19
+ }
File without changes
@@ -1,12 +1,13 @@
1
1
  .seafile-ed-image {
2
2
  position: relative;
3
3
  display: inline-block;
4
- user-select: none;
5
4
  max-width: 100%;
6
5
  }
6
+
7
7
  .seafile-ed-image .seafile-ed-image-inResizing {
8
8
  box-shadow: 0 0 0 2px #007bff;
9
9
  }
10
+
10
11
  .seafile-ed-image .image-resizer {
11
12
  width: 10px;
12
13
  height: 10px;
@@ -18,6 +19,7 @@
18
19
  border: 1px solid #fff;
19
20
  cursor: se-resize;
20
21
  }
22
+
21
23
  .image-size {
22
24
  display: inline-block;
23
25
  padding: 5px;
@@ -33,7 +35,7 @@
33
35
  font-size: 12px;
34
36
  }
35
37
 
36
- .image-full-button {
38
+ .seafile-ed-image .image-full-button {
37
39
  position: absolute;
38
40
  height: 26px;
39
41
  display: inline-block;
@@ -47,6 +49,21 @@
47
49
  border-radius: 3px;
48
50
  border: 1px solid rgba(0, 40, 100, 0.12);
49
51
  background-color: #fff;
52
+ user-select: none!important;
53
+ z-index: 1000;
54
+ }
55
+
56
+ .seafile-ed-image-viwer:hover .image-full-button {
57
+ display: inline-block;
58
+ }
59
+
60
+ .seafile-ed-image-viwer .image-full-button {
61
+ position: absolute;
62
+ top: 5px;
63
+ right: 5px;
64
+ display: none;
65
+ background-color: #efefef;
66
+ cursor: pointer;
50
67
  }
51
68
 
52
69
  .image-full-button:hover{
@@ -80,49 +97,38 @@
80
97
  border-color:#fff transparent transparent #fff;
81
98
  }
82
99
 
83
-
84
100
  .image-full-button:hover .image-tooltip {
85
101
  display: inline;
86
102
  }
87
103
 
88
- .big-image-cover {
89
- position: fixed;
90
- top: 0;
91
- bottom: 0;
92
- right: 0;
93
- left: 0;
94
- background-color: rgba(0, 0, 0, 0.5);
95
- z-index: 1004;
96
- text-align: center;
104
+ /* set button font style in image previewer */
105
+ .sf-editor-image-previewer button.dtable-icon-fork-number,
106
+ .sf-editor-image-previewer .dtable-icon-right,
107
+ .sf-editor-image-previewer .dtable-icon-left {
108
+ font-family: "iconfont" !important;
109
+ font-style: normal;
110
+ -webkit-font-smoothing: antialiased;
111
+ -moz-osx-font-smoothing: grayscale;
97
112
  }
98
113
 
99
- .big-image-container {
100
- position: absolute;
101
- width: 100%;
102
- top: 50px;
103
- bottom: 0;
104
- overflow-y: auto;
105
- padding: 0 30px 10px 30px;
114
+ .sf-editor-image-previewer button.dtable-icon-fork-number {
115
+ font-size: 16px;
116
+ line-height: normal;
106
117
  }
107
118
 
108
- .big-image-cover .image-container-close {
109
- position: absolute;
110
- top: 20px;
111
- right: 20px;
112
- border-radius: 50%;
113
- height: 20px;
114
- width: 20px;
115
- z-index: 10000;
116
- font-size: 20px;
117
- color: hsla(0,0%,100%,.6);
118
- line-height: 26px;
119
- text-align: center;
119
+ .sf-editor-image-previewer .dtable-icon-left:before {
120
+ content: "\e756";
120
121
  }
121
122
 
122
- .image-container-close:hover {
123
- color: #fff;
123
+ .sf-editor-image-previewer .dtable-icon-right:before {
124
+ content: "\e755";
124
125
  }
125
126
 
126
- .big-image-cover img{
127
- max-width: 100%;
127
+ .sf-editor-image-previewer .dtable-icon-fork-number:before {
128
+ content: "\e6ce";
129
+ }
130
+
131
+ .sf-editor-image-previewer.ril__outer .ril__navButtonPrev.dtable-font,
132
+ .sf-editor-image-previewer.ril__outer .ril__navButtonNext.dtable-font {
133
+ padding: 40px 30px 80px;
128
134
  }
@@ -0,0 +1,43 @@
1
+ .issue-container {
2
+ width: 100%;
3
+ padding: 0 10px 10px 10px;
4
+ margin-top: -10px;
5
+ }
6
+
7
+ .issue-card {
8
+ background-color: #fff;
9
+ border: 1px solid rgba(0, 40, 100, 0.12);
10
+ border-radius: 5px;
11
+ padding-left: 5px;
12
+ margin-top: 10px;
13
+ position: relative;
14
+ word-break: break-word;
15
+ box-shadow: 0 5px 5px -2px rgba(200,200,200, 0.5);
16
+ }
17
+
18
+ .issue-card:before {
19
+ position: absolute;
20
+ left: 0;
21
+ top: 0;
22
+ bottom: 0;
23
+ width: 3px;
24
+ content: '';
25
+ background-color: rgb(217, 130, 43);
26
+ border-radius: 3px 0 0 3px;
27
+ }
28
+ .issue-card-title {
29
+ font-size: 16px;
30
+ padding: 5px 10px 3px 10px;
31
+ }
32
+
33
+ .issue-card-description {
34
+ padding: 0 10px 5px 10px;
35
+ color: #aaa;
36
+ }
37
+
38
+ .size-panel-no-content {
39
+ width: 100%;
40
+ text-align: center;
41
+ color: #9a9a9a;
42
+ padding-top: 10px;
43
+ }
@@ -0,0 +1,58 @@
1
+ .keyboard-shortcut-dialog {
2
+ max-width: 500px;
3
+ }
4
+
5
+ .keyboard-shortcut-dialog .modal-body {
6
+ max-height: 390px;
7
+ overflow: auto;
8
+ }
9
+
10
+ .keyboard-shortcut-container {
11
+ line-height: 1.5;
12
+ border-radius: 3px;
13
+ padding-top: .5rem;
14
+ padding-bottom: .5rem;
15
+ box-sizing: border-box;
16
+ display: flex;
17
+ align-items: center;
18
+ margin-top: 3px;
19
+ background-color: rgb(248, 248, 248);
20
+ }
21
+
22
+ .keyboard-shortcut-title {
23
+ font-size: 0.9rem;
24
+ }
25
+
26
+ .keyboard-shortcut-container>div:first-child {
27
+ text-align: right;
28
+ }
29
+
30
+ .keyboard-shortcut-container>div:last-child {
31
+ padding-left: 1rem;
32
+ padding-right: 1rem;
33
+ }
34
+
35
+ .keyboard-shortcut {
36
+ display: inline-block;
37
+ }
38
+
39
+ .keyboard-shortcut kbd {
40
+ font: inherit;
41
+ background-color: hsla(0,0%,100%,0.25);
42
+ border-color: rgba(0,0,0,0.1);
43
+ text-transform: uppercase;
44
+ text-align: center;
45
+ border-radius: 3px;
46
+ color: #333333;
47
+ box-sizing: border-box;
48
+ border-style: solid;
49
+ border-width: 1px;
50
+ display: inline-block;
51
+ border-bottom-width: 2px;
52
+ font-size: 12px;
53
+ margin-left: 1px;
54
+ margin-right: 1px;
55
+ margin-bottom: 0px;
56
+ min-width: 12px;
57
+ padding: 1px 3px;
58
+ }
@@ -4,4 +4,4 @@
4
4
 
5
5
  .article .virtual-link:hover {
6
6
  text-decoration: underline;
7
- }
7
+ }
@@ -66,4 +66,4 @@
66
66
  .seafile-md-viewer-content {
67
67
  padding: 20px;
68
68
  }
69
- }
69
+ }
@@ -22,26 +22,22 @@
22
22
  color: #999999;
23
23
  }
24
24
 
25
- .seafile-ed-dropbtn:hover {
26
- color: #16181b;
27
- text-decoration: none;
28
- background-color: #f8f9fa;
25
+ .editor-btn-group .image-uploader {
26
+ display: none;
29
27
  }
30
- .seafile-ed-dropbtn .seafile-ed-localimgspan {
31
- position: relative;
32
- display: block;
33
- overflow: hidden;
28
+
29
+ .editor-btn-group .image-uploader-label {
30
+ margin-bottom: 0;
31
+ width: 100%;
32
+ padding: 0.25rem 1.5rem;
34
33
  }
35
- .seafile-ed-dropbtn .seafile-ed-localimgspan .seafile-ed-localimginput {
36
- position: absolute;
37
- right: 0;
38
- top: 0;
39
- filter: alpha(opacity=0);
40
- opacity: 0;
34
+
35
+ .editor-btn-group .image-uploader-btn {
36
+ padding: 0;
41
37
  }
42
- .upload-local-image-word {
43
- color: #6e7687;
44
- display: block;
38
+
39
+ .editor-btn-group .editor-clear-format {
40
+ margin-right: 5px;
45
41
  }
46
42
 
47
43
  .insert-file {
@@ -84,4 +80,4 @@
84
80
  .rich-menu .side-panel-btn {
85
81
  display: block;
86
82
  }
87
- }
83
+ }
@@ -0,0 +1,29 @@
1
+ .seafile-editor-outline .outline-h2, .outline-h3 {
2
+ white-space: nowrap;
3
+ overflow: hidden;
4
+ text-overflow: ellipsis;
5
+ }
6
+
7
+ .seafile-editor-outline .outline-h2 {
8
+ margin-left: 20px;
9
+ line-height: 2.5;
10
+ color:#364149;
11
+ white-space: nowrap;
12
+ cursor:pointer;
13
+ }
14
+
15
+ .seafile-editor-outline .outline-h2:hover {
16
+ color: #eb8205;
17
+ }
18
+
19
+ .seafile-editor-outline .outline-h3 {
20
+ margin-left: 40px;
21
+ line-height: 2.5;
22
+ color:#364149;
23
+ white-space: nowrap;
24
+ cursor:pointer;
25
+ }
26
+
27
+ .seafile-editor-outline .outline-h3:hover {
28
+ color: #eb8205;
29
+ }
@@ -54,4 +54,4 @@
54
54
  margin: -1px;
55
55
  border-right: 1px double #ffa94d;
56
56
  z-index: 2;
57
- }
57
+ }
@@ -1,6 +1,7 @@
1
1
  .seafile-ed-hovermenu {
2
2
  width: 250px;
3
3
  height: 40px;
4
+ display: flex;
4
5
  position: absolute;
5
6
  background-color: #fff;
6
7
  border: 1px solid rgba(0, 40, 100, 0.12);
@@ -22,23 +23,25 @@
22
23
  z-index: 1001;
23
24
  }
24
25
  .seafile-ed-hovermenu .seafile-ed-hovermenu-link {
25
- height: 34px;
26
+ height: 38px;
26
27
  max-width: 170px;
27
28
  padding: 6px 12px;
28
29
  display: inline-block;
30
+ line-height: 28px;
29
31
  overflow: hidden;
30
32
  }
31
33
  .seafile-ed-hovermenu .seafile-ed-hovermenu-btn {
32
34
  background-color: #fff;
33
35
  width: 35px;
36
+ font-weight: normal;
37
+ color: #999999;
38
+ line-height: 26px;
39
+ font-size: 16px;
34
40
  }
35
41
  .seafile-ed-hovermenu .seafile-ed-hovermenu-btn, .seafile-ed-hovermenu .seafile-ed-hovermenu-btn:focus {
36
42
  border: 0;
37
43
  box-shadow: 0;
38
44
  }
39
- .seafile-ed-hovermenu .seafile-ed-hovermenu-btn {
40
- float: right;
41
- }
42
45
  .seafile-ed-hovermenu-mouseclick {
43
46
  background-color: #ddd;
44
47
  }