@seafile/seafile-editor 0.3.94 → 0.3.95
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.
- package/dist/components/detail-list-view.js +1 -3
- package/dist/css/diff-viewer.css +1 -1
- package/dist/css/keyboard-shortcuts.css +1 -1
- package/dist/css/markdown-viewer-slate/file-tags-list.css +1 -1
- package/dist/css/markdown-viewer.css +1 -1
- package/dist/css/richeditor/comments-list.css +1 -1
- package/dist/css/richeditor/document-info.css +1 -1
- package/dist/css/richeditor/formula.css +1 -1
- package/dist/css/richeditor/image.css +15 -19
- package/dist/css/richeditor/link.css +1 -1
- package/dist/css/richeditor/navbar-imgbutton.css +1 -1
- package/dist/css/richeditor/participants-list.css +1 -1
- package/dist/css/richeditor/rich-editor-main.css +1 -1
- package/dist/css/richeditor/right-panel.css +1 -1
- package/dist/css/richeditor/table.css +1 -1
- package/dist/css/richeditor/tree-view.css +1 -1
- package/dist/css/topbar.css +1 -1
- package/dist/editor/controller/block-element-controller.js +1 -1
- package/dist/editor/editor-component/image.js +2 -3
- package/dist/editor/editor-utils/common-editor-utils.js +1 -1
- package/package.json +1 -1
- package/public/media/seafile-ui.css +1 -1
- package/dist/config-0.js +0 -15
|
@@ -59,9 +59,7 @@ var DetailListView = /*#__PURE__*/function (_React$Component) {
|
|
|
59
59
|
var _this$props = this.props,
|
|
60
60
|
fileTagList = _this$props.fileTagList,
|
|
61
61
|
fileInfo = _this$props.fileInfo;
|
|
62
|
-
var
|
|
63
|
-
filePath = _this$props$editorApi.filePath,
|
|
64
|
-
serviceUrl = _this$props$editorApi.serviceUrl;
|
|
62
|
+
var filePath = this.props.editorApi.filePath;
|
|
65
63
|
return /*#__PURE__*/React.createElement("div", {
|
|
66
64
|
className: "dirent-table-container"
|
|
67
65
|
}, /*#__PURE__*/React.createElement("table", {
|
package/dist/css/diff-viewer.css
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
display: inline-block;
|
|
4
4
|
max-width: 100%;
|
|
5
5
|
}
|
|
6
|
+
|
|
6
7
|
.seafile-ed-image .seafile-ed-image-inResizing {
|
|
7
8
|
box-shadow: 0 0 0 2px #007bff;
|
|
8
9
|
}
|
|
10
|
+
|
|
9
11
|
.seafile-ed-image .image-resizer {
|
|
10
12
|
width: 10px;
|
|
11
13
|
height: 10px;
|
|
@@ -17,6 +19,7 @@
|
|
|
17
19
|
border: 1px solid #fff;
|
|
18
20
|
cursor: se-resize;
|
|
19
21
|
}
|
|
22
|
+
|
|
20
23
|
.image-size {
|
|
21
24
|
display: inline-block;
|
|
22
25
|
padding: 5px;
|
|
@@ -99,40 +102,33 @@
|
|
|
99
102
|
}
|
|
100
103
|
|
|
101
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,
|
|
102
107
|
.sf-editor-image-previewer .dtable-icon-left {
|
|
103
108
|
font-family: "iconfont" !important;
|
|
104
|
-
font-size: 16px;
|
|
105
109
|
font-style: normal;
|
|
106
110
|
-webkit-font-smoothing: antialiased;
|
|
107
111
|
-moz-osx-font-smoothing: grayscale;
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
.sf-editor-image-previewer .dtable-icon-
|
|
111
|
-
content: "\e756";
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.sf-editor-image-previewer .dtable-icon-right {
|
|
115
|
-
font-family: "iconfont" !important;
|
|
114
|
+
.sf-editor-image-previewer button.dtable-icon-fork-number {
|
|
116
115
|
font-size: 16px;
|
|
117
|
-
font-style: normal;
|
|
118
|
-
-webkit-font-smoothing: antialiased;
|
|
119
|
-
-moz-osx-font-smoothing: grayscale;
|
|
120
116
|
line-height: normal;
|
|
121
117
|
}
|
|
122
118
|
|
|
123
|
-
.sf-editor-image-previewer .dtable-icon-
|
|
124
|
-
content: "\
|
|
119
|
+
.sf-editor-image-previewer .dtable-icon-left:before {
|
|
120
|
+
content: "\e756";
|
|
125
121
|
}
|
|
126
122
|
|
|
127
|
-
.sf-editor-image-previewer
|
|
128
|
-
|
|
129
|
-
font-size: 16px;
|
|
130
|
-
font-style: normal;
|
|
131
|
-
-webkit-font-smoothing: antialiased;
|
|
132
|
-
-moz-osx-font-smoothing: grayscale;
|
|
133
|
-
line-height: normal;
|
|
123
|
+
.sf-editor-image-previewer .dtable-icon-right:before {
|
|
124
|
+
content: "\e755";
|
|
134
125
|
}
|
|
135
126
|
|
|
136
127
|
.sf-editor-image-previewer .dtable-icon-fork-number:before {
|
|
137
128
|
content: "\e6ce";
|
|
138
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;
|
|
134
|
+
}
|
package/dist/css/topbar.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
-
import { Editor, Path
|
|
4
|
+
import { Editor, Path } from 'slate';
|
|
5
5
|
import ListUtils from '../editor-utils/block-element-utils/list-utils';
|
|
6
6
|
import CodeUtils from '../editor-utils/block-element-utils/code-utils';
|
|
7
7
|
import { isRangeCollapsed } from '../editor-utils/range-utils';
|
|
@@ -233,13 +233,13 @@ var ImagePreviewer = /*#__PURE__*/function (_React$Component2) {
|
|
|
233
233
|
_createClass(ImagePreviewer, [{
|
|
234
234
|
key: "render",
|
|
235
235
|
value: function render() {
|
|
236
|
-
var imageUrl = this.props.imageUrl;
|
|
237
236
|
var imageIndex = this.state.imageIndex;
|
|
238
237
|
var imageItemsLength = this.images.length;
|
|
238
|
+
var mainSrc = this.images[imageIndex];
|
|
239
239
|
var imageTitle = '';
|
|
240
240
|
|
|
241
241
|
try {
|
|
242
|
-
imageTitle =
|
|
242
|
+
imageTitle = mainSrc ? decodeURI(mainSrc.slice(mainSrc.lastIndexOf('/') + 1)) : '';
|
|
243
243
|
} catch (error) {
|
|
244
244
|
// eslint-disable-next-line no-console
|
|
245
245
|
console.log(error);
|
|
@@ -252,7 +252,6 @@ var ImagePreviewer = /*#__PURE__*/function (_React$Component2) {
|
|
|
252
252
|
}, imageTitle), /*#__PURE__*/React.createElement("span", {
|
|
253
253
|
className: "flex-shrink-0"
|
|
254
254
|
}, "(", imageIndex + 1, "/", this.images.length, ")"));
|
|
255
|
-
var mainSrc = this.images[imageIndex];
|
|
256
255
|
return /*#__PURE__*/React.createElement(Lightbox, {
|
|
257
256
|
wrapperClassName: "sf-editor-image-previewer",
|
|
258
257
|
imageTitle: imageTitleEl,
|
package/package.json
CHANGED
|
@@ -11166,4 +11166,4 @@ Icon input
|
|
|
11166
11166
|
box-shadow: 0 0 0 2px rgba(241, 150, 69, 0.25); }
|
|
11167
11167
|
|
|
11168
11168
|
|
|
11169
|
-
/*# sourceMappingURL=seafile-ui.map*/
|
|
11169
|
+
/*# sourceMappingURL=seafile-ui.map*/
|
package/dist/config-0.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var serverConfig = {
|
|
2
|
-
serviceUrl: "https://download.seafile.top",
|
|
3
|
-
username: "xxx",
|
|
4
|
-
password: "xxx",
|
|
5
|
-
repoID: "xxxxxxx-xxxx-xxx-xxx-xxxx",
|
|
6
|
-
userInfo: {
|
|
7
|
-
username: 'xxx',
|
|
8
|
-
name: 'xxx',
|
|
9
|
-
contact_email: 'xxxx'
|
|
10
|
-
},
|
|
11
|
-
filePath: '/demo.md',
|
|
12
|
-
fileName: 'demo.md',
|
|
13
|
-
dirPath: '/'
|
|
14
|
-
};
|
|
15
|
-
export { serverConfig };
|