@seafile/sdoc-editor 0.1.57-test0 → 0.1.57
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.
|
@@ -22,36 +22,21 @@ var DocInfo = /*#__PURE__*/function (_React$Component) {
|
|
|
22
22
|
var eventBus = EventBus.getInstance();
|
|
23
23
|
eventBus.dispatch(EXTERNAL_EVENT.INTERNAL_LINK_CLICK);
|
|
24
24
|
};
|
|
25
|
-
_this.toggleStar = function () {
|
|
26
|
-
var eventBus = EventBus.getInstance();
|
|
27
|
-
eventBus.dispatch(EXTERNAL_EVENT.TOGGLE_STAR);
|
|
28
|
-
};
|
|
29
25
|
return _this;
|
|
30
26
|
}
|
|
31
27
|
_createClass(DocInfo, [{
|
|
32
28
|
key: "render",
|
|
33
29
|
value: function render() {
|
|
34
|
-
var
|
|
35
|
-
t = _this$props.t,
|
|
36
|
-
isStarred = _this$props.isStarred;
|
|
30
|
+
var t = this.props.t;
|
|
37
31
|
var docName = context.getSetting('docName');
|
|
38
|
-
var
|
|
39
|
-
isShowInternalLink = _context$getSettings.isShowInternalLink,
|
|
40
|
-
isStarIconShown = _context$getSettings.isStarIconShown;
|
|
32
|
+
var isShowInternalLink = context.getSetting('isShowInternalLink');
|
|
41
33
|
return /*#__PURE__*/React.createElement("div", {
|
|
42
34
|
className: "doc-info"
|
|
43
35
|
}, /*#__PURE__*/React.createElement("div", {
|
|
44
36
|
className: "doc-name"
|
|
45
|
-
}, docName),
|
|
46
|
-
className: "file-star ".concat(isStarred ? 'fa' : 'far', " fa-star"),
|
|
47
|
-
href: "#",
|
|
48
|
-
title: isStarred ? t('starred') : t('unstarred'),
|
|
49
|
-
role: "button",
|
|
50
|
-
"aria-label": isStarred ? t('Unstar') : t('Star'),
|
|
51
|
-
onClick: this.toggleStar
|
|
52
|
-
}), isShowInternalLink && /*#__PURE__*/React.createElement("span", {
|
|
37
|
+
}, docName), /*#__PURE__*/React.createElement("span", {
|
|
53
38
|
className: "doc-icon"
|
|
54
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
39
|
+
}, isShowInternalLink && /*#__PURE__*/React.createElement("span", {
|
|
55
40
|
className: "internal-link sdocfont sdoc-link",
|
|
56
41
|
title: t('internal_link'),
|
|
57
42
|
onClick: this.onInternalLinkClick
|
package/dist/constants/index.js
CHANGED
|
@@ -112,9 +112,7 @@ var SimpleEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
112
112
|
}, errorMessage);
|
|
113
113
|
}
|
|
114
114
|
var isOpenSocket = context.getSetting('isOpenSocket');
|
|
115
|
-
return /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(DocInfo, {
|
|
116
|
-
isStarred: this.props.isStarred
|
|
117
|
-
}), /*#__PURE__*/React.createElement(DocOperations, null)), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(SDocEditor, {
|
|
115
|
+
return /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(DocInfo, null), /*#__PURE__*/React.createElement(DocOperations, null)), /*#__PURE__*/React.createElement(Content, null, /*#__PURE__*/React.createElement(SDocEditor, {
|
|
118
116
|
config: context.getEditorConfig(),
|
|
119
117
|
document: document,
|
|
120
118
|
isOpenSocket: isOpenSocket,
|
package/package.json
CHANGED
|
@@ -247,9 +247,5 @@
|
|
|
247
247
|
"Insert_below": "Insert below",
|
|
248
248
|
"Insert_above": "Insert above",
|
|
249
249
|
"Insert_on_the_right": "Insert on the right",
|
|
250
|
-
"Insert_on_the_left": "Insert on the left"
|
|
251
|
-
"starred": "starred",
|
|
252
|
-
"unstarred": "unstarred",
|
|
253
|
-
"Star": "Star",
|
|
254
|
-
"Unstar": "Unstar"
|
|
250
|
+
"Insert_on_the_left": "Insert on the left"
|
|
255
251
|
}
|
package/dist/config.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var serverConfig = {
|
|
2
|
-
//serviceUrl: "http://127.0.0.1:8000",
|
|
3
|
-
serviceUrl: "http://192.168.1.100:8000",
|
|
4
|
-
username: "lj@11.com",
|
|
5
|
-
password: "11",
|
|
6
|
-
repoID: "79d1fa93-4b5f-4d6c-8fb5-ad3958e1fa47",
|
|
7
|
-
userInfo: {
|
|
8
|
-
username: 'lj@11.com',
|
|
9
|
-
name: 'lj-',
|
|
10
|
-
contact_email: 'lj@11.com'
|
|
11
|
-
},
|
|
12
|
-
filePath: '/xxx.md',
|
|
13
|
-
fileName: 'xxx.md',
|
|
14
|
-
dirPath: '/'
|
|
15
|
-
};
|
|
16
|
-
export { serverConfig };
|