@seafile/seafile-editor 0.3.136 → 0.3.137
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/config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var serverConfig = {
|
|
2
|
+
serviceUrl: 'dhttps://dev.seafile.com/seahub',
|
|
3
|
+
username: 'bing.an@seafile.com',
|
|
4
|
+
password: 'Seafile123#$%',
|
|
5
|
+
repoID: '66ffac5c-9cce-4738-a867-bb8931821e04',
|
|
6
|
+
userInfo: {
|
|
7
|
+
username: 'bing.an@seafile.com',
|
|
8
|
+
name: '安冰',
|
|
9
|
+
contact_email: 'bing.an@seafile.com'
|
|
10
|
+
},
|
|
11
|
+
filePath: '/测试.md',
|
|
12
|
+
fileName: '测试.md',
|
|
13
|
+
dirPath: '/'
|
|
14
|
+
};
|
|
15
|
+
export { serverConfig };
|
|
@@ -260,18 +260,11 @@ var ImagePreviewer = /*#__PURE__*/function (_React$Component2) {
|
|
|
260
260
|
wrapperClassName: "sf-editor-image-previewer",
|
|
261
261
|
imageTitle: imageTitleEl,
|
|
262
262
|
mainSrc: mainSrc,
|
|
263
|
-
toolbarButtons: [],
|
|
264
263
|
nextSrc: this.images[(imageIndex + 1) % imageItemsLength],
|
|
265
264
|
prevSrc: this.images[(imageIndex + imageItemsLength - 1) % imageItemsLength],
|
|
266
265
|
onCloseRequest: this.props.toggleImagePreviewer,
|
|
267
266
|
onMovePrevRequest: this.moveToPrevImage,
|
|
268
|
-
onMoveNextRequest: this.moveToNextImage
|
|
269
|
-
imagePadding: 70,
|
|
270
|
-
reactModalStyle: {
|
|
271
|
-
overlay: {
|
|
272
|
-
zIndex: 1071
|
|
273
|
-
}
|
|
274
|
-
}
|
|
267
|
+
onMoveNextRequest: this.moveToNextImage
|
|
275
268
|
});
|
|
276
269
|
}
|
|
277
270
|
}]);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
serviceUrl: 'https://dev.seafile.com/seahub',
|
|
3
|
+
username: 'bing.an@seafile.com',
|
|
4
|
+
password: 'Seafile123#$%',
|
|
5
|
+
name: '安冰',
|
|
6
|
+
contact_email: 'bing.an@seafile.com',
|
|
7
|
+
lib_name: '1',
|
|
8
|
+
repoID: '1284f468-d4fe-4046-a119-669b3d49cb71',
|
|
9
|
+
seafileCollabServer: 'https://dev.seafile.com/',
|
|
10
|
+
dirPath: '/',
|
|
11
|
+
filePath: '/readme.md',
|
|
12
|
+
fileName: 'readme.md' // scriptSource: ''
|
|
13
|
+
|
|
14
|
+
};
|
|
@@ -29,13 +29,7 @@ var ViewerImage = /*#__PURE__*/function (_React$Component) {
|
|
|
29
29
|
return /*#__PURE__*/React.createElement(Lightbox, {
|
|
30
30
|
wrapperClassName: "sf-editor-image-previewer",
|
|
31
31
|
mainSrc: src,
|
|
32
|
-
|
|
33
|
-
onCloseRequest: _this.toggleBigImage,
|
|
34
|
-
reactModalStyle: {
|
|
35
|
-
overlay: {
|
|
36
|
-
zIndex: 1071
|
|
37
|
-
}
|
|
38
|
-
}
|
|
32
|
+
onCloseRequest: _this.toggleBigImage
|
|
39
33
|
});
|
|
40
34
|
};
|
|
41
35
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/seafile-editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.137",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@seafile/react-image-lightbox": "2.0.
|
|
6
|
+
"@seafile/react-image-lightbox": "2.0.4",
|
|
7
7
|
"@seafile/slate-react": "^0.54.13",
|
|
8
8
|
"codemirror": "^5.37.0",
|
|
9
9
|
"crypto-js": "^3.1.9-1",
|